/* ==========================================================================
   Nieves Nevada Notary — styles
   Palette and type per brand sheet.
   ========================================================================== */

:root {
  /* Brand */
  --teal: #0E5A5A;
  --teal-deep: #0A4444;
  --slate: #363D46;
  --brass: #B08D57;
  --ivory: #FAF8F4;
  --gray: #E6E8EA;
  --white: #FFFFFF;

  /* Derived */
  --ink: var(--slate);
  --ink-soft: #5C636B;
  --rule: #DFD9D1;

  /* Type */
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Scale */
  --measure: 68ch;
  --shell: 1140px;
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);

  --radius: 4px;
  --shadow: 0 1px 2px rgba(54, 61, 70, .04), 0 8px 24px -12px rgba(54, 61, 70, .12);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

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

body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--teal);
  line-height: 1.12;
  letter-spacing: -.015em;
}

h1 { font-size: clamp(2.15rem, 1.4rem + 3.4vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 1.25rem + 2.2vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem); }

p { max-width: var(--measure); }

/* Brass is an accent, not a text color: it only reaches 2.91:1 on ivory,
   which fails WCAG AA. Hover shifts the text to deep teal and lets brass
   carry the underline. */
a { color: var(--teal); text-underline-offset: .18em; }
a:hover {
  color: var(--teal-deep);
  text-decoration-color: var(--brass);
}

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

strong { font-weight: 600; }

.eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}

.lede {
  font-size: clamp(1.075rem, 1rem + .45vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* The header is sticky, so anchor targets must clear it or the heading
   lands underneath. Covers both section ids and the service-card ids. */
[id] { scroll-margin-top: 96px; }

.section { padding-block: var(--section-y); }
.section--tint { background: var(--white); }
.section__head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal);
  color: var(--ivory);
  padding: .75rem 1.25rem;
  z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 1.6rem;
  font-family: var(--sans);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

/* White on brass is 3.09:1 — under AA for a 15px label. Deepen the teal
   on hover and let a brass rule supply the premium accent. */
.btn--primary { background: var(--teal); color: var(--ivory); }
.btn--primary:hover {
  background: var(--teal-deep);
  border-color: var(--brass);
  color: var(--ivory);
}

.btn--ghost {
  background: transparent;
  color: var(--teal);
  border-color: var(--rule);
}
.btn--ghost:hover { border-color: var(--brass); color: var(--teal-deep); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, .92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

/* --------------------------------------------------------------------------
   Logo lockups — icon is SVG, wordmark is live text.
   Keeps the wordmark crisp, selectable, and independent of any font file
   being embedded in an image.
   -------------------------------------------------------------------------- */

.lockup { text-decoration: none; flex-shrink: 0; }

/* The mark is an inline <svg><use>. Its polygons are `currentColor`, so
   `color` here drives the teal/ivory variants from a single sprite. The
   folded corner keeps its own colour in both, matching the brand sheet. */
.lockup__icon {
  width: auto;
  color: var(--teal);
}
.lockup--reversed .lockup__icon { color: var(--ivory); }

.lockup__name {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--teal);
  letter-spacing: -.015em;
  line-height: 1;
  white-space: nowrap;
}

/* Icon only — the header. Six long nav labels plus a button leave no
   room for a wordmark at any realistic width. The hero carries the name. */
.lockup--icon-only { display: flex; align-items: center; }
.lockup--icon-only .lockup__icon { height: 48px; }

/* Horizontal: icon, brass rule, wordmark */
.lockup--bar {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.lockup--bar .lockup__icon { height: 50px; }
.lockup--bar .lockup__name {
  font-size: 1.5rem;
  padding-left: 1rem;
  border-left: 1px solid var(--brass);
}

/* Reversed, for the slate footer */
.lockup--reversed .lockup__name { color: var(--ivory); }

@media (max-width: 560px) {
  .lockup--bar .lockup__name {
    font-size: 1.15rem;
    padding-left: .75rem;
    white-space: normal;
    max-width: 8ch;
    line-height: 1.15;
  }
  .lockup--bar { gap: .75rem; }
}

.nav { display: flex; align-items: center; gap: clamp(.6rem, 1.2vw, 1.35rem); }

.nav__link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  padding-block: .35rem;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav__link:hover { color: var(--teal-deep); border-bottom-color: var(--brass); }

.header__cta {
  flex-shrink: 0;
  padding: .7rem 1.2rem;
  font-size: .875rem;
}

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: .55rem .75rem;
  color: var(--teal);
  cursor: pointer;
}

@media (max-width: 1040px) {
  .nav__toggle { display: inline-flex; }
  .header__bar { min-height: 66px; }

  .nav {
    position: fixed;
    inset: 66px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--rule);
    padding: .5rem var(--gut) 1.5rem;
    transform: translateY(-120%);
    transition: transform .24s ease;
    box-shadow: var(--shadow);
  }
  .nav[data-open="true"] { transform: translateY(0); }

  .nav__link {
    padding-block: .95rem;
    border-bottom: 1px solid var(--rule);
    font-size: 1rem;
  }
  .nav__link:last-child { border-bottom: 0; }

  .header__cta { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  border-bottom: 1px solid var(--rule);
}

.hero__inner {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__mark { order: -1; }
}

.hero__body {
  margin-top: 1.5rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--brass);
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .875rem;
  margin-top: 2.25rem;
}

