/*
Theme Name: Monument
Theme URI: https://example.com/
Author: Monument
Description: 1:1 port of the Monument landing page (originally Next.js) as a custom WordPress theme. Single-page, conversion-first design for the monument & headstone industry.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: monument
*/

/* =========================================================================
   DESIGN TOKENS  (ported from globals.css :root)
   ========================================================================= */
:root {
  --color-bg: #0a0a0a;
  --color-fg: #ffffff;
  --color-fg-on-light: #0a0a0a;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-subtle: rgba(255, 255, 255, 0.55);
  --text-strong: rgba(255, 255, 255, 0.85);
  --surface-soft: rgba(255, 255, 255, 0.07);
  --surface-18: rgba(255, 255, 255, 0.18);
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);

  --radius-button: 0px;

  --container-max: 1440px;
  --container-pad-x: 75px;
  --section-pad-y: clamp(88px, 11vw, 168px);

  --font-fraunces: "Fraunces", Georgia, serif;
  --font-inter: "Inter", Arial, Helvetica, sans-serif;
}

@media (max-width: 1100px) { :root { --container-pad-x: 48px; } }
@media (max-width: 720px)  { :root { --container-pad-x: 24px; } }

/* =========================================================================
   RESET / BASE  (ported from globals.css)
   ========================================================================= */
html { height: 100%; scroll-behavior: smooth; }
html, body { max-width: 100vw; overflow-x: hidden; }
body {
  min-height: 100%;
  color: var(--color-fg);
  background: var(--color-bg);
  font-family: var(--font-inter);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after { box-sizing: border-box; padding: 0; margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* =========================================================================
   TYPOGRAPHY  (ported from Typography.module.css)
   ========================================================================= */
.t-eyebrow {
  font-family: var(--font-inter);
  font-size: 13px; font-weight: 500; line-height: 1.2;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-subtle);
}
.t-display {
  font-family: var(--font-fraunces);
  font-size: 70px; line-height: 1.14; font-weight: 600;
  letter-spacing: -0.01em; color: var(--color-fg);
}
.t-highlight {
  display: inline; font-style: italic; font-weight: 449;
  font-variation-settings: "opsz" 92, "wght" 449;
}
.t-section {
  font-family: var(--font-fraunces);
  font-size: clamp(36px, 4.4vw, 52px); line-height: 1.18;
  font-weight: 600; letter-spacing: -0.01em; color: var(--color-fg);
}
.t-card {
  font-family: var(--font-fraunces);
  font-size: 26px; line-height: 1.25; font-weight: 500; color: var(--color-fg);
}
.t-caption {
  font-family: var(--font-inter);
  font-size: 15px; line-height: 1.6; font-weight: 400; color: var(--text-subtle);
}
.t-body {
  font-family: var(--font-inter);
  font-size: 18px; line-height: 1.65; font-weight: 400; color: var(--text-muted);
}
.t-navlink {
  font-family: var(--font-inter);
  font-size: 18px; font-weight: 400; color: var(--text-strong);
  transition: color 0.15s ease;
}
.t-navlink:hover { color: var(--color-fg); }
.t-btnlabel { font-family: var(--font-inter); font-size: 18px; font-weight: 500; line-height: 1; }

/* =========================================================================
   BUTTONS  (ported from Button.module.css)
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: var(--radius-button); cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
  font-family: var(--font-inter); font-size: 18px; font-weight: 500; line-height: 1;
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.97); }
.btn--md { min-width: 215px; height: 60px; padding: 0 32px; }
.btn--sm { height: 50px; padding: 0 26px; }
.btn--primary { background: var(--color-fg); color: var(--color-fg-on-light); }
.btn--secondary { background: var(--surface-18); color: var(--color-fg); }
@media (max-width: 720px) { .btn { flex: 1; min-width: 0; } }

/* =========================================================================
   SECTION WRAPPER  (ported from Section.module.css)
   ========================================================================= */
.section { padding-block: var(--section-pad-y); }
.container { max-width: var(--container-max); margin: 0 auto; padding-inline: var(--container-pad-x); }

/* Light/dark theme token overrides per section subtree */
.theme-light {
  background: #ffffff;
  --color-fg: #0a0a0a;
  --text-strong: rgba(10, 10, 10, 0.85);
  --text-muted: rgba(10, 10, 10, 0.7);
  --text-subtle: rgba(10, 10, 10, 0.5);
  --surface-soft: #f1f1f1;
  --border-soft: rgba(10, 10, 10, 0.1);
  --border-hover: rgba(10, 10, 10, 0.22);
}
.theme-grey {
  background: #f1f1f1;
  --color-fg: #0a0a0a;
  --color-fg-on-light: #ffffff;
  --text-strong: rgba(10, 10, 10, 0.85);
  --text-muted: rgba(10, 10, 10, 0.7);
  --text-subtle: rgba(10, 10, 10, 0.5);
  --surface-soft: #e6e6e6;
  --border-soft: rgba(10, 10, 10, 0.1);
  --border-hover: rgba(10, 10, 10, 0.22);
}
.theme-black { background: #000000; }

/* =========================================================================
   EYEBROW  (ported from Eyebrow.module.css)
   ========================================================================= */
.eyebrow { display: flex; align-items: center; gap: 14px; }
.eyebrow__dot { display: inline-block; width: 28px; height: 2px; background: var(--color-fg); flex-shrink: 0; }

/* =========================================================================
   NAVBAR  (ported from Navbar.module.css)
   ========================================================================= */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; animation: navIn 0.7s cubic-bezier(0.16,1,0.3,1) both; }
.nav__bg {
  position: absolute; inset: 0; background-color: rgb(27,27,27);
  border-bottom: 1px solid var(--border-soft); opacity: 0; pointer-events: none;
  transition: opacity 0.5s ease-in-out;
}
.nav.is-scrolled .nav__bg, .nav.is-open .nav__bg { opacity: 1; }
.nav__inner {
  position: relative; z-index: 1; max-width: var(--container-max); margin: 0 auto;
  padding: 22px var(--container-pad-x); display: flex; align-items: center; gap: 56px;
}
.nav__brand { display: inline-flex; align-items: center; }
.nav__logo { width: auto; height: 25.5px; }
.nav__links { display: flex; align-items: center; gap: 42px; }
.nav__cta { margin-left: auto; min-width: 0; height: 38.5px; padding: 0 19.8px; font-size: 13.86px; }
.nav__hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; margin-left: auto; padding: 0; border: none;
  background: transparent; cursor: pointer; color: var(--text-strong);
}
.nav__bar { display: block; width: 24px; height: 2px; margin: 0 auto; border-radius: 2px; background: currentColor; transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), opacity 0.2s ease; }
.nav.is-open .nav__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__bar:nth-child(2) { opacity: 0; }
.nav.is-open .nav__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__mobile {
  position: relative; z-index: 1; display: none; flex-direction: column; gap: 4px;
  padding: 12px var(--container-pad-x) 28px; background-color: rgb(27,27,27);
  border-bottom: 1px solid var(--border-soft);
}
.nav.is-open .nav__mobile { display: flex; animation: mobileIn 0.28s cubic-bezier(0.16,1,0.3,1) both; }
.nav__mobile-link { padding: 14px 4px; font-size: 20px; border-bottom: 1px solid var(--border-soft); }
.nav__mobile-cta { margin-top: 18px; align-self: flex-start; }
@keyframes navIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes mobileIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@media (max-width: 1024px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
}

