/* =========================================
   B&V Fence and Paint — Design System
   ========================================= */

/* ---- CSS Custom Properties ---- */
:root {
  /* Brand Colors */
  --primary: #1a365d;
  --primary-light: #2c5282;
  --primary-dark: #0f2440;
  --accent: #d4a017;
  --accent-light: #e8b92f;
  --accent-dark: #b8860b;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Feedback */
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ---- Section Styling ---- */
section {
  padding: var(--space-4xl) 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  padding: 4px 16px;
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.1), rgba(212, 160, 23, 0.05));
  border-radius: var(--radius-full);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: 1.05rem;
  color: var(--gray-500);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-align: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(212, 160, 23, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212, 160, 23, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 36, 64, 0.5);
  transition: all var(--duration) var(--ease);
  padding: var(--space-md) 0;
}

.navbar.scrolled {
  background: rgba(15, 36, 64, 0.97);
  backdrop-filter: blur(12px);
  padding: var(--space-sm) 0;
  box-shadow: var(--shadow-lg);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 1.1rem;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.3px;
}

.logo-accent {
  color: var(--accent);
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: all var(--duration) var(--ease);
  background: white;
  border-radius: var(--radius-md);
  padding: 4px 8px;
}

.navbar.scrolled .logo-img {
  height: 48px;
}

.footer-logo-img {
  height: 80px;
  background: white;
  border-radius: var(--radius-md);
  padding: 6px 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
}

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

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

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

.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  padding: 10px 22px !important;
  border-radius: var(--radius-md);
  color: var(--white) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(212, 160, 23, 0.4);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-phone {
  color: var(--accent-light);
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-phone:hover {
  color: var(--accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('/images/hero-bg.png') center/cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(15, 36, 64, 0.92) 0%,
      rgba(26, 54, 93, 0.85) 40%,
      rgba(15, 36, 64, 0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-4xl) 0;
  max-width: 750px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(212, 160, 23, 0.15);
  border: 1px solid rgba(212, 160, 23, 0.3);
  color: var(--accent-light);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-xl);
  animation: fadeInDown 0.8s var(--ease);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s var(--ease);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  animation: fadeInUp 0.8s 0.2s both var(--ease);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.4s both var(--ease);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  animation: fadeInUp 0.8s 0.6s both var(--ease);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  font-weight: 500;
}

.trust-item i {
  color: var(--accent);
  font-size: 1rem;
}

/* ---- Estimate Bar ---- */
.estimate-bar {
  padding: var(--space-3xl) 0;
  background: var(--gray-50);
  position: relative;
}

.estimate-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-3xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.estimate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.estimate-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.estimate-header h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.estimate-header p {
  color: var(--gray-500);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.form-group-full {
  grid-column: 1 / -1;
}

/* ---- Forms ---- */
.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group label i {
  color: var(--accent);
  font-size: 0.8rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--white);
  transition: all var(--duration) var(--ease);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* ---- Value Props (Why Us) ---- */
.why-us {
  background: var(--white);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.value-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  transition: all var(--duration) var(--ease);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 160, 23, 0.2);
}

.value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.08), rgba(212, 160, 23, 0.08));
  border-radius: var(--radius-lg);
  font-size: 1.5rem;
  color: var(--primary);
  transition: all var(--duration) var(--ease);
}

.value-card:hover .value-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  transform: scale(1.1);
}

.value-card h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.value-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ---- Services ---- */
.services {
  background: var(--gray-50);
}

.fence-section {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all var(--duration) var(--ease);
}

.fence-section .service-card {
  background: var(--gray-50);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

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

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

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

.service-content {
  padding: var(--space-xl);
}

.service-content h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.service-content p {
  font-size: 0.92rem;
  color: var(--gray-500);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.service-link:hover {
  color: var(--primary);
}

.service-link i {
  transition: transform var(--duration) var(--ease);
}

.service-link:hover i {
  transform: translateX(4px);
}

/* ---- Gallery ---- */
.gallery {
  background: var(--gray-900);
  padding: var(--space-4xl) 0;
}

.gallery .section-header h2 {
  color: var(--white);
}

.gallery .section-header p {
  color: var(--gray-400);
}

.gallery .section-tag {
  background: rgba(212, 160, 23, 0.2);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 260px;
  cursor: pointer;
}

.gallery-item-wide {
  grid-column: span 2;
}

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

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

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

.gallery-overlay span {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---- Process ---- */
.process {
  background: var(--white);
}

.process-timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 32px;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--primary));
  border-radius: 2px;
}

