/* See It Signed Notary: private local draft. No external resources. */

/* ---------- Fonts (bundled, SIL OFL 1.1) ---------- */
@font-face {
  font-family: "EB Garamond";
  src: url("../assets/fonts/EBGaramond-SemiBold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../assets/fonts/EBGaramond-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../assets/fonts/EBGaramond-MediumItalic.ttf") format("truetype");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../assets/fonts/EBGaramond-Italic.ttf") format("truetype");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../assets/fonts/Lato-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../assets/fonts/Lato-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../assets/fonts/Lato-Italic.ttf") format("truetype");
  font-weight: 400; font-style: italic; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --purple: #4B2A7B;
  --purple-dark: #3B2062;
  --gold: #C2963F;
  --gold-dark: #A97F2E;
  --gold-slogan: #9A7428;
  --gold-text: #7A5A1E;
  --ink: #2E2A36;
  --grey: #45414D;
  --lavender: #F6F2FA;
  --cream: #FBF7EF;
  --white: #FFFFFF;
  --confirm-bg: #FFF1B8;
  --confirm-text: #7A3E00;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Lato", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --radius: 8px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-wrap: break-word;
}

@media (min-width: 900px) {
  body { font-size: 1.125rem; }
}

img, svg { max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--purple);
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

a { color: var(--purple); text-underline-offset: 0.15em; }
a:hover { color: var(--purple-dark); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

mark.confirm {
  background: var(--confirm-bg);
  color: var(--confirm-text);
  font-weight: 700;
  padding: 0 0.2em;
  border-radius: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.prose { max-width: 68ch; }

/* ---------- Skip link + draft banner ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 200;
  background: var(--purple);
  color: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--white); }

.draft-banner {
  background: var(--confirm-bg);
  color: var(--ink);
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 6px 16px;
  border-bottom: 1px solid #E8D58A;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--gold);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;
}
.brand img { display: block; height: 44px; width: auto; }

@media (min-width: 600px) {
  .brand img { height: 48px; }
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 6px;
}
.site-nav a:hover { color: var(--purple); background: var(--lavender); }

.lang-toggle,
.nav-toggle {
  min-height: 44px;
  min-width: 44px;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.lang-toggle {
  border: 2px solid var(--purple);
  background: var(--white);
  color: var(--purple);
  padding: 6px 12px;
  font-size: 0.9375rem;
  flex-shrink: 0;
}
.lang-toggle:hover { background: var(--lavender); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--purple);
  background: var(--purple);
  color: var(--white);
  padding: 6px 10px;
}
.nav-toggle:hover { background: var(--purple-dark); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Without JavaScript: no hamburger or toggle; nav links wrap under the logo. */
html:not(.js) .nav-toggle,
html:not(.js) .lang-toggle { display: none; }
@media (max-width: 899.98px) {
  html:not(.js) .header-inner { flex-wrap: wrap; }
  html:not(.js) .site-nav { width: 100%; }
  html:not(.js) .site-nav ul { display: flex; flex-wrap: wrap; }
}

/* Mobile nav panel (menu button used up to 1199px so the larger logo and nav never crowd) */
@media (max-width: 1199.98px) {
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 8px 16px rgba(46, 42, 54, 0.12);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { padding: 8px 20px 16px; }
  .js .site-nav a { min-height: 48px; font-size: 1.0625rem; border-bottom: 1px solid var(--lavender); border-radius: 0; }
}

@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .site-nav { order: 0; }
  .site-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0 2px;
  }
  .lang-toggle { order: 1; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--purple); color: var(--white); }
.btn-primary:hover { background: var(--purple-dark); color: var(--white); }
.btn-secondary { background: var(--gold); color: var(--ink); }
.btn-secondary:hover { background: var(--gold-dark); color: var(--ink); }
.btn-outline { background: var(--white); color: var(--purple); border-color: var(--purple); }
.btn-outline:hover { background: var(--lavender); color: var(--purple-dark); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--lavender); }

@media (min-width: 900px) {
  .section { padding: 88px 0; }
}

.section-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin-top: 14px;
  background: var(--gold);
}

