/* ==========================================================================
   Nevada Night Notary - mid-century modern, after dark.

   Design notes:
   - Committed to a single dark look on purpose. This is a night business; a
     light mode would fight the whole premise.
   - No webfonts. Every external request is an attack surface and a CSP
     exception, so the type is a system stack chosen to land on geometric
     sans (Futura / Century Gothic / Avenir) where available - the exact
     lineage mid-century print used - with a warm serif for the wordmark.
   - Motifs are pure CSS + inline SVG: sunburst, brass hairlines, clipped
     corners, and a film-grain overlay that keeps it from feeling clinical.
   ========================================================================== */

:root {
  /* Night ground - blue, but warmed so it never reads as cold corporate navy */
  --ink:        #0a1420;
  --ink-2:      #0f1e2d;
  --ink-3:      #16293c;
  --ink-4:      #1e3550;
  --walnut:     #2a1d14;

  /* Warm accents: amber lamplight, brass hardware, a terracotta pop */
  --amber:      #e9a63b;
  --amber-lt:   #f2c477;
  --amber-dim:  #a9762a;
  --brass:      #b08d57;
  --brass-lt:   #d7bb84;
  --teal:       #3e8a86;
  --terra:      #c4643c;

  /* Paper, not white - cream keeps the whole thing hospitable */
  --cream:      #f4ebdd;
  --cream-2:    #ddd0bd;
  --cream-dim:  #a89a86;

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino,
                  "Book Antiqua", Georgia, serif;
  --font-sans: Futura, "Century Gothic", "Avenir Next", Avenir, "Trebuchet MS",
               system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --measure: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --shadow-lift: 0 18px 40px -22px rgba(0, 0, 0, .85);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  /* Anchor targets clear the sticky header */
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  letter-spacing: .004em;
  overflow-x: hidden;
  /* A soft pool of lamplight top-left, cooler blue falling away to the right */
  background-image:
    radial-gradient(1100px 620px at 12% -8%, rgba(233, 166, 59, .13), transparent 62%),
    radial-gradient(900px 700px at 88% 4%, rgba(62, 138, 134, .10), transparent 60%),
    linear-gradient(178deg, var(--ink-2) 0%, var(--ink) 46%, #081019 100%);
  background-attachment: fixed;
}

/* Film grain. Keeps large flat fields from looking like flat vector fields. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--amber-lt); }

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

.wrap { width: 100%; max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--amber); color: var(--ink);
  padding: .7rem 1.1rem; font-weight: 700; z-index: 10000;
}
.skip:focus { left: 1rem; top: 1rem; }

/* --- shared type ------------------------------------------------------- */
.eyebrow {
  font-size: .688rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--brass-lt);
  margin: 0 0 .9rem;
  display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before {
  content: ""; width: 1.75rem; height: 1px;
  background: linear-gradient(90deg, var(--brass), transparent);
  flex: none;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.012em; }
h2 { font-size: clamp(1.75rem, 1.25rem + 2vw, 2.6rem); margin: 0 0 1rem; }
h3 { font-size: 1.3rem; margin: 0 0 .55rem; }

.lede { color: var(--cream-2); font-size: 1.075rem; }

/* Brass hairline with a diamond node - the recurring section separator */
.rule {
  display: flex; align-items: center; gap: 1rem;
  margin: 0; border: 0; padding: 0;
}
.rule::before, .rule::after {
  content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, rgba(176, 141, 87, .5), transparent);
}
.rule i {
  width: 7px; height: 7px; flex: none;
  background: var(--brass); transform: rotate(45deg);
}

/* --- buttons ----------------------------------------------------------- */
.btn {
  --btn-bg: var(--amber);
  --btn-fg: #17110a;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem;
  font: inherit; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none;
  /* Clipped top-right corner: the small angular tell of mid-century print */
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%);
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              box-shadow .18s var(--ease);
}
.btn:hover { background: var(--amber-lt); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--cream);
  border-color: rgba(176, 141, 87, .55);
}
.btn--ghost:hover { --btn-fg: var(--ink); background: var(--brass-lt); border-color: var(--brass-lt); }

