/* =========================================================
   SIGND Notary Services — Design System
   Colors: Charcoal / Sage Green / Warm Cream ("Calm Professional")
   Fonts: Playfair Display (headings) + Inter (body)
   ========================================================= */

:root {
  --navy-900: #20241f;
  --navy-800: #2b3126;
  --navy-700: #3c4433;
  --navy-600: #4f5a41;
  --gold-500: #7c9463;
  --gold-400: #93a97e;
  --gold-100: #e6ead9;
  --gold-700: #567047; /* darker, WCAG AA-safe sage for small text on light backgrounds */
  --ivory-50: #faf8f3;
  --ivory-100: #f1ede2;
  --ink-900: #211f1a;
  --ink-600: #54524a;
  --ink-400: #87847a;
  --white: #ffffff;
  --success: #3f7a4f;
  --shadow-sm: 0 2px 8px rgba(32, 36, 31, 0.08);
  --shadow-md: 0 8px 24px rgba(32, 36, 31, 0.12);
  --shadow-lg: 0 20px 50px rgba(32, 36, 31, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --container: 1160px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--ivory-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; color: var(--ink-600); }
a { color: var(--navy-700); text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  /* gold-700 is a darker, WCAG AA-safe sage for text on light backgrounds
     (default case: eyebrows inside light section-heads). Dark-background
     contexts (hero, navy sections, CTA bands) override to gold-400 below,
     since gold-700 doesn't have enough contrast against navy. */
  color: var(--gold-700);
  font-weight: 700;
  margin-bottom: 0.75em;
}
.hero .eyebrow, .page-hero .eyebrow, .section--navy .eyebrow, .cta-band .eyebrow {
  color: var(--gold-400);
}

.section {
  padding: 88px 0;
}
.section--tight { padding: 56px 0; }
.section--navy {
  background: var(--navy-900);
  color: var(--ivory-100);
}
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: rgba(255,255,255,0.78); }
.section--ivory { background: var(--ivory-100); }

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head p { font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--gold-400); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-navy {
  background: var(--navy-800);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-700); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(11,33,56,0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy-900);
}
.brand .mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-400);
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-400);
  font-weight: 600;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink-900);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}
.nav-links a.active, .nav-links a:hover { color: var(--navy-900); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 2px;
  background: var(--gold-500);
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone {
  font-weight: 700;
  color: var(--navy-900);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--navy-900);
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--ivory-50);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-links li { width: 100%; border-bottom: 1px solid rgba(11,33,56,0.06); }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-toggle { display: block; }
  .nav-cta .nav-phone-label { display: none; }
}

/* Hero */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(201,162,75,0.20), transparent 60%),
              linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 100px 0 90px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero .lede {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  max-width: 520px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 32px;
}
.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.9);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  color: var(--ink-900);
}
.hero-card h3 { margin-bottom: 4px; }
.hero-card .price-tag {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--navy-900);
  font-weight: 700;
}
.hero-card ul { list-style: none; padding: 0; margin: 20px 0; }
.hero-card ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--ink-600);
}
.check {
  color: var(--success);
  font-weight: 800;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 44px 0 56px; }
}

/* Trust strip */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid rgba(11,33,56,0.06);
  padding: 22px 0;
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-600);
  letter-spacing: 0.01em;
}
.trust-item .dot { color: var(--gold-700); }

/* Cards / grid */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(11,33,56,0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--gold-100);
  color: var(--navy-800);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card a.link-arrow {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-800);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

/* Pricing table */
.price-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(11,33,56,0.06);
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border: 2px solid var(--gold-500);
  box-shadow: var(--shadow-md);
  position: relative;
}
.price-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold-500);
  color: var(--navy-900);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
}
.price-card .amount {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  color: var(--navy-900);
  margin: 12px 0;
}
.price-card .amount span { font-size: 1rem; color: var(--ink-400); font-family: var(--font-body); }
.price-card ul { list-style: none; padding: 0; margin: 20px 0; flex-grow: 1; }
.price-card ul li {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 12px; font-size: 0.92rem; color: var(--ink-600);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding-top: 8px;
}
.step .num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 16px;
}

/* Testimonials */
.testimonial {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(11,33,56,0.05);
}
.stars { color: var(--gold-700); letter-spacing: 2px; margin-bottom: 12px; }
.testimonial .who {
  font-weight: 700;
  color: var(--navy-900);
  margin-top: 14px;
  font-size: 0.92rem;
}
.testimonial .who span {
  display: block;
  font-weight: 400;
  color: var(--ink-400);
  font-size: 0.85rem;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* FAQ accordion */
.accordion-item {
  border-bottom: 1px solid rgba(11,33,56,0.1);
}
.accordion-item button.q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 0;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.accordion-item .a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.accordion-item.open .a { max-height: 400px; padding-bottom: 22px; }
.accordion-item .plus { font-size: 1.4rem; color: var(--gold-700); transition: transform 0.2s ease; }
.accordion-item.open .plus { transform: rotate(45deg); }

/* Forms */
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--navy-900);
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(11,33,56,0.15);
  font-family: inherit;
  font-size: 0.96rem;
  background: var(--white);
  color: var(--ink-900);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-note { font-size: 0.82rem; color: var(--ink-400); margin-top: 10px; }