/* =========================================================================
   HERO  (ported from HeroSection.module.css)
   ========================================================================= */
.hero {
  position: relative; min-height: 100vh; width: 100%; overflow: hidden;
  display: flex; flex-direction: column; color: var(--color-fg);
  background-color: #050505; background-size: cover; background-position: center right;
  background-repeat: no-repeat;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.7) 45%, rgba(0,0,0,0.45) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 30%, rgba(0,0,0,0.75) 100%);
}
.hero__inner {
  position: relative; z-index: 1; flex: 1; width: 100%; max-width: var(--container-max);
  margin: 0 auto; padding: 0 var(--container-pad-x); display: flex; flex-direction: column;
}
.hero__content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 126px 0 90px; }
.hero__eyebrow, .hero__title, .hero__desc, .hero__bottom { animation: heroFadeUp 1.1s cubic-bezier(0.16,1,0.3,1) both; }
.hero__eyebrow { margin-bottom: 28px; animation-delay: 0.1s; }
.hero__title { margin: 0 0 34px; animation-delay: 0.22s; }
.hero__desc { max-width: 700px; margin: 0 0 56px; animation-delay: 0.34s; }
.hero__bottom { display: flex; align-items: center; justify-content: space-between; gap: 40px; animation-delay: 0.46s; }
.hero__stats { display: flex; align-items: stretch; gap: 0; }
.hero__actions { display: flex; align-items: center; gap: 16px; }
.hero__phone { gap: 10px; background: transparent; color: var(--color-fg); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.5); }
.hero__phone:hover { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.85); opacity: 1; }
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 1100px) { .hero__bottom { flex-direction: column; align-items: flex-start; gap: 48px; } }
@media (max-width: 720px) { .hero__stats { flex-direction: column; gap: 0; } .hero__actions { width: 100%; } }