.process-step {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-md);
  transition: all var(--duration) var(--ease);
}

.process-step:hover .step-number {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  transform: scale(1.1);
}

.step-content {
  padding-top: var(--space-sm);
}

.step-content h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.step-content p {
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ---- Testimonials ---- */
.testimonials {
  background: var(--gray-50);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.testimonial-card {
  background: var(--white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all var(--duration) var(--ease);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 4rem;
  font-family: var(--font-display);
  color: rgba(212, 160, 23, 0.15);
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--space-md);
  color: var(--accent);
  font-size: 0.9rem;
}

.testimonial-card>p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.author-avatar {
  font-size: 2.5rem;
  color: var(--gray-300);
}

.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
  color: var(--primary);
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* ---- Contact ---- */
.contact {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: var(--space-4xl) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-info .section-tag {
  background: rgba(212, 160, 23, 0.2);
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--white);
  margin-bottom: var(--space-md);
}

.contact-info>p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-2xl);
  font-size: 1rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.contact-item i {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 160, 23, 0.15);
  color: var(--accent-light);
  border-radius: var(--radius-md);
  font-size: 1rem;
}

.contact-item strong {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.contact-item a,
.contact-item span {
  color: var(--white);
  font-size: 0.95rem;
}

.contact-item a:hover {
  color: var(--accent-light);
}

.service-areas h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.area-tags span {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  font-weight: 500;
}

/* Contact Form */
.contact-form-wrapper {
  position: relative;
}

.contact-form {
  background: var(--white);
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.contact-form .form-group {
  margin-bottom: var(--space-md);
}

.contact-form .form-row {
  margin-bottom: var(--space-md);
}

/* ---- Footer ---- */
.footer {
  background: var(--gray-900);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand .logo {
  margin-bottom: var(--space-md);
}

.footer-brand p {
  color: var(--gray-400);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.social-links {
  display: flex;
  gap: var(--space-sm);
}

.social-links a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--gray-400);
  transition: all var(--duration) var(--ease);
}

.social-links a:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
}

.footer-links ul li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--gray-400);
  font-size: 0.9rem;
}

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

.footer-contact p {
  color: var(--gray-400);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-contact a {
  color: var(--gray-400);
}

.footer-contact a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-xl);
  text-align: center;
}

.footer-bottom p {
  color: var(--gray-500);
  font-size: 0.85rem;
}

/* ---- Toast Notifications ---- */
.toast-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  padding: 14px 24px;
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.4s var(--ease);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--error);
}

.toast.fadeOut {
  animation: slideOutRight 0.4s var(--ease) forwards;
}

/* ---- Chat Widget ---- */
.chat-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 6px 25px rgba(212, 160, 23, 0.4);
  z-index: 9999;
  transition: all var(--duration) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 35px rgba(212, 160, 23, 0.5);
}

.chat-toggle .chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: var(--error);
  border-radius: 50%;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.chat-window {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 380px;
  max-height: 520px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: chatOpen 0.3s var(--ease);
  border: 1px solid var(--gray-200);
}

.chat-window.open {
  display: flex;
}

.chat-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.chat-header-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.chat-header-info h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.chat-header-info span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-header-info span::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
}

.chat-close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
}

.chat-close:hover {
  color: var(--white);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-height: 300px;
  max-height: 340px;
}

.chat-message {
  max-width: 85%;
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  font-size: 0.88rem;
  line-height: 1.5;
  animation: fadeInUp 0.3s var(--ease);
}

.chat-message.bot {
  align-self: flex-start;
  background: var(--gray-100);
  color: var(--gray-800);
  border-bottom-left-radius: 4px;
}

.chat-message.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-sm);
}

.chat-option-btn {
  padding: 6px 14px;
  border: 1.5px solid var(--primary);
  background: var(--white);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  font-family: var(--font-body);
}

.chat-option-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.chat-input-area {
  padding: var(--space-md);
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: var(--space-sm);
}

.chat-input-area input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: border var(--duration) var(--ease);
}

.chat-input-area input:focus {
  border-color: var(--accent);
}

.chat-input-area button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--ease);
}

.chat-input-area button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(212, 160, 23, 0.3);
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 10px 16px;
  align-self: flex-start;
}

.typing-indicator span {
  width: 7px;
  height: 7px;
  background: var(--gray-400);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(80px);
  }
}