.hero__mark {
  display: flex;
  justify-content: center;
  min-width: 0; /* let the grid column shrink below its content's max-content */
}

/* Designer's stacked lockup. Vector, so it stays crisp at any size; the
   alt text carries the wordmark and service line for screen readers. */
.hero__lockup {
  width: min(100%, 420px);
  height: auto;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  align-items: start;
}

@media (max-width: 780px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* The source headshot is 3:2 landscape with Daree in the right ~55% of the
   frame and empty backdrop on the left. A centered crop (50%) keeps the wall
   and cuts her face, so the focal point is pushed right to ~76%.
   height:auto is required, or the img's height attribute beats aspect-ratio. */
.about__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 76% 50%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about__text p + p { margin-top: 1.1rem; }

/* Credential list — the checkmark list used in About and Trust */
.creds { margin-top: 1.75rem; display: grid; gap: .7rem; }

.creds li {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  font-size: .96875rem;
}
.creds li::before {
  content: "✓";
  color: var(--brass);
  font-weight: 700;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.services { display: grid; gap: clamp(1.25rem, 2.5vw, 1.75rem); }

@media (min-width: 860px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.service {
  background: var(--ivory);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.service:hover { border-color: var(--brass); transform: translateY(-2px); }

/* Folded-corner motif from the brand mark */
.service::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 34px;
  background: linear-gradient(225deg, var(--gray) 50%, transparent 50%);
}

.section--tint .service { background: var(--white); }

.service h3 { margin-bottom: .75rem; }
.service__intro { color: var(--ink-soft); margin-bottom: 1.25rem; }

.service__list { display: grid; gap: .6rem; }
.service__list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: .96875rem;
}
.service__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brass);
}

.service__note {
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  font-size: .875rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* Card CTA row: solid primary button + a lighter text link. The text link
   stays teal (brass would fail contrast) and reads as secondary via weight,
   size, and the arrow rather than a competing fill. */
.service__cta {
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--rule);
  text-align: center;
}

/* Inline flow (not flex) so the arrow follows the last word when the label
   wraps, instead of being pinned to the first line's baseline. */
/* Base weight is medium so the course name inside <strong> reads as
   genuinely bolder than the "Get the" / "email course" wrapper. */
.service__link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--teal);
  text-decoration: none;
}
.service__link strong { font-weight: 700; }
.service__link:hover { color: var(--teal-deep); }
.service__link:hover .service__link-arrow { transform: translateX(3px); }