/* --- header ------------------------------------------------------------ */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 20, 32, .86);
  backdrop-filter: blur(12px) saturate(130%);
  border-bottom: 1px solid rgba(176, 141, 87, .22);
}
.site-head__in {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 4.5rem; padding-block: .7rem;
}
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: inherit; margin-right: auto; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display); font-size: 1.24rem; font-weight: 600;
  letter-spacing: .005em; color: var(--cream);
}
.brand__name b { color: var(--amber); font-weight: 600; }
.brand__sub {
  font-size: .594rem; text-transform: uppercase; letter-spacing: .22em;
  color: var(--brass-lt); margin-top: .2rem;
}

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  color: var(--cream-2); text-decoration: none;
  font-size: .719rem; text-transform: uppercase; letter-spacing: .15em;
  padding-block: .4rem; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--amber); transition: right .25s var(--ease);
}
.nav a:hover { color: var(--cream); }
.nav a:hover::after { right: 0; }
.nav .btn { padding: .68rem 1.15rem; font-size: .688rem; }
.nav .btn::after { display: none; }

/* --- hero -------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5.5rem); overflow: hidden; }

/* Sunburst: the single most recognisable mid-century gesture */
.sunburst {
  position: absolute; top: -30%; right: -14%;
  width: min(74vw, 780px); aspect-ratio: 1;
  z-index: 0; pointer-events: none;
  border-radius: 50%;
  /* Thin brass rays straight from a conic gradient - no markup, no asset */
  background: repeating-conic-gradient(from -6deg,
    rgba(176, 141, 87, .30) 0deg 1.05deg,
    transparent 1.05deg 6deg);
  /* Hollow the middle and fade the rim so it reads as light, not a wheel */
  -webkit-mask-image: radial-gradient(closest-side, transparent 14%,
                      rgba(0,0,0,.75) 30%, #000 50%, transparent 80%);
  mask-image: radial-gradient(closest-side, transparent 14%,
              rgba(0,0,0,.75) 30%, #000 50%, transparent 80%);
}

.hero__in { position: relative; z-index: 1; display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 62rem) { .hero__in { grid-template-columns: 1.15fr .85fr; } }

.hero h1 {
  font-size: clamp(2.35rem, 1.4rem + 4.4vw, 4.25rem);
  margin: 0 0 1.25rem;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal; color: var(--amber);
  /* Hand-inked underline rather than a border - softer, warmer */
  background: linear-gradient(transparent 76%, rgba(233, 166, 59, .28) 76%);
}
.hero__lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); color: var(--cream-2); max-width: 34em; margin: 0 0 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem 1rem; margin-bottom: 1.75rem; }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.6rem;
  font-size: .719rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--cream-dim);
}
.hero__meta span { display: flex; align-items: center; gap: .5rem; }
.hero__meta span::before {
  content: ""; width: 5px; height: 5px; background: var(--teal);
  transform: rotate(45deg); flex: none;
}

/* Starburst clock - states the 4pm-4am proposition as an object, not a sentence */
.clock { position: relative; display: grid; place-items: center; }
.clock__svg { width: min(100%, 330px); }
.clock__cap {
  margin-top: 1.1rem; text-align: center;
  font-size: .688rem; text-transform: uppercase; letter-spacing: .2em;
  color: var(--brass-lt);
}

/* --- hours band -------------------------------------------------------- */
.band {
  border-block: 1px solid rgba(176, 141, 87, .24);
  background:
    linear-gradient(90deg, rgba(42, 29, 20, .55), rgba(22, 41, 60, .35) 55%, rgba(42, 29, 20, .5)),
    var(--ink-2);
}
.band__in {
  display: grid; gap: 1px;
  background: rgba(176, 141, 87, .2);
  grid-template-columns: 1fr;
}
@media (min-width: 48rem) { .band__in { grid-template-columns: repeat(3, 1fr); } }
.band__cell { background: var(--ink-2); padding: 1.6rem clamp(1rem, 3vw, 2rem); text-align: center; }
.band__k {
  font-size: .625rem; text-transform: uppercase; letter-spacing: .22em;
  color: var(--brass-lt); margin-bottom: .5rem;
}
.band__v { font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); color: var(--cream); }
.band__v small { display: block; font-family: var(--font-sans); font-size: .719rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-dim); margin-top: .3rem; }

