/*
Theme Name: Bohnucci Home
Theme URI: https://bohnucci.com
Author: Get You At Agency
Author URI: https://getyouat.com
Description: Premium whole-house customization theme for Bohnucci. Fully editable from WP Admin via Theme Customizer.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: bohnucci
*/

/* ===========================
   CSS CUSTOM PROPERTIES
=========================== */
:root {
  --color-primary: #1a1a1a;
  --color-secondary: #8b7355;
  --color-accent: #c9a96e;
  --color-white: #ffffff;
  --color-light: #f8f6f3;
  --color-muted: #6b6b6b;
  --color-border: #e5e0d8;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;
  --nav-height: 80px;
  --container-max: 1280px;
  --section-pad: 80px;
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--color-primary);
  background: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===========================
   TYPOGRAPHY
=========================== */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 6vw, 5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 3rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.8rem); }
p { font-size: 1rem; color: var(--color-muted); }

/* ===========================
   UTILITIES
=========================== */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 40px; }
.section-pad { padding: var(--section-pad) 0; }
.text-center { text-align: center; }
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-primary);
}
.btn-primary:hover { background: transparent; color: var(--color-primary); }
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: var(--color-white); }
.btn-white {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}
.btn-white:hover { background: var(--color-white); color: var(--color-primary); }
.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
  display: block;
}
.section-title { margin-bottom: 16px; }
.section-desc { margin-bottom: 40px; font-size: 1.05rem; max-width: 640px; }
.divider { width: 60px; height: 2px; background: var(--color-accent); margin-bottom: 24px; }
.divider-center { margin-left: auto; margin-right: auto; }

/* ===========================
   SKIP LINK
=========================== */
.skip-link { position: absolute; top: -100px; left: 0; background: var(--color-primary); color: var(--color-white); padding: 10px 20px; z-index: 9999; transition: top 0.2s; }
.skip-link:focus { top: 0; }