/* Keep the final word and the arrow together so the arrow never wraps
   onto its own line when the label breaks on narrow screens. */
.service__link-end { white-space: nowrap; }

.service__link-arrow {
  display: inline-block;
  margin-left: .3rem;
  color: var(--brass);
  transition: transform .18s ease;
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.pricing {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

@media (max-width: 780px) {
  .pricing { grid-template-columns: 1fr; gap: 2.5rem; }
}

.pricing__col h3 { margin-bottom: .85rem; }
.pricing__col > p { color: var(--ink-soft); }
.pricing__intro { color: var(--ink-soft); margin-bottom: 1.5rem; }

/* Fee list — brass-dot bullets, matching the service and note lists. Fee
   name is emphasised; the price follows inline; the acknowledgment detail
   drops to a lighter sub-line. */
.pricing__fees { display: grid; gap: .9rem; }

.pricing__fees li {
  position: relative;
  padding-left: 1.15rem;
  line-height: 1.5;
}
.pricing__fees li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brass);
}

.pricing__item {
  font-weight: 600;
  color: var(--teal);
}
.pricing__detail {
  display: block;
  margin-top: .3rem;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.pricing__note-label {
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}

.pricing__note-list { margin-top: .7rem; display: grid; gap: .6rem; }
.pricing__note-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: .96875rem;
  color: var(--ink-soft);
}
.pricing__note-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brass);
}

/* --------------------------------------------------------------------------
   Why / How — three-up columns
   -------------------------------------------------------------------------- */

.trio { display: grid; gap: clamp(2rem, 4vw, 3rem); }

@media (min-width: 760px) {
  .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.trio h3 { margin-bottom: .6rem; }
.trio p { color: var(--ink-soft); font-size: .96875rem; }

.step__num {
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--brass);
  margin-bottom: .85rem;
  display: block;
}

/* --------------------------------------------------------------------------
   Service area
   -------------------------------------------------------------------------- */

.areas {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
  margin-top: 1.75rem;
}

.areas li {
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: .4rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  background: var(--white);
}

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */

.trust {
  background: var(--teal);
  color: var(--ivory);
  padding-block: clamp(2rem, 4vw, 3rem);
}

.trust__list {
  display: grid;
  gap: 1rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.trust__list li {
  display: flex;
  align-items: baseline;
  gap: .65rem;
  font-size: .9375rem;
  font-weight: 500;
}
.trust__list li::before {
  content: "✓";
  color: var(--brass);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact { text-align: center; }
.contact p { margin-inline: auto; }

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .875rem;
  margin-top: 2.25rem;
}

/* Email sits centered under the buttons, above the closing rule. */
.contact__email {
  max-width: none; /* the base `p` rule caps at 68ch, which would shorten the rule */
  margin: 2.25rem auto 0;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--rule);
  font-size: .9375rem;
  text-align: center;
}
.contact__email a { font-weight: 600; text-decoration: none; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--slate);
  color: var(--gray);
  padding-block: clamp(2.75rem, 5vw, 4rem);
}

/* Brass on slate is 3.5:1 — under AA. Brighten the text, keep brass on the rule. */
.footer a { color: var(--gray); }
.footer a:hover {
  color: var(--white);
  text-decoration-color: var(--brass);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(230, 232, 234, .15);
}

.footer .lockup--bar .lockup__icon { height: 60px; }

.footer__tag {
  font-size: .8125rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brass);
}

.footer__bottom {
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-size: .875rem;
}

.footer__meta { display: grid; gap: .35rem; }

/* Icon links. Official brand SVGs live in assets/social/ — the marks keep
   their own colors, so no filters or recoloring here. The 44px target meets
   the minimum recommended tap size. */
.footer__social {
  display: flex;
  gap: .5rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: border-color .18s ease, background-color .18s ease;
}
.footer__social a:hover {
  border-color: var(--brass);
  background: rgba(250, 248, 244, .06);
}

.footer__social img { width: 22px; height: 22px; }

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */

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