/* ============================================================
   Maine Newsroom — styles.css
   Mobile-first. Breakpoints escalate with min-width.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette (extracted from the original template) */
  --navy:        #091629;
  --navy-deep:   #130F27;
  --green:       #017c4f;
  --green-light: #8FD14F;
  --accent:      #FF6600;
  --accent-dark: #D45713;
  --text:        #474D50;
  --muted:       #848E92;
  --surface:     #ffffff;
  --surface-alt: #F5F5F5;
  --line:        #E4E7EA;

  /* Typography */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Instrument Sans", system-ui, sans-serif;

  /* Rhythm */
  --container: 1180px;
  --gutter: 20px;
  --radius: 18px;
  --radius-sm: 10px;
  --section-y: 64px;
  --shadow: 0 18px 50px -20px rgba(9, 22, 41, 0.28);
  --shadow-sm: 0 8px 24px -12px rgba(9, 22, 41, 0.25);
  --header-h: 84px;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
.icon { display: inline-block; width: 1em; height: 1em; fill: currentColor; vertical-align: middle; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.03em; }
p { margin: 0 0 1rem; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--muted { background: var(--surface-alt); }
.section--dark { background: var(--navy); color: rgba(255,255,255,.82); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.section__head { margin-bottom: 40px; }
.section__head--center { text-align: center; max-width: 720px; margin-inline: auto; }
.section__title { font-size: clamp(1.7rem, 5vw, 2.6rem); }
.section__intro { color: var(--muted); font-size: 1.05rem; }
.section--dark .section__intro { color: rgba(255,255,255,.7); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green);
  background: rgba(1,124,79,.08);
  padding: 7px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow--light { color: #fff; background: rgba(255,255,255,.12); }
.eyebrow__icon { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: var(--radius); border: 2px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:focus-visible { outline: 3px solid var(--green-light); outline-offset: 2px; }
.btn--accent { --btn-bg: var(--accent); }
.btn--accent:hover { background: var(--accent-dark); }
.btn--outline { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.35); }
.btn--outline:hover { border-color: var(--green-light); color: var(--green-light); }
.btn--green { --btn-bg: var(--green); --btn-fg: #fff; }
.btn--green:hover { background: #036b45; }
.btn--outline-green { --btn-bg: transparent; --btn-fg: var(--green); border-color: var(--green); }
.btn--outline-green:hover { background: var(--green); color: #fff; }
.btn--navy { --btn-bg: var(--navy); --btn-fg: #fff; }
.btn--navy:hover { background: var(--accent); }
.btn--block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.header__logo img { width: 184px; }

.nav { position: fixed; inset: var(--header-h) 0 auto 0;
  background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.10);
  flex-direction: column; gap: 8px; padding: 18px var(--gutter) 26px;
  transform: translateY(-120%); transition: transform .28s ease;
  display: flex; box-shadow: var(--shadow);
}
.nav.is-open { transform: translateY(0); }
.nav__list { display: flex; flex-direction: column; gap: 2px; }
.nav__link { display: block; padding: 12px 6px; font-family: var(--font-display); font-weight: 500; color: #fff; border-radius: var(--radius-sm); }
.nav__link:hover { background: rgba(255,255,255,.08); color: var(--green-light); }
.nav__cta { margin-top: 10px; }

.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span { height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 56px 0 0; background: var(--surface); overflow: hidden; }
.hero__grid { display: grid; gap: 36px; }
.hero__title { font-size: clamp(2rem, 8vw, 3.4rem); color: var(--navy); }
.hero__lead { color: var(--navy); font-size: 1.05rem; max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.hero__content .eyebrow { align-self: flex-start; }

.hero__media { display: flex; justify-content: center; align-items: flex-end; }
.hero__phone { position: relative; width: 100%; max-width: 300px; }
.hero__image { display: block; width: 100%; }

.floating-card { background: #fff; color: var(--text); border-radius: var(--radius); box-shadow: 0 22px 55px -18px rgba(9,22,41,.45); padding: 14px 16px; transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease; }
.floating-card--views:hover, .floating-card--quote:hover { transform: translateY(-6px); box-shadow: 0 30px 65px -18px rgba(9,22,41,.5); }
.floating-card--views { position: absolute; top: 7%; left: 4px; z-index: 2; max-width: 180px; }
.floating-card__label { display: block; font-family: var(--font-display); font-weight: 600; color: var(--muted); font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; }
.floating-card__views-row { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.floating-card__num { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--green); line-height: 1; }
.floating-card__chart { width: 64px; }
.floating-card--quote { position: absolute; bottom: 9%; right: 4px; z-index: 2; max-width: 195px; }
.floating-card--quote blockquote { margin: 0 0 6px; font-size: .8rem; line-height: 1.45; color: var(--navy); }
.floating-card--quote figcaption { font-family: var(--font-display); font-weight: 600; color: var(--green); font-size: .82rem; }

/* ============================================================
   PLATFORMS  (social grid)
   ============================================================ */
.platforms { position: relative; overflow: hidden; background: var(--navy); padding-block: 28px; }
.platforms::before { content: ""; position: absolute; inset: 0; background: url(../images/Component-BG-iso.png); background-size: 30px auto; opacity: .06; pointer-events: none; }
.platforms > .container { position: relative; z-index: 1; }
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;}
.social-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 10px; background: #122036; border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: 600; color: #fff;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.social-card i { font-size: 1.5rem; color: #fff; transition: color .15s ease; }
.social-card:hover { transform: translateY(-3px); background: #1a2b47; border-color: transparent; }
.social-card:hover i { color: var(--green-light); }
.social-card span { font-size: .82rem; }

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid { display: grid; gap: 40px; }
.about__media { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.about__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); aspect-ratio: 1/1; }
.about__media img:first-child { grid-row: span 2; aspect-ratio: auto; }

.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease, border-color .18s ease; }
.stat:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); border-color: transparent; }
.stat__num { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--green); }
.stat__label { font-size: .9rem; color: var(--muted); }
.stat__label small { display: block; margin-top: 3px; }

/* ============================================================
   CTA BANDS
   ============================================================ */
.cta-band { background: linear-gradient(120deg, var(--green) 0%, #036b45 100%); padding-block: 52px; text-align: center; }
.cta-band__inner { max-width: 680px; margin-inline: auto; }
.cta-band__title { color: #fff; font-size: clamp(1.6rem, 5vw, 2.3rem); }
.cta-band p { color: rgba(255,255,255,.85); }
.cta-band .btn { margin-top: 12px; }

/* ============================================================
   PARTNERS (feature cards)
   ============================================================ */
.feature-grid { display: grid; gap: 20px; }
.feature-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; text-align: center; }
.feature-card__icon { width: 56px; margin: 0 auto 16px; }
.feature-card h3 { font-size: 1.25rem; }
.feature-card p { color: var(--muted); margin: 0; }
.feature-card--highlight { background: var(--navy); color: rgba(255,255,255,.8); border-color: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.feature-card--highlight .feature-card__stat { font-family: var(--font-display); font-weight: 700; font-size: 3rem; color: var(--green-light); line-height: 1; margin-bottom: 8px; }
.feature-card--highlight p { color: rgba(255,255,255,.75); }

/* ============================================================
   SUPPORT
   ============================================================ */
.support { position: relative; overflow: hidden; background: var(--green); }
.support::before {
  content: ""; position: absolute; inset: 0;
  background: url(../images/Component-BG-iso.png); background-size: 30px auto;
  opacity: .10; pointer-events: none;
}
.support > .container { position: relative; z-index: 1; }
.support .section__title { color: #fff; }
.support .section__intro { color: rgba(255,255,255,.85); }
.support .btn--navy:hover { background: #02101f; }

.support-grid { display: grid; gap: 24px; }
.support-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 0 0 28px; display: flex; flex-direction: column; }
.support-card__banner { width: 100%; }
.support-card h3 { font-size: 1.4rem; margin: 22px 26px 8px; }
.support-card p { margin: 0 26px 20px; color: var(--muted); flex: 1; }
.support-card .btn { margin: 0 26px; align-self: flex-start; }


/* ============================================================
   POSTER
   ============================================================ */
.poster__grid { display: grid; gap: 30px; align-items: center; }
.poster__frame { margin: 0 auto; max-width: 360px; background: #fff; padding: 12px; border-radius: var(--radius); box-shadow: var(--shadow); }
.poster__frame img { display: block; width: 100%; border-radius: 6px; }
.poster__content .eyebrow { margin-bottom: 18px; }
.poster { background: var(--green); }
.poster .section__title { color: #fff; }
.poster__content p { color: rgba(255,255,255,.9); }
@media (min-width: 768px) {
  .poster__grid { grid-template-columns: minmax(0, 44%) 1fr; gap: 52px; }
  .poster__frame { max-width: none; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact__grid { display: grid; gap: 40px; }
.contact-list { margin-top: 26px; display: grid; gap: 18px; }
.contact-item { display: flex; align-items: center; gap: 16px; }
.contact-item__icon { width: 46px; height: 46px; padding: 10px; background: var(--green); border-radius: 50%; }
.contact-item h4 { margin: 0; font-size: 1rem; }
.contact-item p { margin: 0; color: var(--muted); }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.field { display: block; margin-bottom: 18px; }
.field__label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 7px; }
.field input {
  width: 100%; padding: 13px 15px; font: inherit; color: var(--navy);
  background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus { outline: none; border-color: var(--green); background: #fff; }
.field input::placeholder { color: #9aa2a6; }

/* ============================================================
   FAQ
   ============================================================ */
.faq__layout { display: grid; gap: 30px; }
.faq__topics h4 { font-size: 1.05rem; margin-bottom: 14px; }
.faq__topics ul { display: flex; flex-wrap: wrap; gap: 10px; }
.faq__topics a { display: inline-block; padding: 9px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-display); font-weight: 500; font-size: .9rem; color: var(--navy); transition: background .15s ease, color .15s ease; }
.faq__topics a:hover { background: var(--green); color: #fff; border-color: transparent; }

.accordion { display: grid; gap: 14px; }
.accordion__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.accordion__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; background: transparent; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--navy);
}
.accordion__icon { position: relative; flex: 0 0 20px; height: 20px; }
.accordion__icon::before, .accordion__icon::after { content: ""; position: absolute; background: var(--green); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.accordion__icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.accordion__icon::after  { top: 0; left: 9px; width: 2px; height: 20px; }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: scaleY(0); opacity: 0; }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.accordion__panel p { margin: 0; padding: 0 22px 22px; color: var(--muted); }

/* ============================================================
   FOOTER CTA + FOOTER
   ============================================================ */
.footer-cta { background: linear-gradient(120deg, var(--navy-deep), var(--navy)); text-align: center; padding-block: 56px; }
.footer-cta__inner { max-width: 640px; margin-inline: auto; }
.footer-cta__title { color: #fff; font-size: clamp(1.6rem, 5vw, 2.3rem); }
.footer-cta p { color: rgba(255,255,255,.72); }
.subscribe { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.subscribe input { flex: 1; padding: 14px 16px; font: inherit; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; border-radius: var(--radius); }
.subscribe input::placeholder { color: rgba(255,255,255,.55); }
.subscribe input:focus { outline: none; border-color: var(--green-light); }

.site-footer { position: relative; overflow: hidden; background: var(--navy); color: rgba(255,255,255,.7); padding-block: 34px; }
.site-footer::before {
  content: ""; position: absolute; inset: 0;
  background: url(../images/Component-BG-iso.png); background-size: 30px auto;
  opacity: .07; pointer-events: none;
}
.site-footer__inner { position: relative; z-index: 1; display: grid; gap: 22px; text-align: center; justify-items: center; }
.site-footer__logo img { width: 160px; }
.site-footer__social { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; }
.site-footer__social .icon { width: 20px; height: 20px; }
.site-footer__social a:hover { color: var(--green-light); }
.site-footer__copy p { margin: 0; }

.site-footer__legal { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.10); margin-top: 28px; padding-top: 22px; }
.site-footer__legal-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 28px; }
.site-footer__legal a { font-family: var(--font-display); font-weight: 500; font-size: .9rem; color: rgba(255,255,255,.75); }
.site-footer__legal a:hover { color: var(--green-light); }

/* ============================================================
   RESPONSIVE — tablet
   ============================================================ */
@media (min-width: 640px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .support-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-list { grid-template-columns: repeat(2, 1fr); }
  .subscribe { flex-direction: row; }
  .subscribe .btn { flex: 0 0 auto; }
  .hero__phone { max-width: 400px; }
  .floating-card--views { top: 12%; left: -26px; max-width: 205px; padding: 16px 18px; }
  .floating-card--quote { bottom: 12%; right: -26px; max-width: 230px; padding: 16px 18px; }
  .floating-card__num { font-size: 2.2rem; }
  .floating-card__chart { width: 78px; }
}

/* ============================================================
   RESPONSIVE — desktop
   ============================================================ */
@media (min-width: 960px) {
  :root { --section-y: 92px; }

  /* Header: inline nav, no toggle */
  .nav-toggle { display: none; }
  .nav {
    position: static; transform: none; flex-direction: row; align-items: center;
    background: transparent; border: 0; box-shadow: none; padding: 0; gap: 28px;
  }
  .nav__list { flex-direction: row; gap: 6px; }
  .nav__link { padding: 8px 12px; }
  .nav__cta { margin-top: 0; }

  .hero { padding: 96px 0 0; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; align-items: stretch; }
  .hero__content { display: flex; flex-direction: column; justify-content: center; }
  .hero__phone { max-width: 430px; }

  .social-grid { grid-template-columns: repeat(9, 1fr); }
  .social-card { padding: 20px 8px; }
  .social-card .icon { width: 24px; height: 24px; }
  .social-card span { font-size: .82rem; }

  .about__grid { grid-template-columns: .9fr 1.1fr; align-items: center; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }

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

  .faq__layout { grid-template-columns: 1fr; max-width: 820px; margin-inline: auto; }
}

@media (min-width: 1100px) {
  .header__logo img { width: 204px; }
}

/* ============================================================
   PRIVACY / LEGAL PAGE
   ============================================================ */
.page-head { padding-block: 56px; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); }
.page-head__title { color: #fff; font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 .3em; }
.page-head__meta { color: rgba(255,255,255,.65); margin: 0; font-size: .95rem; }

.legal__content { max-width: 760px; }
.legal__content h2 { font-size: 1.35rem; margin: 1.8em 0 .5em; }
.legal__content p { color: var(--text); }
.legal__note { background: var(--surface-alt); border-left: 4px solid var(--green); border-radius: var(--radius-sm); padding: 14px 18px; color: var(--muted); font-size: .95rem; }
@media (min-width: 960px) { .page-head { padding-block: 76px; } }

/* Cloaked contact links (assembled by JS) */
.contact-item a { color: inherit; text-decoration: none; word-break: break-word; }
.contact-item a:hover { color: var(--green); }
.legal__content a { color: var(--green); }
