/* ============================================================
   LEO BUILD CO. — Ellery-inspired layout, MintMe brand
   Palette: bone #F2EDE3 / charcoal #1A1A1A / walnut #6B4423 / sage #6B8E5A
   Type: Fraunces (serif headlines) + Inter (body)
   ============================================================ */

:root {
  --bone: #F2EDE3;
  --bone-2: #E9E2D3;
  --ink: #1A1A1A;
  --ink-2: #3A3A3A;
  --muted: #6B6B6B;
  --line: rgba(26, 26, 26, 0.12);
  --walnut: #6B4423;
  --walnut-2: #8C5A30;
  --sage: #6B8E5A;
  --cream: #F5F2EB;
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1240px;
  --radius: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bone);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 36px;
  background: rgba(242, 237, 227, 0.96);
  backdrop-filter: saturate(120%) blur(10px);
  -webkit-backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: max(16px, env(safe-area-inset-top));
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand-mark,
.brand-mark-svg {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: transparent;
  color: var(--bone);
  border-radius: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
}

.brand-mark-svg { width: 36px; height: 36px; }

.brand-name {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.18em;
  font-weight: 600;
}

.brand-co { color: var(--walnut); }

.primary-nav { display: flex; gap: 28px; margin-left: 20px; }

.primary-nav a {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  padding: 6px 0;
  transition: color 0.15s ease;
}

.primary-nav a:hover { color: var(--walnut); }

.cta-ghost, .cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  min-height: 40px;
}

.cta-ghost {
  margin-left: auto;
  color: var(--ink);
  border: 1px solid var(--ink);
  background: transparent;
}

.header-phone { margin-left: auto; }
.cta-ghost:hover { background: var(--ink); color: var(--bone); }

.cta-primary {
  background: var(--ink);
  color: var(--bone);
  border: 1px solid var(--ink);
}

.cta-primary:hover { background: var(--walnut); border-color: var(--walnut); }

.cta-primary.lg, .cta-ghost.lg {
  padding: 16px 28px;
  font-size: 15px;
  min-height: 52px;
}

.cta-primary.invert { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.cta-primary.invert:hover { background: var(--walnut); color: var(--bone); border-color: var(--walnut); }

.cta-ghost.light { color: var(--bone); border-color: var(--bone); }
.cta-ghost.light:hover { background: var(--bone); color: var(--ink); }

.cta-primary.inline,
.cta-ghost.inline {
  display: inline-flex;
  margin-left: 0;
  margin-top: 8px;
}

/* ---------- Full-bleed Hero (Ellery pattern) ---------- */

.hero-bleed {
  position: relative;
  min-height: clamp(560px, 78vh, 880px);
  overflow: hidden;
  color: var(--bone);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 80px 40px 40px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bleed::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(26, 26, 26, 0.45) 0%,
    rgba(26, 26, 26, 0.18) 35%,
    rgba(26, 26, 26, 0.18) 55%,
    rgba(26, 26, 26, 0.85) 100%);
  z-index: 1;
}

.hero-bleed-content,
.hero-bleed-trust {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}

.hero-bleed-content { padding-bottom: 48px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 600;
  color: var(--walnut);
  margin-bottom: 22px;
}

.eyebrow-light { color: rgba(245, 242, 235, 0.85); }

.hero-bleed h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  color: var(--bone);
}

.hero-bleed h1 em {
  font-style: italic;
  color: rgba(245, 242, 235, 0.75);
  font-weight: 500;
}

.hero-bleed-sub {
  font-size: 18px;
  color: rgba(245, 242, 235, 0.88);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-bleed-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-bleed-trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 242, 235, 0.18);
}

.hero-bleed-trust span {
  font-size: 13px;
  color: rgba(245, 242, 235, 0.75);
}

.hero-bleed-trust strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--bone);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

/* ---------- Section heads ---------- */

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.section-sub { font-size: 17px; color: var(--ink-2); margin-top: 14px; }

.section-foot {
  text-align: center;
  margin-top: 56px;
}

section { padding: 96px 36px; }

/* ---------- Service block (editorial, not grid) ---------- */

.service-block { background: var(--bone-2); }

.service-block-inner {
  max-width: 980px;
  margin: 0 auto;
}

.service-block h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin-bottom: 28px;
}

.lead {
  font-size: 19px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 720px;
}

.service-points {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 56px;
  margin-bottom: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.service-points li { padding-top: 4px; }

.service-points h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--ink);
}

.service-points p { font-size: 15px; color: var(--ink-2); }

/* ---------- Meet Leo (avatar section) ---------- */

.meet-leo { background: var(--ink); color: var(--bone); }

.meet-leo-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 64px;
  align-items: center;
}

.meet-leo .eyebrow { color: var(--sage); }
.meet-leo h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
  color: var(--bone);
}

.meet-leo p {
  font-size: 17px;
  color: rgba(245, 242, 235, 0.78);
  margin-bottom: 24px;
}

.meet-leo .cta-ghost {
  color: var(--bone);
  border-color: var(--bone);
  margin-left: 0;
}

.meet-leo .cta-ghost:hover { background: var(--bone); color: var(--ink); }

.avatar-frame {
  aspect-ratio: 9 / 16;
  background: #0b0b0e;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6);
  position: relative;
}