/* --- generic section --------------------------------------------------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section__head { max-width: 46em; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }

/* --- services ---------------------------------------------------------- */
.cards { display: grid; gap: 1.35rem; grid-template-columns: 1fr; }
@media (min-width: 46rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.9rem 1.7rem 1.75rem;
  background: linear-gradient(165deg, rgba(30, 53, 80, .5), rgba(15, 30, 45, .72));
  border: 1px solid rgba(176, 141, 87, .26);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
  transition: transform .22s var(--ease), border-color .22s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(233, 166, 59, .5); }
/* Thin amber wash along the top edge, like light spilling onto a surface */
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--amber), transparent 70%);
}
.card--soon { border-style: dashed; opacity: .93; }
.card--soon:hover { border-color: rgba(176, 141, 87, .5); }

.card__eyebrow {
  font-size: .594rem; text-transform: uppercase; letter-spacing: .2em;
  color: var(--teal); margin-bottom: .75rem;
}
.card--soon .card__eyebrow { color: var(--terra); }
.card__icon { width: 40px; height: 40px; margin-bottom: 1.1rem; }
.card p { color: var(--cream-2); font-size: .95rem; margin: 0 0 1.2rem; }
.card ul { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: .5rem; }
.card li {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--cream-dim); display: flex; align-items: flex-start; gap: .6rem;
}
.card li::before {
  content: ""; width: 5px; height: 5px; margin-top: .48rem; flex: none;
  background: var(--brass); transform: rotate(45deg);
}

/* --- about ------------------------------------------------------------- */
.about { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 58rem) { .about { grid-template-columns: .9fr 1.1fr; } }

.about__panel {
  padding: 1.9rem 1.75rem;
  background: linear-gradient(160deg, rgba(42, 29, 20, .6), rgba(15, 30, 45, .55));
  border: 1px solid rgba(176, 141, 87, .3);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}
.about__panel dl { margin: 0; display: grid; gap: 1.15rem; }
.about__panel dt {
  font-size: .625rem; text-transform: uppercase; letter-spacing: .2em;
  color: var(--brass-lt); margin-bottom: .25rem;
}
.about__panel dd { margin: 0; color: var(--cream); font-size: .95rem; }
.about__body > p { color: var(--cream-2); }
.about__body > p:first-of-type { font-size: 1.075rem; color: var(--cream); }

.pull {
  margin: 1.75rem 0 0; padding: 1.1rem 0 1.1rem 1.4rem;
  border-left: 2px solid var(--amber);
  font-family: var(--font-display); font-size: 1.15rem; font-style: italic;
  color: var(--cream);
}

/* --- contact ----------------------------------------------------------- */
.contact { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 60rem) { .contact { grid-template-columns: 1fr 1.25fr; } }

.contact__aside p { color: var(--cream-2); }
.contact__list { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1.15rem; }
.contact__list li { display: flex; gap: .95rem; align-items: flex-start; }
.contact__list svg { width: 20px; height: 20px; flex: none; margin-top: .22rem; }
.contact__k {
  display: block; font-size: .625rem; text-transform: uppercase;
  letter-spacing: .2em; color: var(--brass-lt); margin-bottom: .18rem;
}
.contact__v { color: var(--cream); font-size: .95rem; word-break: break-word; }
.contact__v--pending { color: var(--cream-dim); font-style: italic; }

form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .45rem; }
.field--half { grid-column: span 1; }
.grid2 { display: grid; gap: 1.15rem; grid-template-columns: 1fr; }
@media (min-width: 34rem) { .grid2 { grid-template-columns: 1fr 1fr; } }

