/* ==========================================================================
   David Cuevas Designs - Master Joinery & Heavy Timber Architecture
   Sleek, Tightened Luxury CSS Stylesheet + SEO/AI Engine Optimization
   St. Petersburg, Clearwater & Tampa Bay Search Dominance Engine
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --bg-dark: #090b0e;
  --bg-surface: #11141b;
  --bg-card: #161b24;
  --bg-card-hover: #1c222e;
  --bg-glass: rgba(17, 20, 27, 0.92);
  --border-subtle: rgba(212, 163, 115, 0.18);
  --border-active: rgba(212, 163, 115, 0.55);

  /* Brand Accents */
  --cedar-gold: #d4a373;
  --cedar-warm: #c97c5d;
  --cedar-amber: #e07a5f;
  --cedar-light: #faedcd;
  --steel-black: #1a1e24;
  --amber-glow: rgba(212, 163, 115, 0.25);
  --google-blue: #4285f4;
  --google-yellow: #fbbc05;
  --google-green: #34a853;
  --google-red: #ea4335;
  
  /* Text Colors */
  --text-main: #f8f9fa;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Typography */
  --font-heading: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Radius & Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-glow: 0 10px 30px -5px rgba(212, 163, 115, 0.22);
  --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.65);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Utility Classes */
.container {
  width: 92%;
  max-width: 1240px;
  margin: 0 auto;
}

.text-gold { color: var(--cedar-gold); }