.avatar-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(107, 142, 90, 0.18), transparent 60%),
    radial-gradient(ellipse at 50% 65%, rgba(107, 68, 35, 0.18), transparent 60%),
    #0b0b0e;
}

.play-button {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--bone);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 28px;
  padding-left: 7px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.avatar-label {
  text-align: center;
  color: rgba(245, 242, 235, 0.8);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.4;
  padding: 0 28px;
}

/* ---------- Gallery (Ellery pattern) ---------- */

.gallery { background: var(--bone); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.gallery-grid figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bone-2);
  aspect-ratio: 4 / 5;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-grid figure:hover img { transform: scale(1.04); }

.gallery-grid figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 18px 14px;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--bone);
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

/* ---------- Reviews carousel (Ellery pattern) ---------- */

.reviews { background: var(--bone-2); }

.reviews-rail {
  display: flex;
  gap: 20px;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 36px 24px;
  scrollbar-width: thin;
}

.reviews-rail::-webkit-scrollbar { height: 6px; }
.reviews-rail::-webkit-scrollbar-thumb { background: var(--walnut); border-radius: 3px; }

.review-card {
  flex: 0 0 360px;
  max-width: 360px;
  background: var(--bone);
  padding: 28px 26px;
  border-radius: var(--radius);
  border-left: 3px solid var(--walnut);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.stars {
  font-size: 16px;
  letter-spacing: 0.16em;
  color: var(--walnut);
  margin-bottom: 14px;
}

.review-body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 22px;
}

.review-card footer { margin-top: auto; }

.review-card cite {
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  display: block;
}

.review-card footer span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.reviews-foot {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 24px;
}

/* ---------- Service areas (Ellery pattern) ---------- */

.areas { background: var(--bone); }

.areas-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.areas h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}

.areas .lead { margin-left: auto; margin-right: auto; margin-bottom: 36px; }

.area-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: center;
}

.area-chips li {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: var(--bone-2);
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

/* ---------- Big pre-footer CTA (Ellery pattern) ---------- */

.big-cta {
  background: var(--ink);
  color: var(--bone);
  text-align: center;
  padding: 120px 36px 140px;
}

.big-cta-inner { max-width: 760px; margin: 0 auto; }

.big-cta h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 5.2vw, 68px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  color: var(--bone);
}

.big-cta h2 em { font-style: italic; color: var(--sage); font-weight: 500; }

.big-cta > .big-cta-inner > p {
  font-size: 19px;
  color: rgba(245, 242, 235, 0.78);
  max-width: 560px;
  margin: 0 auto 40px;
}

.big-cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.big-cta-fineprint {
  font-size: 14px;
  color: rgba(245, 242, 235, 0.6);
}

.big-cta-fineprint a {
  color: var(--sage);
  border-bottom: 1px solid currentColor;
  cursor: pointer;
}

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

.site-footer {
  padding: 64px 36px 32px;
  background: var(--bone);
  border-top: 1px solid var(--line);
}

.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .brand { margin-bottom: 14px; }

.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 18px;
}

.footer-contact a {
  color: var(--walnut);
  border-bottom: 1px solid transparent;
}
.footer-contact a:hover { border-bottom-color: currentColor; }

.site-footer h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  margin-bottom: 14px;
  font-weight: 700;
}

.site-footer p { font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--walnut); }

.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-bottom a { color: var(--walnut); font-weight: 600; }

/* ---------- Sticky mobile CTA ---------- */

.mobile-sticky-cta {
  display: none;
  position: fixed;
  left: 14px; right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--bone);
  padding: 16px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  z-index: 60;
  box-shadow: 0 16px 40px -10px rgba(26, 26, 26, 0.35);
  min-height: 52px;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .site-header { gap: 12px; padding: 12px 18px; flex-wrap: wrap; }
  .primary-nav { display: none; }
  .header-phone { display: none; }
  .site-header .cta-primary { margin-left: auto; }

  .hero-bleed { padding: 60px 22px 32px; min-height: 70vh; }
  .hero-bleed h1 { font-size: clamp(40px, 11vw, 72px); }
  .hero-bleed-sub { font-size: 16px; }
  .hero-bleed-trust { grid-template-columns: 1fr 1fr; gap: 12px 20px; }
  .hero-bleed-trust strong { font-size: 18px; }

  section { padding: 64px 22px; }

  .service-points { grid-template-columns: 1fr; gap: 24px; }

  .meet-leo-inner { grid-template-columns: 1fr; gap: 36px; }
  .meet-leo-video { max-width: 320px; margin: 0 auto; width: 100%; }

  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery-grid figcaption { font-size: 12px; padding: 24px 14px 12px; }

  .reviews-rail { padding: 8px 22px 24px; }
  .review-card { flex: 0 0 86vw; max-width: 86vw; }

  .big-cta { padding: 80px 22px 100px; }
  .big-cta-actions { flex-direction: column; }
  .big-cta-actions a { width: 100%; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .footer-brand { grid-column: 1 / -1; }

  .mobile-sticky-cta { display: block; }
  body { padding-bottom: 100px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 10px; }
  .gallery-grid figure { aspect-ratio: 4 / 3; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-bleed-trust { grid-template-columns: 1fr 1fr; }
}
