/* ==========================================================================
   MA AFRICA HOME INVESTMENTS (PTY) LTD
   Production Modern Design System - 2026 Revamp
   Enterprise Grade Construction & Building Services
   ========================================================================== */

:root {
  --primary: #e2890b;
  --primary-hover: #c97500;
  --primary-light: #fef3c7;
  --primary-dark: #b45309;
  
  --secondary: #0f172a;
  --secondary-light: #1e293b;
  --secondary-muted: #334155;
  
  --accent: #f59e0b;
  --accent-blue: #0284c7;
  --success: #10b981;
  --danger: #ef4444;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --bg-main: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #0f172a;
  --bg-dark-card: #1e293b;
  
  --border-light: #e2e8f0;
  --border-dark: #334155;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 35px -5px rgba(0,0,0,0.15), 0 10px 10px -5px rgba(0,0,0,0.04);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1240px;
}

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

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

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

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

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

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--secondary);
  font-weight: 800;
  line-height: 1.25;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.5rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; font-weight: 700; }
h5 { font-size: 1.1rem; }

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.text-primary { color: var(--primary) !important; }
.text-white { color: var(--text-white) !important; }
.text-muted { color: var(--text-muted) !important; }

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

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-sm {
  padding: 3.5rem 0;
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--text-white);
}

.section-dark p {
  color: #cbd5e1;
}

.section-subtle {
  background-color: var(--bg-subtle);
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  background-color: rgba(226, 137, 11, 0.12);
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.badge-dark {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fbbf24;
}

.section-title {
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* Top Notification / Contact Bar */
.topbar {
  background-color: var(--secondary);
  color: #94a3b8;
  font-size: 0.875rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #cbd5e1;
}

.topbar-item:hover {
  color: var(--primary);
}

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

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #10b981;
  font-weight: 600;
}

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

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.logo-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-brand img {
  height: 54px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
}

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

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

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

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

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  cursor: pointer;
  z-index: 1100;
}

.mobile-nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--secondary);
  border-radius: 3px;
  transition: var(--transition);
}

.mobile-nav-toggle.open span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}
.mobile-nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.mobile-nav-toggle.open span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(226, 137, 11, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(226, 137, 11, 0.45);
  color: var(--text-white);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text-white);
}

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

.btn-outline {
  border: 2px solid var(--border-light);
  color: var(--secondary);
  background-color: transparent;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: rgba(226, 137, 11, 0.05);
}

.btn-outline-white {
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: var(--text-white);
  background-color: transparent;
}

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

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

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

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* Hero Section */
.hero {
  position: relative;
  background-color: var(--secondary);
  color: var(--text-white);
  padding: 6.5rem 0 5.5rem 0;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.8) 50%, rgba(15, 23, 42, 0.92) 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
}

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

.hero-content h1 {
  color: var(--text-white);
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: 1.25rem;
  color: #cbd5e1;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

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

.hero-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.hero-feature-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.hero-feature-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-white);
}

.hero-feature-text span {
  font-size: 0.825rem;
  color: #94a3b8;
}

/* Hero Quick Estimate Card */
.hero-card {
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(16px);
}

.hero-card-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.hero-card-header h3 {
  color: var(--text-white);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.hero-card-header p {
  font-size: 0.9rem;
  color: #94a3b8;
}

/* Form Controls */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #e2e8f0;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark);
  background-color: rgba(15, 23, 42, 0.6);
  color: var(--text-white);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(226, 137, 11, 0.2);
}

/* Light form controls */
.form-light .form-label {
  color: var(--secondary);
}

.form-light .form-control {
  background-color: var(--bg-main);
  border-color: var(--border-light);
  color: var(--text-main);
}

.form-light .form-control:focus {
  border-color: var(--primary);
}

/* Stats Counter Bar */
.stats-bar {
  background-color: var(--primary);
  color: var(--text-white);
  padding: 2.5rem 0;
}

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

.stat-item h3 {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(226, 137, 11, 0.4);
}

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

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

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

