/* Home Design Center & Flooring — custom static site */

:root {
  --bg: #faf8f5;
  --bg-alt: #f2ede6;
  --ink: #1e1c1a;
  --ink-soft: #4a4540;
  --brass: #b08d57;
  --brass-dark: #96743f;
  --line: #e5ded4;
  --white: #ffffff;
  --header-bg: rgba(250, 248, 245, 0.97);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", -apple-system, "Segoe UI", sans-serif;
  --radius: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

a { color: var(--brass-dark); }

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

/* ---------- Dark mode ---------- */
[data-theme="dark"] {
  --bg: #1b1815;
  --bg-alt: #242019;
  --ink: #f2ede4;
  --ink-soft: #b3a897;
  --brass: #cba76b;
  --brass-dark: #d9b878;
  --line: #38322a;
  --white: #292420;
  --header-bg: rgba(27, 24, 21, 0.97);
}
[data-theme="dark"] .cta-band,
[data-theme="dark"] .site-footer { background: #14110d; }
[data-theme="dark"] .hero-bg { filter: brightness(0.85); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}
.brand span { color: var(--brass-dark); display: block; font-size: 0.85rem; font-family: var(--font-body); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }

.main-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}
.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.98rem;
}
.main-nav a:hover, .main-nav a.active { color: var(--brass-dark); }

.header-cta {
  display: inline-block;
  background: var(--brass);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  white-space: nowrap;
}
.header-cta:hover { background: var(--brass-dark); color: #fff; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--ink);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--brass); color: var(--brass-dark); }
.theme-toggle svg { width: 1.15rem; height: 1.15rem; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 17, 14, 0.55);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
  max-width: 760px;
}
.hero-content h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.2rem;
  color: #f3ede4;
  margin-bottom: 2rem;
  max-width: 620px;
}
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
}
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: var(--brass-dark); color: #fff; }
.btn-outline {
  border: 2px solid #fff;
  color: #fff;
}
.btn-outline:hover { background: #fff; color: var(--ink); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: 4rem 0 3rem;
}
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 0.75rem; }
.page-hero p { color: var(--ink-soft); font-size: 1.12rem; max-width: 720px; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 0.75rem; }
.section-head p { color: var(--ink-soft); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin-bottom: 0.75rem;
}

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 1.9rem;
}
.service-card h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.service-card p { color: var(--ink-soft); font-size: 0.99rem; }
.service-card .card-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

/* ---------- Projects strip ---------- */
.projects-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.strip-item { text-decoration: none; color: inherit; }
.strip-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.strip-item p { margin-top: 0.6rem; font-weight: 600; font-size: 0.98rem; }
.center { text-align: center; margin-top: 2.5rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  padding: 4.5rem 0;
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 0.75rem; }
.cta-band p { color: #d9d2c7; margin-bottom: 1.75rem; font-size: 1.1rem; }
.cta-band a.tel { color: var(--brass); font-weight: 700; text-decoration: none; }
.cta-band a.tel:hover { text-decoration: underline; }

/* ---------- Service rows (flooring / remodeling) ---------- */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}
.service-row:last-child { border-bottom: none; }
.service-row:nth-child(even) .service-text { order: 2; }
.service-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.service-row h2 { font-size: 1.7rem; margin-bottom: 0.6rem; }
.service-row p { color: var(--ink-soft); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.gallery-item { cursor: pointer; }
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  transition: opacity 0.2s ease;
}
.gallery-item:hover img { opacity: 0.88; }
.gallery-item figcaption {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.gallery-item figcaption strong { color: var(--ink); font-weight: 600; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 10, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1000px, 92vw);
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox-caption {
  color: #f3ede4;
  text-align: center;
  margin-top: 1rem;
  font-size: 1rem;
}
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-info h2 { font-size: 1.6rem; margin-bottom: 1.25rem; }
.contact-info dl { margin-bottom: 1.5rem; }
.contact-info dt {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin-bottom: 0.15rem;
}
.contact-info dd { margin: 0 0 1.1rem 0; }
.contact-info dd a { color: var(--ink); text-decoration: none; }
.contact-info dd a:hover { color: var(--brass-dark); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg);
  color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: -1px;
}
.form-note { font-size: 0.92rem; color: var(--ink-soft); margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cfc7ba;
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.site-footer h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
}
.footer-brand {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}
.footer-brand span { color: var(--brass); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: #cfc7ba; text-decoration: none; }
.site-footer a:hover { color: var(--brass); }
.footer-bottom {
  border-top: 1px solid #3a352f;
  padding-top: 1.5rem;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .service-row:nth-child(even) .service-text { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 4%; }
  .main-nav li { border-top: 1px solid var(--line); }
  .main-nav a { display: block; padding: 0.85rem 0; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }

  .services-grid { grid-template-columns: 1fr; }
  .projects-strip { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .hero-content { padding: 4.5rem 0; }
  .contact-form { padding: 1.75rem; }
}

/* Reviews */
.stars { color: var(--brass-dark); letter-spacing: 3px; font-size: 1.15rem; margin: 0 0 0.6rem; }

/* ---------- Animations ---------- */
.service-card, .gallery-item {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.service-card:hover, .gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(30, 28, 26, 0.14);
}
[data-theme="dark"] .service-card:hover, [data-theme="dark"] .gallery-item:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.gallery-item { overflow: hidden; }
.gallery-item img { transition: transform 0.6s ease, opacity 0.2s ease; }
.gallery-item:hover img { transform: scale(1.05); opacity: 1; }
.btn, .btn-brass, .btn-outline, .header-cta {
  transition: transform 0.2s ease, background-color 0.25s ease, box-shadow 0.25s ease, color 0.2s ease;
}
.btn:hover, .btn-brass:hover, .btn-outline:hover { transform: translateY(-2px); }
.site-header { transition: box-shadow 0.3s ease; }
.site-header.scrolled { box-shadow: 0 2px 18px rgba(30, 28, 26, 0.12); }

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
  }
  .reveal.visible { opacity: 1; transform: none; }
  .hero-content > * {
    opacity: 0;
    transform: translateY(28px);
    animation: heroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .hero-content > *:nth-child(1) { animation-delay: 0.1s; }
  .hero-content > *:nth-child(2) { animation-delay: 0.25s; }
  .hero-content > *:nth-child(3) { animation-delay: 0.4s; }
  .hero-content > *:nth-child(4) { animation-delay: 0.55s; }
  @keyframes heroRise { to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-content > * { opacity: 1 !important; transform: none !important; animation: none !important; }
  .service-card:hover, .gallery-item:hover, .btn:hover { transform: none; }
}
