/* ===========================================================
   Tidemark — styles.css
   Coastal, premium, founder-led. Mobile-first.
   =========================================================== */

:root {
  /* Palette */
  --navy:        #122a45;   /* deep navy */
  --navy-deep:   #0d2138;   /* darker navy for sections */
  --ocean:       #3f6f9c;   /* muted ocean blue */
  --ocean-soft:  #6e93b4;
  --sand:        #d8c19a;   /* sand / beige accent */
  --sand-soft:   #e7d9bf;
  --offwhite:    #f7f4ee;   /* off-white background */
  --white:       #ffffff;
  --ink:         #1c2a38;   /* body text */
  --muted:       #5d6b78;   /* secondary text */
  --line:        #e4ded3;   /* hairline borders */

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1120px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(18, 42, 69, 0.06), 0 4px 16px rgba(18, 42, 69, 0.05);
  --shadow-md: 0 10px 40px rgba(18, 42, 69, 0.10);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--offwhite);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--ocean); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; color: var(--navy); line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--navy-deep);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: rgba(18, 42, 69, 0.22);
}
.btn-ghost:hover { background: rgba(18, 42, 69, 0.05); color: var(--navy); transform: translateY(-2px); }
.btn-sm { padding: 11px 20px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.82);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid rgba(228, 222, 211, 0.7);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-badge {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 3px rgba(18, 42, 69, 0.14);
}
.brand-badge img { width: 100%; height: 100%; object-fit: contain; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0.005em;
  color: var(--navy);
}
.brand-on-dark .brand-name { color: var(--white); }
.brand:hover .brand-name { color: var(--ocean); }
.brand-on-dark:hover .brand-name { color: var(--sand); }
.nav { display: none; gap: 30px; }
.nav a {
  color: var(--navy);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--sand);
  transition: width 0.3s var(--ease);
}
.nav a:hover::after { width: 100%; }
.nav-cta { display: none; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ocean);
  margin: 0 0 16px;
}
.eyebrow-dark { color: var(--ocean); }
.eyebrow-light { color: var(--sand); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(63, 111, 156, 0.10), transparent 60%),
    linear-gradient(180deg, #fbf9f4 0%, var(--offwhite) 100%);
  padding: 76px 0 120px;
  overflow: hidden;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 44px;
  align-items: center;
}
.hero-inner { max-width: 640px; }
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 500;
  margin: 0 0 22px;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  color: var(--muted);
  margin: 0 0 34px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}
.hero-note {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Hero proof card */
.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px 24px 12px;
  max-width: 420px;
  width: 100%;
  justify-self: start;
}
.hero-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ocean);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.hero-card-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #3fa776;
  box-shadow: 0 0 0 4px rgba(63, 167, 118, 0.15);
}
.hero-card-list { list-style: none; margin: 0; padding: 0; }
.hero-card-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  color: var(--navy);
  font-size: 1rem;
}
.hero-card-list li:last-child { border-bottom: 0; }
.hc-check {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(63, 167, 118, 0.12);
  color: #2f8c61;
  font-size: 0.8rem;
  font-weight: 700;
}
.hc-meta {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  line-height: 0;
  z-index: 1;
}
.hero-wave svg { width: 100%; height: 90px; }
.hero-wave path { fill: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--white); }
.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 0 0 16px; }
.section-lead { color: var(--muted); font-size: 1.08rem; }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.section-alt .card { background: var(--offwhite); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--sand); }
.problem-card h3 { font-size: 1.2rem; margin: 0 0 8px; }
.problem-card p { color: var(--muted); font-size: 0.98rem; }
.problem-card { position: relative; padding-top: 30px; }
.problem-card::before {
  content: "";
  position: absolute;
  top: 0; left: 24px;
  width: 38px; height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--sand);
}

/* ---------- Services ---------- */
.service {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}
.service h3 { font-size: 1.18rem; margin: 0 0 6px; }
.service p { color: var(--muted); font-size: 0.98rem; }
.service-mark {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 5px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, var(--ocean), var(--navy));
  transform: rotate(-45deg);
  position: relative;
}
.service-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--sand);
  border-radius: 50%;
}

/* ---------- Audience ---------- */
.audience-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.audience-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sand);
  border-radius: 10px;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

