/* ============================================================
   APEXsbg — Notary services demo site
   Palette: Burgundy + Gold (primary)
   Swap to Teal + Gold: change --brand & --brand-dark below.
   ============================================================ */

:root {
  /* --- BURGUNDY + GOLD (active) --- */
  --brand:        #6b1a2c;
  --brand-dark:   #4a1220;
  --brand-deep:   #2e0a13;

  /* --- TEAL + GOLD (alternate — uncomment to swap) --- */
  /* --brand:      #0d5b5b;
     --brand-dark: #084141;
     --brand-deep: #052929; */

  --gold:         #c9a961;
  --gold-light:   #e0c98a;
  --gold-dark:    #a68643;

  --cream:        #faf6ef;
  --cream-2:      #f2ebde;
  --white:        #ffffff;
  --ink:          #1a1a1a;
  --ink-2:        #333333;
  --muted:        #5c5c5c;
  --line:         #e5ded0;

  --shadow-sm:    0 2px 8px rgba(30, 10, 20, 0.06);
  --shadow-md:    0 8px 24px rgba(30, 10, 20, 0.10);
  --shadow-lg:    0 20px 48px rgba(30, 10, 20, 0.14);

  --radius:       6px;
  --radius-lg:    12px;

  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--brand); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-dark); }

ul { list-style: none; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow-dark { color: var(--brand); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--brand-deep);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); margin-bottom: 8px; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 12px;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-2);
  line-height: 1.65;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--brand-deep);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--brand-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(250, 246, 239, 0.4);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-sm { padding: 10px 20px; font-size: 12px; }
.btn-lg { padding: 18px 36px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brand);
}
.brand-mark { color: var(--gold); display: flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--brand);
}
.brand-name em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-dark);
  letter-spacing: 0;
}
.brand-tag {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.site-nav a:not(.btn) {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.3px;
}
.site-nav a:not(.btn):hover { color: var(--brand); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--brand);
  transition: all 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 100px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(201, 169, 97, 0.10), transparent 50%),
    linear-gradient(180deg, var(--brand-deep) 0%, var(--brand) 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 169, 97, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 97, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}

.hero-copy .eyebrow { color: var(--gold); }
.hero-copy h1 { color: var(--white); margin: 12px 0 24px; }
.hero-copy .lead { color: rgba(250, 246, 239, 0.85); max-width: 540px; }

.hero-cta {
  display: flex;
  gap: 14px;
  margin: 36px 0 32px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(201, 169, 97, 0.2);
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(250, 246, 239, 0.75);
  letter-spacing: 0.5px;
}
.hero-trust svg { color: var(--gold); }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.seal {
  width: 100%;
  max-width: 360px;
  color: var(--gold);
  filter: drop-shadow(0 8px 30px rgba(201, 169, 97, 0.25));
  animation: gentle-float 6s ease-in-out infinite;
}
@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ---------- Services ---------- */
.services { background: var(--cream); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.service-card h3 { margin-bottom: 12px; color: var(--brand-dark); }
.service-card > p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.service-list {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.service-list li {
  font-size: 0.88rem;
  color: var(--ink-2);
  padding: 4px 0 4px 18px;
  position: relative;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* ---------- About ---------- */
.about { background: var(--white); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 72px;
  align-items: center;
}

.about-photo { position: relative; }
.photo-frame {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
  outline: 1px solid var(--gold);
  outline-offset: 6px;
}
.photo-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--brand);
  color: var(--cream);
  padding: 16px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.photo-badge span {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}
.photo-badge strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
}

.about-copy h2 { margin: 12px 0 20px; }
.about-copy p { color: var(--ink-2); margin-bottom: 16px; }

.credentials {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: grid;
  gap: 12px;
}
.credentials li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.credentials svg { color: var(--gold); flex-shrink: 0; }

/* ---------- Why ---------- */
.why {
  background: linear-gradient(180deg, var(--brand-deep), var(--brand-dark));
  color: var(--cream);
}
.why h2 { color: var(--white); }
.why .eyebrow { color: var(--gold); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 20px;
}
.why-item {
  text-align: center;
  padding: 24px;
}
.why-item svg { color: var(--gold); margin: 0 auto 18px; }
.why-item h4 { color: var(--white); margin-bottom: 10px; }
.why-item p { color: rgba(250, 246, 239, 0.75); font-size: 0.92rem; }

/* ---------- Service Area ---------- */
.area { background: var(--cream); }
.area-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.area-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--ink-2);
  transition: all 0.2s;
}
.area-list li:hover {
  border-left-color: var(--brand);
  transform: translateX(4px);
}

/* ---------- Testimonials ---------- */
.testimonials { background: var(--white); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--line);
  position: relative;
}
.stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 3px;
  margin-bottom: 14px;
}
.testimonial p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.testimonial footer {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
}
.testimonial footer strong { color: var(--brand); font-size: 0.95rem; }
.testimonial footer span {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ---------- FAQ ---------- */
.faq { background: var(--cream); }
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: box-shadow 0.2s;
}
.faq details[open] {
  box-shadow: var(--shadow-sm);
  border-color: var(--gold);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--brand);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ---------- Contact ---------- */
.contact {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: var(--cream);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact h2 { color: var(--white); margin: 12px 0 16px; }
.contact .lead { color: rgba(250, 246, 239, 0.85); margin-bottom: 32px; }

.contact-list {
  display: grid;
  gap: 20px;
  margin-bottom: 36px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-list svg {
  color: var(--gold);
  flex-shrink: 0;
  padding: 10px;
  background: rgba(201, 169, 97, 0.12);
  border-radius: 50%;
  width: 44px;
  height: 44px;
}
.contact-list span { display: flex; flex-direction: column; }
.contact-list strong { color: var(--white); font-size: 1.05rem; }
.contact-list em {
  font-style: normal;
  font-size: 0.82rem;
  color: rgba(250, 246, 239, 0.6);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

.contact-form {
  background: var(--white);
  color: var(--ink);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.contact-form h3 {
  color: var(--brand-dark);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
}
.contact-form label {
  display: block;
  margin-bottom: 16px;
}
.contact-form label span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.form-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-deep);
  color: rgba(250, 246, 239, 0.7);
  padding-top: 72px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand .brand-name { color: var(--white); font-size: 1.6rem; }
.footer-brand .brand-name em { color: var(--gold); }
.footer-brand p { font-size: 0.9rem; margin-top: 12px; line-height: 1.6; }

.footer-links h5 {
  color: var(--gold);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-links a {
  display: block;
  color: rgba(250, 246, 239, 0.7);
  font-size: 0.92rem;
  padding: 5px 0;
}
.footer-links a:hover { color: var(--gold); }

.footer-legal {
  border-top: 1px solid rgba(201, 169, 97, 0.15);
  padding: 24px 0;
  font-size: 0.82rem;
}
.footer-legal .container {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-legal .disclaimer { color: rgba(250, 246, 239, 0.45); max-width: 620px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  section { padding: 72px 0; }

  .hero { padding: 80px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; max-width: 260px; margin: 0 auto; }

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

  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-photo { max-width: 380px; margin: 0 auto; }

  .contact-inner { grid-template-columns: 1fr; gap: 48px; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }

  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 14px; }

  .brand-tag { display: none; }

  .service-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }

  .hero-cta .btn { flex: 1; }

  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-legal .container { flex-direction: column; text-align: center; }
}
