/* ============================================
   RAYRO TECH — design tokens
   Palette: warm linen paper + deep pine teal + lamp amber
   Type: Fraunces (display, warm serif) / Atkinson Hyperlegible (body, built for readability)
         / IBM Plex Mono (small technical labels)
   ============================================ */

:root {
  --bg: #EDE4D3;
  --bg-card: #F7F2E7;
  --bg-card-line: #DCCFB2;
  --ink: #2A2318;
  --ink-soft: #57503F;
  --teal-deep: #17302F;
  --teal-mid: #2F5652;
  --amber: #E8A33D;
  --amber-deep: #B97418;
  --brick: #B0532F;
  --sage: #6E8A63;
  --cream-line: #D8CBB0;
  --focus-ring: #17302F;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --max-width: 1180px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 112.5%; /* base ~18px for easier reading */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--teal-deep);
  line-height: 1.15;
  margin: 0 0 0.5em 0;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1em 0; }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  color: var(--teal-mid);
  font-weight: 600;
}

/* Focus visibility — never remove this */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.nav-link:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal-deep);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  z-index: 999;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ============ TOP BAR (always-visible phone) ============ */
.topbar {
  background: var(--teal-deep);
  color: #F1E9D8;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
.topbar-msg { letter-spacing: 0.02em; }
.topbar a.phone-link {
  color: var(--amber);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
}
.topbar a.phone-link:hover,
.topbar a.phone-link:focus-visible { text-decoration: underline; }

/* ============ HEADER / NAV ============ */
header.site-header {
  background: var(--bg);
  border-bottom: 3px solid var(--teal-deep);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--teal-deep);
  line-height: 1.1;
}
.brand-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--brick);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lamp-icon { width: 46px; height: 46px; flex-shrink: 0; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--teal-deep);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-link:hover { background: var(--bg-card-line); }
.nav-link[aria-current="page"] {
  background: var(--teal-deep);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: var(--teal-deep);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  nav.main-nav {
    display: none;
    width: 100%;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul {
    flex-direction: column;
    padding-bottom: 16px;
  }
  .nav-link { display: block; text-align: left; }
  .nav-row { flex-wrap: wrap; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 16px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--amber);
  color: var(--teal-deep);
  box-shadow: 0 6px 0 var(--amber-deep);
}
.btn-primary:hover { background: #EEB35C; }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--amber-deep); }

.btn-outline {
  background: transparent;
  border-color: var(--teal-deep);
  color: var(--teal-deep);
}
.btn-outline:hover { background: var(--teal-deep); color: #fff; }

.btn-block { width: 100%; justify-content: center; }

/* ============ HERO ============ */
.hero {
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
}
.hero h1 { margin-bottom: 0.4em; }
.hero .lede {
  font-size: 1.3rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}
.hero-note {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--teal-mid);
}

.hero-art { width: 100%; height: auto; }

/* ============ SECTION SHELLS ============ */
section { padding: 56px 0; }
.section-dark {
  background: var(--teal-deep);
  color: #F1E9D8;
}
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--amber); }

.section-head {
  max-width: 62ch;
  margin-bottom: 40px;
}

/* ============ SERVICE CARDS ============ */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card .glow-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 6px rgba(232,163,61,0.25);
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); margin-bottom: 0; }

/* ============ STEPS (real sequence — numbered) ============ */
.steps {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, 1fr);
  counter-reset: step;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding-left: 64px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--teal-deep);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { color: #fff; margin-bottom: 6px; }
.step p { color: #D8CFB9; margin-bottom: 0; }

/* ============ RATES ============ */
.rates-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 980px) { .rates-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rates-grid { grid-template-columns: 1fr; } }

.rate-card {
  background: var(--bg-card);
  border: 2px solid var(--bg-card-line);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rate-card.featured {
  border-color: var(--amber);
  background: #FBF1DE;
}
.rate-mode {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brick);
  font-weight: 700;
}
.rate-price {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--teal-deep);
  font-weight: 700;
}
.rate-price span {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.rate-card p.rate-desc { color: var(--ink-soft); font-size: 1rem; margin: 0; }
.rates-footnote {
  margin-top: 24px;
  font-size: 1rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ============ CONTACT METHOD LIST ============ */
.methods {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) { .methods { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .methods { grid-template-columns: 1fr; } }
.method {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-card-line);
}
.method svg { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--brick); }
.method h3 { font-size: 1.15rem; margin-bottom: 4px; }
.method p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

/* ============ FORM ============ */
.form-shell {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .form-shell { grid-template-columns: 1fr; } }

form.help-form {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-line);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.field { margin-bottom: 24px; }
.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 1.08rem;
  color: var(--teal-deep);
}
.field .hint {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 6px;
}
input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.1rem;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--bg-card-line);
  background: #fff;
  color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--teal-deep);
}
textarea { resize: vertical; min-height: 120px; }

fieldset {
  border: 2px solid var(--bg-card-line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 0;
}
legend {
  font-weight: 700;
  color: var(--teal-deep);
  padding: 0 8px;
  font-size: 1.08rem;
}
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
}
.radio-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
}
.radio-row input { width: 22px; height: 22px; accent-color: var(--teal-deep); }

.form-success {
  display: none;
  background: #E7EFE2;
  border: 2px solid var(--sage);
  color: #2C3B26;
  padding: 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-weight: 600;
}
.form-success.visible { display: block; }

.sidebar-card {
  background: var(--teal-deep);
  color: #F1E9D8;
  border-radius: var(--radius-lg);
  padding: 30px;
}
.sidebar-card h3 { color: #fff; }
.sidebar-card a.phone-big {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--amber);
  text-decoration: none;
  margin: 12px 0;
}
.sidebar-card p { color: #D8CFB9; }
.hours-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 0.98rem;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* ============ ABOUT PAGE ============ */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) { .about-hero { grid-template-columns: 1fr; } }

.values-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 820px) { .values-grid { grid-template-columns: 1fr; } }

.team-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 820px) { .team-grid { grid-template-columns: 1fr; } }
.team-card { text-align: center; }
.team-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--teal-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  border: 4px solid var(--amber);
}
.team-card h3 { margin-bottom: 2px; }
.team-role {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--brick);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

blockquote.pull {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--teal-deep);
  border-left: 6px solid var(--amber);
  padding-left: 24px;
  margin: 40px 0;
}
blockquote.pull cite {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-soft);
  font-style: normal;
  margin-top: 10px;
}

/* ============ FOOTER ============ */
footer.site-footer {
  background: var(--teal-deep);
  color: #D8CFB9;
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { text-decoration: none; color: #D8CFB9; }
.footer-grid a:hover, .footer-grid a:focus-visible { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============ Utility ============ */
.text-center { text-align: center; }
.mt-lg { margin-top: 40px; }