/* Stat  (ported from StatCircle.module.css) */
.stat { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-right: 56px; }
.stat + .stat { padding-left: 56px; padding-right: 56px; border-left: 1px solid rgba(255,255,255,0.18); }
.stat:last-child { padding-right: 0; }
.stat__num { font-family: var(--font-fraunces); font-size: 52px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; color: var(--color-fg); }
.stat__label { font-family: var(--font-inter); font-size: 14px; line-height: 1.45; font-weight: 400; color: var(--text-muted); max-width: 160px; }
@media (max-width: 1100px) {
  .stat { padding-right: 40px; }
  .stat + .stat { padding-left: 40px; padding-right: 40px; }
  .stat:last-child { padding-right: 0; }
}
@media (max-width: 720px) {
  .stat { padding: 24px 0 !important; border-left: none !important; border-top: 1px solid rgba(255,255,255,0.18); padding-left: 0 !important; padding-right: 0 !important; }
  .stat:first-child { border-top: none; padding-top: 0 !important; }
  .stat__num { font-size: 40px; }
}

/* Trust strip  (ported from TrustStrip.module.css) */
.trust { position: relative; z-index: 1; width: 100%; border-top: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); padding-block: 22px; }
.trust__inner { max-width: var(--container-max); margin: 0 auto; padding-inline: var(--container-pad-x); display: flex; align-items: center; justify-content: center; gap: 28px; }
.trust__label { font-family: var(--font-inter); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.38); white-space: nowrap; flex-shrink: 0; }
.trust__divider { width: 1px; height: 28px; background: rgba(255,255,255,0.12); flex-shrink: 0; }
.trust__logos { display: flex; align-items: center; gap: 0; }
.trust__sep { width: 1px; height: 32px; background: rgba(255,255,255,0.1); flex-shrink: 0; margin-inline: 36px; }
.trust__item { display: flex; align-items: center; }
.trust__item img { height: 40px; width: auto; object-fit: contain; transition: opacity 0.2s ease; }
.trust__item:first-child img { height: 52px; }
.trust__item img:hover { opacity: 0.85; }
@media (max-width: 720px) { .trust__inner { gap: 20px; } .trust__sep { margin-inline: 24px; } }

/* Ticker  (ported from Ticker.module.css) */
.ticker { position: relative; z-index: 1; width: 100%; overflow: hidden; background: #f1f1f1; color: #0a0a0a; padding-block: 18px; }
.ticker__track { display: flex; width: max-content; animation: tickerScroll 32s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; align-items: center; flex-shrink: 0; }
.ticker__label { display: inline-block; padding-inline: 28px; font-family: var(--font-inter); font-size: 15px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.ticker__divider { width: 13px; height: 13px; flex-shrink: 0; color: #0a0a0a; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================================
   SERVICES  (ported from ServicesSection.module.css + ServiceCard.module.css)
   ========================================================================= */
.svc__header { display: flex; flex-direction: column; gap: 24px; max-width: 720px; margin-bottom: 72px; }
.svc__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.svc__item { height: 100%; }
.card {
  display: flex; flex-direction: column; gap: 16px; height: 100%; padding: 44px 40px;
  background: var(--surface-soft); border: 1px solid var(--border-soft);
  text-decoration: none; cursor: pointer; transition: border-color 0.2s ease;
}
.card:hover { border-color: var(--border-hover); }
.card__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; color: var(--color-fg); }
.card__icon svg { width: 28px; height: 28px; }
.card__title { margin: 4px 0 0; }
.card__desc { margin: 0; flex-grow: 1; }
.card__result { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--border-soft); font-size: 14px; color: var(--text-subtle); opacity: 0.75; }
.card__result-label { flex-shrink: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-fg); }
@media (max-width: 720px) { .svc__header { margin-bottom: 48px; } .svc__grid { grid-template-columns: 1fr; } }

/* =========================================================================
   AUDIENCE  (ported from AudienceSection.module.css)
   ========================================================================= */
.aud__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.aud__intro { display: flex; flex-direction: column; gap: 24px; max-width: 520px; }
.aud__cta { align-self: flex-start; margin-top: 8px; }
.aud__points { display: flex; flex-direction: column; }
.aud__point { display: flex; flex-direction: column; gap: 12px; padding: 36px 0; border-top: 1px solid var(--border-soft); }
.aud__point:first-child { padding-top: 0; border-top: none; }
.aud__point:last-child { padding-bottom: 0; }
@media (max-width: 900px) { .aud__layout { grid-template-columns: 1fr; gap: 48px; } }

/* =========================================================================
   ABOUT  (ported from AboutSection.module.css)
   ========================================================================= */
