/* ==========================================================================
   N&D PRO PAINTING AND SERVICES - DESIGN SYSTEM & STYLESHEET
   Based on Logo Palette: Crimson Red, Deep Charcoal, Metallic Silver & Pure White
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Primary Colors (Extracted from Logo Roofline & Text) */
  --red-primary: #C8102E;
  --red-hover: #E11D48;
  --red-dark: #991B1B;
  --red-light: #FCA5A5;
  --red-gradient: linear-gradient(135deg, #B91C1C 0%, #EF4444 50%, #7F1D1D 100%);
  --red-metallic: linear-gradient(135deg, #991B1B 0%, #DC2626 40%, #B91C1C 70%, #450A0A 100%);
  
  /* Slate & Charcoal Tones */
  --bg-dark: #0B0F19;
  --bg-dark-surface: #151C2C;
  --bg-dark-card: #1E293B;
  --charcoal: #1E293B;
  --charcoal-deep: #0F172A;

  /* Metallic Silver & Neutral Light Tones */
  --silver-light: #F8FAFC;
  --silver-border: #E2E8F0;
  --silver-accent: #CBD5E1;
  --silver-metallic: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 50%, #94A3B8 100%);
  
  /* Text Colors */
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --text-light: #F8FAFC;
  --text-light-muted: #94A3B8;

  /* Typography */
  --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows & Glassmorphism */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --shadow-red: 0 8px 24px rgba(200, 16, 46, 0.28);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-dark-bg: rgba(15, 23, 42, 0.85);
  --glass-dark-border: rgba(255, 255, 255, 0.1);

  /* Transitions & Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--red-dark);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--red-primary);
}

/* Container Utility */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

.text-gradient-red {
  background: var(--red-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(200, 16, 46, 0.08);
  border: 1px solid rgba(200, 16, 46, 0.2);
  color: var(--red-primary);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-badge.badge-dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--silver-accent);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 3rem auto;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  min-height: 44px;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  outline: none;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--red-metallic);
  color: var(--text-light);
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(200, 16, 46, 0.4);
  background: linear-gradient(135deg, #B91C1C 0%, #EF4444 50%, #991B1B 100%);
}

.btn-secondary {
  background: var(--charcoal-deep);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: var(--charcoal);
  transform: translateY(-2px);
  border-color: var(--silver-accent);
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--silver-border);
}

.btn-outline:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
  background: rgba(200, 16, 46, 0.04);
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition-smooth);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.95);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-roof-graphic {
  position: relative;
  width: 44px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.roof-line-red {
  position: absolute;
  width: 100%;
  height: 100%;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  line-height: 1;
}

.logo-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--red-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 3px;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--red-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--red-primary);
  transition: var(--transition-fast);
  border-radius: 2px;
}

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

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

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 100px;
  background: var(--bg-dark);
  color: var(--text-light);
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(135deg, rgba(11, 15, 25, 0.92) 0%, rgba(15, 23, 42, 0.85) 60%, rgba(200, 16, 46, 0.3) 100%), url('assets/hero.png');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-shapes {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.15;
  background: radial-gradient(circle at 70% 30%, var(--red-primary) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-text-box h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--text-light);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-text-box p {
  font-size: 1.25rem;
  color: var(--silver-accent);
  margin-bottom: 2rem;
  max-width: 90%;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-light);
  line-height: 1;
}

.stat-number span {
  color: var(--red-primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-light-muted);
  margin-top: 0.35rem;
}

.hero-card-preview {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
}

.hero-card-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red-metallic);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-header-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.badge-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.dot-pulse {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.preview-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.preview-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--silver-light);
  font-size: 0.95rem;
}

.check-icon {
  width: 22px;
  height: 22px;
  background: rgba(200, 16, 46, 0.2);
  border-radius: 50%;
  color: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services {
  padding: 100px 0;
  background: var(--silver-light);
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--silver-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200, 16, 46, 0.3);
}

.service-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

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

.service-card:hover .service-img {
  transform: scale(1.08);
}

