/**
 * ZapToday — main stylesheet
 * Static centered header, stacked hero, vertical timeline, coverage, centered teal footer.
 */

:root {
  --teal: #0d7377;
  --accent: #14a3a8;
  --accent-hover: #0f8f94;
  --offwhite: #f5f7f7;
  --ink: #1a2a2a;
  --text: #1a2a2a;
  --text-muted: #4a5a5a;
  --surface: #eef3f3;
  --line: rgba(13, 115, 119, 0.14);
  --font-display: "Outfit", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --space: clamp(1rem, 2.5vw, 2rem);
  --max: 72rem;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(20, 163, 168, 0.14), transparent 55%),
    linear-gradient(180deg, var(--offwhite) 0%, var(--surface) 45%, var(--offwhite) 100%);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

h1,
h2,
h3,
.site-logo__word,
.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin: 0 0 1rem;
  color: var(--ink);
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  margin: 0 0 0.75rem;
  color: var(--ink);
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

p {
  margin: 0 0 1rem;
}

address {
  font-style: normal;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--teal);
  color: #fff;
  padding: 0.6rem 1rem;
}

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

/* ——— Static centered header ——— */
.site-header {
  position: static;
  background: rgba(245, 247, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--space) 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  position: relative;
}

.site-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--teal);
}

.site-logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.site-logo__word {
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  position: absolute;
  right: var(--space);
  top: 1.35rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0.55rem;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--ink);
  width: 100%;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.35rem;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--teal);
}

.site-nav__cta {
  color: var(--teal) !important;
  font-weight: 600;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    width: 100%;
  }

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

  .site-nav__list {
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0 0.25rem;
    gap: 0.75rem;
  }
}

/* ——— Layout ——— */
.site-main {
  overflow-x: clip;
}

.site-main--page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem var(--space) 4rem;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--space);
}

.section__intro {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section__intro p {
  color: var(--text-muted);
}

.section__copy {
  max-width: 42rem;
  margin: 2rem auto 0;
  color: var(--text-muted);
}

.section__media {
  margin-top: 2.5rem;
}

.media-frame {
  overflow: hidden;
  background: var(--teal);
  border-radius: var(--radius);
}

.media-frame img,
.media-frame picture {
  width: 100%;
}

.media-frame img {
  object-fit: cover;
  aspect-ratio: 16 / 10;
  max-height: min(56vh, 560px);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.8rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--teal);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(26, 42, 42, 0.28);
}

.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  min-height: 44px;
}

/* ——— Stacked hero ——— */
.hero--stacked {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  max-width: none;
}

.hero__text {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--space) clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.hero__eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__lead {
  max-width: 38rem;
  margin: 0 auto 1.75rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.hero__media {
  width: 100%;
  background: var(--teal);
}

.hero__media picture,
.hero__media img {
  width: 100%;
  display: block;
}

.hero__img {
  width: 100%;
  max-height: min(72vh, 820px);
  object-fit: cover;
  aspect-ratio: 21 / 9;
}

/* ——— Services ——— */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 700px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service {
  padding: 1.5rem 1.35rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ——— Vertical timeline ——— */
.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 40rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1.35rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(20, 163, 168, 0.2));
}

.timeline__item {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__marker {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.timeline__body h3 {
  margin-top: 0.35rem;
}

.timeline__body p {
  margin: 0;
  color: var(--text-muted);
}

/* ——— Coverage ——— */
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

@media (max-width: 860px) {
  .coverage-grid {
    grid-template-columns: 1fr;
  }
}

.coverage-card {
  padding: 1.4rem 1.25rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 3px solid var(--accent);
}

.coverage-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ——— About ——— */
.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.about-layout__copy p {
  color: var(--text-muted);
}

.about-tools {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.about-tools__copy p {
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .about-layout,
  .about-tools {
    grid-template-columns: 1fr;
  }
}

/* ——— FAQ ——— */
.faq-list {
  max-width: 42rem;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0.35rem 0;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 1rem 0;
  list-style: none;
  min-height: 44px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 500;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
  padding-right: 1.5rem;
}

/* ——— Contact ——— */
.contact-block {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-block p {
  color: var(--text-muted);
}

.contact-block__address {
  margin: 1.5rem 0;
  line-height: 1.7;
}

.contact-block__list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-block__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.contact-block__list a {
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

.contact-block__list a:hover {
  color: var(--teal);
}

.contact-block__note {
  font-size: 0.95rem;
}

.contact-block__media {
  margin-top: 1.75rem;
}

/* ——— Content pages ——— */
.content-page__header {
  margin-bottom: 1.5rem;
}

.content-page__body.prose :where(h2, h3) {
  margin-top: 1.75rem;
}

.content-page__body.prose :where(ul, ol) {
  padding-left: 1.25rem;
}

.error-404 {
  text-align: center;
  padding: 2rem 0;
}

.error-404 .hero__actions {
  margin-top: 1.5rem;
}

/* ——— Centered teal/dark footer ——— */
.site-footer {
  background: linear-gradient(165deg, #0a5c5f 0%, var(--teal) 45%, #083e41 100%);
  color: rgba(245, 247, 247, 0.86);
  padding: clamp(3rem, 6vw, 4.5rem) var(--space);
  text-align: center;
}

.site-footer a {
  color: var(--offwhite);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer__inner {
  max-width: 36rem;
  margin: 0 auto;
}

.site-footer__brand {
  display: inline-block;
  font-size: 1.85rem;
  letter-spacing: 0.02em;
  color: var(--offwhite);
  text-decoration: none;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.site-footer__tag {
  margin: 0 0 1.25rem;
  color: rgba(245, 247, 247, 0.72);
}

.site-footer__address {
  margin: 0 0 0.75rem;
  line-height: 1.7;
}

.site-footer__contact {
  margin: 0 0 1.75rem;
}

.site-footer__contact a {
  font-weight: 500;
}

.site-footer__list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.25rem;
}

.site-footer__list .link-button {
  color: var(--offwhite);
}

.site-footer__list .link-button:hover {
  color: #fff;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(245, 247, 247, 0.55);
}

/* ——— Cookie banner ——— */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 900;
  max-width: 28rem;
  max-height: 30vh;
  overflow-y: auto;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(26, 42, 42, 0.16);
  padding: 1.25rem;
}

.cookie-banner__title {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.cookie-banner__text {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-settings {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.cookie-settings__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
  min-height: 44px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ——— Animations ——— */
.reveal {
  opacity: 0.96;
  transform: translateY(12px);
  filter: saturate(0.96);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), filter 0.55s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

.lift {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(13, 115, 119, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .lift,
  .lift:hover,
  .btn {
    transition: none;
    transform: none;
    box-shadow: none;
  }
}