label {
  font-size: .656rem; text-transform: uppercase; letter-spacing: .18em;
  color: var(--brass-lt);
}
label .opt { color: var(--cream-dim); letter-spacing: .1em; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  padding: .85rem 1rem;
  font: inherit; font-size: .95rem;
  color: var(--cream);
  background: rgba(8, 16, 25, .72);
  border: 1px solid rgba(176, 141, 87, .32);
  border-radius: 0;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
  -webkit-appearance: none; appearance: none;
}
textarea { min-height: 8.5rem; resize: vertical; line-height: 1.6; }
select {
  /* Chevron drawn inline so there is no external asset and no JS */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23b08d57' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.6rem;
}
input::placeholder, textarea::placeholder { color: #6d7d8e; opacity: 1; }

input:hover, select:hover, textarea:hover { border-color: rgba(176, 141, 87, .55); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--amber);
  background: rgba(8, 16, 25, .95);
  box-shadow: 0 0 0 3px rgba(233, 166, 59, .16);
}

/* Radio row for preferred contact method - styled without any script */
.radios { display: flex; flex-wrap: wrap; gap: .6rem; }
.radios input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radios label {
  padding: .62rem 1.05rem; cursor: pointer;
  font-size: .688rem; letter-spacing: .14em;
  color: var(--cream-2);
  border: 1px solid rgba(176, 141, 87, .34);
  background: rgba(8, 16, 25, .5);
  transition: all .18s var(--ease);
}
.radios label:hover { border-color: var(--brass-lt); color: var(--cream); }
.radios input:checked + label {
  background: var(--amber); border-color: var(--amber); color: #17110a; font-weight: 700;
}
.radios input:focus-visible + label { outline: 2px solid var(--amber); outline-offset: 3px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.err { color: #f0a08a; font-size: .78rem; letter-spacing: .02em; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] {
  border-color: #c4643c;
}

.notice {
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(176, 141, 87, .4);
  border-left: 3px solid var(--amber);
  background: rgba(42, 29, 20, .5);
  font-size: .95rem;
}
.notice--ok { border-left-color: var(--teal); background: rgba(62, 138, 134, .12); }
.notice--ok strong { color: var(--amber-lt); }
.notice--bad { border-left-color: var(--terra); background: rgba(196, 100, 60, .12); }

.form-foot { font-size: .78rem; color: var(--cream-dim); margin: 0; }

/* --- footer ------------------------------------------------------------ */
.site-foot {
  border-top: 1px solid rgba(176, 141, 87, .24);
  background: linear-gradient(180deg, rgba(8, 16, 25, .5), rgba(5, 10, 16, .9));
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 2rem;
  margin-top: clamp(2rem, 5vw, 4rem);
}
.foot__top { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 52rem) { .foot__top { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot__h {
  font-size: .625rem; text-transform: uppercase; letter-spacing: .2em;
  color: var(--brass-lt); margin: 0 0 .9rem;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.foot a, .foot li { color: var(--cream-2); font-size: .875rem; text-decoration: none; }
.foot a:hover { color: var(--amber); }

.disclaimer {
  margin-top: 2.5rem; padding-top: 1.75rem;
  border-top: 1px solid rgba(176, 141, 87, .18);
  font-size: .78rem; color: var(--cream-dim); line-height: 1.7;
}
.disclaimer p { margin: 0 0 .7rem; }
.disclaimer p:last-child { margin: 0; }
.legal { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: 1.4rem; font-size: .75rem; color: var(--cream-dim); }

/* --- error page -------------------------------------------------------- */
.oops { min-height: 68vh; display: grid; place-content: center; text-align: center; gap: 1.25rem; }
.oops__code { font-family: var(--font-display); font-size: clamp(3.5rem, 12vw, 6rem); color: var(--amber); line-height: 1; }

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

@media print {
  body::after, .sunburst, .site-head { display: none; }
  body { background: #fff; color: #000; }
}