.service-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--glass-dark-bg);
  color: var(--text-light);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.service-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(200, 16, 46, 0.1);
  color: var(--red-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.service-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-features li {
  font-size: 0.875rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features i {
  color: var(--red-primary);
  font-size: 0.8rem;
}

/* ==========================================================================
   COLOR VISUALIZER SECTION (SIMULADOR INTERATIVO)
   ========================================================================== */
.visualizer-section {
  padding: 100px 0;
  background: var(--bg-dark-surface);
  color: var(--text-light);
}

.visualizer-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: var(--bg-dark-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.visualizer-preview-box {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 380px;
  background: #111;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.room-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.room-wall-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(200, 16, 46, 0.35);
  mix-blend-mode: multiply;
  transition: background-color 0.4s ease;
  pointer-events: none;
}

.visualizer-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.visualizer-controls h3 {
  color: var(--text-light);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.visualizer-controls p {
  color: var(--text-light-muted);
  margin-bottom: 1.75rem;
}

.color-swatch-group {
  margin-bottom: 2rem;
}

.swatch-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--silver-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.color-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.color-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.color-btn:hover {
  transform: scale(1.15);
}

.color-btn.active {
  border-color: var(--text-light);
  transform: scale(1.15);
  box-shadow: 0 0 15px rgba(255,255,255,0.4);
}

.color-btn.active::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* Color Presets */
.c-red { background: #C8102E; }
.c-charcoal { background: #1E293B; }
.c-silver { background: #94A3B8; }
.c-navy { background: #1E3A8A; }
.c-beige { background: #D4A373; }
.c-sage { background: #4A5D4E; }

/* ==========================================================================
   QUOTE CALCULATOR SECTION (CALCULADORA DE ORÇAMENTO)
   ========================================================================== */
.calculator-section {
  padding: 100px 0;
  background: var(--silver-light);
}

.calculator-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--silver-border);
  max-width: 900px;
  margin: 0 auto;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

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

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

.form-control, .form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--silver-border);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--silver-light);
  transition: var(--transition-fast);
  outline: none;
}

.form-control:focus, .form-select:focus {
  border-color: var(--red-primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.1);
}

.range-slider-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.range-val-display {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: var(--red-primary);
  font-size: 1.1rem;
}

input[type=range] {
  width: 100%;
  accent-color: var(--red-primary);
  height: 8px;
  background: var(--silver-accent);
  border-radius: 4px;
  cursor: pointer;
}

.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-dark);
}

.checkbox-item input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--red-primary);
  cursor: pointer;
}

.calc-summary-box {
  background: var(--charcoal-deep);
  color: var(--text-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 4px solid var(--red-primary);
}

.calc-estimate-header {
  font-size: 0.875rem;
  color: var(--text-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.calc-price-range {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--text-light);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.calc-price-range span {
  color: var(--red-primary);
}

.calc-details-list {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--silver-accent);
}

.calc-details-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
  padding-bottom: 0.35rem;
}

.active-addons-box {
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.active-addons-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light-muted);
  margin-bottom: 0.5rem;
}

.active-addons-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.addon-tag {
  background: rgba(200, 16, 46, 0.25);
  color: var(--red-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(200, 16, 46, 0.4);
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: max(1.75rem, env(safe-area-inset-bottom));
  right: max(1.75rem, env(safe-area-inset-right));
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 999;
  text-decoration: none;
  transition: var(--transition-smooth);
  touch-action: manipulation;
}

.floating-whatsapp:hover {
  transform: scale(1.1) translateY(-3px);
  background: #20BA5A;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   PORTFOLIO & BEFORE/AFTER SECTION
   ========================================================================== */
.portfolio-section {
  padding: 100px 0;
  background: var(--white);
}

.portfolio-filter-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.25rem;
  background: var(--silver-light);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-full);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--red-primary);
  color: var(--white);
  border-color: var(--red-primary);
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.25);
}

/* Gallery 6-Photo Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--silver-border);
  transition: var(--transition-smooth);
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200, 16, 46, 0.4);
}

.gallery-img-box {
  position: relative;
  height: 280px;
  overflow: hidden;
}

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

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 60%, transparent 100%);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gallery-tag {
  align-self: flex-start;
  background: var(--red-primary);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gallery-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 0.25rem;
}

.gallery-sub {
  font-size: 0.85rem;
  color: var(--silver-accent);
}

/* ==========================================================================
   WHY CHOOSE US / FEATURES
   ========================================================================== */
.why-us {
  padding: 100px 0;
  background: var(--bg-dark-surface);
  color: var(--text-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-box {
  background: var(--bg-dark-card);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-smooth);
}

.feature-box:hover {
  transform: translateY(-5px);
  border-color: var(--red-primary);
  box-shadow: 0 10px 30px rgba(200, 16, 46, 0.15);
}

.feature-icon-circle {
  width: 60px;
  height: 60px;
  background: var(--red-metallic);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-red);
}

.feature-title {
  color: var(--text-light);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

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

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials {
  padding: 100px 0;
  background: var(--silver-light);
}

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

.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--silver-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars-row {
  color: #F59E0B;
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.review-quote {
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--silver-metallic);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.author-details h5 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.author-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CONTACT SECTION & MODAL
   ========================================================================== */
.contact-section {
  padding: 100px 0;
  background: var(--white);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: var(--silver-light);
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 1px solid var(--silver-border);
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.info-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

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

.info-icon {
  width: 44px;
  height: 44px;
  background: var(--red-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: var(--transition-fast);
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--silver-light);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-dark);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 80px 0 30px 0;
  border-top: 4px solid var(--red-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--text-light-muted);
  margin-top: 1rem;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-column h4 {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--red-primary);
}

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

.footer-links a {
  color: var(--text-light-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--red-primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-light-muted);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-content { grid-template-columns: 1fr; }
  .visualizer-container { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.mobile-active {
    transform: translateY(0);
  }

  .nav-links a { color: var(--text-light); }

  .mobile-toggle { display: block; }
  .header-actions .btn { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
}

/* Extra Small Screens (Phones < 480px) */
@media (max-width: 480px) {
  .calculator-card { padding: 1.5rem 1rem; }
  .visualizer-container { padding: 1.25rem; }
  .visualizer-preview-box { height: 260px; }
  .ba-slider-box { height: 320px; }
  .checkbox-group { grid-template-columns: 1fr; }
  .hero-cta-group { flex-direction: column; width: 100%; }
  .hero-cta-group .btn { width: 100%; }
}

/* Touch Input Devices (Coarse Pointer) */
@media (pointer: coarse) {
  .btn, .color-btn, .filter-btn, .form-control, .form-select {
    min-height: 48px;
  }

  .checkbox-item {
    padding: 0.4rem 0;
  }

  .checkbox-item input[type=checkbox] {
    width: 22px;
    height: 22px;
  }
}