.service-card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(15, 23, 42, 0.85);
  color: #fbbf24;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
}

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

.service-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-card-title {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.service-card-text {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card-features {
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

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

.service-card-features svg {
  width: 16px;
  height: 16px;
  color: var(--success);
  flex-shrink: 0;
}

/* Portfolio Gallery & Filter */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--secondary);
  cursor: pointer;
  height: 320px;
}

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

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  transition: var(--transition);
}

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

.portfolio-item:hover .portfolio-overlay {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.6) 80%, rgba(15, 23, 42, 0.2) 100%);
}

.portfolio-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.portfolio-title {
  color: var(--text-white);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.portfolio-desc {
  font-size: 0.875rem;
  color: #cbd5e1;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.portfolio-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

/* Why Choose Us Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.feature-box {
  background: var(--bg-card);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(226, 137, 11, 0.3);
}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(226, 137, 11, 0.15) 0%, rgba(226, 137, 11, 0.05) 100%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

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

.feature-title {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.feature-desc {
  font-size: 0.925rem;
  line-height: 1.6;
}

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

.testimonial-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  color: #f59e0b;
  margin-bottom: 1.25rem;
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--text-main);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.testimonial-meta h5 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.testimonial-meta span {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* Interactive Cost Calculator Tool */
.calculator-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  padding: 3rem;
  box-shadow: var(--shadow-xl);
  max-width: 960px;
  margin: 0 auto;
}

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

.calc-step {
  background-color: var(--bg-subtle);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.calc-step:hover,
.calc-step.selected {
  border-color: var(--primary);
  background-color: rgba(226, 137, 11, 0.05);
}

.calc-step.selected {
  box-shadow: 0 0 0 1px var(--primary);
}

.calc-step-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.75rem auto;
  color: var(--primary);
}

.calc-step h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.calc-step p {
  font-size: 0.8rem;
  margin: 0;
}

.calc-sliders {
  margin-bottom: 2.5rem;
}

.slider-group {
  margin-bottom: 1.75rem;
}

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

.slider-label {
  font-weight: 700;
  font-size: 1rem;
}

.slider-value {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.15rem;
}

.calc-range {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--border-light);
  outline: none;
  accent-color: var(--primary);
}

.calc-result-box {
  background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 100%);
  color: var(--text-white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.calc-result-text h4 {
  color: #94a3b8;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.calc-estimate-range {
  font-size: 2.25rem;
  font-weight: 900;
  color: #fbbf24;
  line-height: 1.2;
}

.calc-disclaimer {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.5rem;
}

/* FAQ Accordion */
.faq-grid {
  max-width: 820px;
  margin: 0 auto;
}

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

.faq-question {
  width: 100%;
  padding: 1.5rem 1.75rem;
  text-align: left;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  cursor: pointer;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: var(--primary);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 1.75rem;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding-bottom: 1.5rem;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 100%);
  color: var(--text-white);
  border-radius: var(--radius-xl);
  padding: 4.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 137, 11, 0.25) 0%, transparent 70%);
}

.cta-banner h2 {
  color: var(--text-white);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: #cbd5e1;
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
  font-size: 1.15rem;
}

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

/* Footer */
.footer {
  background-color: #0b1120;
  color: #94a3b8;
  padding: 5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: var(--text-white);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--primary);
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
  color: #94a3b8;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.925rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  font-size: 0.925rem;
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

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

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  color: #ffffff;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 26px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

/* Lightbox Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 2rem;
  line-height: 1;
  color: var(--secondary);
  cursor: pointer;
  z-index: 10;
  background: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .calculator-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .topbar {
    display: none;
  }
  .header .container {
    height: 72px;
  }
  .mobile-nav-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background-color: var(--bg-main);
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-xl);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .nav-menu.open {
    transform: translateX(0);
  }
  .nav-link {
    font-size: 1.2rem;
    width: 100%;
  }
  .header-actions .btn {
    display: none;
  }
  .hero-features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .calc-result-box {
    flex-direction: column;
    text-align: center;
  }
  .calc-result-box .btn {
    width: 100%;
  }
  .calculator-card {
    padding: 1.75rem 1.25rem;
  }
}

/* =============================================================================
   REVAMP LAYER (v2) — accessibility, responsive layout, polish
   ============================================================================= */
