/* Ramirez Financial — site styles. Tokens mirror the brand kit. */
:root {
  --navy: #061736;
  --teal: #05577a;
  --swoosh: #3abccb;
  --aqua: #a5e1f0;
  --harbor: #05304f;
  --paper: #ffffff;
  --paper-tint: #eef6f9;
  --accent-soft: #ddf1f6;
  --line: #c9d6de;
  --line-strong: #6b7f92;
  --ink: #061736;
  --ink-muted: #4a5b70;
  --danger: #b42318;

  --serif: "Charis SIL", Charter, "Bitstream Charter", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  --radius-sm: 2px; --radius-md: 4px; --radius-lg: 8px;
  --max: 1120px;
  --focus: 0 0 0 2px #ffffff, 0 0 0 4px #05577a;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-md); }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 3.4vw, 38px); }
h3 { font-size: 22px; }
p { margin: 0; text-wrap: pretty; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--space-6); }
@media (max-width: 600px) { .wrap { padding-inline: var(--space-4); } }

.eyebrow {
  font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal); margin-bottom: var(--space-3);
}
.lead { font-size: 19px; color: var(--ink-muted); max-width: 62ch; }
.section { padding-block: var(--space-24); }
@media (max-width: 700px) { .section { padding-block: var(--space-16); } }
.section--tint { background: var(--paper-tint); }
.section-head { display: grid; gap: var(--space-4); margin-bottom: var(--space-12); max-width: 720px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-6);
  border-radius: var(--radius-md); border: 1.5px solid var(--teal);
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--ghost { background: transparent; color: var(--teal); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: var(--aqua); border-color: var(--aqua); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 76px; }
.brand img { width: 190px; height: auto; }
.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--teal); }
.nav .btn { min-height: 42px; padding: 0 var(--space-4); font-size: 15px; }
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line-strong); border-radius: var(--radius-md);
  min-height: 44px; padding: 0 var(--space-3); font: 600 15px var(--sans); color: var(--ink); cursor: pointer;
}
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: var(--space-2) var(--space-4) var(--space-4);
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: var(--space-4); min-height: 48px; }
  .brand img { width: 160px; }
}

/* Hero */
.hero { padding-block: var(--space-16) var(--space-24); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-12); align-items: center; }
.hero-copy { display: grid; gap: var(--space-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-note { font-size: 15px; color: var(--ink-muted); }
.hero-visual { position: relative; }
.photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background-color: var(--harbor);
  background-size: cover; background-position: center;
}
.photo--hero { aspect-ratio: 5 / 4; background-image: url("../images/hero.jpg"); }
.photo-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.photo-fallback img { width: 42%; opacity: .9; }
.photo.has-image .photo-fallback { display: none; }
.arcs { position: absolute; pointer-events: none; }
.hero .arcs { width: 72%; left: -14%; bottom: -16%; }
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding-block: var(--space-12) var(--space-16); }
}

.promise {
  margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.promise li {
  list-style: none; padding: var(--space-6) var(--space-4); text-align: center;
  font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.25; color: var(--navy);
}
.promise li + li { border-left: 1px solid var(--line); }
@media (max-width: 760px) {
  .promise { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise li:nth-child(3) { border-left: 0; }
  .promise li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Steps: Define / Organize / Refine */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); counter-reset: step; }
.step { display: grid; gap: var(--space-3); align-content: start; padding-top: var(--space-6); border-top: 2px solid var(--navy); }
.step-num { font: 700 15px/1 var(--sans); letter-spacing: .08em; color: var(--teal); }
.step p { color: var(--ink-muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: var(--space-6); } }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.service {
  display: flex; flex-direction: column; gap: var(--space-4);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-6) var(--space-6);
}
.service--featured { border: 2px solid var(--teal); }
.service-meta { display: flex; align-items: baseline; gap: var(--space-3); }
.price { font-family: var(--serif); font-weight: 700; font-size: 34px; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.duration { color: var(--ink-muted); font-size: 15px; }
.service p { color: var(--ink-muted); flex-grow: 1; }
.tag {
  align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal); background: var(--accent-soft); padding: 4px 8px; border-radius: var(--radius-sm);
}
.focus-areas { margin-top: var(--space-8); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); color: var(--ink-muted); font-size: 15px; }
.focus-areas span.chip { border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; color: var(--ink); }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; max-width: 560px; } }

/* About */
.about .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-12); align-items: center; }
.about-visual { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); align-items: end; }
.photo--family { aspect-ratio: 4 / 5; background-image: url("../images/family.jpg"); }
.photo--headshot { aspect-ratio: 4 / 5; background-image: url("../images/headshot.jpg"); }
.photo--headshot { transform: translateY(var(--space-12)); }
.photo-caption { font-size: 14px; color: var(--ink-muted); margin-top: var(--space-2); }
.about-copy { display: grid; gap: var(--space-6); }
.about-copy blockquote {
  margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.45; color: var(--navy);
}
.signature { display: grid; gap: 2px; }
.signature strong { font-family: var(--serif); font-size: 19px; }
.signature span { color: var(--ink-muted); font-size: 15px; }
@media (max-width: 880px) {
  .about .wrap { grid-template-columns: 1fr; }
  .about-visual { max-width: 460px; }
}

