/* ────────────────────────────────────
   Michelle Curtis — Notary Public
   Design System: Navy (#1a2a4a) + Gold (#b8860b)
   Mobile-first, accessible, performant
   ──────────────────────────────────── */

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a2a4a;
  --navy-light: #2a4a7f;
  --navy-dark: #0f1e33;
  --gold: #b8860b;
  --gold-light: #d4a830;
  --gold-dark: #8b6508;
  --white: #ffffff;
  --off-white: #f8f6f3;
  --light-gray: #e8edf5;
  --mid-gray: #6b7280;
  --dark-gray: #374151;
  --text: #1f2937;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.10);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
.text-link { color: var(--navy-light); text-decoration: underline; text-underline-offset: 2px; }
.text-link:hover { color: var(--gold); }
.text-accent { color: var(--gold-light); }

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

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  justify-content: center;
  white-space: nowrap;
}
.btn-lg { padding: 0.9rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* ─── Sections ─── */
.section { padding: 4rem 0; }
.section-alt { background: var(--white); }
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.section-desc {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(26,42,74,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.nav-logo:hover { color: var(--gold-light); }
.nav-links { list-style: none; display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  display: block;
  padding: 0.4rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.08); }

.nav-cta {
  display: inline-block;
  padding: 0.4rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  background: var(--gold);
  border-radius: 9999px;
  margin-left: 0.5rem;
  transition: all var(--transition);
}
.nav-cta:hover { background: var(--gold-dark); color: var(--white); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 60px;
}
.hero-bg {
  position: absolute;
  inset: -80px -40px -80px -40px;
  background: url('three-graces.jpg') center 35% / cover no-repeat;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,30,55,0.70) 0%, rgba(26,42,74,0.50) 50%, rgba(15,30,55,0.60) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  width: 100%;
}
.hero-content { flex: 1; min-width: 0; }
.hero-image { flex-shrink: 0; }

.hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(184,134,11,0.4);
  border-radius: 9999px;
  padding: 0.3rem 1rem;
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.hero-photo {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 5px solid rgba(255,255,255,0.35);
  object-fit: cover;
}

/* ─── Trust Bar ─── */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust-item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--border);
}
.trust-item:last-child { border-right: none; }
.trust-stat {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.15rem;
}
.trust-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ─── Services ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--gold);
}
.service-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  background: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon svg { width: 24px; height: 24px; color: var(--navy-light); }
.service-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

.services-cta {
  text-align: center;
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--light-gray);
  border-radius: var(--radius);
}
.services-cta p {
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

/* ─── About Section ─── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}
.about-content p {
  font-size: 1.05rem;
  color: var(--dark-gray);
  margin-bottom: 1rem;
  line-height: 1.7;
}
.about-diffs { margin: 1.5rem 0; }
.diff-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--dark-gray);
}
.diff-item svg { flex-shrink: 0; margin-top: 2px; }

.about-cta-p {
  font-weight: 500;
  color: var(--navy) !important;
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
}

.quickfact-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}
.quickfact-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.quickfact-card p {
  font-size: 0.95rem;
  color: var(--dark-gray);
  line-height: 1.5;
}
.quickfact-link { color: var(--navy-light); }
.quickfact-link:hover { color: var(--gold); }

/* ─── How It Works ─── */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.step {
  text-align: center;
  flex: 1;
  max-width: 260px;
}
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--light-gray);
  color: var(--navy-light);
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border: 2px solid var(--gold);
}
.step h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.step p { font-size: 0.9rem; color: var(--text-light); line-height: 1.5; }
.step-arrow { flex-shrink: 0; display: flex; align-items: center; }
.steps-note { text-align: center; color: var(--text-light); font-size: 0.95rem; }

/* ─── FAQ ─── */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--white);
  transition: box-shadow var(--transition);
}
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.25rem;
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 700;
  transition: transform var(--transition);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { background: var(--off-white); }
.faq-item p {
  padding: 0 1.25rem 1rem;
  font-size: 0.95rem;
  color: var(--dark-gray);
  line-height: 1.6;
}

/* ─── CTA Section ─── */
.cta-section {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
}
.cta-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.cta-note { margin-top: 1rem; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* ─── Footer ─── */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  padding: 2rem 0;
  font-size: 0.85rem;
  text-align: center;
}
.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.footer-info { color: rgba(255,255,255,0.8); }
.footer-links { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.6); }
.footer-links a:hover { color: var(--gold-light); }
.footer-dot { color: rgba(255,255,255,0.3); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ─── Modal ─── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}
.modal-overlay.active { display: flex; }

.modal {
  background: var(--white);
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  animation: modalSlideUp 0.25s ease;
}
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--mid-gray);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--off-white); color: var(--text); }
.modal h2 { font-size: 1.4rem; color: var(--navy); margin-bottom: 0.5rem; }
.modal p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 1.5rem; }

/* ─── Form ─── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: #fafafa;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(42,74,127,0.12);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-status {
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  display: none;
}
.form-status.success {
  display: block;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.form-status.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ─── Animations ─── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ────────────────────────────────────
   RESPONSIVE (Mobile-first breakpoints)
   ──────────────────────────────────── */

/* Tablet & smaller laptops: max 1024px */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 2.1rem; }
  .hero-photo { width: 200px; height: 200px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-layout { grid-template-columns: 1fr; }
  .about-quickfacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile: max 768px */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(15,30,51,0.98);
    flex-direction: column;
    padding: 0.5rem 1.5rem 1.5rem;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-link { padding: 0.7rem 0.85rem; font-size: 1rem; }
  .nav-cta { margin-left: 0; margin-top: 0.5rem; text-align: center; }
  body.nav-open { overflow: hidden; }

  .hero { min-height: auto; padding: 100px 0 3rem; }
  .hero-inner { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-sub { font-size: 1rem; max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-image { order: -1; }
  .hero-photo { width: 150px; height: 150px; }

  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(1),
  .trust-item:nth-child(2) { border-bottom: 1px solid var(--border); }

  .services-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .section { padding: 3rem 0; }
  .section-title { font-size: 1.5rem; }

  .about-layout { grid-template-columns: 1fr; }
  .about-quickfacts { grid-template-columns: 1fr; }

  .steps { flex-direction: column; gap: 0.75rem; }
  .step { max-width: 320px; }
  .step-arrow { transform: rotate(90deg); }

  .cta-section { padding: 3rem 0; }
  .cta-section h2 { font-size: 1.5rem; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 360px; }

  .footer-content { flex-direction: column; gap: 0.5rem; }
}

/* Small mobile: max 480px */
@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.5rem; }
  .hero-actions .btn { width: 100%; max-width: 320px; }
  .hero-badge { font-size: 0.75rem; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .modal { padding: 1.5rem; }
}
