/* =========================================================
   COOKIE DEVS — ACCOUNTANT PREMIUM DEMO
   Simple structure / premium visual direction
   ========================================================= */

/* =========================================================
   ROOT
   ========================================================= */

:root {
  --ink: #101714;
  --deep: #0d1b17;
  --deep-2: #152821;

  --accent: #92aa9a;

  --paper: #ffffff;
  --soft: #f3f5f2;

  --muted: #6e756f;
  --line: #dce2dd;
  --line-dark: rgba(255, 255, 255, 0.12);

  --container: 1280px;
  --header-h: 82px;

  --transition-fast: 180ms ease;
  --transition: 300ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* =========================================================
   RESET / BASE
   ========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background: var(--paper);
  color: var(--ink);

  font-family: Arial, Helvetica, sans-serif;

  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  font: inherit;
  cursor: pointer;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 112px 0;
}

.eyebrow {
  margin: 0;

  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.62);
}

.eyebrow.dark {
  color: #6f7b73;
}

/* =========================================================
   HEADER — DESKTOP
   Transparent over hero, glass when scrolled
   ========================================================= */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;

  height: var(--header-h);

  color: #ffffff;

  border-bottom: 1px solid rgba(255, 255, 255, 0.12);

  transition:
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition),
    box-shadow var(--transition),
    backdrop-filter var(--transition);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.93);
  color: var(--ink);

  border-bottom-color: rgba(0, 0, 0, 0.08);

  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner {
  height: 100%;

  display: flex;
  align-items: center;

  gap: 32px;
}

/* =========================================================
   BRAND
   ========================================================= */

.brand {
  display: inline-flex;
  align-items: center;

  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border: 1px solid currentColor;

  font-weight: 800;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-size: 0.92rem;
}

.brand-copy small {
  margin-top: 4px;

  font-size: 0.52rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;

  opacity: 0.62;
}

/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */

.desktop-nav {
  display: flex;
  gap: 26px;

  margin-left: auto;
}

.desktop-nav a {
  position: relative;

  font-size: 0.82rem;

  opacity: 0.75;

  transition: opacity var(--transition-fast);
}

.desktop-nav a:hover {
  opacity: 1;
}

.desktop-nav a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -7px;

  width: 100%;
  height: 1px;

  background: currentColor;

  transform: scaleX(0);
  transform-origin: right;

  transition: transform var(--transition);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  min-height: 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 16px;

  border: 1px solid rgba(255, 255, 255, 0.35);

  font-size: 0.78rem;
  font-weight: 700;

  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.header-cta:hover {
  background: #ffffff;
  color: var(--deep);
  border-color: #ffffff;
}

.site-header.is-scrolled .header-cta {
  border-color: rgba(0, 0, 0, 0.18);
}

.site-header.is-scrolled .header-cta:hover {
  background: var(--deep);
  color: #ffffff;
  border-color: var(--deep);
}

/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.menu-toggle {
  display: none;

  width: 44px;
  height: 44px;

  position: relative;

  margin-left: auto;
  padding: 0;

  border: 0;

  background: transparent;
  color: inherit;
}

.menu-toggle span {
  position: absolute;
  left: 8px;

  width: 28px;
  height: 1px;

  background: currentColor;

  transition:
    top var(--transition),
    transform var(--transition);
}

.menu-toggle span:first-child {
  top: 18px;
}

.menu-toggle span:last-child {
  top: 26px;
}

body.menu-open .menu-toggle span:first-child {
  top: 22px;
  transform: rotate(45deg);
}

body.menu-open .menu-toggle span:last-child {
  top: 22px;
  transform: rotate(-45deg);
}

/* Hidden on desktop */
.mobile-menu {
  display: none;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  min-height: 100svh;

  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 82% 26%,
      rgba(146, 170, 154, 0.16),
      transparent 27%
    ),
    linear-gradient(140deg, var(--deep), #10231c 65%, #173027);

  color: #ffffff;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;

  opacity: 0.08;

  background-image:
    linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);

  background-size: 80px 80px;
}

.hero-inner {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: 1.35fr 0.65fr;

  gap: 80px;

  align-items: end;

  padding-top: clamp(180px, 22vh, 250px);
  padding-bottom: 80px;
}

