/* ==============================================================
   Lume C. Co: styles
   Written "mobile-first": the base styles are for phones, and the
   @media (min-width: …) blocks further down add layout for bigger screens.
   ============================================================== */

/* ---------- 1. Design tokens (change colors/fonts here) ---------- */
:root {
  /* Brand colors: beige, brown and white (from the business card) */
  --cream: #F3EBE0;           /* main beige background */
  --beige: #E9DCC9;           /* deeper beige for alternating sections */
  --sand: #D8C4A8;            /* borders and lines */
  --paper: #FFFDF9;           /* near-white cards */
  --white: #FFFFFF;
  --gray: #A8A6A3;            /* the business card's gray */
  --ink: #3A2F27;             /* main text: very dark warm brown */
  --ink-soft: #5E5249;        /* secondary text */
  --caramel: #B08A62;         /* light brown: decorative accents only */
  --brown: #7B5534;           /* brand brown: buttons, links, icons */
  --brown-dark: #5E3F24;      /* hover state */
  --brown-tint: #EFE3D3;      /* soft brown behind icons */
  --espresso: #3B2B20;        /* footer */

  /* Type */
  --font-logo: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing & shape */
  --radius: 14px;
  --radius-small: 8px;
  --shadow: 0 1px 2px rgba(58, 47, 39, .05), 0 8px 24px rgba(58, 47, 39, .08);
  --container: 1160px;
  --header-h: 80px;
}

/* ---------- 2. Base / reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;                    /* smooth-scroll for nav links */
  scroll-padding-top: calc(var(--header-h) + 8px); /* so headings aren't hidden under the sticky header */
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

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

img { max-width: 100%; display: block; }
a { color: var(--brown); text-underline-offset: 3px; }
a:hover { color: var(--brown-dark); }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: 1.45rem; }
p  { margin: 0 0 1em; }

/* Visible focus ring for keyboard users */
:focus-visible {
  outline: 3px solid var(--brown);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: var(--radius-small);
}
.skip-link:focus { top: 1rem; color: var(--white); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px;                      /* comfortable tap target */
  padding: .8rem 1.6rem;
  background: var(--brown);
  color: var(--white);
  border: 1.5px solid var(--brown);
  border-radius: 999px;
  font: 600 1rem/1 var(--font-sans);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--brown-dark); border-color: var(--brown-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(94, 63, 36, .28); }
.btn-ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.75); color: var(--white); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn-small { min-height: 40px; padding: .55rem 1.15rem; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- 4. Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 235, 224, .94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-color: rgba(150,120,90,.22); box-shadow: 0 4px 20px rgba(58,47,39,.06); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 60px; width: auto; display: block; }
.brand-house { fill: none; stroke: var(--brown); stroke-width: 12; stroke-linejoin: miter; }
.brand-name { font-family: var(--font-logo); font-size: 88px; font-weight: 500; fill: var(--ink); }