/* ===========================
   HEADER / NAV
=========================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s ease;
  height: var(--nav-height);
}
#site-header.transparent { background: transparent; }
#site-header.scrolled { background: rgba(255,255,255,0.97); backdrop-filter: blur(12px); box-shadow: 0 2px 30px rgba(0,0,0,0.08); }
#site-header.scrolled .nav-logo img.logo-light { display: none; }
#site-header.scrolled .nav-logo img.logo-dark { display: block; }
#site-header.transparent .nav-logo img.logo-light { display: block; }
#site-header.transparent .nav-logo img.logo-dark { display: none; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 40px;
}
.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 44px; width: auto; transition: all 0.3s; }
.nav-logo img.logo-dark { display: none; }

.nav-menu { display: flex; align-items: center; gap: 36px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-white);
  transition: color 0.3s;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
#site-header.scrolled .nav-menu > li > a { color: var(--color-primary); }
.nav-menu > li > a:hover { color: var(--color-accent); }
.nav-menu > li > a .arrow { font-size: 0.6rem; transition: transform 0.3s; }
.nav-menu > li:hover > a .arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--color-white);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border-top: 3px solid var(--color-accent);
  padding: 12px 0;
}
.nav-menu > li:hover .dropdown { opacity: 1; visibility: visible; top: calc(100% + 8px); }
.dropdown a {
  display: block;
  padding: 10px 22px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.5px;
  transition: all 0.2s;
}
.dropdown a:hover { background: var(--color-light); color: var(--color-accent); padding-left: 28px; }

/* Nav Actions */
.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-cta {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 24px;
  background: var(--color-accent);
  color: var(--color-white);
  transition: all 0.3s;
}
.nav-cta:hover { background: var(--color-primary); color: var(--color-white); }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  /* Larger tap target for mobile */
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: all 0.3s;
}
#site-header.scrolled .nav-hamburger span { background: var(--color-primary); }
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  z-index: 999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 20px 80px;
  transform: translateX(-100%);
  transition: transform 0.35s ease;
}
.mobile-nav.active { transform: translateX(0); }
.mobile-nav a {
  display: block;
  padding: 16px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
  letter-spacing: 0.5px;
  /* Minimum tap target */
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-nav a:hover { color: var(--color-accent); }
.mobile-sub-toggle { display: flex; justify-content: space-between; align-items: center; }
.mobile-sub { display: none; padding-left: 16px; }
.mobile-sub.open { display: block; }
.mobile-sub a { font-size: 0.9rem; font-weight: 500; padding: 12px 0; min-height: 44px; }

/* ===========================
   HERO SLIDER
=========================== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
}
.hero-slides { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-slide.active .hero-slide-bg { transform: scale(1); }
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.15) 100%);
}
.hero-slide-content {
  position: relative;
  z-index: 2;
  padding: 0 40px;
  max-width: 700px;
  color: var(--color-white);
  width: 100%;
}
.hero-slide-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease 0.3s;
}
.hero-slide.active .hero-slide-label { opacity: 1; transform: translateY(0); }
.hero-slide-title {
  font-size: clamp(2rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.5s;
}
.hero-slide.active .hero-slide-title { opacity: 1; transform: translateY(0); }
.hero-slide-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease 0.7s;
}
.hero-slide.active .hero-slide-desc { opacity: 1; transform: translateY(0); }
.hero-slide-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease 0.9s;
}
.hero-slide.active .hero-slide-btns { opacity: 1; transform: translateY(0); }

/* Slider Controls */
.hero-arrows {
  position: absolute;
  bottom: 30px;
  right: 40px;
  z-index: 10;
  display: flex;
  gap: 10px;
}
.hero-arrow {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  /* Good tap target on mobile */
  min-width: 48px;
  min-height: 48px;
}
.hero-arrow:hover { background: var(--color-white); color: var(--color-primary); border-color: var(--color-white); }
.hero-dots {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
}
.hero-dot.active { background: var(--color-white); width: 28px; border-radius: 4px; }

/* ===========================
   CATEGORY STRIP — OPPEIN SPLIT STYLE
=========================== */
.category-strip {
  background: var(--color-light);
  padding: 0;
}
.category-strip-inner {
  display: flex;
  flex-direction: column;
}
.cat-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}
/* Odd items: text left, image right */
.cat-item:nth-child(odd) {
  grid-template-areas: "text image";
}
/* Even items: image left, text right */
.cat-item:nth-child(even) {
  grid-template-areas: "image text";
}
.cat-item:nth-child(even) .cat-text-side {
  order: 2;
}
.cat-item:nth-child(even) .cat-img-side {
  order: 1;
}

/* Text Side */
.cat-text-side {
  grid-area: text;
  background: var(--color-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 70px;
  position: relative;
}
.cat-top-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 10px;
}
.cat-main-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 20px;
  line-height: 1.1;
}
.cat-desc {
  font-size: 0.97rem;
  color: var(--color-muted);
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 40px;
}
.cat-btn {
  display: inline-block;
  padding: 14px 36px;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  width: fit-content;
  transition: all 0.3s ease;
  /* Ensure tap target */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.cat-btn:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* Image Side */
.cat-img-side {
  grid-area: image;
  overflow: hidden;
  position: relative;
}
.cat-img-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.cat-item:hover .cat-img-side img {
  transform: scale(1.04);
}

/* ===========================
   WHOLE HOUSE SECTION
=========================== */
.whole-house-section { padding: var(--section-pad) 0 0; background: var(--color-light); }
.whole-house-header { text-align: center; padding-bottom: 60px; }
.whole-house-grid { display: grid; grid-template-columns: 1fr 1fr; }
.whole-house-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.whole-house-item.full-width { grid-column: 1/-1; aspect-ratio: 21/9; }
.whole-house-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.whole-house-item:hover img { transform: scale(1.04); }
.whole-house-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: var(--color-white);
}
.whole-house-tag {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
  font-weight: 600;
}
.whole-house-item-title {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 10px;
}
.whole-house-item-desc { font-size: 0.88rem; color: rgba(255,255,255,0.8); margin-bottom: 20px; max-width: 400px; }
.whole-house-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-white);
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 3px;
  transition: all 0.3s;
}
.whole-house-link:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ===========================
   ABOUT SECTION
