/* ===========================================================
   17 Media Group — Shared Styles
   Bold, story-driven digital advertising site
   =========================================================== */

:root {
  --ink:        #142826;   /* deep teal-charcoal text */
  --ink-2:      #173430;   /* footer / deep panels */
  --ink-3:      #1f3f3a;
  --paper:      #f7faf9;   /* cool off-white */
  --paper-2:    #ecf6f3;   /* faint teal tint */
  --paper-3:    #ffffff;   /* pure white for cards */
  --muted:      #5f7370;
  --line:       #dcebe7;
  --brand:      #0d9488;   /* teal */
  --brand-2:    #10b981;   /* emerald */
  --brand-ink:  #0a7268;   /* darker teal for text on light */
  --accent:     #2dd4bf;   /* light teal */
  --accent-2:   #5eead4;
  --grad:       linear-gradient(120deg, #0d9488 0%, #10b981 50%, #2dd4bf 120%);
  --grad-soft:  linear-gradient(120deg, rgba(13,148,136,.10), rgba(45,212,191,.12));
  --maxw:       1180px;
  --r:          18px;
  --shadow:     0 24px 60px -24px rgba(13,80,72,.30);
  --shadow-sm:  0 12px 30px -16px rgba(13,80,72,.26);
  --font:       'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand); display: inline-block; }
.eyebrow.on-dark { color: var(--brand-2); }

.display { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 900; letter-spacing: -0.035em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px;
  padding: 15px 28px; border-radius: 100px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer; border: none;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 30px -10px rgba(13,148,136,.45); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -10px rgba(13,148,136,.55); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost.on-dark:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--brand); font-size: 15px;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 19px; letter-spacing: -0.02em; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 15px;
  box-shadow: 0 8px 20px -8px rgba(13,148,136,.45);
}
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--ink-2); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 18px 0; }
.bg-soft { background: var(--paper-2); }
.bg-ink { background: linear-gradient(135deg, #0a7268 0%, #0d9488 55%, #10b981 110%); color: #fff; }
.bg-ink .lead, .bg-ink .muted { color: #d1faf0; }

/* ---------- Hero (centered, animated background) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--ink);
  background: var(--paper);
  display: grid; place-items: center;
  min-height: clamp(560px, 88vh, 860px);
}
/* moving image + light wash layer */
.hero::after {
  content: ""; position: absolute; inset: -2%; z-index: 0;
  background:
    radial-gradient(closest-side at 50% 42%, rgba(247,250,249,.92) 0%, rgba(247,250,249,.55) 55%, rgba(247,250,249,.2) 100%),
    linear-gradient(180deg, rgba(247,250,249,.5), rgba(236,246,243,.35)),
    url('hero-grid.jpg') center center / cover no-repeat;
  animation: heroPan 26s ease-in-out infinite alternate;
}
/* drifting aurora glow */
.hero::before {
  content: ""; position: absolute; inset: -25%; z-index: 1; pointer-events: none;
  background:
    radial-gradient(40% 40% at 25% 30%, rgba(45,212,191,.28), transparent 70%),
    radial-gradient(45% 45% at 80% 70%, rgba(16,185,129,.22), transparent 70%),
    radial-gradient(35% 35% at 60% 20%, rgba(13,148,136,.18), transparent 70%);
  filter: blur(30px);
  animation: auroraDrift 20s ease-in-out infinite alternate;
}
.hero .wrap { position: relative; z-index: 2; padding: clamp(72px,11vw,140px) 24px; }
.hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.9rem); font-weight: 900; letter-spacing: -0.04em; }
.hero p.lead { color: var(--muted); margin: 24px auto 34px; max-width: 600px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-stats { display: flex; gap: 18px; margin-top: 48px; flex-wrap: wrap; justify-content: center; }
.hero-stats .chip {
  background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 22px; backdrop-filter: blur(6px); box-shadow: var(--shadow-sm); min-width: 150px;
}
.hero-stats .num { font-size: 1.05rem; font-weight: 800; }
.hero-stats .lbl { font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* channel strip (centered) */
.logos-strip { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 52px; }
.logos-strip .lbl { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; width: 100%; text-align: center; margin-bottom: 4px; }
.logos-strip .pill {
  font-weight: 700; font-size: 14px; letter-spacing: -.01em; color: var(--brand-ink);
  padding: 9px 18px; border: 1px solid var(--line); border-radius: 100px;
  background: rgba(255,255,255,.7);
}

/* entrance + ambient animations */
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes heroPan { from { transform: scale(1.03) translate3d(0,0,0); } to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }
@keyframes auroraDrift {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1); }
  50%  { transform: translate3d(2%, 1%, 0) scale(1.08); }
  100% { transform: translate3d(3%, 3%, 0) scale(1.04); }
}
@keyframes shimmer { to { background-position: 200% center; } }

.hero-inner > * { opacity: 0; animation: heroFadeUp .85s cubic-bezier(.22,.61,.36,1) forwards; }
.hero-inner > *:nth-child(1) { animation-delay: .10s; }
.hero-inner > *:nth-child(2) { animation-delay: .22s; }
.hero-inner > *:nth-child(3) { animation-delay: .34s; }
.hero-inner > *:nth-child(4) { animation-delay: .46s; }
.hero-inner > *:nth-child(5) { animation-delay: .58s; }
.hero-inner > *:nth-child(6) { animation-delay: .70s; }

.hero .grad-text { background-size: 220% auto; animation: shimmer 7s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .hero::after, .hero::before { animation: none; }
  .hero-inner > * { opacity: 1; animation: none; }
  .hero .grad-text { animation: none; }
}

/* ---------- Process / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 26px; position: relative; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.step-card .n { font-size: 13px; font-weight: 800; color: var(--brand); letter-spacing: .1em; }
.step-card .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--grad-soft); display: grid; place-items: center; margin: 16px 0 18px; }
.step-card .ic svg { width: 26px; height: 26px; }
.step-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step-card p { font-size: 15px; color: var(--muted); }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media {
  border-radius: var(--r); overflow: hidden; background: var(--grad-soft);
  border: 1px solid var(--line); padding: 38px; min-height: 340px;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.split h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin: 16px 0 18px; }
.checks { list-style: none; margin: 24px 0 30px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checks li svg { width: 22px; height: 22px; flex: none; margin-top: 1px; color: var(--brand); }

/* ---------- Solution cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sol-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 34px 30px; transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.sol-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.sol-card .ic { width: 58px; height: 58px; border-radius: 16px; background: var(--grad); display: grid; place-items: center; margin-bottom: 22px; }
.sol-card .ic svg { width: 28px; height: 28px; color: #fff; }
.sol-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.sol-card p { color: var(--muted); margin-bottom: 22px; flex: 1; }

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stats-band .num { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 900; }
.stats-band .lbl { color: #d1faf0; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.bg-ink .grad-text { background: linear-gradient(120deg,#fff,#d1faf0); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Value band (on teal) ---------- */
.value-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.vb-card {
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r); padding: 28px 24px; backdrop-filter: blur(4px);
}
.vb-ic { width: 50px; height: 50px; border-radius: 13px; background: rgba(255,255,255,.16); display: grid; place-items: center; margin-bottom: 18px; color: #fff; }
.vb-ic svg { width: 24px; height: 24px; }
.vb-card h3 { font-size: 1.2rem; color: #fff; margin-bottom: 8px; }
.vb-card p { font-size: 14.5px; color: #d1faf0; line-height: 1.55; }

/* ---------- CTA ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(48px,7vw,84px); background: var(--ink-2); color: #fff; box-shadow: var(--shadow); }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(700px 400px at 85% 10%, rgba(16,185,129,.5), transparent 60%), radial-gradient(600px 400px at 0% 120%, rgba(45,212,191,.4), transparent 55%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 720px; }
.cta-band p { color: #c2cadf; max-width: 560px; margin: 18px 0 30px; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aab2c8; padding: 72px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid .brand { color: #fff; margin-bottom: 16px; }
.footer-about { font-size: 15px; max-width: 320px; }
.footer-col h5 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 12px; }
.footer-col a { font-size: 15px; transition: color .15s; }
.footer-col a:hover { color: var(--brand-2); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 52px; padding-top: 28px; font-size: 14px; }

/* ---------- Page hero (interior, light) ---------- */
.page-hero {
  color: var(--ink); position: relative; overflow: hidden;
  background:
    linear-gradient(100deg, rgba(247,250,249,.96) 0%, rgba(247,250,249,.8) 45%, rgba(236,246,243,.55) 100%),
    url('hero-grid.jpg') center right / cover no-repeat,
    var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.page-hero .wrap { position: relative; padding: clamp(60px,8vw,104px) 24px; }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 900; max-width: 820px; }
.page-hero p { color: var(--muted); font-size: 1.2rem; max-width: 600px; margin-top: 22px; }
.crumbs { font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 22px; }
.crumbs a { color: var(--brand-ink); }
.crumbs a:hover { color: var(--brand); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: 15px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(13,148,136,.14); }
.field textarea { resize: vertical; min-height: 130px; }
.contact-info { display: grid; gap: 22px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; }
.info-row .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--grad-soft); display: grid; place-items: center; flex: none; }
.info-row .ic svg { width: 22px; height: 22px; color: var(--brand); }
.info-row h4 { font-size: 16px; margin-bottom: 2px; }
.info-row p { color: var(--muted); font-size: 15px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.form-error { color: #b91c1c; font-weight: 600; margin-top: 14px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-thanks {
  background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--r);
  padding: 40px 36px; box-shadow: var(--shadow-sm); text-align: center;
}
.form-thanks-icon {
  width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--grad-soft); color: var(--brand); display: grid; place-items: center;
}
.form-thanks-icon svg { width: 28px; height: 28px; }
.form-thanks h3 { font-size: 1.5rem; margin-bottom: 12px; color: var(--ink); }
.form-thanks p { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 36ch; margin: 0 auto 10px; }
.form-thanks a { color: var(--brand); font-weight: 600; }

/* ---------- Values / about ---------- */
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.value-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.value-card .ic { width: 50px; height: 50px; border-radius: 13px; background: var(--grad-soft); display: grid; place-items: center; margin-bottom: 18px; }
.value-card .ic svg { width: 24px; height: 24px; color: var(--brand); }
.value-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: 15px; }

.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 160px 1fr; gap: 30px; padding: 28px 0; border-top: 1px solid var(--line); }
.tl-item:first-child { border-top: none; }
.tl-year { font-size: 1.4rem; font-weight: 900; color: var(--brand); }
.tl-item h3 { font-size: 1.3rem; margin-bottom: 8px; }
.tl-item p { color: var(--muted); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: 0; }
  .cards-3, .values { grid-template-columns: 1fr; }
  .value-band { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 74px; left: 0; right: 0;
    background: #fff; padding: 20px 24px; gap: 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm);
  }
  .hero-stats { gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  .value-band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