/* ---------- Process ---------- */
.process {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  counter-reset: none;
}
.process-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-sm);
}
.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--sand);
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 14px;
}
.process-step h3 { font-size: 1.25rem; margin: 0 0 8px; }
.process-step p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Offer ---------- */
.offer-card {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}
.offer-card::before {
  content: "";
  position: absolute;
  top: -80px; right: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(216, 193, 154, 0.18), transparent 70%);
  pointer-events: none;
}
.offer-head { padding: 44px 34px 0; max-width: 620px; }
.offer-head h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.1rem); }
.offer-body { padding: 26px 34px 44px; }
.offer-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.price { font-family: var(--font-display); font-size: 3.2rem; font-weight: 600; color: var(--white); line-height: 1; }
.price-period { font-size: 1.1rem; color: var(--sand-soft); }
.price-term { width: 100%; font-size: 0.95rem; color: var(--ocean-soft); letter-spacing: 0.02em; }
.offer-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.offer-list li {
  position: relative;
  padding-left: 30px;
  color: #e7eef4;
  font-size: 1.02rem;
}
.offer-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 12px;
  border-radius: 50% 50% 50% 0;
  background: var(--sand);
  transform: rotate(-45deg);
}
.offer-fine { margin-top: 14px; text-align: center; font-size: 0.9rem; color: var(--ocean-soft); }

/* ---------- About ---------- */
.about-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
.about-photo {
  flex: none;
  margin: 0;
  width: 188px; height: 188px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--offwhite);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-copy { max-width: 660px; }
.about-copy h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 0 0 18px; }
.about-copy p { color: var(--muted); font-size: 1.08rem; }
.about-copy strong { color: var(--navy); }
.about-local {
  margin-top: 16px;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- FAQ ---------- */
.faq { max-width: 780px; display: grid; gap: 14px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.section-alt .faq-item { background: var(--offwhite); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 56px 22px 24px;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--navy);
  position: relative;
  transition: color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 24px; top: 50%;
  width: 12px; height: 12px;
  border-right: 2px solid var(--ocean);
  border-bottom: 2px solid var(--ocean);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-35%) rotate(-135deg); }
.faq-item[open] summary { color: var(--ocean); }
.faq-body { padding: 0 24px 24px; }
.faq-body p { color: var(--muted); }

/* ---------- CTA ---------- */
.cta-section {
  background:
    radial-gradient(900px 400px at 80% 0%, rgba(63, 111, 156, 0.18), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
}
.cta-inner { max-width: 720px; text-align: center; margin: 0 auto; }
.cta-section h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 0 0 16px; }
.cta-lead { color: #c7d4df; font-size: 1.1rem; margin: 0 auto 32px; max-width: 580px; }

/* What the free audit includes */
.audit-includes {
  margin: 0 auto 36px;
  max-width: 720px;
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.audit-includes-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand);
  margin: 0 0 14px;
}
.audit-includes ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.audit-includes li {
  position: relative;
  padding-left: 28px;
  color: #e2e9ef;
  font-size: 1rem;
}
.audit-includes li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 11px; height: 11px;
  border-radius: 50% 50% 50% 0;
  background: var(--sand);
  transform: rotate(-45deg);
}

/* ---------- Form ---------- */
.audit-form { text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field span { font-size: 0.9rem; font-weight: 600; color: #d7e0e8; letter-spacing: 0.01em; }
.field em { color: var(--ocean-soft); font-style: normal; font-weight: 400; }
.field input,
.field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 13px 15px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(199, 212, 223, 0.5); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sand);
  background: rgba(255, 255, 255, 0.10);
}
.audit-form .btn-primary { background: var(--sand); color: var(--navy); margin-top: 6px; }
.audit-form .btn-primary:hover { background: var(--sand-soft); color: var(--navy-deep); }
/* Honeypot — visually hidden from users, still in the DOM for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
.form-privacy {
  margin-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #aebccb;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.form-status { margin-top: 14px; font-size: 0.95rem; text-align: center; min-height: 1.2em; }
.form-status.success { color: var(--sand-soft); }
.form-status.error { color: #f3c0c0; }
.cta-fine { margin-top: 16px; text-align: center; font-size: 0.9rem; color: var(--ocean-soft); }
.cta-fine a { color: var(--sand-soft); }
.cta-fine a:hover { color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #aebccb; padding: 56px 0 28px; }
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 0.95rem; max-width: 320px; color: #91a2b3; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { color: #aebccb; font-size: 0.95rem; font-weight: 500; }
.footer-nav a:hover { color: var(--sand); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 22px;
  font-size: 0.85rem;
  color: #7d8ea0;
}
.footer-legal {
  padding-top: 14px;
  font-size: 0.78rem;
  color: #6a7a8b;
}
.footer-legal p { max-width: 640px; }

/* ===========================================================
   Responsive — tablet & up
   =========================================================== */
@media (min-width: 680px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .services-grid { gap: 0 40px; }
  .audience-list { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .offer-head, .offer-body { padding-left: 48px; padding-right: 48px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .audit-includes ul { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .nav-cta { display: inline-flex; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .process { grid-template-columns: repeat(4, 1fr); }
  .audience-list { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 100px 0; }
  .hero { padding: 92px 0 130px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
  .hero-card { justify-self: end; }
  .about-inner { flex-direction: row; align-items: center; gap: 44px; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .reveal.is-visible { opacity: 1; transform: none; }
}
