/* Giovani Interior Millwork — single stylesheet, no build step. */

:root {
  --ink:        #23211d;
  --ink-soft:   #4a463f;
  --muted:      #6f6a61;
  --bone:       #faf8f4;
  --sand:       #f0ebe3;
  --line:       #ddd6ca;
  --brass:      #9a7a4b;
  --brass-dark: #7d6139;
  --white:      #fff;

  --wrap:  1180px;
  --radius: 3px;
  --shadow: 0 1px 2px rgba(35,33,29,.06), 0 8px 24px rgba(35,33,29,.07);

  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font: 400 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.01em; }
h1, h2 { font-family: var(--display); line-height: 1.08; }
h1 { font-size: clamp(2rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: .005em; }
p  { margin: 0 0 1em; }

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

.eyebrow {
  margin: 0 0 .9rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--white); padding: 12px 20px;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 500 .9375rem/1 var(--body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-solid  { background: var(--ink); color: var(--white); }
.btn-solid:hover  { background: var(--brass-dark); }
.btn-outline { border-color: currentColor; background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-ghost  { background: transparent; color: var(--ink); padding-left: .5rem; padding-right: .5rem; }
.btn-ghost:hover { color: var(--brass-dark); }
.btn-lg { padding: .95rem 1.8rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,248,244,.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex: 0 0 auto; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: var(--display); font-size: 1.4rem; font-weight: 600; letter-spacing: .01em;
}
.brand-text em {
  font-style: normal; font-size: .6rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}

.nav { display: flex; gap: 2rem; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: .9375rem; font-weight: 500; color: var(--ink-soft);
  padding: .35rem 0; border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--brass); }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.btn-phone { font-weight: 600; font-variant-numeric: tabular-nums; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px; padding: 11px 9px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero { position: relative; isolation: isolate; color: var(--white); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(20,18,15,.86) 0%, rgba(20,18,15,.7) 40%, rgba(20,18,15,.32) 100%);
}
.hero-inner { padding: clamp(5rem, 13vw, 9.5rem) 24px clamp(4.5rem, 11vw, 8rem); }
.hero-inner > * { max-width: 820px; }
.hero .eyebrow { color: #d9c49b; }
.hero h1 { text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero-sub {
  margin: 1.5rem 0 2.25rem; max-width: 52ch;
  font-size: clamp(1.02rem, 1.6vw, 1.17rem); color: rgba(255,255,255,.88);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero .btn-solid { background: var(--white); color: var(--ink); }
.hero .btn-solid:hover { background: #e9dcc4; }
.hero .btn-outline { color: var(--white); border-color: rgba(255,255,255,.55); }
.hero .btn-outline:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ---------- trust strip ---------- */

.trust { background: var(--ink); color: var(--white); }
/* Dividers come from cell borders, not a gap colour: the grid also carries
   .wrap padding, and a container background would show in that gutter. */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid > div {
  padding: 1.85rem 1.5rem;
  border-left: 1px solid rgba(255,255,255,.14);
}
.trust-grid > div:first-child { border-left: 0; }
.trust-grid strong {
  display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 600; margin-bottom: .2rem;
}
.trust-grid span { font-size: .875rem; color: rgba(255,255,255,.68); line-height: 1.5; }

/* ---------- sections ---------- */

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-alt { background: var(--sand); }
.section-head { max-width: 42rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-sub { margin: 1rem 0 0; color: var(--muted); font-size: 1.0625rem; }

/* ---------- services ---------- */

.services {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.services li { background: var(--bone); padding: 2.15rem 1.9rem; }
.services h3 { margin-bottom: .6rem; }
.services h3::before {
  content: ""; display: block; width: 28px; height: 2px;
  background: var(--brass); margin-bottom: 1rem;
}
.services p { margin: 0; color: var(--muted); font-size: .9375rem; }

/* ---------- gallery ---------- */

.section-gallery { background: var(--white); }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.filter {
  padding: .5rem 1.05rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  font: 500 .875rem/1 var(--body);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .18s ease;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tile {
  position: relative; display: block; padding: 0; border: 0; margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand);
  cursor: zoom-in;
}
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.3,1), filter .3s ease;
}
.tile:hover img, .tile:focus-visible img { transform: scale(1.045); }
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,18,15,.22), transparent 45%);
  opacity: 0; transition: opacity .3s ease;
}
.tile:hover::after { opacity: 1; }

.gallery-cta { margin: 2.75rem 0 0; color: var(--muted); }
.gallery-cta a { color: var(--brass-dark); font-weight: 500; }

/* ---------- about / steps ---------- */

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); }
.steps { list-style: none; counter-reset: s; margin: 2rem 0 0; padding: 0; }
.steps li {
  counter-increment: s;
  display: grid; grid-template-columns: 2.4rem 1fr; gap: 0 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}
.steps li::before {
  content: counter(s, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--display); font-size: 1.35rem; color: var(--brass);
}
.steps strong { font-size: 1rem; font-weight: 600; }
.steps span { color: var(--muted); font-size: .9375rem; }

.about-copy p { color: var(--ink-soft); }
.about-loc a { color: var(--brass-dark); font-weight: 500; text-decoration: none; }
.about-loc a:hover { text-decoration: underline; }

/* ---------- reviews ---------- */

.section-reviews { background: var(--white); }
.reviews {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.reviews li {
  padding: 2rem 2rem 1.65rem;
  border: 1px solid var(--line);
  background: var(--bone);
}
.reviews blockquote {
  margin: 0 0 1.15rem;
  font-family: var(--display); font-size: 1.28rem; line-height: 1.42; color: var(--ink);
}
.reviews blockquote::before { content: "\201C"; color: var(--brass); }
.reviews blockquote::after  { content: "\201D"; color: var(--brass); }
.reviews cite {
  font-style: normal; font-size: .8125rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

/* ---------- quote ---------- */

.section-quote { background: var(--ink); color: var(--white); }
.quote-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.quote-intro h2 { margin-bottom: 1.1rem; }
.quote-intro > p { color: rgba(255,255,255,.75); max-width: 40ch; }
.quote-direct { list-style: none; margin: 2.25rem 0 0; padding: 0; }
.quote-direct li { border-top: 1px solid rgba(255,255,255,.16); }
.quote-direct a {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1rem 0; text-decoration: none;
  font-size: 1.22rem; font-family: var(--display); font-weight: 600;
}
.quote-direct span {
  min-width: 4.5rem; font-family: var(--body); font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: #d9c49b;
}
.quote-direct a:hover { color: #e9dcc4; }

.quote-next { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.quote-next li {
  position: relative; padding-left: 1.6rem; margin-bottom: .8rem;
  font-size: .9375rem; color: rgba(255,255,255,.66);
}
.quote-next li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border: 1px solid #d9c49b; transform: rotate(45deg);
}

.quote-form { background: var(--white); color: var(--ink); padding: clamp(1.75rem, 3.5vw, 2.5rem); }
.field { margin-bottom: 1.05rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label {
  display: block; margin-bottom: .4rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft);
}
.field .opt { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: .72rem .85rem;
  font: 400 1rem/1.4 var(--body); color: var(--ink);
  background: var(--bone);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s ease, background-color .15s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  background: var(--white); border-color: var(--brass); outline: none;
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #b4462f; }
.field .err { display: block; margin-top: .35rem; font-size: .8125rem; color: #b4462f; text-transform: none; letter-spacing: 0; font-weight: 500; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.quote-form .btn-solid { margin-top: .5rem; }
.quote-form .btn-solid[disabled] { opacity: .55; cursor: progress; }
.form-note { margin: .9rem 0 0; font-size: .8125rem; color: var(--muted); text-align: center; }
.form-status { margin: 1rem 0 0; font-size: .9375rem; font-weight: 500; }
.form-status.ok  { color: #2f6b45; }
.form-status.bad { color: #b4462f; }

/* ---------- footer ---------- */

.site-footer { background: var(--sand); padding: clamp(3.5rem, 7vw, 5rem) 0 0; font-size: .9375rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand img { width: 44px; height: 44px; object-fit: contain; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); }
.footer-brand strong { color: var(--ink); font-weight: 600; }
.site-footer h3 {
  margin-bottom: .9rem; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass);
}
.site-footer p { margin: 0 0 .6rem; color: var(--ink-soft); }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--brass-dark); text-decoration: underline; }
.hours, .areas { color: var(--muted); font-size: .875rem; }
.socials { display: flex; gap: .75rem; margin-top: 1rem; }
.socials a {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--line); border-radius: 50%;
}
.socials a:hover { background: var(--ink); border-color: var(--ink); }
.socials svg { width: 18px; height: 18px; fill: var(--ink-soft); }
.socials a:hover svg { fill: var(--white); }

.footer-base { border-top: 1px solid var(--line); padding-block: 1.5rem; }
.footer-base p { margin: 0; font-size: .8125rem; color: var(--muted); }

/* ---------- sticky mobile bar ---------- */

.mobile-bar {
  display: none;
  position: fixed; inset: auto 0 0 0; z-index: 70;
  gap: .6rem; padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(250,248,244,.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.mobile-bar .btn { flex: 1; }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(18,16,14,.94);
  padding: 4.5rem 1rem;
}
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; max-height: 100%; }
.lb-figure img {
  max-width: min(1180px, 92vw); max-height: 78vh;
  width: auto; height: auto; object-fit: contain;
}
.lb-figure figcaption {
  font-size: .875rem; color: rgba(255,255,255,.72); text-align: center; max-width: 60ch;
}
.lb-close, .lb-nav {
  position: absolute; z-index: 2;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1); color: var(--white);
  border: 1px solid rgba(255,255,255,.22); border-radius: 50%;
  cursor: pointer; line-height: 1;
  transition: background-color .15s ease;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.24); }
.lb-close { top: 1.1rem; right: 1.1rem; width: 44px; height: 44px; font-size: 1.7rem; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; font-size: 2rem; padding-bottom: 5px; }
.lb-prev { left: 1.1rem; }
.lb-next { right: 1.1rem; }

body.lb-open { overflow: hidden; }

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .services, .grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid > div:nth-child(odd) { border-left: 0; }
  .trust-grid > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
}

@media (max-width: 860px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: .5rem 24px 1.25rem;
    background: var(--bone);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav:not(.open) { display: none; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: block; }
  .phone-text, .header-actions .btn-solid { display: none; }
  .btn-phone { padding: .6rem; }
  .btn-phone svg { width: 20px; height: 20px; }
  .about-grid, .quote-grid, .reviews { grid-template-columns: 1fr; }
  .quote-form { margin-inline: -24px; }
}

@media (max-width: 860px) {
  body { padding-bottom: 74px; }
  .mobile-bar { display: flex; }
}

@media (max-width: 620px) {
  .services, .grid, .trust-grid, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .grid { gap: 10px; }
  .trust-grid > div {
    padding: 1.25rem 0;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.14);
  }
  .trust-grid > div:first-child { border-top: 0; }
  .eyebrow { font-size: .7rem; letter-spacing: .1em; }
  .hero-inner { padding-top: 4.5rem; }
  .hero-cta .btn { flex: 1; min-width: 46%; }
  .reviews li { padding: 1.5rem 1.4rem 1.25rem; }
  .reviews blockquote { font-size: 1.15rem; }
  .lightbox { padding: 4rem .5rem; }
  .lb-nav { width: 42px; height: 42px; font-size: 1.6rem; }
  .lb-prev { left: .4rem; }
  .lb-next { right: .4rem; }
}