.abt__layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: center; }
.abt__photo { position: relative; aspect-ratio: 4 / 5; background: var(--surface-soft); border: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.abt__photo img { width: 100%; height: 100%; object-fit: cover; }
.abt__content { display: flex; flex-direction: column; gap: 24px; max-width: 580px; }
.abt__lead { display: block; margin-top: 8px; font-weight: 600; color: var(--color-fg); }
.abt__callout { padding: 30px 34px; background: rgba(255,255,255,0.045); border: 1px solid var(--border-soft); border-left: 3px solid var(--color-fg); }
.abt__callout-title { margin: 0 0 22px; }
.abt__list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.abt__item { display: flex; align-items: flex-start; gap: 14px; }
.abt__check { flex-shrink: 0; margin-top: 2px; color: var(--color-fg); }
.abt__item-text { font-family: var(--font-inter); font-size: 17px; line-height: 1.5; color: var(--text-strong); }
.abt__actions { margin-top: 16px; }
@media (max-width: 900px) { .abt__layout { grid-template-columns: 1fr; gap: 40px; } .abt__photo { max-width: 420px; } }

/* =========================================================================
   FAQ  (ported from FaqSection.module.css + FaqItem.module.css)
   ========================================================================= */
.faq__header { display: flex; flex-direction: column; gap: 24px; max-width: 620px; margin-bottom: 56px; }
.faq__list { border-top: 1px solid var(--border-soft); }
.faq__item { border-bottom: 1px solid var(--border-soft); }
.faq__trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 0; background: none; border: none; text-align: left; cursor: pointer; }
.faq__question { color: var(--color-fg); }
.faq__icon { position: relative; display: block; width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.35s cubic-bezier(0.4,0,0.2,1); }
.faq__item.is-open .faq__icon { transform: rotate(135deg); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--color-fg); transform: translate(-50%, -50%); }
.faq__icon::before { width: 18px; height: 2px; }
.faq__icon::after { width: 2px; height: 18px; }
.faq__answer-wrap { height: 0; overflow: hidden; transition: height 0.4s cubic-bezier(0.4,0,0.2,1); }
.faq__answer { max-width: 760px; margin: 0; padding-bottom: 32px; }
@media (max-width: 720px) { .faq__header { margin-bottom: 40px; } }

/* =========================================================================
   CTA  (ported from CtaSection.module.css)
   ========================================================================= */
.cta-section { padding-block: 0; }
.cta__panel {
  display: flex; justify-content: center; padding-block: clamp(80px, 11vw, 144px);
  border-block: 1px solid var(--border-soft); background-color: #050505;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.cta__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; width: 100%; max-width: var(--container-max); padding-inline: var(--container-pad-x); }
.cta__title { max-width: 760px; margin: 0; }
.cta__text { max-width: 560px; margin: 0; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 8px; }
.cta__boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; margin-top: 32px; }
.cta__box { display: flex; flex-direction: column; gap: 10px; padding: 32px 28px; text-align: left; background: rgba(255,255,255,0.06); border: 1px solid var(--border-soft); backdrop-filter: blur(4px); transition: border-color 0.2s ease; }
.cta__box:hover { border-color: var(--border-hover); }
@media (max-width: 900px) { .cta__boxes { grid-template-columns: 1fr; max-width: 480px; } }
@media (max-width: 720px) { .cta__actions { width: 100%; } }

/* =========================================================================
   FOOTER  (ported from Footer.module.css)
   ========================================================================= */
.footer { border-top: 1px solid var(--border-soft); padding-block: 72px 40px; }
.footer__container { max-width: var(--container-max); margin: 0 auto; padding-inline: var(--container-pad-x); }
.footer__top { display: flex; justify-content: space-between; gap: 64px; flex-wrap: wrap; padding-bottom: 56px; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 340px; }
.footer__logo { width: auto; height: 28px; align-self: flex-start; }
.footer__cols { display: flex; gap: 80px; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 16px; }
.footer__col-title { font-family: var(--font-inter); font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-subtle); }
.footer__link { font-family: var(--font-inter); font-size: 15px; color: var(--text-strong); transition: color 0.15s ease; }
.footer__link:hover { color: var(--color-fg); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 32px; border-top: 1px solid var(--border-soft); }
.footer__legal { display: flex; gap: 24px; }

/* =========================================================================
   SCROLL REVEAL  (ported from Reveal.tsx behavior)
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 1s cubic-bezier(0.16,1,0.3,1), transform 1s cubic-bezier(0.16,1,0.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow, .hero__title, .hero__desc, .hero__bottom,
  .nav, .nav__bar, .ticker__track, .reveal { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