/* ---------- Hero ---------- */
.hero { background: var(--lavender); padding: 48px 0 56px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-slogan {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--gold-text);
  margin-bottom: 0.5em;
}
.hero-sub { font-size: 1.125rem; max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-art { display: none; }

@media (min-width: 900px) {
  .hero { padding: 88px 0 96px; }
  .hero-grid { grid-template-columns: 1.6fr 1fr; gap: 56px; }
  .hero-art { display: flex; justify-content: center; }
  .hero-art img { width: 100%; max-width: 300px; }
  .hero-sub { font-size: 1.25rem; }
}

/* ---------- Trust strip ---------- */
.trust { padding: 32px 0; border-bottom: 1px solid #E6E0EE; }
.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.45;
}
.trust-list svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--gold); margin-top: 1px; }
.trust-list li.trust-badge { align-items: center; }
.trust-list li.trust-badge a { display: inline-flex; flex-shrink: 0; line-height: 0; }
.trust-list li.trust-badge img { width: 56px; height: 56px; object-fit: contain; }

@media (min-width: 600px) { .trust-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .trust-list { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 24px; margin-top: 32px; }
@media (min-width: 900px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid #E6E0EE;
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lavender);
  color: var(--purple);
  margin-bottom: 16px;
}
.card-icon svg { width: 30px; height: 30px; }
.card p:last-child { margin-bottom: 0; }

.note-box {
  margin-top: 32px;
  border: 2px solid var(--purple);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
  max-width: 80ch;
}
.note-box h3 { margin-bottom: 0.4em; }
.note-box p { margin: 0; }

/* ---------- How it works ---------- */
.steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
@media (min-width: 720px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.steps li {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border-left: 4px solid var(--purple);
}
.steps h3 { font-size: 1.25rem; }
.steps p { margin: 0; }

.need { margin-top: 48px; display: grid; gap: 32px; }
@media (min-width: 900px) { .need { grid-template-columns: 1fr 1fr; align-items: start; } }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.check-list svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--purple); margin-top: 3px; }

.callout {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0;
}

/* ---------- Fees ---------- */
.fee-box {
  background: var(--cream);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 8px 0 0;
  margin-top: 24px;
  max-width: 880px;
}
.table-wrap { overflow-x: auto; }
.fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.fee-table caption {
  text-align: left;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--purple);
  padding: 12px 16px 4px;
}
.fee-table th, .fee-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
  border-bottom: 1px solid #E9DFC8;
}
.fee-table thead th {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey);
}
.fee-table .group th {
  background: var(--purple);
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}
.fee-table td.price { font-weight: 700; width: 40%; }
.fee-table .example td { font-size: 0.9375rem; color: var(--grey); font-style: italic; }
.fees-note { font-size: 0.9375rem; color: var(--grey); margin-top: 16px; max-width: 880px; }

/* Stack rows on small phones */
@media (max-width: 539.98px) {
  .fee-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fee-table tbody tr:not(.group) td { display: block; width: auto; border-bottom: 0; }
  .fee-table tbody tr:not(.group) td:first-child { padding-bottom: 2px; }
  .fee-table tbody tr:not(.group) td.price { padding-top: 0; border-bottom: 1px solid #E9DFC8; }
  .fee-table .example td { border-bottom: 1px solid #E9DFC8; }
}

/* ---------- Area ---------- */
.area-grid { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 900px) { .area-grid { grid-template-columns: repeat(3, 1fr); } }
.area-item { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border-radius: var(--radius); padding: 24px; }
.area-item svg { width: 32px; height: 32px; flex-shrink: 0; color: var(--purple); }
.area-item p { margin: 0; }

/* ---------- About ---------- */
.about-bilingual {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--purple);
  border-left: 3px solid var(--gold);
  padding-left: 16px;
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: 24px; max-width: 820px; }
.faq-list details {
  background: var(--white);
  border: 1px solid #E6E0EE;
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 14px 20px;
  font-weight: 700;
  color: var(--purple);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gold-text);
  flex-shrink: 0;
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { padding: 0 20px 18px; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.4fr; gap: 56px; } }

.contact-facts p { margin-bottom: 0.75em; }
.fees-link { font-weight: 700; }

