﻿/* ===== Erica Evans Notary Public ===== */
:root {
  --gold: #B9964B;
  --gold-dark: #9C7B35;
  --gold-light: #D9BE85;
  --espresso: #332622;
  --ivory: #F8F4EA;
  --ivory-deep: #F1E9D8;
  --charcoal: #343434;
  --white: #FFFDF8;
  --line: #E4D8BE;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --script: "Great Vibes", "Brush Script MT", cursive;
  --sans: "Montserrat", "Segoe UI", Arial, sans-serif;

  --radius: 6px;
  --shadow: 0 6px 24px rgba(51, 38, 34, .08);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--ivory);
}
img { max-width: 100%; display: block; }
a { color: var(--gold-dark); }
h1, h2, h3 { font-family: var(--serif); color: var(--espresso); line-height: 1.15; margin: 0 0 .5em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
.container.narrow { max-width: 820px; }
.section { padding-block: 80px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--sans); font-weight: 500; font-size: 1rem;
  color: #fff; background: var(--gold);
  border: 0; border-radius: var(--radius);
  padding: .8em 1.6em; text-decoration: none; cursor: pointer;
  box-shadow: 0 3px 10px rgba(156, 123, 53, .3);
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn-sm { font-size: .85rem; padding: .6em 1.1em; }
.btn-lg { font-size: 1.1rem; padding: .9em 2.2em; }
.btn .arrow { width: 1.1em; height: 1.1em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 248, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; color: var(--espresso); letter-spacing: .02em; line-height: 1; }
.brand-sub {
  display: flex; align-items: center; gap: .5em;
  font-size: .62rem; letter-spacing: .3em; color: var(--espresso); margin-top: 4px;
}
.brand-sub::before, .brand-sub::after { content: ""; width: 18px; height: 1px; background: var(--gold); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
  color: var(--charcoal); text-decoration: none; font-size: .9rem; padding: 4px 0;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.site-nav a:not(.btn):hover, .site-nav a.active { color: var(--gold-dark); border-bottom-color: var(--gold); }
.site-nav .btn { color: #fff; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--espresso); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.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 {
  background: linear-gradient(100deg, var(--white) 0%, var(--ivory) 45%, #F5E3C6 100%);
  overflow: hidden;
}
.hero-inner > * { min-width: 0; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; }
.hero-text { padding-block: 56px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: .35em; }
.hero h1 .script {
  display: block; font-family: var(--script); font-weight: 400; color: var(--gold);
  font-size: 1.45em; line-height: 1.05; margin-top: .05em;
}
.heart { display: inline-block; width: .9em; height: .55em; color: var(--gold); vertical-align: middle; margin-left: .1em; }
.lead { font-size: 1.15rem; max-width: 30ch; margin: 0 0 28px; }

.hero-modes { list-style: none; padding: 0; margin: 0 0 32px; display: flex; }
.hero-modes li {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  font-size: .78rem; line-height: 1.35; padding: 0 18px; border-left: 1px solid var(--line);
}
.hero-modes li:first-child { padding-left: 0; border-left: 0; }
.hero-modes svg { width: 40px; height: 40px; color: var(--gold); fill: var(--gold); margin-bottom: 6px; }

.hero-photo { align-self: end; height: 100%; }
.hero-photo img {
  width: 100%; height: 100%; max-height: 560px; object-fit: cover; object-position: center top;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%);
          mask-image: linear-gradient(to right, transparent 0, #000 14%);
}

/* ---------- Trust bar ---------- */
.trust { background: var(--ivory-deep); border-block: 1px solid var(--line); }
.trust-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 24px 16px; border-left: 1px solid var(--line);
}
.trust-item:first-child { border-left: 0; }
.trust-item svg { width: 44px; height: 44px; fill: var(--gold); flex-shrink: 0; }
.trust-item p { margin: 0; text-transform: uppercase; font-weight: 500; font-size: .85rem; letter-spacing: .03em; color: var(--espresso); line-height: 1.4; }

/* ---------- Section headings ---------- */
.section-title { text-align: center; font-size: clamp(2rem, 4vw, 2.6rem); position: relative; padding-bottom: .35em; }
.section-title::after {
  content: ""; display: block; width: 260px; max-width: 70%; height: 1px; margin: .35em auto 0;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.section-sub { text-align: center; margin: 0 auto 40px; max-width: 60ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .25em; font-size: .78rem; font-weight: 600; color: var(--gold-dark); margin: 0 0 .6em; }

/* ---------- Services ---------- */
.services { background: var(--white); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.service {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 14px 20px; text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-light); }
.service svg { width: 40px; height: 40px; color: var(--gold); fill: var(--gold); margin: 0 auto 12px; }
.service h3 { font-family: var(--sans); font-weight: 500; font-size: .92rem; color: var(--charcoal); margin: 0; }

/* ---------- Banner ---------- */
.banner {
  background:
    linear-gradient(90deg, rgba(40, 29, 25, .97) 0%, rgba(40, 29, 25, .88) 45%, rgba(40, 29, 25, .1) 80%),
    url("../images/notary-seal.jpg") right center / cover no-repeat,
    var(--espresso);
  color: var(--ivory);
}
.banner-inner { padding-block: 72px; }
.banner h2 { color: var(--ivory); font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.banner p { font-size: 1.2rem; margin: 0 0 28px; color: #EADFCB; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; }
.about-photo { position: relative; }
.about-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 2px solid var(--gold); border-radius: var(--radius); z-index: 0;
}
.about-photo img { position: relative; z-index: 1; border-radius: var(--radius); aspect-ratio: 4 / 5; width: 100%; object-fit: cover; object-position: 20% top; box-shadow: var(--shadow); }
.about-text h2 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); }
.signature { font-family: var(--script); font-size: 2.6rem; color: var(--gold); margin: .2em 0 0; line-height: 1; }

/* ---------- Modes ---------- */
.modes { background: var(--white); }
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.mode {
  text-align: center; padding: 36px 28px; border-radius: var(--radius);
  background: var(--ivory); border-top: 3px solid var(--gold); box-shadow: var(--shadow);
}
.mode svg { width: 52px; height: 52px; color: var(--gold); fill: var(--gold); margin: 0 auto 14px; }
.mode h3 { font-size: 1.4rem; }
.mode p { margin: 0; }

/* ---------- Areas ---------- */
.area-list {
  list-style: none; padding: 0; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 900px;
}
.area-list li {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-weight: 500;
}
.area-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.area-note { text-align: center; margin-top: 28px; }

/* ---------- FAQ ---------- */
.faq { background: var(--white); }
.faq .section-title { margin-bottom: 32px; }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--serif); font-size: 1.15rem; color: var(--espresso);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.6rem; color: var(--gold); transition: transform .2s;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin: 0 0 20px; }