html { scroll-padding-top: 96px; }
body { overflow-x: clip; }
p { max-width: 68ch; }
.section-header p, .hero-lead, .cta-banner p, .center p, .text-center p { margin-left: auto; margin-right: auto; }
.section-dark p, .hero p { max-width: 62ch; }
h1 + p, h2 + p, h3 + p, .badge + h2, .badge + h1 { margin-top: .75rem; }
h2 + .lead, h2 { margin-bottom: .25rem; }
.mb-1{margin-bottom:.75rem}.mb-2{margin-bottom:1.25rem}.mb-3{margin-bottom:2rem}.mt-3{margin-top:2rem}.mt-4{margin-top:3rem}
.center,.text-center{text-align:center}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:1rem;top:-4rem;background:var(--secondary);color:#fff;padding:.75rem 1.25rem;border-radius:var(--radius-sm);z-index:3000;font-weight:700}
.skip-link:focus{top:1rem;color:#fff}
:focus-visible{outline:3px solid #2563eb;outline-offset:3px;border-radius:4px}
.section-dark :focus-visible,.hero :focus-visible,.footer :focus-visible{outline-color:#fbbf24}

/* Colour contrast (WCAG AA): orange buttons/stats use navy text; orange text on white uses darker orange */
.btn-primary{background-color:var(--accent);color:var(--secondary);box-shadow:0 4px 14px rgba(226,137,11,.3)}
.btn-primary:hover{background-color:#fbbf24;color:var(--secondary)}
.btn-whatsapp,.btn-whatsapp:hover{color:var(--secondary)}
.btn-outline:hover{color:var(--primary-dark)}
.nav-link:hover,.nav-link.active{color:var(--primary-dark)}
.faq-question:hover{color:var(--primary-dark)}
.stats-bar{background:var(--secondary-light);border-top:3px solid var(--accent)}
.stat-item h3{color:var(--accent)}
.stat-item p{color:#e2e8f0}
.text-primary{color:var(--primary-dark)!important}
.section:not(.section-dark) .portfolio-btn{color:var(--accent)}
.topbar-item,.topbar-cta{color:#e2e8f0}
.footer .footer-desc,.footer-links a,.footer-contact-item,.footer-bottom{color:#cbd5e1}
.form-label{color:var(--secondary)}
.hero-card .form-label,.hero-card p{color:#e2e8f0}
.hero-card p.hint{font-size:.8rem;color:#cbd5e1;text-align:center;margin:.75rem auto 0}
.form-control::placeholder{color:#64748b}
.field-error{color:#b91c1c;font-size:.82rem;margin-top:.3rem}
.hero-card .field-error{color:#fecaca}
.form-control[aria-invalid="true"]{border-color:#dc2626}
.form-status{margin-top:1rem;padding:.9rem 1.1rem;border-radius:var(--radius-md);font-size:.92rem;font-weight:600}
.form-status.ok{background:#dcfce7;color:#14532d}
.form-status.err{background:#fee2e2;color:#7f1d1d}
.hp-field{position:absolute!important;left:-9999px!important;height:0;overflow:hidden}

/* Header: no wrapping, balanced spacing */
.header .container{gap:1.25rem}
.nav-menu{gap:1.6rem;flex-wrap:nowrap}
.nav-link{white-space:nowrap;font-size:.93rem}
.logo-brand img{height:50px;width:auto}
.header-actions{flex-shrink:0}
.header.scrolled{box-shadow:var(--shadow-md)}
@media (max-width:1180px){.nav-menu{gap:1.1rem}.header-actions .btn-whatsapp{display:none}}

/* Hero: let the photograph show, keep text legible */
.hero-overlay{background:linear-gradient(100deg,rgba(15,23,42,.93) 0%,rgba(15,23,42,.78) 48%,rgba(15,23,42,.4) 100%)}
.hero-bg{object-position:center 40%}
.hero-lead{font-size:1.15rem;color:#e2e8f0}

/* Layout helpers replacing inline grids (responsive by design) */
.split{display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:center}
.split.wide-left{grid-template-columns:1.1fr .9fr}
.split.form-split{grid-template-columns:1.1fr .9fr;align-items:start}
.split.reverse>:first-child{order:2}
.split.reverse>:last-child{order:1}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}
.pair{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.media-frame{border-radius:var(--radius-xl);overflow:hidden;box-shadow:var(--shadow-xl);position:relative;background:var(--secondary)}
.media-frame img{width:100%;height:100%;min-height:340px;max-height:520px;object-fit:cover}
.media-badge{position:absolute;bottom:1.25rem;left:1.25rem;background:var(--accent);color:var(--secondary);padding:1rem 1.25rem;border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);max-width:230px;font-weight:800;line-height:1.25}
.media-badge small{display:block;font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;margin-top:.25rem}
.panel{background:var(--bg-subtle);border:1px solid var(--border-light);border-radius:var(--radius-xl);padding:2.25rem}
.panel+.panel,.panel+.map-embed{margin-top:1.5rem}
.mini-card{background:#fff;padding:1.25rem;border-radius:var(--radius-md);border-left:4px solid var(--primary);box-shadow:var(--shadow-sm)}
.mini-card.navy{border-left-color:var(--secondary)}
.mini-card h4{font-size:1rem;margin-bottom:.25rem}
.mini-card p{font-size:.88rem;margin:0}
.map-embed{border-radius:var(--radius-lg);overflow:hidden;height:300px;box-shadow:var(--shadow-md)}
.map-embed iframe{width:100%;height:100%;border:0}
.area-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:1.5rem}
.area-card{background:#fff;border:1px solid var(--border-light);padding:1.5rem;border-radius:var(--radius-md)}
.area-card h4{color:var(--primary-dark);margin-bottom:.5rem}
.area-card li{color:var(--text-muted);font-size:.92rem;line-height:1.9;padding-left:1rem;position:relative}
.area-card li::before{content:"";position:absolute;left:0;top:.8em;width:5px;height:5px;border-radius:50%;background:var(--accent)}
.factor-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:1.5rem;margin-top:3rem}
.factor{background:var(--bg-subtle);padding:1.75rem;border-radius:var(--radius-lg);border:1px solid var(--border-light)}
.factor h4{margin-bottom:.5rem;font-size:1.05rem}
.factor p{font-size:.92rem;margin:0}
.service-row{margin-bottom:5.5rem;scroll-margin-top:110px}
.service-row:last-child{margin-bottom:0}
.service-row .service-card-features{border:none;margin:1.25rem 0 1.75rem;padding:0}
.service-row .media-frame img{height:420px}
.visual-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;min-height:340px;height:100%;padding:2rem;text-align:center;color:#fff;background:linear-gradient(135deg,#0f172a,#1e293b 60%,#334155)}
.visual-panel svg{width:84px;height:84px;color:var(--accent);stroke-width:1.4}
.visual-panel strong{font-family:var(--font-heading);font-size:1.2rem}
.visual-panel .chips{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center}
.visual-panel .chips span{font-size:.78rem;font-weight:600;padding:.3rem .7rem;border-radius:99px;background:rgba(255,255,255,.12);color:#e2e8f0}
.service-card .visual-panel{min-height:0;height:100%;padding:1rem}
.service-card .visual-panel svg{width:64px;height:64px}
.page-banner{background:linear-gradient(135deg,#0f172a,#1e293b)}
.page-banner h1{color:#fff;margin-bottom:.5rem}
.page-banner p{color:#e2e8f0;max-width:650px}
.breadcrumb{font-size:.85rem;color:#cbd5e1;margin-bottom:1rem}
.breadcrumb a{color:#fbbf24;text-decoration:underline}
.cta-row{display:flex;justify-content:center;gap:1.25rem;flex-wrap:wrap}
.cta-section .cta-row{margin-top:2rem}
.btn{white-space:normal}
.btn-lg{padding:1rem 2rem}

/* Calculator & portfolio interactivity */
.calc-step{text-align:center}
.calc-step:focus-visible{outline-offset:2px}
.calc-estimate-range{color:var(--accent)}
.calc-disclaimer{color:#cbd5e1}
.slider-scale{display:flex;justify-content:space-between;gap:.5rem;font-size:.8rem;color:var(--text-muted);margin-top:.35rem}
.portfolio-item{border:0;padding:0;text-align:left;width:100%;font:inherit}
.portfolio-item[hidden]{display:none!important}
.portfolio-img{display:block}
.portfolio-filters{display:flex;flex-wrap:wrap;gap:.6rem;justify-content:center;margin-bottom:2.5rem}
.filter-btn{padding:.55rem 1.1rem;border:2px solid var(--border-light);border-radius:99px;font-weight:700;font-size:.9rem;color:var(--secondary);background:#fff}
.filter-btn:hover{border-color:var(--primary)}
.filter-btn.active,.filter-btn[aria-pressed="true"]{background:var(--secondary);border-color:var(--secondary);color:#fff}
.note-strip{background:#fffbeb;border:1px solid #fde68a;color:#78350f;padding:.9rem 1.1rem;border-radius:var(--radius-md);font-size:.88rem;margin-top:1.25rem}
.faq-question:focus-visible{outline-offset:-3px}
.faq-item.active .faq-answer{max-height:700px}
.faq-answer p{margin:0}
.modal-close:focus-visible{outline-offset:2px}
.modal-body{padding:2.25rem}
.modal-body img{width:100%}
.modal-actions{display:flex;gap:1rem;flex-wrap:wrap}
#modalImage{width:100%;max-height:480px;object-fit:cover}
.legal{max-width:820px}
.legal h2{font-size:1.4rem;margin:2.25rem 0 .5rem}
.legal p,.legal li{font-size:1rem;margin-bottom:.75rem}
.legal ul{list-style:disc;padding-left:1.5rem}
.notfound{min-height:60vh;display:flex;align-items:center;text-align:center}
.notfound .big{font-family:var(--font-heading);font-size:clamp(5rem,18vw,9rem);font-weight:900;color:var(--accent);line-height:1}
@keyframes spin{to{transform:rotate(360deg)}}
.animate-spin{animation:spin 1s linear infinite}

@media (max-width:1024px){
  .split,.split.wide-left,.split.form-split{grid-template-columns:1fr;gap:2.5rem}
  .split.reverse>:first-child,.split.reverse>:last-child{order:0}
  .media-frame img{min-height:280px}
}
@media (max-width:768px){
  .section{padding:4rem 0}
  .form-row,.pair{grid-template-columns:1fr}
  .hero{padding:4rem 0 3.5rem}
  .hero-actions{flex-direction:column}
  .hero-actions .btn{width:100%}
  .service-row{margin-bottom:4rem}
  .service-row .media-frame img{height:280px}
  .media-badge{position:static;max-width:none;border-radius:0}
  .nav-menu{top:72px}
  .whatsapp-float{bottom:1.1rem;right:1.1rem;width:54px;height:54px}
  .panel{padding:1.5rem}
  .filter-btn{font-size:.85rem}
  .modal{padding:.75rem}
  .modal-body{padding:1.5rem}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
@media print{.topbar,.header,.whatsapp-float,.modal,.hero-card{display:none!important}}
.portfolio-overlay{background:linear-gradient(to top,rgba(15,23,42,.95) 0%,rgba(15,23,42,.6) 62%,rgba(15,23,42,.15) 100%)}
.portfolio-cat{color:#fbbf24}
