/* Lion Pride Home Renovation — site styles */
:root {
  --charcoal: #24251F;
  --ink: #1B1C17;
  --olive: #34463A;
  --olive-deep: #26352C;
  --bone: #F2EEE5;
  --bone-2: #E9E3D6;
  --brass: #A97C45;        /* decorative accents only */
  --brass-btn: #8C6537;    /* buttons: white text = 5.2:1 */
  --brass-dark: #74522C;
  --brass-text: #C99A5C;   /* brass-colored text on olive/charcoal */
  --muted: #5F6158;
  --line: rgba(36, 37, 31, 0.14);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 700ms;
  --radius: 4px;
  --max: 76rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--bone);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  animation: pageIn var(--dur) var(--ease) both;
}
body.is-leaving { animation: pageOut 320ms ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pageOut { to { opacity: 0; } }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: min(92%, var(--max)); margin-inline: auto; }
.skip-link { position: absolute; top: -100%; left: 1rem; z-index: 200; background: var(--charcoal); color: var(--bone); padding: .75rem 1.25rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(242, 238, 229, .97); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem 0; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.05; }
.brand-name small { display: block; font-family: var(--font-body); font-size: .72rem; letter-spacing: .04em; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { text-decoration: none; font-size: .95rem; padding: .5rem 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .1rem; height: 2px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform 320ms var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .8rem; font: inherit; cursor: pointer; min-height: 44px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .9rem 1.4rem; min-height: 44px; border-radius: var(--radius); text-decoration: none; font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: background 260ms ease, color 260ms ease, transform 260ms var(--ease), border-color 260ms ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brass-btn); color: #fff; }
.btn-primary:hover { background: var(--brass-dark); }
.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--bone); }
.btn-light { background: var(--bone); color: var(--charcoal); }
.btn-light:hover { background: #fff; }
.on-dark .btn-outline { color: var(--bone); border-color: rgba(242, 238, 229, .6); }
.on-dark .btn-outline:hover { background: var(--bone); color: var(--charcoal); }

/* Hero */
.hero { position: relative; min-height: 88vh; display: grid; align-items: end; color: var(--bone); isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: heroSettle 1600ms var(--ease) both; }
@keyframes heroSettle { from { transform: scale(1.05); } to { transform: none; } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(27, 28, 23, .25) 0%, rgba(27, 28, 23, .55) 55%, rgba(27, 28, 23, .82) 100%); }
.hero-content { padding: 6rem 0 4rem; max-width: 46rem; }
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem); font-weight: 400; }
.hero p { font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); margin-top: 1.25rem; max-width: 38rem; color: rgba(242, 238, 229, .9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero .reveal-seq > * { animation: riseIn 900ms var(--ease) both; }
.hero .reveal-seq > *:nth-child(2) { animation-delay: 140ms; }
.hero .reveal-seq > *:nth-child(3) { animation-delay: 280ms; }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Trust row */
.trust { border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding: 1.1rem 0; display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; font-size: .95rem; color: var(--muted); }
.trust li { display: flex; align-items: center; gap: .6rem; }
.trust li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }

/* Sections */
.section { padding: clamp(3.5rem, 6vw, 6.5rem) 0; }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); }
.section-head p { margin-top: 1rem; color: var(--muted); font-size: 1.05rem; }
.section-dark { background: var(--olive); color: var(--bone); }
.section-dark .section-head p { color: rgba(242, 238, 229, .8); }
.section-alt { background: var(--bone-2); }

