/* Digital Divide — static clone of Squarespace site */
@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --accent: #ec5c39;
  --accent-hsl: 11.73, 82.49%, 57.45%;
  --light-accent: #f3f3f0;
  --peach: #faece8;
  --peach-mid: #f5c9b8;
  --text: #000000;
  --muted: #555555;
  --meta: #767676;
  --white: #ffffff;
  --header-height: 88px;
  --content-max: 1120px;
  --wide-max: 1280px;
  --radius-btn: 30px;
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Raleway", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.75;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 10000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.header-inner {
  max-width: var(--wide-max);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-height);
}

.logo img {
  height: 42px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--text);
}

/* ——— Sections ——— */
.section {
  position: relative;
  padding: 4.5rem 2rem;
}

.section--hero {
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
  overflow: hidden;
}

.section--hero .section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, var(--peach-mid) 0%, transparent 65%),
    linear-gradient(180deg, #f8e4dc 0%, var(--accent) 120%);
  opacity: 0.95;
}

.section--hero .section-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 85%, rgba(236, 92, 57, 0.55), transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(250, 236, 232, 0.8), transparent 40%);
  animation: gradientDrift 18s ease-in-out infinite alternate;
}

@keyframes gradientDrift {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.05) translate(-1%, 1%); }
}

.section--hero .section-inner {
  position: relative;
  z-index: 1;
}

.section--muted {
  background: var(--white);
}

.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.section-inner--wide {
  max-width: var(--wide-max);
}

.hero-copy {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.hero-copy h1,
.hero-copy h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.85rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0 0 1.25rem;
}

.hero-copy p {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}

.hero-video {
  max-width: 900px;
  margin: 0 auto;
}

/* ——— Feature rows ——— */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--wide-max);
  margin: 0 auto;
}

.feature--reverse .feature-media {
  order: -1;
}

.feature-label {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

.feature-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  letter-spacing: -0.04em;
  line-height: 1.25;
  margin: 0 0 1rem;
}

.feature-body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* ——— Video ——— */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  color: #aaa;
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-align: center;
  padding: 1.5rem;
}

/* ——— CTA / Services ——— */
.cta-block .feature-title {
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 0.95rem 3rem;
  min-height: 3.25rem;
  background: var(--accent);
  color: var(--white) !important;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  opacity: 1 !important;
}

.btn:hover {
  opacity: 0.9 !important;
  transform: translateY(-1px);
}

/* ——— Footer ——— */
.site-footer {
  padding: 3.5rem 2rem 4rem;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.site-footer h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.site-footer p {
  margin: 0.15rem 0;
  font-size: 0.95rem;
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ——— Shorts page ——— */
.shorts-hero {
  text-align: left;
  max-width: var(--wide-max);
  margin: 0 auto;
  padding: 3rem 2rem 2.5rem;
  position: relative;
}

.shorts-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--white) 35%, var(--peach-mid) 100%);
  z-index: -1;
}

.shorts-hero h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.045em;
  margin: 0 0 0.75rem;
  line-height: 1.1;
}

.shorts-hero h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.25rem;
  margin: 0;
  letter-spacing: -0.02em;
}

.shorts-filters {
  max-width: var(--wide-max);
  margin: 0 auto;
  padding: 0 2rem 1.75rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.shorts-filters a {
  font-weight: 500;
}

.shorts-filters a.is-active {
  font-weight: 700;
}

.shorts-filters .sep {
  color: var(--meta);
}

.shorts-grid {
  max-width: var(--wide-max);
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 1.75rem;
}

.short-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.short-card:hover {
  opacity: 1;
}

.short-card:hover .short-thumb img {
  transform: scale(1.02);
}

.short-thumb {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #eee;
}

.short-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.short-meta {
  font-size: 0.8rem;
  color: var(--meta);
  margin: 0;
}

.short-card h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.25;
}

.short-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ——— Modal for shorts ——— */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.72);
}

.modal.is-open {
  display: flex;
}

.modal-dialog {
  background: #000;
  width: min(960px, 100%);
  position: relative;
}

.modal-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  font-family: var(--font-heading);
}

.modal-dialog video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

.modal-caption {
  background: var(--white);
  padding: 1.25rem 1.5rem;
}

.modal-caption h3 {
  font-family: var(--font-heading);
  margin: 0 0 0.5rem;
  font-weight: 500;
}

.modal-caption p {
  margin: 0;
  font-size: 0.95rem;
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .feature--reverse .feature-media {
    order: 0;
  }

  .shorts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding: 0.85rem 1.25rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1rem 1.25rem 1.5rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .section {
    padding: 3rem 1.25rem;
  }

  .shorts-hero,
  .shorts-filters,
  .shorts-grid {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .shorts-grid {
    grid-template-columns: 1fr;
  }
}
