/* ==========================================================================
   Gunite Pools Renovations - Design System Inspired by AffordablePoolRepair.com
   Colors: Deep Navy (#1c1367 / #0a1128), Ocean Blue (#0b6eb3), Light Tint (#f4f7fb), Crisp White (#ffffff)
   ========================================================================== */

:root {
  /* Primary Brand Colors */
  --navy-primary: #1c1367;
  --navy-dark: #0a0e27;
  --navy-text: #171d3d;
  
  --ocean-blue: #0b6eb3;
  --ocean-blue-hover: #08558c;
  --ocean-light: #e6f3fa;

  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;

  /* Neutral Backgrounds & Cards */
  --bg-light: #f4f7fb;
  --bg-white: #ffffff;
  --bg-dark-section: #0d1230;

  --text-dark: #1e293b;
  --text-body: #475569;
  --text-muted: #64748b;
  --text-light: #ffffff;

  /* Borders & Shadows */
  --border-light: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(28, 19, 103, 0.06);
  --shadow-md: 0 10px 25px rgba(28, 19, 103, 0.08);
  --shadow-lg: 0 15px 35px rgba(28, 19, 103, 0.12);
  --shadow-hover: 0 20px 40px rgba(11, 110, 179, 0.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 50px;

  --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

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

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

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

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* Buttons & CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--ocean-blue);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(11, 110, 179, 0.3);
}

.btn-primary:hover {
  background: var(--ocean-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(11, 110, 179, 0.45);
}

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

.btn-secondary:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
}

.btn-white {
  background: #ffffff;
  color: var(--navy-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  background: var(--ocean-light);
  color: var(--ocean-blue);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--accent-gold);
  color: var(--navy-dark);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

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

.btn-outline-white {
  background: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

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

.btn-block {
  width: 100%;
}

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

/* Announcement Topbar */
.topbar {
  background: var(--navy-primary);
  color: #ffffff;
  padding: 0.5rem 0;
  font-size: 0.88rem;
  font-weight: 500;
}

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

.topbar-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-badge i { color: var(--accent-gold); }

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

.topbar-phone {
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

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

/* Floating Header & Navigation */
/* Accessibility & Focus Rings */
:focus-visible {
  outline: 3px solid var(--ocean-blue);
  outline-offset: 3px;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--ocean-blue);
  outline-offset: 2px;
}

.header-wrapper {
  position: sticky;
  top: 10px;
  z-index: 1000;
  padding: 0 1rem;
}

.main-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  padding: 0.6rem 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1220px;
  margin: 0 auto;
  transition: var(--transition);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.header-logo-img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.logo:hover .header-logo-img {
  transform: scale(1.05);
}

.footer-logo-img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

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

.brand-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--navy-primary);
  letter-spacing: 0.5px;
}

.brand-subtitle {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--ocean-blue);
  letter-spacing: 1.5px;
  margin-top: -3px;
}

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