=========================== */
.about-section { padding: var(--section-pad) 0; }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-visual { position: relative; }
.about-main-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.about-accent-img {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 45%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border: 6px solid var(--color-white);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.about-badge {
  position: absolute;
  top: 30px;
  left: -20px;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 18px 22px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.about-badge-num { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; line-height: 1; }
.about-badge-text { font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.stat-item { padding: 24px; border: 1px solid var(--color-border); }
.stat-num { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700; color: var(--color-accent); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--color-muted); margin-top: 6px; letter-spacing: 0.5px; }

/* ===========================
   HONORS SECTION
=========================== */
.honors-section { padding: 60px 0; background: var(--color-primary); }
.honors-title { text-align: center; color: var(--color-white); margin-bottom: 40px; }
.honors-track-wrap { overflow: hidden; position: relative; }
.honors-track {
  display: flex;
  gap: 30px;
  animation: scrollTrack 30s linear infinite;
  width: max-content;
}
.honors-track:hover { animation-play-state: paused; }
.honor-item {
  flex-shrink: 0;
  width: 140px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 14px;
  transition: all 0.3s;
}
.honor-item:hover { background: rgba(255,255,255,0.1); border-color: var(--color-accent); }
.honor-item img { max-height: 56px; width: auto; filter: brightness(0) invert(1); opacity: 0.6; transition: opacity 0.3s; }
.honor-item:hover img { opacity: 1; }
@keyframes scrollTrack {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===========================
   VIDEO SECTION
=========================== */
.video-section {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.video-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding: 0 24px;
}
.video-content h2 { font-size: clamp(1.6rem, 5vw, 4rem); margin-bottom: 24px; }
.video-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 3px solid var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 1.6rem;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}
.video-play-btn:hover { background: var(--color-white); color: var(--color-primary); transform: scale(1.08); }

/* ===========================
   PROJECTS SECTION
=========================== */
.projects-section { padding: var(--section-pad) 0; }
.projects-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 50px; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.project-card.large { grid-column: span 2; }
.project-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card.large .project-card-img { aspect-ratio: 8/5; }
.project-card:hover .project-card-img { transform: scale(1.05); }
.project-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent);
  color: var(--color-white);
  transform: translateY(10px);
  transition: transform 0.4s;
}
.project-card:hover .project-card-info { transform: translateY(0); }
.project-card-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.project-card-units { font-size: 0.78rem; color: var(--color-accent); letter-spacing: 1px; }

/* ===========================
   CLIENTS SECTION
=========================== */
.clients-section { padding: 50px 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.clients-label { text-align: center; margin-bottom: 36px; }
.clients-logos img { max-width: 100%; }

/* ===========================
   WHY US SECTION
=========================== */
.whyus-section { padding: var(--section-pad) 0; background: var(--color-light); }
.whyus-header { text-align: center; margin-bottom: 60px; }
.whyus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.whyus-card {
  background: var(--color-white);
  padding: 40px 30px;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}
.whyus-card:hover { border-bottom-color: var(--color-accent); transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.08); }
.whyus-icon { width: 56px; height: 56px; margin-bottom: 20px; }
.whyus-icon img { width: 100%; height: 100%; object-fit: contain; }
.whyus-card-title { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 16px; color: var(--color-primary); }
.whyus-card ul { padding: 0; }
.whyus-card ul li {
  font-size: 0.88rem;
  color: var(--color-muted);
  padding: 6px 0;
  padding-left: 16px;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}
.whyus-card ul li:last-child { border-bottom: none; }
.whyus-card ul li::before { content: '—'; position: absolute; left: 0; color: var(--color-accent); font-size: 0.7rem; }
.whyus-cta { text-align: center; margin-top: 50px; }

/* ===========================
   KNOW MORE (3-column CTA) SECTION
=========================== */
.know-more-section { padding: var(--section-pad) 0; }
.know-more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.know-more-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: pointer;
}
.know-more-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.know-more-item:hover img { transform: scale(1.06); }
.know-more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 30px 20px;
  color: var(--color-white);
  transition: background 0.3s;
}
.know-more-item:hover .know-more-overlay { background: rgba(0,0,0,0.5); }
.know-more-title { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; text-align: center; margin-bottom: 16px; }

