/* ========================================
   Cabinets by Wayland — Styles
   ======================================== */

:root {
  --color-primary: #1a3a6b;
  --color-primary-light: #2a5298;
  --color-accent: #c9a84c;
  --color-accent-light: #dbbf6a;
  --color-cream: #f0f4fa;
  --color-warm-white: #f8fafd;
  --color-text: #3a3a3a;
  --color-text-light: #6b6b6b;
  --color-border: #d6dfe8;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --transition: 0.3s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-warm-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Typography ---- */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; color: var(--color-primary); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.15; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.2; }
h3 { font-size: 1.25rem; }

.section-title { margin-bottom: 16px; }
.section-title.centered { text-align: center; }
.section-subtitle { text-align: center; color: var(--color-text-light); max-width: 600px; margin: 0 auto 48px; font-size: 1.05rem; }
.lead { font-size: 1.15rem; color: var(--color-text-light); margin-bottom: 16px; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline:hover {
  background: #fff;
  color: var(--color-primary);
}

.btn-nav {
  padding: 10px 24px;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius);
}
.btn-nav:hover { background: var(--color-accent-light); }

.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-main {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 60px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--color-accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: -20%;
  background: url('images/IMG_4294.jpg') center/cover no-repeat;
  will-change: transform;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 58, 107, 0.7);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero h1 { color: #fff; margin-bottom: 20px; }
.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- About ---- */
.section { padding: 96px 0; }

.about { background: var(--color-warm-white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.about-image img {
  will-change: transform;
  transition: none;
}

.about-text p { margin-bottom: 16px; }

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.stat { text-align: center; }
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 4px;
}

/* ---- Services ---- */
.services { background: var(--color-cream); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.service-card {
  background: #fff;
  padding: 40px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--color-accent);
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--color-text-light); font-size: 0.95rem; }

/* ---- Parallax Dividers ---- */
.parallax-divider {
  position: relative;
  color: #fff;
  padding: 80px 0;
  overflow: hidden;
}
.parallax-bg {
  position: absolute;
  inset: -30%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0;
}
.parallax-divider--tall {
  min-height: 50vh;
  display: flex;
  align-items: center;
}
.parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 58, 107, 0.75);
}
.parallax-overlay--accent {
  background: linear-gradient(135deg, rgba(26, 58, 107, 0.8) 0%, rgba(42, 82, 152, 0.75) 100%);
}
.parallax-content {
  position: relative;
  z-index: 1;
}
.parallax-content--centered {
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}
.parallax-content--centered h2 {
  color: #fff;
  margin-bottom: 16px;
}
.parallax-content--centered p {
  opacity: 0.9;
  margin-bottom: 32px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.feature strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}
.feature span {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ---- Gallery ---- */
.gallery { background: var(--color-warm-white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  cursor: pointer;
}

/* Masonry layout — varied sizes for visual interest */
.gallery-item:nth-child(1)  { grid-column: span 5; grid-row: span 2; }
.gallery-item:nth-child(2)  { grid-column: span 4; grid-row: span 2; }
.gallery-item:nth-child(3)  { grid-column: span 3; grid-row: span 2; }
.gallery-item:nth-child(4)  { grid-column: span 3; grid-row: span 2; }
.gallery-item:nth-child(5)  { grid-column: span 5; grid-row: span 2; }
.gallery-item:nth-child(6)  { grid-column: span 4; grid-row: span 2; }
.gallery-item:nth-child(7)  { grid-column: span 4; grid-row: span 2; }
.gallery-item:nth-child(8)  { grid-column: span 4; grid-row: span 2; }
.gallery-item:nth-child(9)  { grid-column: span 4; grid-row: span 2; }
.gallery-item:nth-child(10) { grid-column: span 5; grid-row: span 2; }
.gallery-item:nth-child(11) { grid-column: span 4; grid-row: span 2; }
.gallery-item:nth-child(12) { grid-column: span 3; grid-row: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 58, 107, 0.7), rgba(201, 168, 76, 0.4));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  border: 2px solid rgba(255,255,255,0.8);
  padding: 10px 28px;
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Gallery hide/show for filters */
.gallery-item.hidden {
  display: none;
}

/* Gallery parallax image scroll effect */
.gallery-item .gallery-parallax-inner {
  width: 100%;
  height: 120%;
  position: relative;
  top: -10%;
  will-change: transform;
}
.gallery-item .gallery-parallax-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery Filters */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 24px;
  border: 2px solid var(--color-border);
  border-radius: 50px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 2001;
  line-height: 1;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; background: rgba(255,255,255,0.2); }