/* Hamburger button (phones) */
.nav-toggle {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; margin-right: -8px;
  background: none; border: 0; cursor: pointer; color: var(--ink);
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after  { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { transform: translateY(-7px) rotate(-45deg); }

/* Phone menu: drops down below the header */
.site-nav {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--cream);
  border-bottom: 1px solid rgba(150,120,90,.22);
  box-shadow: 0 16px 30px rgba(58,47,39,.08);
  display: none;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: .5rem 1.25rem 1.25rem; }
.site-nav li a:not(.btn) {
  display: block; padding: .85rem 0;
  color: var(--ink); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid rgba(150,120,90,.18);
}
.site-nav li a:not(.btn):hover { color: var(--brown); }
.site-nav .btn { margin-top: 1rem; width: 100%; }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex; align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(42,30,20,.35) 0%, rgba(42,30,20,.55) 45%, rgba(42,30,20,.85) 100%);
}
@media (min-width: 900px) {
  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(42,30,20,.8) 0%, rgba(42,30,20,.55) 45%, rgba(42,30,20,.08) 85%),
      linear-gradient(180deg, rgba(42,30,20,.1) 60%, rgba(42,30,20,.35) 100%);
  }
}
.hero-content { padding-top: 7rem; padding-bottom: 4.5rem; }
.hero h1 { color: var(--white); max-width: 15ch; font-weight: 500; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero-sub { font-size: 1.1rem; max-width: 36rem; color: rgba(255,255,255,.92); }
.hero .eyebrow { color: #EAD7BD; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- 6. Sections (shared) ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--beige); }
.eyebrow {
  font-family: var(--font-sans);
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brown);
  margin-bottom: .9rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head p:last-child { color: var(--ink-soft); font-size: 1.08rem; }
.section-cta { margin: 2.25rem 0 0; color: var(--ink-soft); }
.lead { font-size: 1.12rem; color: var(--ink-soft); }

/* ---------- 7. Services ---------- */
.service-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
.service-card {
  background: var(--paper);
  border: 1px solid rgba(150,120,90,.18);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem;
  display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: start;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(123,85,52,.4); }
.service-icon {
  grid-row: span 2;
  width: 48px; height: 48px; padding: 11px;
  background: var(--brown-tint); color: var(--brown); border-radius: 12px;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.service-card h3 { font-size: 1.35rem; margin: .1rem 0 .25rem; }
.service-card p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

.service-card-cta {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1.25rem;
  background: var(--brown-tint); border-color: rgba(123,85,52,.3);
}
.service-card-cta:hover { transform: none; box-shadow: none; }
.service-card-cta p { color: var(--ink-soft); }

/* ---------- 8. Trust ---------- */
.trust { max-width: 46rem; text-align: center; }
.trust .lead { margin-left: auto; margin-right: auto; }
.badges { list-style: none; margin: 2.25rem auto 0; padding: 0; display: grid; gap: .85rem; grid-template-columns: 1fr 1fr; max-width: 40rem; text-align: left; }
.badge {
  display: flex; flex-direction: column; gap: .6rem;
  background: var(--paper);
  border: 1px solid rgba(150,120,90,.18);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.badge-icon { width: 30px; height: 30px; fill: none; stroke: var(--brown); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.badge strong { display: block; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; line-height: 1.1; }
.badge span { display: block; font-size: .86rem; color: var(--ink-soft); line-height: 1.4; margin-top: .2rem; }

/* ---------- 9. How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.step {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.4rem;
  border: 1px solid rgba(150,120,90,.18);
}
.step-num {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 1rem;
  border-radius: 50%;
  border: 1px solid var(--caramel);
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: var(--brown);
}
.step p { margin: 0; color: var(--ink-soft); }

/* ---------- 10. Gallery (used once real photos are added) ---------- */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-small); }

/* ---------- 11. Quote form ---------- */
.quote { background: var(--beige); }
.quote-inner { display: grid; gap: 2rem; align-items: start; }
.quote-tagline {
  margin: 1.5rem 0; padding-left: 1rem; border-left: 2px solid var(--caramel);
  font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; line-height: 1.3; color: var(--brown-dark);
}
.quote-call { margin: 0 0 .25rem; font-weight: 600; font-size: .92rem; color: var(--ink-soft); }
.quote-phones { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .8rem; margin: 0; }
.quote-phones a { color: var(--brown); font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; text-decoration-color: rgba(123,85,52,.35); }
.quote-phones a:hover { color: var(--brown-dark); }
.quote-phones .dot { color: var(--caramel); font-size: 1.6rem; line-height: 1; }

.form-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: 0 20px 50px rgba(58,47,39,.12);
}
.quote-form { display: grid; gap: 1.05rem; }
.field { display: grid; gap: .4rem; margin: 0; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; gap: 1.05rem; }
.field > label, .field legend { font-size: .9rem; font-weight: 600; color: var(--ink); padding: 0; }
.field legend { margin-bottom: .45rem; }

input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--font-sans);    /* 16px+ stops iPhones from zooming in */
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid #D8C4A8;
  border-radius: var(--radius-small);
  padding: .8rem .9rem;
  min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 120px; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E5249' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px;
  padding-right: 2.5rem;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brown); box-shadow: 0 0 0 3px rgba(123,85,52,.22);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #B3261E; }