@keyframes chatOpen {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes typingBounce {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* Scroll animation: AOS alternative */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--ease);
}

[data-aos].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item-wide {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 80px var(--space-xl) var(--space-xl);
    gap: var(--space-lg);
    transition: right var(--duration) var(--ease);
    box-shadow: var(--shadow-xl);
  }

  .nav-links.open {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .nav-phone {
    display: none;
  }

  .hero-content {
    padding-top: 120px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-trust {
    flex-direction: column;
    gap: var(--space-md);
  }

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

  .estimate-card {
    padding: var(--space-xl);
  }

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

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

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

  .gallery-item-wide {
    grid-column: span 1;
  }

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .process-timeline::before {
    left: 24px;
  }

  .step-number {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .chat-window {
    right: 10px;
    left: 10px;
    width: auto;
    bottom: 90px;
  }

  .hero-estimate-card {
    margin-top: var(--space-xl);
  }

  .modal-container {
    max-width: 95vw;
    max-height: 90vh;
    margin: 20px;
  }

  .modal-form-row {
    grid-template-columns: 1fr;
  }
}

/* ---- Hero Split Layout with Estimate Card ---- */
.hero-split {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
  max-width: 1200px !important;
}

.hero-text {
  flex: 1;
}

.hero-estimate-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  width: 380px;
  min-width: 340px;
  box-shadow: var(--shadow-xl);
  animation: fadeInUp 0.8s 0.4s both var(--ease);
}

.hero-estimate-card h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gray-900);
  margin-bottom: var(--space-sm);
}

.hero-estimate-card p {
  font-size: 0.92rem;
  color: var(--gray-500);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.zip-input-group {
  margin-bottom: var(--space-md);
}

.zip-input-group input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--gray-800);
  outline: none;
  transition: all var(--duration) var(--ease);
}

.zip-input-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}

.btn-accent-solid {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  border: none;
  box-shadow: 0 4px 15px rgba(212, 160, 23, 0.3);
  font-size: 1rem;
}

.btn-accent-solid:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212, 160, 23, 0.4);
}

.contact-cta-layout {
  max-width: 700px;
  margin: 0 auto;
}

/* ---- Multi-Step Estimate Modal ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.25s var(--ease);
}

.modal-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 480px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.35s var(--ease);
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: var(--gray-900);
  color: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.modal-close:hover {
  opacity: 1;
}

.modal-body {
  padding: 28px;
}

.modal-question {
  margin-bottom: var(--space-xl);
}

.modal-question label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: var(--space-md);
}

.toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.toggle-group.triple {
  grid-template-columns: 1fr 1fr 1fr;
}

.toggle-btn {
  padding: 14px 16px;
  border: none;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  border-right: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.toggle-btn:last-child {
  border-right: none;
}

.toggle-btn i {
  display: none;
}

.toggle-btn.active {
  background: var(--accent);
  color: var(--white);
}

.toggle-btn.active i {
  display: inline;
}

.toggle-btn:hover:not(.active) {
  background: var(--gray-100);
}

.btn-dark {
  background: var(--gray-900);
  color: var(--white);
  border: none;
}

.btn-dark:hover {
  background: var(--gray-800);
}

.modal-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: var(--space-md);
}

.modal-section-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: var(--space-md);
}

.modal-body input,
.modal-body select,
.modal-body textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--gray-800);
  outline: none;
  margin-bottom: var(--space-sm);
  transition: border-color 0.2s;
}

.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
  border-color: var(--accent);
}

.modal-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.modal-details-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: var(--space-md) 0;
}

.modal-details-toggle label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
}

.details-plus {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.2s;
}

.details-plus:hover {
  color: var(--accent);
}

.modal-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.btn-back {
  background: var(--white);
  color: var(--gray-700);
  border: 2px solid var(--gray-300);
}

.btn-back:hover {
  background: var(--gray-100);
}

.modal-success {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
}

.success-icon {
  font-size: 4rem;
  color: var(--success);
  margin-bottom: var(--space-lg);
}

.modal-success h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.modal-success p {
  color: var(--gray-500);
  margin-bottom: var(--space-xl);
}

.modal-body .input-error {
  border-color: var(--error) !important;
}

@media (max-width: 900px) {
  .hero-split {
    flex-direction: column;
    text-align: center;
  }

  .hero-estimate-card {
    width: 100%;
    min-width: unset;
    max-width: 420px;
  }

  .hero-trust {
    justify-content: center;
  }
}