/* Footer */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255,255,255,0.68); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold-400); }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.92rem; max-width: 300px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }

/* Sticky mobile CTA */
.mobile-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: none;
  z-index: 200;
  background: var(--navy-900);
  padding: 12px 16px;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.2);
  gap: 10px;
}
.mobile-cta a { flex: 1; text-align: center; }
@media (max-width: 720px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 74px; }
}

/* Breadcrumb / page hero (interior pages) */
.page-hero {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 64px 0 56px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 620px; margin: 0 auto; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 0.85rem; color: var(--ink-400); }
.divider { height: 1px; background: rgba(11,33,56,0.08); margin: 48px 0; }
.tag {
  display: inline-block;
  background: var(--gold-100);
  color: var(--navy-800);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
table.compare th, table.compare td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(11,33,56,0.06);
  font-size: 0.92rem;
}
table.compare th {
  background: var(--navy-900);
  color: var(--white);
  font-family: var(--font-heading);
}

/* =========================================================
   STANDOUT LAYER — signature motifs, motion, refined responsive
   ========================================================= */

/* Icon system: SVG icons replace emoji for crisp, consistent rendering
   at every size/OS instead of relying on system emoji fonts. */
.icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card .icon { transition: background 0.2s ease, transform 0.2s ease; }
.card:hover .icon {
  background: var(--navy-900);
  color: var(--gold-400);
  transform: rotate(-6deg) scale(1.06);
}

/* Angled section edges — replaces flat rectangle breaks with a subtle
   cut, pure CSS (clip-path), no markup changes required. */
.hero, .page-hero {
  clip-path: polygon(0 0, 100% 0, 100% 97%, 0 100%);
  padding-bottom: 64px;
}
.hero + *, .page-hero + * {
  position: relative;
  z-index: 2;
  margin-top: -24px;
}
@media (max-width: 720px) {
  .hero, .page-hero { clip-path: none; }
  .hero + *, .page-hero + * { margin-top: 0; }
}

/* Notary seal motif — a rotating circular emblem that ties the whole
   site back to the idea of an official stamped seal. Decorative only. */
.seal {
  position: relative;
  width: 168px;
  height: 168px;
  flex-shrink: 0;
}
.seal svg { width: 100%; height: 100%; animation: seal-spin 34s linear infinite; }
.seal .seal-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--gold-400);
}
@keyframes seal-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.seal-inline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

/* Button shine sweep on hover */
.btn { position: relative; overflow: hidden; }
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.btn-primary:hover::after { left: 130%; }
.btn:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

/* Sticky header — compresses and gains elevation once scrolled */
.site-header { transition: box-shadow 0.25s ease, padding 0.25s ease; }
.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}
.site-header.is-scrolled .nav { padding: 10px 0; }
.brand .mark { transition: transform 0.25s ease; }
.site-header.is-scrolled .brand .mark { transform: scale(0.9); }

/* Scroll-reveal (progressive enhancement — only active once JS adds
   the .js class to <html>; without JS everything stays visible) */
.js .card,
.js .step,
.js .price-card,
.js .testimonial,
.js .section-head {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .card.in-view,
.js .step.in-view,
.js .price-card.in-view,
.js .testimonial.in-view,
.js .section-head.in-view {
  opacity: 1;
  transform: translateY(0);
}
.js .grid .card:nth-child(2), .js .grid .step:nth-child(2), .js .grid .price-card:nth-child(2), .js .grid .testimonial:nth-child(2) { transition-delay: 0.08s; }
.js .grid .card:nth-child(3), .js .grid .step:nth-child(3), .js .grid .price-card:nth-child(3), .js .grid .testimonial:nth-child(3) { transition-delay: 0.16s; }
.js .grid .card:nth-child(4), .js .grid .step:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .js .card, .js .step, .js .price-card, .js .testimonial, .js .section-head { opacity: 1; transform: none; transition: none; }
  .seal svg { animation: none; }
}

/* Testimonials get an oversized quote glyph for more editorial feel */
.testimonial { position: relative; padding-top: 40px; }
.testimonial::before {
  content: '\201C';
  position: absolute;
  top: -6px; left: 20px;
  font-family: var(--font-heading);
  font-size: 4.5rem;
  color: var(--gold-100);
  line-height: 1;
  z-index: 0;
}
.testimonial p, .testimonial .stars, .testimonial .who { position: relative; z-index: 1; }

/* Refined multi-tier responsive scale (large tablet / small laptop) */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { gap: 32px; }
}
@media (max-width: 1024px) {
  .nav-links { gap: 22px; }
  .section { padding: 72px 0; }
}
@media (max-width: 480px) {
  .hero-card, .form-card { padding: 26px 20px; }
  .cta-band { padding: 40px 24px; }
  .seal { width: 120px; height: 120px; }
  .seal .seal-center { font-size: 1.5rem; }
}