/* Services index */
.services-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.services-index li { border-bottom: 1px solid var(--line); }
.services-index a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: 1.35rem 0; text-decoration: none; transition: padding-left 320ms var(--ease); }
.services-index a:hover { padding-left: .75rem; }
.services-index strong { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; display: block; }
.services-index span { color: var(--muted); font-size: .95rem; display: block; margin-top: .2rem; }
.services-index .arrow { width: 26px; height: 26px; color: var(--brass); transition: transform 320ms var(--ease); }
.services-index a:hover .arrow { transform: translateX(6px); }
.services-note { margin-top: 1.75rem; padding: 1.5rem; background: var(--charcoal); color: var(--bone); border-radius: var(--radius); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.services-note p { font-size: 1.1rem; font-family: var(--font-display); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bone-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.1rem; color: var(--bone); background: linear-gradient(180deg, transparent, rgba(27, 28, 23, .75)); font-size: .95rem; }
.g-wide { grid-column: span 8; aspect-ratio: 16/10; }
.g-tall { grid-column: span 4; aspect-ratio: 3/4; }
.g-half { grid-column: span 6; aspect-ratio: 4/3; }
.g-third { grid-column: span 4; aspect-ratio: 4/3; }
.gallery-more { margin-top: 2rem; }

/* Process */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }
.process article { padding-top: 1.25rem; border-top: 1px solid rgba(242, 238, 229, .3); }
.process article::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-size: 1.1rem; color: var(--brass-text); display: block; margin-bottom: .75rem; }
.process h3 { font-size: 1.45rem; }
.process p { margin-top: .6rem; color: rgba(242, 238, 229, .82); }

/* CTA band */
.cta-band { background: var(--charcoal); color: var(--bone); }
.cta-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.cta-inner h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); }
.cta-inner p { margin-top: .9rem; color: rgba(242, 238, 229, .8); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: flex-end; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 120ms; }
.reveal-delay-2 { transition-delay: 240ms; }

/* Page hero (inner pages) */
.page-hero { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem); }
.page-hero h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); font-weight: 400; max-width: 20ch; }
.page-hero p { margin-top: 1.25rem; max-width: 40rem; color: var(--muted); font-size: 1.1rem; }