.nav-links a {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--navy-primary);
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(10, 14, 39, 0.88) 0%, rgba(28, 19, 103, 0.85) 100%),
              url('assets/hero_pool.png') center/cover no-repeat;
  color: #ffffff;
  padding: 8rem 0 7rem;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 {
  color: #ffffff;
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.hero p {
  font-size: 1.2rem;
  color: #e2e8f0;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.service-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.service-pill {
  background: rgba(11, 110, 179, 0.3);
  border: 1px solid rgba(11, 110, 179, 0.6);
  color: #ffffff;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Trust Bar */
.trust-bar {
  background: #ffffff;
  box-shadow: var(--shadow-md);
  margin-top: -3rem;
  position: relative;
  z-index: 10;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-light);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  justify-items: center;
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.trust-icon {
  width: 50px;
  height: 50px;
  background: var(--ocean-light);
  color: var(--ocean-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-text strong {
  display: block;
  font-size: 1.1rem;
  color: var(--navy-primary);
}

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

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

.section-title-wrap {
  text-align: center;
  margin-bottom: 3.5rem;
}

.sub-title {
  color: var(--ocean-blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--navy-primary);
  margin-bottom: 0.8rem;
}

.section-subtitle {
  color: var(--text-body);
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* 3-Column Service Grid (Like AffordablePoolRepair) */
.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card-item {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--ocean-blue);
}

.card-header-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

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

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--navy-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
}

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

.card-icon {
  width: 46px;
  height: 46px;
  background: var(--ocean-light);
  color: var(--ocean-blue);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.card-title {
  font-size: 1.35rem;
  color: var(--navy-primary);
  margin-bottom: 0.8rem;
}

.card-desc {
  color: var(--text-body);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.card-features {
  list-style: none;
  margin-bottom: 1.8rem;
}

.card-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.card-features i {
  color: var(--ocean-blue);
  width: 16px;
  height: 16px;
}

.card-action {
  margin-top: auto;
}

/* Feature Side-by-Side Section */
.feature-side {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.feature-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-text-col {
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-text-col h3 {
  font-size: 2rem;
  color: var(--navy-primary);
  margin-bottom: 1rem;
}

.feature-text-col p {
  color: var(--text-body);
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  margin-bottom: 2rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
  font-weight: 600;
}

.feature-list li i {
  color: var(--ocean-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Finish Visualizer */
.visualizer-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-light);
}

.vis-tabs {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.vis-tab {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  color: var(--navy-primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.vis-tab:hover {
  background: var(--ocean-light);
  color: var(--ocean-blue);
}

.vis-tab.active {
  background: var(--ocean-blue);
  color: #ffffff;
  border-color: var(--ocean-blue);
  box-shadow: 0 4px 15px rgba(11, 110, 179, 0.3);
}

.vis-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.vis-img-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 320px;
}

.vis-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vis-specs {
  background: var(--bg-light);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.spec-row:last-child { margin-bottom: 0; }

.spec-label { color: var(--text-muted); }
.spec-val { font-weight: 700; color: var(--navy-primary); }

.bar-bg {
  width: 110px;
  height: 8px;
  background: #cbd5e1;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--ocean-blue);
  border-radius: var(--radius-pill);
}

/* Before & After Slider */
.ba-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
  user-select: none;
}

.ba-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-before-wrap {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
  z-index: 2;
}

.ba-before-img {
  width: 900px;
  max-width: none;
}

.ba-label {
  position: absolute;
  bottom: 1.5rem;
  padding: 0.4rem 1rem;
  background: rgba(10, 14, 39, 0.85);
  color: #ffffff;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 800;
  z-index: 4;
}

.label-left { left: 1.5rem; color: #f87171; }
.label-right { right: 1.5rem; color: #34d399; }

.ba-divider {
  position: absolute;
  top: 0;
  height: 100%;
  width: 4px;
  background: #ffffff;
  z-index: 10;
  cursor: ew-resize;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.ba-handle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  background: var(--ocean-blue);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Calculator Section */
.calc-section {
  background: var(--navy-primary);
  color: #ffffff;
}

.calc-section .section-title { color: #ffffff; }
.calc-section .sub-title { color: var(--accent-gold); }
.calc-section .section-subtitle { color: #cbd5e1; }

.calc-box {
  background: #ffffff;
  color: var(--text-dark);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.calc-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.calc-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-weight: 700;
}

.calc-step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.calc-step.active { color: var(--ocean-blue); }
.calc-step.active .calc-step-num {
  background: var(--ocean-blue);
  color: #ffffff;
  border-color: var(--ocean-blue);
}

.calc-line {
  flex-grow: 1;
  height: 2px;
  background: var(--border-light);
  margin: 0 0.8rem;
}

.calc-panel { display: none; }
.calc-panel.active { display: block; animation: fadeIn 0.4s ease; }

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

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin: 2rem 0;
}

.opt-card { cursor: pointer; }
.opt-card input { display: none; }

.opt-body {
  background: var(--bg-light);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  height: 100%;
  transition: var(--transition);
}

.opt-body h4 {
  font-size: 1.1rem;
  color: var(--navy-primary);
  margin-bottom: 0.3rem;
}

.opt-body p {
  font-size: 0.85rem;
  color: var(--text-body);
}

.opt-card input:checked + .opt-body {
  background: var(--ocean-light);
  border-color: var(--ocean-blue);
  box-shadow: 0 4px 15px rgba(11, 110, 179, 0.15);
}

.result-card {
  text-align: center;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.result-price {
  font-size: 3rem;
  font-weight: 900;
  color: var(--ocean-blue);
  margin: 0.5rem 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  text-align: left;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.input-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-primary);
}

.input-group input, .input-group select, .input-group textarea {
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
  outline: none;
  border-color: var(--ocean-blue);
  box-shadow: 0 0 0 3px rgba(11, 110, 179, 0.15);
}

/* Service Area Checker */
.checker-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 3.5rem;
  border: 1px solid var(--border-light);
}

.checker-flex {
  display: flex;
  gap: 0.8rem;
  max-width: 600px;
  margin: 1.5rem 0;
}

.checker-flex input {
  flex-grow: 1;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 1rem;
}

.checker-msg {
  font-weight: 700;
  margin-top: 1rem;
}
.checker-msg.success { color: #10b981; }
.checker-msg.error { color: #ef4444; }

.town-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.town-tag {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-primary);
}

/* Instagram Showcase */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.ig-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 240px;
  box-shadow: var(--shadow-sm);
}

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

.ig-hover {
  position: absolute;
  inset: 0;
  background: rgba(28, 19, 103, 0.8);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: var(--transition);
  font-weight: 700;
}

.ig-item:hover img { transform: scale(1.1); }
.ig-item:hover .ig-hover { opacity: 1; }

/* Contact Section */
.contact-section {
  background: var(--bg-dark-section);
  color: #ffffff;
}

.contact-section h2 { color: #ffffff; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

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

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

.contact-info-icon {
  width: 46px;
  height: 46px;
  background: rgba(11, 110, 179, 0.2);
  border: 1px solid var(--ocean-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ocean-blue);
  flex-shrink: 0;
}

.contact-form-box {
  background: #ffffff;
  color: var(--text-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

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

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

.footer-col h4 {
  color: #ffffff;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

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

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links a:hover { color: #ffffff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

/* Responsive Rules & Adaptation */
@media (max-width: 1024px) {
  .service-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

@media (max-width: 992px) {
  .feature-side { grid-template-columns: 1fr; }
  .vis-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
}

@media (max-width: 768px) {
  .service-cards-grid { grid-template-columns: 1fr; }
  .topbar { display: none; }
  .mobile-toggle { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    min-width: 44px; 
    min-height: 44px; 
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .nav-links.active { display: flex; }

  .hero { padding: 6rem 0 5rem; }
  .hero h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
  .trust-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .ba-container { height: 320px; }
  .checker-flex { flex-direction: column; }
}

@media (max-width: 480px) {
  .ig-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns .btn { width: 100%; }
  .vis-tabs { flex-direction: column; width: 100%; }
  .vis-tab { width: 100%; justify-content: center; }
}

/* Touch & Coarse Pointer Adaptations */
@media (pointer: coarse) {
  .btn {
    min-height: 48px;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }
  .nav-links a {
    padding: 0.6rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* Safe Area Insets for Modern Mobile Devices */
body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.footer {
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}
