/* ==========================================================================
   Timberline Homes - Main Stylesheet
   Clean, modern, and responsive styling for timberlineinc.org
   ========================================================================== */

/* Google Fonts: Cinzel for architectural headings, Plus Jakarta Sans for clean body text */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- Design Tokens & Variables --- */
:root {
  --primary: #1e332d;         /* Deep Hill Country pine */
  --primary-light: #2c4942;   /* Lighter pine for hover states */
  --accent: #c48b52;          /* Warm timber ochre / bronze */
  --accent-light: #dfa870;    /* Warm timber hover */
  --accent-bg: #f5ede4;       /* Soft warm tint */
  --text-dark: #1a201e;       /* Deep slate for high-contrast text */
  --text-body: #3c4844;       /* Balanced reading color */
  --text-muted: #6b7a75;      /* Subtle secondary text */
  --bg-page: #fbfbfa;         /* Warm off-white page background */
  --bg-surface: #ffffff;      /* Pure white cards and surfaces */
  --bg-subtle: #f2f3f1;       /* Light neutral tone for sections */
  --border-color: #e2e5e2;    /* Soft border */
  
  --font-heading: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --shadow-sm: 0 2px 8px rgba(20, 35, 30, 0.05);
  --shadow-md: 0 8px 24px rgba(20, 35, 30, 0.08);
  --shadow-lg: 0 16px 40px rgba(20, 35, 30, 0.12);
  --shadow-hover: 0 14px 32px rgba(196, 139, 82, 0.18);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --- Layout Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

/* --- Section Headers --- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.875rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .section-title { font-size: 1.75rem; }
  .section-subtitle { font-size: 1rem; }
}

/* --- Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.site-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

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

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--primary);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-phone:hover {
  color: var(--accent);
  background: rgba(196, 139, 82, 0.08);
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--primary);
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background: var(--bg-surface);
  padding: 2rem 1.5rem;
  z-index: 999;
  overflow-y: auto;
  border-top: 1px solid var(--border-color);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.mobile-nav-drawer.open {
  transform: translateY(0);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.mobile-nav-links a {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--primary);
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-links a.active {
  color: var(--accent);
}

@media (max-width: 900px) {
  .nav-links, .header-cta .btn-outline {
    display: none;
  }
  
  .nav-wrapper {
    height: 72px;
  }

  .site-logo {
    font-size: 1.125rem;
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .site-logo img {
    height: 38px;
  }

  /* Option 1: Mobile Phone Icon Button */
  .btn-phone {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    background: rgba(196, 139, 82, 0.12);
    color: var(--accent);
    border: 1px solid rgba(196, 139, 82, 0.25);
    flex-shrink: 0;
  }

  .btn-phone:hover {
    background: var(--accent);
    color: #ffffff;
  }

  .btn-phone svg {
    width: 20px;
    height: 20px;
  }

  .btn-phone .phone-text {
    display: none;
  }

  .header-cta {
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: var(--radius-sm);
  }

  .mobile-toggle svg {
    width: 26px;
    height: 26px;
  }

  .mobile-nav-drawer {
    display: block;
    top: 72px;
    height: calc(100vh - 72px);
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-logo {
    font-size: 1rem;
    gap: 0.4rem;
  }

  .site-logo img {
    height: 32px;
  }

  .btn-phone {
    width: 38px;
    height: 38px;
  }

  .btn-phone svg {
    width: 18px;
    height: 18px;
  }

  .mobile-toggle {
    width: 38px;
    height: 38px;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  line-height: 1.2;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
}

.btn-accent:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

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

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

.btn-outline-white {
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background: #ffffff;
  color: var(--primary);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background-color: var(--primary);
  color: #ffffff;
  padding: 6.5rem 0 6rem 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(1.1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(20, 35, 30, 0.92) 0%, rgba(20, 35, 30, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.hero-tagline span {
  color: var(--accent-light);
}

.hero-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-meta-icon {
  width: 22px;
  height: 22px;
  color: var(--accent-light);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 0 3.5rem 0;
  }
  .hero-tagline {
    font-size: 2.125rem;
  }
  .hero-lead {
    font-size: 1.0625rem;
  }
  .hero-meta-bar {
    gap: 1.25rem;
  }
}

/* --- Features / Value Props Section --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.75rem;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--accent-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --- Recent Builds Showcase Grid --- */
.builds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 640px) {
  .builds-grid {
    grid-template-columns: 1fr;
  }
}

.build-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.build-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.build-card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--bg-subtle);
}

.build-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.build-card:hover .build-card-image-wrap img {
  transform: scale(1.05);
}

.build-badge-sqft {
  position: absolute;
  bottom: 0.85rem;
  right: 0.85rem;
  background: rgba(20, 35, 30, 0.88);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

.build-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.build-card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.build-specs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.spec-chip {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--bg-subtle);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.build-card-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.build-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.btn-view-gallery {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--accent);
  transition: var(--transition);
}

.btn-view-gallery:hover {
  color: var(--primary);
  transform: translateX(4px);
}

/* --- Testimonials Section --- */
.testimonial-section {
  background: var(--primary);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.testimonial-card {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.quote-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin: 0 auto 1.5rem auto;
  opacity: 0.8;
}

.testimonial-quote {
  font-size: 1.25rem;
  line-height: 1.7;
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
}

.testimonial-author {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 0.05em;
}

.testimonial-location {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 768px) {
  .testimonial-quote {
    font-size: 1.0625rem;
  }
}

/* --- Call To Action Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-subtle) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2rem auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- Site Footer --- */
.site-footer {
  background: #141f1c;
  color: rgba(255, 255, 255, 0.7);
  padding: 4.5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 1.25rem;
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  color: #ffffff;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-light);
  transform: translateX(3px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
}

/* ==========================================================================
   GALLERY PAGE SPECIFIC STYLES
   ========================================================================== */

/* Sticky Quick Nav Filter Bar */
.gallery-filter-bar {
  position: sticky;
  top: 80px;
  z-index: 900;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.filter-pills-scroll {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 0.25rem;
  scrollbar-width: none; /* Firefox */
}

.filter-pills-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.filter-pill {
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.filter-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* House Section in Gallery */
.house-gallery-section {
  padding: 4.5rem 0 3.5rem 0;
  border-bottom: 1px solid var(--border-color);
  scroll-margin-top: 140px; /* Offset for sticky header and filter bar */
  transition: background-color 0.8s ease;
}

.house-gallery-section:last-of-type {
  border-bottom: none;
}

/* Highlight flash when deep-linked */
.house-gallery-section.target-highlight {
  animation: targetFlash 2.5s ease-out;
}

@keyframes targetFlash {
  0% { background-color: rgba(196, 139, 82, 0.16); }
  50% { background-color: rgba(196, 139, 82, 0.08); }
  100% { background-color: transparent; }
}

.house-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.house-header-info h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.house-header-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.house-header-specs span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.house-header-specs span::after {
  content: '•';
  margin-left: 0.6rem;
  color: var(--border-color);
}

.house-header-specs span:last-child::after {
  content: '';
}

.photo-count-badge {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

/* Photo Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

.photo-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-subtle);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-item:hover img {
  transform: scale(1.08);
}

.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 35, 30, 0.4);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease;
}

.photo-item:hover .photo-overlay {
  opacity: 1;
}

.photo-zoom-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: scale(0.8);
  transition: transform 0.25s ease;
}

.photo-item:hover .photo-zoom-icon {
  transform: scale(1);
}

/* --- Photo Lightbox Modal --- */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  background: rgba(10, 18, 15, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image-wrap {
  position: relative;
  max-height: 80vh;
}

.lightbox-image-wrap img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: #ffffff;
  font-size: 0.9375rem;
  margin-top: 1rem;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.35);
}

.lightbox-nav.prev { left: 1.5rem; }
.lightbox-nav.next { right: 1.5rem; }

@media (max-width: 768px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
  }
  .lightbox-nav.prev { left: 0.5rem; }
  .lightbox-nav.next { right: 0.5rem; }
}

/* ==========================================================================
   WARRANTY PAGE SPECIFIC STYLES
   ========================================================================== */

.warranty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (max-width: 900px) {
  .warranty-grid {
    grid-template-columns: 1fr;
  }
}

.warranty-tier-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
}

.tier-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.tier-years {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.warranty-tier-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.warranty-tier-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.warranty-tier-card li {
  font-size: 0.9375rem;
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.5;
}

.warranty-tier-card li svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Timeline: What To Expect */
.timeline-list {
  max-width: 840px;
  margin: 3rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-step {
  display: flex;
  gap: 1.75rem;
  background: var(--bg-surface);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.step-num-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timeline-step-content h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.timeline-step-content p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Urgent Requests Callout */
.urgent-box {
  background: #fff8f0;
  border-left: 5px solid #d97706;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 2.5rem 2rem;
  margin-top: 3.5rem;
}

.urgent-box h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.urgent-box h3 svg {
  width: 28px;
  height: 28px;
  color: #d97706;
}

.urgent-box p {
  color: #78350f;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.urgent-steps {
  list-style: decimal;
  padding-left: 1.5rem;
  color: #78350f;
  font-size: 0.9375rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.25rem 0;
}

.warranty-contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
  margin-top: 3.5rem;
  box-shadow: var(--shadow-sm);
}

.warranty-contact-card h4 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.warranty-contact-details {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.w-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--primary);
}

.w-contact-item svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

/* ==========================================================================
   CONTACT US PAGE SPECIFIC STYLES
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
  margin-top: 3rem;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.info-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg {
  width: 20px;
  height: 20px;
}

.info-label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.info-value {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
}

/* Contact Form */
.contact-form-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .form-group-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.45rem;
}

.form-label span.req {
  color: #dc2626;
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-dark);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 139, 82, 0.18);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.form-help-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.form-success-banner {
  display: none;
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-success-banner.active,
.form-success-banner:target {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