/* First session */
.checklist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); margin: 0; padding: 0; list-style: none; }
.checklist li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); display: grid; gap: var(--space-3); align-content: start; }
.checklist .n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; }
.checklist h3 { font-size: 19px; }
.checklist p { color: var(--ink-muted); font-size: 16px; }
.notice { margin-top: var(--space-6); font-size: 15px; color: var(--ink-muted); }
@media (max-width: 820px) { .checklist { grid-template-columns: 1fr; } }

/* Contact */
.contact .wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-12); align-items: start; }
.photo--colorado { aspect-ratio: 16 / 9; background-image: url("../images/colorado.jpg"); margin-bottom: var(--space-6); }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.hours th { font-weight: 600; color: var(--ink); }
.hours td { color: var(--ink-muted); text-align: right; }
.contact-lines { display: grid; gap: var(--space-2); margin-top: var(--space-6); }
.contact-lines a { font-weight: 600; }
@media (max-width: 880px) { .contact .wrap { grid-template-columns: 1fr; } }

/* Forms */
.form { display: grid; gap: var(--space-6); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-8); }
@media (max-width: 600px) { .form { padding: var(--space-6) var(--space-4); } }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: var(--space-1); }
.field label, .fieldset legend {
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted);
}
.field input, .field textarea {
  width: 100%; font: 400 17px/1.4 var(--sans); color: var(--ink);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: var(--focus); }
.fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-4); }
@media (max-width: 520px) { .checks { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: var(--space-3); min-height: 32px; font-size: 16px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--teal); margin: 0; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.form-note { font-size: 14px; color: var(--ink-muted); }
.form-status { font-size: 15px; font-weight: 600; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* CTA band */
.cta { background: var(--harbor); color: #fff; position: relative; overflow: hidden; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-8); padding-block: var(--space-16); position: relative; z-index: 1; }
.cta h2 { color: #fff; }
.cta p { color: #d6e6ee; max-width: 56ch; margin-top: var(--space-3); }
.cta .arcs { width: 520px; right: -120px; top: -140px; opacity: .9; }
@media (max-width: 760px) { .cta .arcs { width: 300px; right: -150px; top: auto; bottom: -120px; opacity: .5; } }

/* Footer */
.site-footer { background: var(--navy); color: #d6e6ee; padding-block: var(--space-16) var(--space-8); }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: var(--space-12); }
.footer-grid h3 { color: #fff; font-size: 19px; margin-bottom: var(--space-3); }
.footer-logo { width: 200px; margin-bottom: var(--space-4); }
.footer-links { display: grid; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.signup { display: flex; gap: var(--space-2); margin-top: var(--space-3); }
.signup input {
  flex: 1; min-width: 0; font: 400 16px var(--sans); padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid #8faec4; background: #0b2447; color: #fff;
}
.signup input::placeholder { color: #9fb6c8; }
.signup .btn { min-height: 46px; }
.fine { font-size: 13px; color: #b9ccd9; margin-top: var(--space-2); }
.footer-base { border-top: 1px solid #2e5a7a; margin-top: var(--space-12); padding-top: var(--space-6); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); font-size: 14px; color: #b9ccd9; }
.site-footer :focus-visible { box-shadow: 0 0 0 2px var(--navy), 0 0 0 4px var(--aqua); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); } }

/* Simple content pages */
.page-head { padding-block: var(--space-16) var(--space-8); }
.prose { max-width: 70ch; display: grid; gap: var(--space-4); }
.prose h2 { font-size: 26px; margin-top: var(--space-6); }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: var(--space-2); }
.embed-frame { width: 100%; min-height: 1200px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.intake-options { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-top: var(--space-8); }
.intake-options > div { border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); display: grid; gap: var(--space-3); align-content: start; background: #fff; }
@media (max-width: 760px) { .intake-options { grid-template-columns: 1fr; } }

/* Square booking widget */
.booking-embed { min-height: 640px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4); }
.booking-embed iframe { width: 100% !important; max-width: 100%; border: 0; }
@media (max-width: 600px) { .booking-embed { padding: 0; border: 0; } }

/* ---- Updates, Sept 2026 ---- */
[hidden] { display: none !important; }

/* Book button next to Menu on phones and tablets */
.header-book { display: none; }
@media (max-width: 880px) {
  .site-header .wrap { gap: var(--space-3); }
  .header-book { display: inline-flex; margin-left: auto; min-height: 44px; padding: 0 var(--space-4); font-size: 15px; }
}
@media (max-width: 360px) { .brand img { width: 136px; } }

/* About: headshot only */
.about-visual { grid-template-columns: 1fr; max-width: 400px; }
.photo--headshot { transform: none; }

/* Payment and rescheduling line under services */
.service-policy { margin-top: var(--space-4); font-size: 15px; color: var(--ink-muted); max-width: 760px; }

/* Footer booking button */
.footer-cta { margin-top: var(--space-4); }

/* Larger tap targets for small links */
.footer-links { gap: 0; }
.footer-links a, .footer-base a, .contact-lines a, .checklist a, .small-links a { display: inline-block; padding-block: 10px; }
.footer-links a { padding-block: 8px; }

/* Page not found */
.not-found { display: grid; gap: var(--space-4); max-width: 640px; }
.not-found .hero-actions { margin-top: var(--space-2); }
.site-footer .btn--light { color: var(--navy); }
.site-footer .btn--light:hover { color: var(--navy); }
@media (max-width: 880px) { .about-visual { max-width: 340px; } }
