/* Isaac Roth Solar — site layout
   Layout-only; tokens come from ../colors_and_type.css */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

/* ===== Container ===== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}
.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== Section-rule (numbered hairline label) ===== */
.s-rule {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 22px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--cream-200);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone-500);
}
.s-rule .num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--clay-500);
  text-transform: none;
  line-height: 1;
}
.s-rule.on-dark { border-bottom-color: rgba(245,239,227,0.18); color: var(--moss-200); }
.s-rule.on-dark .num { color: var(--sun-300); }

/* ===== Nav ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #FFFFFF;
  border-bottom: 1px solid transparent;
  transition: background 200ms var(--ease-out), border-color 200ms var(--ease-out), backdrop-filter 200ms var(--ease-out);
}
.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  border-bottom-color: var(--cream-200);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: 1180px;
  margin: 0 auto;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--stone-700);
}
.nav-brand img { width: 44px; height: 44px; transition: transform 400ms var(--ease-bounce); }
.nav-brand:hover img { transform: rotate(20deg) scale(1.05); }
.nav-brand .nm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0;
  line-height: 1;
  color: var(--stone-900);
  text-transform: uppercase;
}
.nav-brand .nm em {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-style: italic;
  color: var(--clay-500);
  text-transform: none;
  letter-spacing: -0.015em;
}
.nav-brand .sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--stone-500);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--stone-700);
  text-decoration: none;
  transition: color 120ms var(--ease-out);
  position: relative;
}
.nav-links a:hover { color: var(--moss-700); }
.nav-links a.active { color: var(--moss-700); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--clay-400);
  border-radius: 2px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms var(--ease-out), background 120ms var(--ease-out), box-shadow 200ms var(--ease-out), color 120ms var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--moss-500);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--moss-600); color: #FFFFFF; transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Nav book button — bolder, more emphatic than other primary buttons */
.book-btn { font-weight: 800 !important; color: #FFFFFF !important; letter-spacing: 0.01em; }
.btn-primary:active { transform: scale(0.98); box-shadow: var(--shadow-xs); }

.btn-sun {
  background: var(--sun-400);
  color: var(--moss-900);
  box-shadow: var(--shadow-sun);
}
.btn-sun:hover { background: var(--sun-500); transform: translateY(-2px); }
.btn-sun:active { transform: scale(0.98); }

.btn-ghost {
  background: transparent;
  color: var(--stone-700);
  border: 1.5px solid var(--cream-300);
  padding: 12.5px 22px;
}
.btn-ghost:hover { background: var(--cream-100); border-color: var(--moss-300); color: var(--moss-700); }

.btn-light-on-dark {
  background: var(--cream-50);
  color: var(--moss-700);
}
.btn-light-on-dark:hover { background: white; transform: translateY(-2px); box-shadow: 0 0 24px rgba(255,185,39,0.35); }

.btn-lg { padding: 17px 28px; font-size: 16px; border-radius: 14px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--moss-700);
  color: var(--cream-50);
  padding: 88px 0 96px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 60% at 78% 30%, rgba(255, 185, 39, 0.22) 0%, transparent 70%),
              radial-gradient(40% 50% at 10% 90%, rgba(255, 185, 39, 0.10) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss-200);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--sun-300);
  letter-spacing: -0.02em;
  text-transform: none;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 6.4vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: var(--cream-50);
  text-transform: uppercase;
  text-wrap: balance;
}
.hero h1 em {
  font-family: 'Archivo', sans-serif;
  font-style: italic;
  font-weight: 900;
  color: var(--sun-300);
  text-transform: none;
  letter-spacing: -0.025em;
}
.hero .lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--moss-100);
  max-width: 52ch;
  margin-top: 22px;
  text-wrap: pretty;
}
.hero-actions { display: flex; gap: 14px; align-items: center; margin-top: 36px; flex-wrap: wrap; }

.hero-stat-row {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(245,239,227,0.18);
}
.hero-stat-row > div { display: flex; flex-direction: column; gap: 4px; }
.hero-stat-row .num {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: 34px;
  color: var(--sun-300);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-stat-row .lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--moss-200);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-photo {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55), 0 0 80px rgba(255,185,39,0.18);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo .photo-meta {
  position: absolute;
  left: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  background: rgba(15, 31, 12, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cream-50);
  letter-spacing: 0.04em;
}
.hero-photo .photo-meta::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--sun-300);
  border-radius: 999px;
  box-shadow: 0 0 12px var(--sun-400);
}
.hero-photo .floating-card {
  position: absolute;
  right: -22px;
  bottom: 60px;
  background: var(--cream-50);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 240px;
}
.hero-photo .floating-card img { width: 36px; height: 36px; }
.hero-photo .floating-card .num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  color: var(--moss-700);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-photo .floating-card .lbl {
  font-size: 11px;
  color: var(--stone-600);
  font-weight: 500;
  margin-top: 2px;
}