.hero h1 {
  max-width: 980px;

  margin: 24px 0 0;

  font-size: clamp(3.8rem, 7.6vw, 7.6rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.hero h1 span {
  display: block;

  color: #c9d5cc;
}

.hero-lead {
  max-width: 650px;

  margin: 30px 0 0;

  color: rgba(255, 255, 255, 0.68);

  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;

  gap: 28px;

  margin-top: 38px;
}

.button {
  min-height: 52px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 22px;

  font-size: 0.85rem;
  font-weight: 700;

  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.button:hover {
  transform: translateY(-2px);
}

.button-light {
  background: #ffffff;
  color: var(--deep);
}

.button-light:hover {
  background: #c9d5cc;
}

.text-link {
  display: inline-flex;
  align-items: center;

  gap: 10px;

  color: rgba(255, 255, 255, 0.78);

  font-size: 0.85rem;
}

.hero-panel {
  padding: 28px;

  border: 1px solid rgba(255, 255, 255, 0.14);

  background: rgba(255, 255, 255, 0.035);

  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero-panel > p {
  margin: 0 0 32px;

  color: rgba(255, 255, 255, 0.45);

  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel-list {
  display: grid;
}

.hero-panel-list span {
  padding: 16px 0;

  border-top: 1px solid rgba(255, 255, 255, 0.1);

  font-size: 0.95rem;
}

.hero-stats {
  position: relative;
  z-index: 2;

  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stats-grid > div {
  min-height: 110px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 0 24px;

  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid > div:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid small {
  margin-bottom: 7px;

  color: var(--accent);

  font-size: 0.65rem;
}

.stats-grid strong {
  font-size: 0.82rem;
}

/* =========================================================
   INTRO
   ========================================================= */

.intro,
.faq {
  background: var(--soft);
}

.split-grid,
.faq-grid,
.business-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;

  gap: 80px;
}

.intro h2,
.section-heading h2,
.faq h2 {
  margin: 0;

  font-size: clamp(2.8rem, 5vw, 5.2rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.large-copy {
  max-width: 700px;

  margin: 28px 0 0;

  color: var(--muted);

  font-size: 1.08rem;
  line-height: 1.75;
}

.intro-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  gap: 22px;

  margin-top: 48px;
}

.intro-points > div {
  padding-top: 20px;

  border-top: 1px solid #cfd6d0;
}

.intro-points span {
  display: inline-block;

  margin-bottom: 26px;

  color: var(--accent);

  font-size: 0.7rem;
  font-weight: 800;
}

.intro-points strong {
  display: block;

  margin-bottom: 8px;
}

.intro-points p {
  margin: 0;

  color: var(--muted);

  font-size: 0.9rem;
  line-height: 1.55;
}

/* =========================================================
   SECTION HEADING
   ========================================================= */

.section-heading {
  max-width: 780px;

  margin-bottom: 54px;
}

.section-heading .eyebrow {
  margin-bottom: 20px;
}

.section-heading > p:last-child {
  max-width: 600px;

  margin: 24px 0 0;

  color: var(--muted);

  line-height: 1.7;
}

/* =========================================================
   SERVICES
   ========================================================= */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 300px;

  padding: 30px;

  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);

  transition:
    background-color var(--transition),
    color var(--transition);
}

.service-card > span {
  display: block;

  margin-bottom: 62px;

  color: var(--accent);

  font-size: 0.7rem;
  font-weight: 800;
}

.service-card h3 {
  margin: 0;

  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.service-card p {
  margin: 18px 0 0;

  color: var(--muted);

  font-size: 0.9rem;
  line-height: 1.6;

  transition: color var(--transition);
}

.service-card:hover {
  background: var(--deep);
  color: #ffffff;
}

.service-card:hover p {
  color: rgba(255, 255, 255, 0.64);
}

/* =========================================================
   BUSINESS
   ========================================================= */

.business {
  background: var(--deep);
  color: #ffffff;
}

.business-grid {
  grid-template-columns: 1.05fr 0.95fr;

  gap: 90px;
}

.business-copy h2 {
  margin: 24px 0 0;

  font-size: clamp(3rem, 5.4vw, 5.6rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.business-copy > p:last-child {
  max-width: 650px;

  margin: 28px 0 0;

  color: rgba(255, 255, 255, 0.62);

  line-height: 1.7;
}

.business-list {
  border-top: 1px solid var(--line-dark);
}

.business-list > div {
  padding: 26px 0;

  border-bottom: 1px solid var(--line-dark);
}

.business-list small {
  display: block;

  margin-bottom: 20px;

  color: var(--accent);
}

.business-list strong {
  display: block;

  margin-bottom: 8px;
}

.business-list p {
  margin: 0;

  color: rgba(255, 255, 255, 0.58);

  font-size: 0.9rem;
  line-height: 1.55;
}

/* =========================================================
   PROCESS
   ========================================================= */

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 1px;

  background: var(--line);
}

.process-grid article {
  min-height: 310px;

  padding: 32px;

  background: #ffffff;
}

.process-grid span {
  color: var(--accent);

  font-size: 0.72rem;
  font-weight: 800;
}

.process-grid h3 {
  margin: 90px 0 12px;

  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.process-grid p {
  margin: 0;

  color: var(--muted);

  font-size: 0.9rem;
  line-height: 1.6;
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-grid {
  grid-template-columns: 0.8fr 1.2fr;

  gap: 90px;
}

.faq .eyebrow {
  margin-bottom: 20px;
}

.faq-list {
  border-top: 1px solid #ccd3cd;
}

.faq-item {
  border-bottom: 1px solid #ccd3cd;
}

.faq-question {
  width: 100%;
  min-height: 88px;

  display: grid;
  grid-template-columns: 1fr 28px;
  align-items: center;

  gap: 24px;

  padding: 0;

  border: 0;

  background: transparent;
  color: var(--ink);

  text-align: left;

  font-size: 1.05rem;
  font-weight: 600;
}

.faq-icon {
  width: 28px;
  height: 28px;

  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";

  position: absolute;
  top: 50%;
  left: 50%;

  width: 18px;
  height: 1px;

  background: var(--ink);

  transform: translate(-50%, -50%);

  transition: transform var(--transition);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;

  transition: grid-template-rows var(--transition);
}

.faq-answer > div {
  overflow: hidden;
}

.faq-answer p {
  margin: 0;

  padding: 0 40px 26px 0;

  color: var(--muted);

  line-height: 1.65;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

/* =========================================================
   CONTACT
   ========================================================= */

.contact {
  background: var(--deep-2);
  color: #ffffff;
}

.contact-grid {
  grid-template-columns: 1fr 1fr;

  gap: 90px;
}

.contact h2 {
  margin: 24px 0 0;

  font-size: clamp(3.1rem, 5.5vw, 5.8rem);
  font-weight: 500;
  line-height: 0.93;
  letter-spacing: -0.06em;
}

.contact-list {
  border-top: 1px solid var(--line-dark);
}

.contact-list > * {
  min-height: 92px;

  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;

  border-bottom: 1px solid var(--line-dark);
}

.contact-list small {
  grid-column: 1;

  margin-bottom: 5px;

  color: rgba(255, 255, 255, 0.42);

  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-list strong {
  grid-column: 1;

  font-size: 0.93rem;
  font-weight: 500;
}

.contact-list span {
  grid-column: 2;
  grid-row: 1 / 3;

  align-self: center;

  color: rgba(255, 255, 255, 0.38);
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
  padding: 34px 0;

  background: #08130f;
  color: #ffffff;

  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;

  gap: 34px;
}

.footer-links {
  display: flex;

  gap: 20px;

  color: rgba(255, 255, 255, 0.55);

  font-size: 0.72rem;
}

.footer-inner > p {
  margin: 0;

  color: rgba(255, 255, 255, 0.4);

  font-size: 0.72rem;
}

/* =========================================================
   REVEAL
   ========================================================= */

[data-reveal] {
  opacity: 0;

  transform: translateY(18px);

  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

[data-reveal].is-visible {
  opacity: 1;

  transform: none;
}

/* =========================================================
   TABLET / MOBILE
   Classic solid mobile header
   ========================================================= */

@media (max-width: 980px) {
  :root {
    --header-h: 74px;
  }

  /* -------------------------------------------------------
     MOBILE HEADER
     Always solid — no glass / backdrop filter
     ------------------------------------------------------- */

  .site-header,
  .site-header.is-scrolled,
  body.menu-open .site-header {
    height: var(--header-h);

    background: #ffffff;
    color: var(--ink);

    border-bottom: 1px solid rgba(16, 23, 20, 0.08);

    box-shadow: none;

    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .header-inner {
    position: relative;
    z-index: 1003;
  }

  .brand {
    position: relative;
    z-index: 1003;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;

    position: relative;
    z-index: 1003;

    color: var(--ink);
  }

  .menu-toggle span,
  .site-header.is-scrolled .menu-toggle span,
  body.menu-open .menu-toggle span {
    background: var(--ink);
  }

  /* -------------------------------------------------------
     MOBILE MENU
     Begins below the header and owns the remaining viewport
     ------------------------------------------------------- */

  .mobile-menu {
    position: fixed;

    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;

    z-index: 1002;

    display: block;

    width: 100%;

    overflow-y: auto;
    overscroll-behavior: contain;

    background: #ffffff;
    color: var(--ink);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-8px);

    transition:
      opacity var(--transition),
      visibility var(--transition),
      transform var(--transition);
  }

  body.menu-open .mobile-menu {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
  }

  .mobile-links {
    display: flex;
    flex-direction: column;

    padding-top: 24px;
    padding-bottom: 40px;
  }

  .mobile-links a {
    width: 100%;

    padding: 20px 0;

    border-bottom: 1px solid var(--line);

    color: var(--ink);

    font-size: clamp(1.55rem, 5vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.035em;
  }

  /* -------------------------------------------------------
     RESPONSIVE LAYOUT
     ------------------------------------------------------- */

  .hero {
    min-height: auto;
  }

  .hero-inner,
  .split-grid,
  .business-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;

    gap: 48px;
  }

  .hero-inner {
    padding-top: 150px;
  }

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

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

  .process-grid article:last-child {
    grid-column: span 2;
  }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 680px) {
  :root {
    --header-h: 72px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 82px 0;
  }

  .brand-copy small {
    display: none;
  }

  .hero-inner {
    padding-top: 140px;
    padding-bottom: 54px;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 15vw, 5rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .button {
    width: 100%;
  }

  .stats-grid,
  .service-grid,
  .process-grid,
  .intro-points {
    grid-template-columns: 1fr;
  }

  .process-grid article:last-child {
    grid-column: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
