/* ============================================================
   4 Corners Interiors — Cleaned Master Stylesheet
   ============================================================ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Lato:wght@400;700&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --navy: #1a2744; --blue: #3a5a8c; --gold: #c8a96e; --gold-light: #e8c98a;
  --warm-cream: #f5f0e8; --warm-white: #faf7f2; --wood-mid: #8b5e3c;
  --charcoal: #2c2c2c; --text-muted: #6b6b6b; --white: #ffffff;
  --border: rgba(200,169,110,0.4); --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Lato', sans-serif; background: var(--warm-white); color: var(--charcoal); padding-top: 72px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--white); padding: 0 5%; display: flex; 
  align-items: center; justify-content: space-between; height: 72px;
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
}
nav .logo-wrap { display: flex; align-items: center; gap: 14px; }
nav .logo-wrap img { height: 44px; }
nav ul { list-style: none; display: flex; gap: 36px; }

.menu-toggle, .hamburger { display: none; }

nav ul li a { color: var(--navy); font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; transition: 0.2s; }
nav ul li a:hover { color: var(--gold); }

/* ── GLOBAL SECTION HEADERS ── */
section { padding: 80px 8%; }
.section-label { font-size: 0.68rem; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 12px; display: block; text-align: center; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 2.8vw, 2.5rem); color: var(--navy); font-weight: 700; text-align: center; margin-bottom: 16px; }
.section-divider { width: 60px; height: 3px; background: var(--gold); margin: 0 auto 32px; }
.section-intro { text-align: center; max-width: 800px; margin: 0 auto 40px; }

/* ── PRODUCTS GRID (2x2 Desktop / 1x1 Mobile) ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 40px auto;
}

/* Product card shell */
.product-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

/* ── FIX: anchor wrapping image must be block so div isn't collapsed ── */
.product-card > a {
  display: block;
}

/* Single definition for the image div */
.product-card-image {
  height: 300px;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: block;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-image {
  transform: scale(1.03);
}

/* Individual background images */
.cabinets {
  background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
                    url('images/SW_Kitchen_-_Gallery.webp');
}
.closets {
  background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
                    url('images/closet1.jpg');
}
.countertops {
  background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
                    url('images/TDW_Bar_Gallery.webp');
}
.appliances {
  background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
                    url('images/nkba-member-thin-banner-v1-2-resize-edit-compress.webp');
}

/* Card body */
.product-card-body {
  padding: 28px;
  background: #fff;
}
.product-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.product-card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Buttons */
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 11px 26px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 2px;
  border: 2px solid var(--gold);
  transition: all 0.25s;
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}
.btn-primary {
  display: inline-block;
  background: var(--gold); color: var(--navy);
  padding: 15px 34px; font-weight: 700; font-size: 0.8rem;
  letter-spacing: 2px; text-transform: uppercase;
  border-radius: 2px; border: 2px solid var(--gold);
  transition: all 0.25s;
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); }
.btn-outline {
  display: inline-block;
  background: transparent; color: #fff;
  padding: 15px 34px; font-weight: 700; font-size: 0.8rem;
  letter-spacing: 2px; text-transform: uppercase;
  border-radius: 2px; border: 2px solid rgba(255,255,255,0.4);
  transition: all 0.25s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Mobile */
@media (max-width: 768px) {
  .products-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ── FOOTER ── */
footer { background: var(--navy); padding: 56px 8% 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .brand-name { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: #fff; letter-spacing: 2px; margin-bottom: 8px; }
.footer-brand .brand-tag { font-size: 0.62rem; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; display: block; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.45); line-height: 1.7; }
footer h5 { font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 16px; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer ul li a { color: rgba(255,255,255,0.55); font-size: 0.85rem; transition: color 0.2s; }
footer ul li a:hover { color: var(--gold-light); }
.footer-bottom { padding: 20px 0; display: flex; justify-content: space-between; }
.footer-bottom span { font-size: 0.75rem; color: rgba(255,255,255,0.3); letter-spacing: 1px; }
@media (max-width: 768px) {
  /* Products Grid Fix */
  .products-grid { grid-template-columns: 1fr; gap: 20px; }

  /* --- Navigation Fixes --- */
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
  }

  .hamburger span {
    width: 25px;
    height: 2px;
    background: var(--navy);
    transition: 0.3s;
  }

  nav ul {
    position: fixed;
    top: 0;
    right: -100%; 
    width: 80%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .menu-toggle:checked ~ ul { right: 0; }
  .nav-cta { display: none; }

  /* --- Footer Fixes (Prevents Contact Info Cut-off) --- */
  .footer-grid { 
    grid-template-columns: 1fr; /* Stacks the 3 columns into 1 */
    gap: 32px; 
    text-align: center; 
  }

  footer ul {
    align-items: center;
    padding: 0;
  }

  footer ul li a, 
  footer ul li span {
    word-break: break-all; /* Prevents long emails from pushing off screen */
    font-size: 0.9rem;
  }

  footer {
    padding: 40px 5% 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}