.gold-gradient {
  background: linear-gradient(135deg, #faedcd 0%, #d4a373 50%, #c97c5d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.25; margin-bottom: 0.75rem; }
h3 { font-size: 1.3rem; line-height: 1.3; }

p {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-phone-nav {
  padding: 0.65rem 1.1rem;
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, #d4a373 0%, #c97c5d 100%);
  color: #090b0e;
  box-shadow: 0 4px 15px rgba(212, 163, 115, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212, 163, 115, 0.45);
  background: linear-gradient(135deg, #faedcd 0%, #d4a373 100%);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--cedar-gold);
  background: rgba(212, 163, 115, 0.08);
  color: var(--cedar-gold);
}

.btn-google {
  background: #ffffff;
  color: #1a1e24;
  border: 1px solid #e0e0e0;
  font-weight: 700;
}

.btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 4px 18px rgba(66, 133, 244, 0.3);
  border-color: var(--google-blue);
  color: var(--google-blue);
}

/* Navigation Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: var(--transition);
  backdrop-filter: blur(14px);
  background: rgba(9, 11, 14, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header.scrolled {
  background: rgba(9, 11, 14, 0.96);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand-logo {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #d4a373, #c97c5d);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #090b0e;
  font-weight: 800;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  box-shadow: 0 4px 14px rgba(212, 163, 115, 0.22);
  flex-shrink: 0;
  margin-top: 1px;
}

.brand-title {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.brand-name-top {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.05em;
  line-height: 1;
}

.brand-name-bottom {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.18em;
  line-height: 1;
  margin-top: 5px;
}

.brand-guild {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--cedar-gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 5px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--cedar-gold);
}

.nav-cta-group {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
  margin-left: 1.5rem;
  padding-left: 1.25rem;
  border-left: 1px solid rgba(212, 163, 115, 0.2);
}

/* Mobile Hamburger Toggle Button */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cedar-gold);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.4rem;
}

/* Mobile Dropdown Nav Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.mobile-menu a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu a i {
  color: var(--cedar-gold);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  padding-top: 120px;
  padding-bottom: 4rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 75% 30%, rgba(212, 163, 115, 0.08) 0%, transparent 65%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(212, 163, 115, 0.1);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cedar-gold);
  margin-bottom: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-text h1 {
  margin-bottom: 1.25rem;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
}

.hero-image-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-image-wrapper:hover img {
  transform: scale(1.02);
}

.hero-floating-card {
  position: absolute;
  bottom: -15px;
  left: -15px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 30px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 270px;
}

.card-icon {
  width: 40px;
  height: 40px;
  background: rgba(212, 163, 115, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cedar-gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.card-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-main);
}

.card-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Metrics Bar */
.metrics-bar {
  padding: 2.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(17, 20, 27, 0.6);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.metric-item h3 {
  font-size: 2rem;
  color: var(--cedar-gold);
  margin-bottom: 0.1rem;
}

.metric-item p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* Section Common Styling */
section {
  padding: 5.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-subtitle {
  color: var(--cedar-gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: block;
}

/* Founder / Master Joiner Section */
.founder-section {
  background: rgba(17, 20, 27, 0.4);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.founder-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.founder-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.founder-img-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.founder-badge {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--cedar-gold);
  font-weight: 600;
}

/* Features List */
.heritage-features {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  gap: 1.1rem;
  transition: var(--transition);
}

.feature-box:hover {
  border-color: var(--cedar-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 42px;
  height: 42px;
  background: rgba(212, 163, 115, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cedar-gold);
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Interactive Joinery Showcase */
.joinery-section {
  background: radial-gradient(ellipse at center, rgba(22, 27, 36, 0.9) 0%, var(--bg-dark) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.joinery-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--cedar-gold);
  color: #090b0e;
  border-color: var(--cedar-gold);
}

.joinery-display {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.joinery-img-container {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #090b0e;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.joinery-img-container img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  display: block;
}

.tech-specs {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.tech-spec-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.tech-spec-item i {
  color: var(--cedar-gold);
}

/* Local Regional Hub Section (St. Pete & Clearwater Local SEO) */
.regional-section {
  background: rgba(9, 11, 14, 0.95);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

.area-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
}

.area-card:hover {
  border-color: var(--cedar-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.area-card h3 {
  font-size: 1.15rem;
  color: var(--cedar-gold);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.area-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Portfolio Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  height: 340px;
  cursor: pointer;
}

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

.gallery-card:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 11, 14, 0.92) 0%, transparent 60%);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-tag {
  color: var(--cedar-gold);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
}

/* Google Reviews & Testimonials Section */
.reviews-section {
  background: rgba(17, 20, 27, 0.4);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.google-badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  margin: 0 auto 3rem auto;
  max-width: 650px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

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

.google-icon {
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #4285f4;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.google-stars {
  color: var(--google-yellow);
  font-size: 1.1rem;
  display: flex;
  gap: 3px;
}

.google-score {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-main);
}

.google-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
}

.review-card.featured-review {
  border-color: var(--border-active);
  background: linear-gradient(145deg, #1c222e 0%, #161b24 100%);
  box-shadow: var(--shadow-glow);
}

.review-card:hover {
  border-color: var(--cedar-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4a373, #c97c5d);
  color: #090b0e;
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.reviewer-details h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.1rem;
}

.reviewer-details span {
  font-size: 0.78rem;
  color: var(--cedar-gold);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.review-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--google-green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* FAQ Section Styling (SEO Accordion) */
.faq-grid {
  display: grid;
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question i {
  color: var(--cedar-gold);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.5rem;
  background: rgba(9, 11, 14, 0.4);
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 1.5rem 1.25rem 1.5rem;
  transition: max-height 0.35s ease-in-out;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Full-Screen Lightbox Carousel Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(5, 7, 10, 0.94);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-container {
  position: relative;
  width: 90%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-wrapper {
  position: relative;
  max-width: 100%;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
  border: 1px solid var(--border-subtle);
  background: #000;
}

.lightbox-img-wrapper img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.lightbox-details {
  margin-top: 1.25rem;
  text-align: center;
  max-width: 700px;
}

.lightbox-tag {
  color: var(--cedar-gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  display: block;
}

.lightbox-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.lightbox-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.lightbox-counter {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
  letter-spacing: 0.1em;
}

/* Lightbox Controls */
.lightbox-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(22, 27, 36, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--cedar-gold);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 3010;
}

.lightbox-btn:hover {
  background: var(--cedar-gold);
  color: #090b0e;
  box-shadow: 0 0 20px rgba(212, 163, 115, 0.5);
}

.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }

.lightbox-close-btn {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close-btn:hover {
  color: var(--cedar-gold);
}

/* Project Estimator Card */
.estimator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  box-shadow: var(--shadow-card);
}

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-control, select {
  width: 100%;
  padding: 0.75rem 1.1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-control:focus, select:focus {
  outline: none;
  border-color: var(--cedar-gold);
  box-shadow: 0 0 0 3px var(--amber-glow);
}

.range-slider {
  width: 100%;
  accent-color: var(--cedar-gold);
  height: 5px;
  background: var(--bg-dark);
  border-radius: 3px;
}

.estimation-summary {
  background: rgba(9, 11, 14, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.price-range-display {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--cedar-gold);
  margin: 0.75rem 0;
}

/* Modal Intake Popup */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  width: 90%;
  max-width: 560px;
  position: relative;
  box-shadow: var(--shadow-card);
}

.modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Footer */
footer {
  background: #06080a;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 3.5rem 0 1.75rem 0;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Responsive Breakpoints & Mobile Phone Optimization */
@media (max-width: 1280px) {
  .nav-links {
    gap: 0.95rem;
  }
  .nav-links a {
    font-size: 0.82rem;
  }
  .nav-cta-group {
    margin-left: 1rem;
    padding-left: 1rem;
  }
}

@media (max-width: 1120px) {
  .nav-links {
    gap: 0.7rem;
  }
  .nav-links a {
    font-size: 0.78rem;
  }
  .nav-cta-group {
    margin-left: 0.75rem;
    padding-left: 0.75rem;
  }
  .btn-phone-nav {
    padding: 0.55rem 0.85rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 992px) {
  .nav-cta-group {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    gap: 0.5rem;
  }
  .hero-grid, .founder-grid, .joinery-display, .estimator-card, .reviews-grid, .service-area-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .lightbox-prev { left: 10px; top: 40%; }
  .lightbox-next { right: 10px; top: 40%; }
}

@media (max-width: 768px) {
  .brand-logo {
    gap: 0.55rem;
  }
  .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
    border-radius: 5px;
    margin-top: 1px;
  }
  .brand-name-top {
    font-size: 0.92rem;
  }
  .brand-name-bottom {
    font-size: 0.76rem;
    margin-top: 3px;
  }
  .brand-guild {
    display: none;
  }
  .nav-cta-group .btn-primary {
    display: none;
  }
  .btn-phone-nav {
    padding: 0.45rem 0.7rem;
    font-size: 0.76rem;
  }
}

@media (max-width: 600px) {
  section { padding: 3.5rem 0; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
  .hero { min-height: auto; padding-top: 95px; padding-bottom: 2.5rem; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .hero-image-wrapper img { height: 340px; }
  .founder-img-wrapper img { height: 360px; }
  .joinery-display { padding: 1.25rem; }
  .estimator-card { padding: 1.5rem; }
  .google-badge-card { padding: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}

/* Eradicate Netlify Floating Badges & Injected Snippets */
.netlify-badge,
[class*="netlify-badge"],
[id*="netlify-badge"],
iframe[src*="netlify"],
div[data-netlify-badge],
.netlify-identity-widget {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