.lightbox-caption {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  text-align: center;
  max-width: 600px;
}
.lightbox-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

/* ---- Featured Showcase (Parallax) ---- */
.showcase {
  position: relative;
  overflow: hidden;
}
.showcase-track {
  display: flex;
  flex-direction: column;
}
.showcase-slide {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.showcase-slide .parallax-bg {
  inset: -25%;
}
.showcase-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 58, 107, 0.85) 0%, rgba(26, 58, 107, 0.2) 50%, transparent 100%);
  z-index: 1;
}
.showcase-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 60px 48px;
  color: #fff;
}
.showcase-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent-light);
  margin-bottom: 12px;
}
.showcase-content h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}
.showcase-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.9;
}

/* Image placeholders */
.image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: var(--color-cream);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--color-text-light);
  font-size: 0.9rem;
  position: relative;
}
.image-placeholder svg { width: 40px; height: 40px; opacity: 0.4; }
.image-placeholder::after {
  content: attr(data-label);
  position: absolute;
  bottom: 12px;
  font-size: 0.75rem;
  opacity: 0.5;
}

/* ---- Testimonials ---- */
.testimonials { background: var(--color-cream); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.testimonial-card {
  background: #fff;
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stars {
  color: var(--color-accent);
  font-size: 1.2rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--color-text);
  font-style: italic;
}

.testimonial-author strong {
  display: block;
  color: var(--color-primary);
  font-size: 0.95rem;
}
.testimonial-author span {
  font-size: 0.85rem;
  color: var(--color-text-light);
}
.review-source {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--color-text-light);
}
.review-source-icon {
  width: 16px;
  height: 16px;
}

/* ---- CTA Section (now uses parallax-divider) ---- */

/* ---- Contact ---- */
.contact { background: var(--color-warm-white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

.contact-item strong {
  display: block;
  margin-bottom: 2px;
  color: var(--color-primary);
}

.contact-item a {
  color: var(--color-accent);
  font-weight: 500;
}
.contact-item a:hover { text-decoration: underline; }

.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--color-warm-white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.form-group textarea { resize: vertical; }

/* ---- Footer ---- */
.footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 32px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand { max-width: 320px; }
.footer-brand .logo-main { color: #fff; display: block; margin-bottom: 12px; }
.footer-logo { height: 60px; width: auto; margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; opacity: 0.7; }

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 0.9rem;
  opacity: 0.7;
  transition: var(--transition);
}
.footer-links a:hover { opacity: 1; color: var(--color-accent-light); }

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: var(--transition);
}
.footer-social a:hover { background: var(--color-accent); }
.footer-social svg { width: 20px; height: 20px; }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  opacity: 0.5;
  text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 160px;
  }
  .gallery-item:nth-child(n) { grid-column: span 3; grid-row: span 2; }

  .footer-content {
    flex-direction: column;
    gap: 32px;
  }

  /* parallax handled via JS transform */
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--color-border);
  }
  .nav-links.active { display: flex; }

  .hero { min-height: 70vh; }
  .hero-content { padding-top: 100px; padding-bottom: 60px; }

  .about-stats { gap: 24px; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .gallery-item:nth-child(n) { grid-column: span 1; grid-row: span 2; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .features-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  .footer-links { flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery-item:nth-child(n) { grid-column: span 1; grid-row: span 2; }
  .features-grid { grid-template-columns: 1fr; }
}