.request-form {
  background: var(--lavender);
  border-radius: var(--radius);
  padding: 24px;
}
@media (min-width: 720px) {
  .request-form { padding: 32px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}
.form-grid { display: grid; gap: 18px; }

.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .req { color: var(--purple); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #7C7488;
  border-radius: 6px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { border-color: var(--purple); }
.help { font-size: 0.9375rem; color: var(--grey); margin: 6px 0 0; }

.consent { display: flex; gap: 12px; align-items: flex-start; }
.consent input { width: 24px; height: 24px; min-height: 0; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--purple); }
.consent label { font-weight: 400; margin: 0; }

.form-status:not(:empty) {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--confirm-bg);
  border-radius: var(--radius);
  font-weight: 700;
}

/* ---------- Simple pages ---------- */
.page-main { padding: 56px 0 72px; min-height: 40vh; }
.page-main .logo-block img { width: 280px; max-width: 100%; margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--purple);
  color: var(--white);
  padding: 48px 0 32px;
  font-size: 1rem;
}
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--confirm-bg); }
.footer-brand {
  display: inline-block;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px 12px;
}
.footer-brand img { display: block; width: 240px; max-width: 100%; }
.footer-slogan {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  margin: 12px 0 0;
}
.footer-rule { width: 72px; height: 2px; background: var(--gold); border: 0; margin: 24px 0; }

.statements {
  background: var(--white);
  color: var(--ink);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 0 0 24px;
  max-width: 880px;
}
.statements p { margin: 0; font-size: 1rem; line-height: 1.55; }
.statements p + p { margin-top: 12px; padding-top: 12px; border-top: 1px solid #E6E0EE; }

.footer-meta p { margin: 0 0 8px; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-contact a,
.footer-meta a { display: inline-flex; align-items: center; min-height: 44px; }

/* footer [CONFIRM] marks keep the required colors on purple */
.site-footer mark.confirm { color: var(--confirm-text); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Spanish translator-review note (empty in English, hidden when empty) */
.translation-note{margin:0;padding:.55rem 1rem;background:#FBF7EF;color:#45414D;border-bottom:1px solid #E7DCC4;font-size:.9rem;text-align:center}
.translation-note:empty{display:none}
/* About portrait */
.about-photo{display:block;width:100%;max-width:760px;height:auto;border-radius:12px;margin:0 0 1.5rem;box-shadow:0 6px 24px rgba(46,42,54,.12)}

/* Very small phones: keep the 48px logo and both buttons on one row */
@media (max-width: 380px) {
  .header-inner { gap: 8px; }
  .lang-toggle { padding: 6px 8px; font-size: 0.875rem; }
}

/* Desktop nav: tighter spacing so the larger logo and the Spanish menu fit on one line */
@media (min-width: 1200px) {
  .site-nav a { padding: 6px 7px; font-size: 0.875rem; }
}
/* Tiny phones under 360px wide (rare): logo shrinks slightly so nothing runs off the screen */
@media (max-width: 359.98px) {
  .nav-toggle { min-width: 40px; padding: 6px 8px; }
}

/* Hero: logo and name centered above the slogan */
.hero-center { text-align: center; }
.hero-center > div { max-width: 820px; margin: 0 auto; }
.hero-logo { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto 20px; }
.hero-center .hero-sub { margin-left: auto; margin-right: auto; }
.hero-center .hero-actions { justify-content: center; }
@media (min-width: 900px) { .hero-logo { max-width: 520px; margin-bottom: 28px; } }

/* Slogan sits directly under "See It Signed Notary", like the full logo */
.hero-brand { position: relative; width: 100%; max-width: 340px; margin: 0 auto 24px; container-type: inline-size; }
.hero-brand .hero-logo { max-width: none; margin: 0; }
.hero-brand .hero-slogan {
  position: absolute; left: 22%; right: 0; top: 64%;
  margin: 0; text-align: left; white-space: nowrap;
  font-size: 5.6cqw; line-height: 1.1;
}
@media (min-width: 900px) { .hero-brand { max-width: 520px; margin-bottom: 32px; } }