/* ===========================
   FOOTER
=========================== */
#site-footer { background: var(--color-primary); color: rgba(255,255,255,0.7); }
.footer-top {
  padding: 70px 0 50px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .footer-logo { height: 40px; width: auto; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: all 0.3s;
  /* Good tap size */
  min-width: 40px;
  min-height: 40px;
}
.footer-social a:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-white); }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 22px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.3s;
  /* Good tap height */
  display: inline-block;
  padding: 4px 0;
}
.footer-col ul li a:hover { color: var(--color-accent); }
.footer-contact { margin-top: 20px; }
.footer-contact-item { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 0.86rem; }
.footer-contact-item i { color: var(--color-accent); width: 18px; flex-shrink: 0; }
.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,0.35); transition: color 0.3s; }
.footer-bottom-links a:hover { color: var(--color-accent); }

/* ===========================
   VIDEO MODAL
=========================== */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  padding: 20px;
}
.video-modal.active { opacity: 1; visibility: visible; }
.video-modal-inner { position: relative; width: 90%; max-width: 1000px; aspect-ratio: 16/9; }
.video-modal-inner iframe { width: 100%; height: 100%; border: none; }
.video-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  font-size: 2rem;
  color: var(--color-white);
  cursor: pointer;
  transition: color 0.3s;
  /* Good tap target */
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-modal-close:hover { color: var(--color-accent); }

/* ===========================
   SCROLL TO TOP
=========================== */
#scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
}
#scroll-top.visible { opacity: 1; transform: translateY(0); }
#scroll-top:hover { background: var(--color-accent); }