/* ---------- Contact ---------- */
.contact { background: var(--espresso); color: #EADFCB; }
.contact-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.contact h2 { color: var(--ivory); font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.contact .eyebrow { color: var(--gold-light); }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; font-size: 1.05rem; }
.contact-list svg {
  width: 38px; height: 38px; padding: 9px; border-radius: 50%; flex-shrink: 0;
  background: var(--gold); fill: var(--espresso);
}
.contact-list a { color: var(--ivory); text-decoration: none; padding-top: 6px; word-break: break-word; }
.contact-list a:hover { color: var(--gold-light); }
.contact-list span { padding-top: 4px; }

.contact-form { background: var(--ivory); color: var(--charcoal); padding: 32px; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.contact-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 16px; color: var(--espresso); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form select, .contact-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px;
  font: 400 1rem var(--sans); color: var(--charcoal);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(185, 150, 75, .2);
}
.contact-form .invalid { border-color: #B4483A; }
.contact-form .btn { width: 100%; justify-content: center; }
.form-status { margin: 12px 0 0; font-size: .9rem; min-height: 1.2em; }
.form-status.error { color: #B4483A; }
.form-status.ok { color: #4F7A3A; }

/* ---------- Footer ---------- */
.site-footer { background: #241A17; color: #BFB2A0; padding-top: 48px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-brand .brand-name { color: var(--ivory); }
.footer-brand .brand-sub { color: #D8CCB8; }
.tagline { font-family: var(--script); font-size: 1.6rem; color: var(--gold); margin: 8px 0 0; }
.footer-nav, .footer-contact { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-contact { flex-direction: column; }
.site-footer a { color: #D8CCB8; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.copyright { text-align: center; font-size: .78rem; margin: 40px 0 0; padding: 18px 24px; border-top: 1px solid rgba(255,255,255,.08); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 24px 20px; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn):hover, .site-nav a.active { border-bottom-color: var(--line); }
  .site-nav .btn { margin-top: 16px; justify-content: center; }
  .nav-toggle { display: block; }

  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 420px; }
  .area-list { grid-template-columns: repeat(3, 1fr); }
  .mode-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}

@media (max-width: 760px) {
  :root { --header-h: 66px; }
  .section { padding-block: 60px; }
  .brand-name { font-size: 1.3rem; }

  /* Mobile hero: photo on top, text below (matches mobile mockup) */
  .hero-inner { grid-template-columns: 1fr; gap: 0; padding-inline: 0; }
  .hero-photo { order: -1; }
  .hero-photo img {
    max-height: 340px;
    -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  }
  .hero-text { padding: 8px 24px 40px; text-align: center; }
  .lead { margin-inline: auto; }

  .hero-modes { flex-direction: column; gap: 10px; }
  .hero-modes li {
    flex-direction: row; gap: 14px; text-align: left; padding: 10px 16px;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  }
  .hero-modes li:first-child { padding-left: 16px; border-left: 1px solid var(--line); }
  .hero-modes li br { display: none; }
  .hero-modes svg { width: 28px; height: 28px; margin: 0; }
  .hero .btn-lg { width: 100%; justify-content: center; }

  .trust-inner { grid-template-columns: 1fr; }
  .trust-item { justify-content: flex-start; border-left: 0; border-top: 1px solid var(--line); padding: 16px 8px; }
  .trust-item:first-child { border-top: 0; }
  .trust-item p br { display: none; }

  .area-list { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 24px; }
  .banner { background:
    linear-gradient(rgba(40, 29, 25, .88), rgba(40, 29, 25, .88)),
    url("../images/notary-seal.jpg") center / cover no-repeat, var(--espresso); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