.field-error { font-size: .85rem; color: #B3261E; margin: 0; }

.choice-group { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.15rem .65rem .95rem; min-height: 44px;
  border: 1.5px solid #D8C4A8; border-radius: 999px; background: var(--white);
  font-size: .95rem; font-weight: 500; color: var(--ink); cursor: pointer; line-height: 1.2;
  transition: border-color .2s, background .2s;
}
.choice:has(input:checked) { border-color: var(--brown); background: var(--brown-tint); }
.choice input { accent-color: var(--brown); margin: 0; width: 1rem; height: 1rem; }

/* After a successful submit: everything grayed out and locked until "Submit Another Request" */
.quote-form.is-submitted .field { opacity: .5; }
.quote-form.is-submitted input, .quote-form.is-submitted select, .quote-form.is-submitted textarea,
.quote-form.is-submitted .choice { background: #F1ECE5; cursor: not-allowed; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; font-size: .92rem; min-height: 1.2em; }
.form-status.is-error { color: #B3261E; }

.form-success {
  text-align: center; padding: 1.5rem 1.25rem; margin-bottom: 1.5rem;
  background: var(--brown-tint); border-radius: var(--radius-small);
}
.form-success:focus { outline: none; }
.success-icon { width: 44px; height: 44px; margin: 0 auto .6rem; fill: none; stroke: var(--brown); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.form-success p { color: var(--ink-soft); margin: 0; }

/* ---------- 12. Our work ---------- */
.work { display: grid; gap: 2.5rem; align-items: center; }
.work-media { margin: 0; position: relative; }
.work-media img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 60%; border-radius: var(--radius); box-shadow: var(--shadow); }
.work-media figcaption {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(255,253,249,.94); color: var(--ink);
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  padding: .45rem .8rem; border-radius: 999px;
}
.work-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .7rem; }
.work-list li { position: relative; padding-left: 1.6rem; color: var(--ink-soft); }
.work-list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: .7rem; height: .7rem;
  border: 1.5px solid var(--brown); border-radius: 2px; transform: rotate(45deg);
}

/* ---------- 13. Footer ---------- */
.site-footer {
  background: var(--espresso); color: rgba(243,235,224,.8);
  padding: 3.5rem 0 6.5rem;           /* extra bottom space so the sticky mobile button doesn't cover it */
  font-size: .92rem;
}
.site-footer a { color: var(--cream); text-decoration-color: rgba(243,235,224,.35); }
.site-footer a:hover { color: var(--white); }
.footer-inner { display: grid; gap: 2rem; }
.footer-logo { height: 70px; width: auto; display: block; margin-bottom: 1rem; }
.footer-logo .brand-house { stroke: var(--caramel); }
.footer-logo .brand-name { fill: var(--cream); }
.footer-about p { max-width: 26rem; margin: 0; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: 1rem; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(243,235,224,.14);
  font-size: .8rem; color: rgba(243,235,224,.6);
}
.footer-bottom p { margin: 0 0 .3rem; }

/* ---------- 14. Sticky mobile CTA ---------- */
.mobile-cta {
  position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 54px;
  background: var(--brown); color: var(--white);
  border-radius: 999px;
  font-weight: 600; text-decoration: none;
  box-shadow: 0 10px 30px rgba(58,47,39,.3);
  transition: transform .3s, opacity .3s;
}
.mobile-cta:hover { color: var(--white); background: var(--brown-dark); }
/* script.js adds this class while the quote form is on screen */
.mobile-cta.is-hidden { transform: translateY(150%); opacity: 0; pointer-events: none; }

/* ---------- 15. Gentle fade-in on scroll (added by script.js) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==============================================================
   BIGGER SCREENS
   ============================================================== */

/* Small tablets and up */
@media (min-width: 600px) {
  .container { padding: 0 2rem; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { display: block; padding: 1.6rem; }
  .service-icon { margin-bottom: 1rem; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 2rem; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .badges { gap: 1rem; }
}

/* Tablets landscape / small laptops and up */
@media (min-width: 900px) {
  :root { --header-h: 92px; }
  .brand-logo { height: 70px; }
  .section { padding: 6.5rem 0; }

  /* Full nav replaces the hamburger */
  .nav-toggle { display: none; }
  .site-nav { position: static; display: block; background: none; border: 0; box-shadow: none; }
  .site-nav ul { display: flex; align-items: center; gap: 2rem; padding: 0; }
  .site-nav li a:not(.btn) { padding: .3rem 0; border: 0; font-size: .95rem; position: relative; }
  .site-nav li a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: var(--brown);
    transition: right .25s;
  }
  .site-nav li a:not(.btn):hover::after { right: 0; }
  .site-nav .btn { margin: 0; width: auto; }

  .hero { align-items: center; }
  .hero-content { padding-top: 5rem; padding-bottom: 6rem; }

  .service-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .badge { flex-direction: row; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .steps .step:not(:last-child)::after {
    content: ""; position: absolute; top: 2.75rem; right: -1.5rem; width: 1.5rem; height: 1px; background: var(--caramel);
  }
  .quote-inner { grid-template-columns: .85fr 1.15fr; gap: 4rem; align-items: center; }
  .work { grid-template-columns: .85fr 1.15fr; gap: 4.5rem; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
  .site-footer { padding-bottom: 3rem; }

  .mobile-cta { display: none; }   /* desktop has the header button instead */
}

/* 13 services + the CTA card: let the CTA card stretch to fill the last row */
@media (min-width: 600px) {
  .service-card-cta { display: flex; }
}
@media (min-width: 900px) {
  .service-card-cta { grid-column: span 2; flex-direction: row; align-items: center; }
}
@media (min-width: 1100px) {
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .service-card-cta { grid-column: span 3; padding: 1.6rem 2rem; }
}

/* Cormorant's default numbers dip below the line; use even "lining" numbers for phone numbers */
.quote-phones a, .step-num, .badge strong { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