/* ===== Sections ===== */
.section { padding: 104px 0; }
.section.tight { padding: 72px 0; }
.section.cream { background: var(--cream-100); }
.section.dark { background: var(--moss-700); color: var(--cream-50); }
.section.dark h1, .section.dark h2 { color: var(--cream-50); }
.section.dark h2 em { color: var(--sun-300); }

.section-head { max-width: 740px; margin-bottom: 56px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 4.4vw, 3.75rem);
  line-height: 0.98;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  text-wrap: balance;
}
.section-head h2 em {
  font-family: 'Archivo', sans-serif;
  font-style: italic;
  font-weight: 900;
  color: var(--clay-500);
  text-transform: none;
  letter-spacing: -0.02em;
}
.section-head .lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--stone-600);
  margin-top: 18px;
  text-wrap: pretty;
}
.section.dark .section-head .lead { color: var(--moss-100); }

/* ===== Process steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  background: #FFFFFF;
  border: 1px solid var(--cream-200);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step .step-num {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-style: italic;
  font-size: 52px;
  color: var(--clay-400);
  line-height: 1;
  letter-spacing: -0.04em;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--stone-900);
  text-transform: uppercase;
}
.step p { color: var(--stone-600); font-size: 15px; line-height: 1.55; }
.step .step-pill {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss-700);
  background: var(--moss-100);
  padding: 5px 11px;
  border-radius: 999px;
  margin-top: auto;
}

/* ===== Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery > .lead { grid-column: 1 / -1; }
.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.gallery-item.wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.gallery-item.tall { grid-row: span 2; aspect-ratio: 1 / 2; }
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--cream-200), var(--cream-100));
  display: flex; align-items: center; justify-content: center;
  color: var(--stone-500);
  font-size: 13px;
  font-style: italic;
  text-align: center;
  padding: 16px;
}
.gallery-item .meta {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: rgba(251,247,240,0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--stone-700);
  font-weight: 600;
}
.gallery-item .meta .kw {
  font-size: 11px;
  font-weight: 700;
  color: var(--moss-700);
  background: var(--moss-100);
  padding: 2px 8px;
  border-radius: 999px;
}

/* ===== Reviews ===== */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.review {
  background: #FFFFFF;
  border: 1px solid var(--cream-200);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review .stars { display: flex; gap: 2px; color: var(--sun-500); font-size: 18px; }
.review .body {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--stone-700);
  text-wrap: balance;
}
.review .body em { font-family: 'Archivo', sans-serif; font-style: italic; font-weight: 700; color: var(--moss-700); }
.review .who {
  display: flex; align-items: center; gap: 12px;
  padding-top: 14px;
  border-top: 1px dashed var(--cream-200);
  margin-top: auto;
}
.review .who .avatar {
  width: 42px; height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sun-300), var(--clay-400));
  display: flex; align-items: center; justify-content: center;
  color: var(--cream-50);
  font-weight: 700;
  font-size: 17px;
}
.review .who .nm { font-weight: 600; color: var(--stone-700); font-size: 14px; }
.review .who .mt { font-size: 12px; color: var(--stone-500); }