/* ===========================
   RESPONSIVE — TABLET (max 1100px)
=========================== */
@media (max-width: 1100px) {
  .whole-house-grid { grid-template-columns: 1fr; }
  .whole-house-item.full-width { grid-column: auto; aspect-ratio: 16/7; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-card.large { grid-column: span 2; }
  .whyus-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ===========================
   RESPONSIVE — MEDIUM (max 900px)
=========================== */
@media (max-width: 900px) {
  :root {
    --section-pad: 60px;
    --nav-height: 70px;
  }

  /* Nav */
  .nav-menu, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-nav { display: block; }
  .nav-inner { padding: 0 20px; }
  .nav-logo img { height: 36px; }

  /* About */
  .about-inner { grid-template-columns: 1fr; gap: 60px; }
  .about-accent-img { bottom: -20px; right: -10px; }

  /* Know More */
  .know-more-grid { grid-template-columns: 1fr; }
  .know-more-item { aspect-ratio: 16/9; }

  /* Category strip: stack vertically */
  .cat-item {
    grid-template-columns: 1fr;
    grid-template-areas: "image" "text" !important;
    min-height: auto;
  }
  .cat-item:nth-child(even) .cat-text-side,
  .cat-item:nth-child(even) .cat-img-side {
    order: unset;
  }
  .cat-img-side { min-height: 300px; }
  .cat-text-side { padding: 50px 30px; }

  /* Whole house grid */
  .whole-house-grid { grid-template-columns: 1fr; }
  .whole-house-item.full-width { aspect-ratio: 16/8; }
  .whole-house-item { aspect-ratio: 16/9; }

  /* Hero */
  .hero-slide-content { padding: 0 24px; }
  .hero-arrows { right: 20px; bottom: 24px; }
}

/* ===========================
   RESPONSIVE — MOBILE (max 700px)
=========================== */
@media (max-width: 700px) {
  :root {
    --section-pad: 48px;
    --nav-height: 64px;
  }

  /* Container */
  .container { padding: 0 16px; }

  /* Nav */
  .nav-inner { padding: 0 16px; }
  .nav-logo img { height: 32px; }

  /* Hero */
  .hero-section { min-height: 480px; }
  .hero-slide-content { padding: 0 20px; max-width: 100%; }
  .hero-slide-title { font-size: clamp(1.8rem, 8vw, 3rem); margin-bottom: 14px; }
  .hero-slide-desc { font-size: 0.92rem; margin-bottom: 24px; }
  .hero-slide-label { font-size: 0.68rem; letter-spacing: 3px; }
  .hero-slide-btns { gap: 10px; }
  .hero-slide-btns .btn { padding: 12px 22px; font-size: 0.78rem; }
  .hero-arrows { right: 16px; gap: 8px; }
  .hero-arrow { width: 42px; height: 42px; font-size: 0.9rem; }
  .hero-dots { display: none; }

  /* Category strip */
  .cat-text-side { padding: 36px 20px; }
  .cat-main-title { font-size: clamp(1.4rem, 5vw, 2rem); }
  .cat-desc { font-size: 0.9rem; margin-bottom: 28px; }
  .cat-btn { padding: 12px 24px; font-size: 0.8rem; }
  .cat-img-side { min-height: 240px; }

  /* Whole house */
  .whole-house-header { padding-bottom: 36px; }
  .whole-house-item { aspect-ratio: 4/3; }
  .whole-house-item.full-width { aspect-ratio: 4/3; }
  .whole-house-overlay { padding: 20px; }
  .whole-house-item-desc { display: none; }

  /* About */
  .about-inner { gap: 40px; }
  .about-accent-img { width: 40%; bottom: -15px; right: -10px; border-width: 4px; }
  .about-badge { left: -10px; padding: 14px 16px; }
  .about-badge-num { font-size: 1.6rem; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
  .stat-item { padding: 16px; }
  .stat-num { font-size: 1.8rem; }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.large { grid-column: auto; }
  .project-card.large .project-card-img { aspect-ratio: 4/3; }
  .projects-header { flex-direction: column; align-items: flex-start; gap: 16px; }

  /* Why Us */
  .whyus-grid { grid-template-columns: 1fr; }
  .whyus-card { padding: 28px 20px; }
  .whyus-header { margin-bottom: 36px; }

  /* Know More */
  .know-more-overlay { padding: 24px 16px; }
  .know-more-title { font-size: 1.1rem; }

  /* Honors */
  .honor-item { width: 120px; height: 80px; }

  /* Video */
  .video-section { height: 50vh; min-height: 300px; }
  .video-play-btn { width: 60px; height: 60px; font-size: 1.4rem; }

  /* Buttons global */
  .btn { padding: 12px 24px; font-size: 0.8rem; letter-spacing: 1px; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 36px; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .footer-bottom-links { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .footer-col h4 { margin-bottom: 16px; }

  /* Section headings */
  .section-desc { font-size: 0.95rem; }

  /* Scroll top */
  #scroll-top { bottom: 20px; right: 16px; }
}

/* ===========================
   RESPONSIVE — SMALL PHONES (max 420px)
=========================== */
@media (max-width: 420px) {
  :root { --section-pad: 40px; }

  .hero-slide-title { font-size: clamp(1.6rem, 9vw, 2.5rem); }
  .hero-slide-content { padding: 0 16px; }

  .cat-text-side { padding: 28px 16px; }
  .cat-img-side { min-height: 200px; }

  .about-stats { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 1.5rem; }

  .know-more-item { aspect-ratio: 4/3; }

  .footer-social a { width: 44px; height: 44px; }

  .hero-arrows { display: none; }
  .hero-dots { display: flex; bottom: 16px; }
  .hero-dot { width: 6px; height: 6px; }
  .hero-dot.active { width: 20px; }
}

/* ===========================
   TOUCH DEVICE IMPROVEMENTS
=========================== */
@media (hover: none) {
  /* Remove hover-only transforms on touch — they stay stuck */
  .whyus-card:hover { transform: none; }
  .cat-item:hover .cat-img-side img { transform: none; }
  .know-more-item:hover img { transform: none; }
  .project-card:hover .project-card-img { transform: none; }
  .whole-house-item:hover img { transform: none; }

  /* Always show project info on touch */
  .project-card-info { transform: translateY(0); }
}

/* ===========================
   ACCESSIBILITY — REDUCE MOTION
=========================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .honors-track { animation: none; }
  .hero-slide-bg { transform: none !important; }
}