/* Services page detail */
.service-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.service-item { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; padding: 2.5rem 0; border-bottom: 1px solid var(--line); align-items: start; scroll-margin-top: 6rem; }
.service-item h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem); }
.service-item ul { margin: 1.25rem 0 0; padding-left: 1.1rem; color: var(--charcoal); font-size: 1rem; columns: 2; gap: 2rem; }
.service-item li { margin-bottom: .45rem; break-inside: avoid; padding-right: .5rem; }
.service-item .lede { font-size: 1.05rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }
.about-grid img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.about-copy p + p { margin-top: 1rem; }
.about-copy p { font-size: 1.08rem; }
.values { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.values li { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.values strong { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; display: block; }
.values span { color: var(--muted); }
.areas { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.areas span { padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; }

/* Estimate form */
.estimate { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.estimate-aside h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); }
.estimate-aside p { margin-top: 1rem; color: var(--muted); font-size: 1.05rem; }
.estimate-aside .promise { margin-top: 2rem; padding: 1.5rem; background: var(--olive); color: var(--bone); border-radius: var(--radius); }
.estimate-aside .promise strong { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; display: block; margin-bottom: .4rem; }
.contact-lines { margin-top: 2rem; display: grid; gap: .5rem; color: var(--muted); }
.contact-lines a { color: var(--charcoal); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.25rem); }
.steps { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.steps span { flex: 1; height: 4px; background: var(--bone-2); border-radius: 2px; transition: background 400ms ease; }
.steps span.is-done, .steps span.is-active { background: var(--brass); }
.step-label { font-size: .9rem; color: var(--muted); margin-bottom: 1.25rem; }
.form-step { display: none; }
.form-step.is-active { display: block; animation: stepIn 480ms var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.form-step h3 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.field { margin-bottom: 1.1rem; }
.field label, fieldset legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: .85rem .95rem; border: 1px solid rgba(36, 37, 31, .3); border-radius: var(--radius); background: var(--bone); color: var(--charcoal); min-height: 44px; transition: border-color 200ms ease, box-shadow 200ms ease; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--olive); box-shadow: 0 0 0 3px rgba(52, 70, 58, .15); outline: none; }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: .35rem; }
.field .error { display: none; font-size: .88rem; color: #8A2E1F; margin-top: .4rem; }
.field[data-state="error"] .error { display: block; }
.field[data-state="error"] input, .field[data-state="error"] select, .field[data-state="error"] textarea { border-color: #8A2E1F; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.1rem; }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.choices label { display: flex; align-items: center; gap: .6rem; padding: .8rem .9rem; border: 1px solid rgba(36, 37, 31, .25); border-radius: var(--radius); cursor: pointer; font-weight: 500; font-size: .95rem; transition: border-color 200ms ease, background 200ms ease; min-height: 44px; }
.choices label:hover { border-color: var(--olive); }
.choices input { accent-color: var(--olive); width: 18px; height: 18px; margin: 0; }
.choices label:has(input:checked) { background: rgba(52, 70, 58, .08); border-color: var(--olive); }
.upload { border: 1px dashed rgba(36, 37, 31, .35); border-radius: var(--radius); padding: 1.25rem; text-align: center; color: var(--muted); }
.upload input { margin-top: .75rem; }
.upload-list { list-style: none; padding: 0; margin: .75rem 0 0; font-size: .9rem; text-align: left; display: grid; gap: .25rem; }
.form-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.form-nav .btn-ghost { background: none; border: 0; color: var(--muted); padding: .9rem 0; text-decoration: underline; text-underline-offset: 4px; }
.form-status { margin-top: 1rem; font-size: .95rem; }
.summary { background: var(--bone); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: .6rem; }
.summary div { display: grid; grid-template-columns: 9rem 1fr; gap: .75rem; font-size: .95rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; }
.success { text-align: center; padding: 2rem 1rem; }
.success h3 { font-size: 1.8rem; }
.success p { margin-top: .75rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(242, 238, 229, .82); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { font-size: 1.05rem; color: var(--bone); margin-bottom: .75rem; font-family: var(--font-body); font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--bone); text-decoration: underline; }
.footer-brand .brand-name { color: var(--bone); }
.footer-brand p { margin-top: 1rem; max-width: 30rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(242, 238, 229, .15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .88rem; color: rgba(242, 238, 229, .6); }

/* Legal pages */
.legal-body { max-width: 44rem; }
.legal-body h2 { font-size: 1.4rem; margin-top: 2.25rem; }
.legal-body p, .legal-body li { margin-top: .75rem; font-size: 1.02rem; }
.legal-body ul { padding-left: 1.2rem; }

/* Cookie banner */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; background: var(--charcoal); color: var(--bone); border-top: 3px solid var(--brass); box-shadow: 0 -8px 30px rgba(0,0,0,.2); animation: bannerIn 600ms var(--ease) both; }
@keyframes bannerIn { from { transform: translateY(100%); } to { transform: none; } }
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.1rem 0; }
.cookie-inner p { font-size: .92rem; color: rgba(242,238,229,.85); margin-top: .25rem; max-width: 52rem; }
.cookie-inner a { color: var(--bone); }
.cookie-actions { display: flex; gap: .6rem; flex: none; }
.cookie-actions .btn-outline { color: var(--bone); border-color: rgba(242,238,229,.6); }
.cookie-actions .btn-outline:hover { background: var(--bone); color: var(--charcoal); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--bone); }
@media (max-width: 44rem) { .cookie-inner { flex-direction: column; align-items: stretch; } .cookie-actions { flex-direction: column; } }

/* Honeypot (spam trap) — hidden from humans, visible to bots */
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Responsive */
@media (max-width: 60rem) {
  .gallery { grid-template-columns: repeat(6, 1fr); }
  .g-wide { grid-column: span 6; }
  .g-tall { grid-column: span 3; }
  .g-half, .g-third { grid-column: span 3; }
  .process { grid-template-columns: 1fr; gap: 1.5rem; }
  .cta-inner, .estimate, .about-grid, .service-item { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-item ul { columns: 1; }
}
@media (max-width: 44rem) {
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bone); border-bottom: 1px solid var(--line); padding: .5rem 4%; display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin: .75rem 0; }
  .nav-toggle { display: inline-flex; }
  .hero { min-height: 78vh; }
  .hero-content { padding: 4rem 0 3rem; }
  .gallery { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .g-wide { grid-column: span 2; }
  .g-tall, .g-half, .g-third { grid-column: span 1; }
  .two-col, .choices { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .summary div { grid-template-columns: 1fr; gap: .1rem; }
}

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