/* ===== Book CTA band ===== */
.book-band {
  position: relative;
  background: var(--moss-700);
  color: var(--cream-50);
  padding: 96px 0;
  overflow: hidden;
}
.book-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(40% 60% at 80% 50%, rgba(255,185,39,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.book-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
}
.book-band h2 em { color: var(--sun-300); }
.book-card {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 32px;
  color: var(--stone-700);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5), 0 0 80px rgba(255,185,39,0.15);
}
.book-card .availability {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--leaf-500);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.book-card .availability::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--leaf-400);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(61, 160, 83, 0.18);
}
.book-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--stone-900);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.book-card h3 em {
  font-family: 'Archivo', sans-serif;
  font-style: italic;
  font-weight: 900;
  color: var(--clay-500);
  text-transform: none;
  letter-spacing: -0.02em;
}
.book-card p { color: var(--stone-600); font-size: 14px; line-height: 1.55; margin-bottom: 18px; }
.book-card .slots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.book-card .slot {
  background: var(--cream-100);
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--stone-700);
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all 120ms var(--ease-out);
}
.book-card .slot:hover { border-color: var(--moss-300); background: white; }
.book-card .slot.selected { background: white; border-color: var(--moss-500); box-shadow: var(--shadow-glow); }
.book-card .slot .day { font-size: 11px; color: var(--stone-500); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.book-card .slot .time { font-family: var(--font-heavy); font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }

/* ===== Footer ===== */
.site-footer {
  background: var(--moss-900);
  color: var(--moss-200);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
}
.site-footer h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-200);
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer ul a, .site-footer ul li { color: var(--moss-200); font-size: 14px; text-decoration: none; }
.site-footer ul a:hover { color: var(--sun-300); }
.site-footer .copyline {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(245,239,227,0.12);
  font-size: 12px;
  color: var(--moss-300);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ===== About — portrait section ===== */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-hero-photo {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}
.about-hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.bio-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--stone-700);
}
.bio-cols p { margin: 0 0 16px; }
.bio-cols em { color: var(--moss-700); font-style: italic; }

/* ===== Services list ===== */
.svc-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--cream-200);
}
.svc-row {
  display: grid;
  grid-template-columns: 80px 1.4fr 1fr 140px;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid var(--cream-200);
  align-items: start;
  transition: background 160ms var(--ease-out);
  cursor: pointer;
}
.svc-row:hover { background: rgba(255,255,255,0.4); }
.svc-row .svc-num {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-style: italic;
  font-size: 42px;
  color: var(--clay-400);
  line-height: 1;
  letter-spacing: -0.035em;
}
.svc-row .svc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.04;
  letter-spacing: -0.005em;
  color: var(--stone-900);
  text-transform: uppercase;
  text-wrap: balance;
}
.svc-row .svc-title em {
  font-family: 'Archivo', sans-serif;
  font-style: italic;
  font-weight: 800;
  color: var(--moss-700);
  text-transform: none;
  letter-spacing: -0.015em;
}
.svc-row .svc-desc {
  font-size: 15px;
  color: var(--stone-600);
  line-height: 1.55;
}
.svc-row .svc-meta {
  text-align: right;
  font-size: 12px;
  color: var(--stone-500);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.svc-row .svc-meta strong {
  display: block;
  color: var(--moss-700);
  font-family: var(--font-heavy);
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 800;
  text-transform: none;
  margin-bottom: 2px;
}

/* ===== Timeline (about) ===== */
.timeline {
  border-left: 2px solid var(--cream-200);
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.tl-item { position: relative; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -42px;
  top: 6px;
  width: 18px; height: 18px;
  background: var(--cream-50);
  border: 3px solid var(--moss-500);
  border-radius: 999px;
}
.tl-year {
  font-family: var(--font-heavy);
  font-style: italic;
  font-size: 18px;
  color: var(--clay-500);
  font-weight: 900;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.tl-item h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--stone-900);
  margin: 0 0 6px;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  line-height: 1.05;
}
.tl-item p { font-size: 15px; color: var(--stone-600); line-height: 1.55; }

/* ===== FAQ (services) ===== */
.faq { display: flex; flex-direction: column; }
.faq-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--cream-200);
}
.faq-q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--stone-900);
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
}
.faq-q .toggle {
  font-family: var(--font-heavy);
  font-style: normal;
  font-size: 28px;
  color: var(--clay-400);
  font-weight: 900;
  transition: transform 200ms var(--ease-out);
}
.faq-item.open .faq-q .toggle { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms var(--ease-out), padding-top 200ms;
  color: var(--stone-600);
  font-size: 15px;
  line-height: 1.65;
}
.faq-item.open .faq-a { max-height: 500px; padding-top: 12px; }

/* ===== Floating CTA (mobile) ===== */
.float-book {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: none;
}

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .hero-grid, .about-hero, .book-grid, .steps, .reviews, .footer-grid { grid-template-columns: 1fr !important; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-links .book-btn { display: inline-flex; }
  .float-book { display: block; }
  .svc-row { grid-template-columns: 60px 1fr; }
  .svc-row .svc-desc, .svc-row .svc-meta { grid-column: 2; text-align: left; }
  .bio-cols { grid-template-columns: 1fr; }
}
