/* ==========================================
   WARM LIGHT THEME VARS & CONFIGS
   ========================================== */
:root {
  --bg-base: #faf6f0; /* Alabaster Cream */
  --bg-alt: #f3ede2; /* Muted Sand */
  --accent-primary: #d45538; /* Warm Terracotta */
  --accent-secondary: #e29578; /* Soft Amber/Peach */
  --text-main: #2a2220; /* Deep Charcoal Bronze */
  --text-muted: #6b5d5a; /* Warm Taupe */
  --border-color: #e6ddd0;
  --font-heading: "Syne", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;
  --border-radius-lg: 16px;
  --border-radius-sm: 8px;
  --max-width: 1280px;
  --box-shadow: 0 10px 40px rgba(42, 34, 32, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none !important; /* Forces global use of custom interactive cursor cursor */
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-base);
  color: var(--text-main);
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-secondary);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* ==========================================
   GLOBAL UTILITIES
   ========================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.max-w-lg {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.max-w-md {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.text-center {
  text-align: center;
}
.section-padding {
  padding: 120px 0;
}
.margin-bottom-md {
  margin-bottom: 40px;
}
.margin-bottom-lg {
  margin-bottom: 64px;
}
.bg-alt {
  background-color: var(--bg-alt);
}
.align-center {
  align-items: center;
}

.grid {
  display: grid;
  gap: 48px;
}
.grid-2-cols {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3-cols {
  grid-template-columns: repeat(3, 1fr);
}

/* Custom Magnetic Cursor System */
.custom-cursor {
  width: 8px;
  height: 8px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  transition:
    width 0.2s,
    height 0.2s,
    background-color 0.2s;
}

.custom-cursor-follower {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--accent-primary);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition:
    transform 0.08s cubic-bezier(0.25, 1, 0.5, 1),
    background-color 0.3s,
    border-color 0.3s;
}

/* Hover Cursor Expansion States */
.cursor-hover .custom-cursor {
  width: 24px;
  height: 24px;
  background-color: rgba(212, 85, 56, 0.15);
}
.cursor-hover .custom-cursor-follower {
  width: 50px;
  height: 50px;
  border-color: var(--accent-secondary);
}

/* Typographic Frameworks */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-main);
}

h2 {
  font-size: 2.8rem;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}
p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
p.lead-text {
  font-size: 1.25rem;
  color: var(--text-main);
  font-weight: 500;
}

.section-label {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-primary);
  margin-bottom: 16px;
  display: inline-block;
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-flex;
  padding: 8px 16px;
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
  margin-bottom: 24px;
}

/* Dynamic Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: var(--bg-base);
  border: 1px solid var(--accent-primary);
}
.btn-primary:hover {
  background-color: transparent;
  color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(212, 85, 56, 0.1);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
}
.btn-secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-4px);
}

/* ==========================================
   HEADER / NAVIGATION LAYOUT (Identical Across Pages)
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(250, 246, 240, 0.9);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.header.scrolled {
  padding: 12px 0;
  box-shadow: var(--box-shadow);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 40px;
  display: block;
  object-fit: contain;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-link {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: var(--transition-fast);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-primary);
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--accent-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-cta {
  padding: 10px 24px;
  font-size: 0.85rem;
}

/* Mobile Toggle Hamburger Button */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 6px;
}

.mobile-toggle .bar {
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-fast);
}

.mobile-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}
.mobile-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Overlay Dialog Menu */
.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background-color: var(--bg-base);
  z-index: 999;
  padding: 40px 32px;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav nav ul li a {
  text-decoration: none;
  font-size: 1.8rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
}

/* ==========================================
   SECTION 1: HERO
   ========================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 140px;
  padding-bottom: 100px;
  overflow: hidden;
}

.hero-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.65;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-title {
  font-size: 4.8rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 40px;
}

.hero-cta-group {
  display: flex;
  gap: 20px;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.scroll-line {
  width: 60px;
  height: 1px;
  background-color: var(--border-color);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  height: 100%;
  background-color: var(--accent-primary);
  animation: scroll-line-anim 2s infinite ease-in-out;
}

@keyframes scroll-line-anim {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(330%);
  }
}

/* ==========================================
   SECTION 2: TRUST GRID / LOGO WALL
   ========================================== */
.trust-grid-section {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 40px 0;
  background-color: var(--bg-alt);
  overflow: hidden;
}

.trust-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.logo-carousel {
  display: flex;
  width: 100%;
}

.logo-track {
  display: flex;
  gap: 80px;
  animation: logoScroll 25s linear infinite;
}

.logo-item {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  opacity: 0.45;
  transition: var(--transition-fast);
}

.logo-item:hover {
  opacity: 1;
}

@keyframes logoScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================
   SECTION 3: ABOUT PHILOSOPHY
   ========================================== */
.about-visual {
  position: relative;
  height: 480px;
}

.visual-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.box {
  position: absolute;
  border-radius: var(--border-radius-lg);
}

.box-accent {
  width: 80%;
  height: 80%;
  top: 0;
  left: 0;
  background-color: var(--bg-alt);
  border: 1px dashed var(--accent-secondary);
}

.box-main-graphic {
  width: 80%;
  height: 80%;
  bottom: 0;
  right: 0;
  background-color: #fff;
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.campaign-node-group {
  position: relative;
  width: 100%;
  height: 100%;
}

.node {
  position: absolute;
  background: var(--bg-base);
  border: 1px solid var(--accent-primary);
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--box-shadow);
}

.node.pulse::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  bottom: -4px;
  left: -4px;
  border: 1px solid var(--accent-secondary);
  border-radius: 34px;
  animation: nodePulse 2s infinite ease-out;
}

@keyframes nodePulse {
  0% {
    transform: scale(0.95);
    opacity: 1;
  }
  100% {
    transform: scale(1.15);
    opacity: 0;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.stat-card {
  padding: 24px;
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
}

.stat-card h3 {
  font-size: 2.4rem;
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.stat-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ==========================================
   SECTION 4: DYNAMIC SERVICES GRID
   ========================================== */
.services-container-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  transition: var(--transition-smooth);
  box-shadow: var(--box-shadow);
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

.service-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-8px) scale(1.02);
}

.service-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-alt);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 32px;
  transition: var(--transition-fast);
}

.service-card:hover .service-icon-wrap {
  background-color: var(--accent-primary);
  color: #fff;
}

.service-card-title {
  font-size: 1.45rem;
  margin-bottom: 16px;
}

.service-features {
  list-style: none;
  margin-top: 24px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.service-features li {
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--text-main);
}

.service-features li i {
  color: var(--accent-primary);
}

/* ==========================================
   SECTION 5: INT. REPORT VISUALIZER
   ========================================== */
.report-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.tab-btn {
  background: none;
  border: 1px solid var(--border-color);
  padding: 16px 24px;
  border-radius: var(--border-radius-sm);
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.tab-btn.active,
.tab-btn:hover {
  border-color: var(--accent-primary);
  background-color: #fff;
}

.mock-report-window {
  background-color: #fff;
  border: 1px solid var(--text-main);
  border-radius: var(--border-radius-lg);
  box-shadow: 20px 20px 0px var(--accent-primary);
  overflow: hidden;
}

.window-header {
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px;
  display: flex;
  align-items: center;
}

.window-header .dots {
  display: flex;
  gap: 8px;
  margin-right: 24px;
}

.window-header .dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dots .red {
  background-color: #e25c5c;
}
.dots .yellow {
  background-color: #e2c05c;
}
.dots .green {
  background-color: #5ce288;
}

.window-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.window-body {
  padding: 40px;
}

.report-stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.sub-stat {
  display: flex;
  flex-direction: column;
}

.stat-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stat-val {
  font-size: 2.2rem;
  font-family: var(--font-heading);
  font-weight: 700;
}

.chart-visualizer {
  background-color: var(--bg-alt);
  border-radius: var(--border-radius-sm);
  padding: 40px 24px;
  height: 200px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 32px;
}

.chart-bar-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
}

.chart-bar-fill {
  width: 48px;
  background-color: var(--accent-secondary);
  border-radius: 4px 4px 0 0;
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.chart-bar-fill span {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

.campaign-log {
  background-color: #1e1a19;
  padding: 20px;
  border-radius: var(--border-radius-sm);
  color: #61ff9a;
  font-family: monospace;
  font-size: 0.8rem;
}

.log-title {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #fff;
}

/* ==========================================
   SECTION 6: GROWTH CALCULATOR
   ========================================== */
.calculator-wrapper {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  overflow: hidden;
}

.calculator-controls {
  padding: 48px;
}

.calculator-results {
  background-color: var(--accent-primary);
  padding: 48px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.input-slider-group {
  margin-bottom: 32px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 600;
}

.styled-select {
  width: 100%;
  padding: 16px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-base);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent-primary);
}

.result-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  opacity: 0.8;
}

.result-amount {
  font-size: 3.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
}

.calculator-results .result-amount {
  color: #fff;
  background: none;
  -webkit-text-fill-color: initial;
}

.result-box-footer p {
  font-size: 0.8rem;
  opacity: 0.8;
  color: #fff;
  margin-bottom: 0;
}

/* ==========================================
   SECTION 7: TIMELINE / PROCESS
   ========================================== */
.timeline-visual {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-visual::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 48px;
  width: 2px;
  background-color: var(--border-color);
}

.timeline-node {
  position: relative;
  padding-left: 112px;
  margin-bottom: 64px;
}

.timeline-node:last-of-type {
  margin-bottom: 0;
}

.node-number {
  position: absolute;
  left: 20px;
  top: -4px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #fff;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  z-index: 2;
}

.timeline-node:hover .node-number {
  background-color: var(--accent-primary);
  color: #fff;
}

/* ==========================================
   SECTION 8: INDUSTRY FOCUS
   ========================================== */
.industry-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 40px;
}

.ind-item {
  display: flex;
  gap: 24px;
}

.ind-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-alt);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.ind-item h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.interactive-industry-card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  border: 1px dashed var(--accent-secondary);
  border-radius: 50%;
  animation: rotateRing 20s linear infinite;
}

@keyframes rotateRing {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ==========================================
   SECTION 9: TESTIMONIALS
   ========================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.testimonial-card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  box-shadow: var(--box-shadow);
}

.quote-mark {
  font-size: 5rem;
  font-family: var(--font-heading);
  color: var(--accent-secondary);
  line-height: 0.1;
  margin-bottom: 24px;
}

.testimonial-text {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 32px;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-alt);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.user-info h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.user-info p {
  font-size: 0.8rem;
  margin-bottom: 0;
}

/* ==========================================
   SECTION 10: FAQ ACCORDION
   ========================================== */
.accordion-item {
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
}

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
  padding: 8px 0;
  transition: var(--transition-fast);
}

.accordion-trigger i {
  font-size: 1rem;
  color: var(--accent-primary);
  transition: var(--transition-fast);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-panel p {
  padding-top: 16px;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.accordion-item.active .accordion-panel {
  max-height: 200px;
}

.accordion-item.active .accordion-trigger i {
  transform: rotate(45deg);
}

/* ==========================================
   SUBPAGE STYLINGS (CONTACT & LEGAL)
   ========================================== */
.page-header {
  background-color: var(--bg-alt);
  padding: 120px 0 80px 0;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.page-title {
  font-size: 3.6rem;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.page-subtitle {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 24px auto;
}

.breadcrumbs {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--accent-primary);
  text-decoration: none;
}

.breadcrumbs i {
  font-size: 0.7rem;
  margin: 0 8px;
}

/* Legal content pages dynamic styles */
.legal-content h2 {
  font-size: 1.8rem;
  margin-top: 48px;
  margin-bottom: 16px;
}

.legal-content p,
.legal-content ul {
  margin-bottom: 24px;
}

.legal-content ul {
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 12px;
}

/* ==========================================
   CONTACT PAGE DETAILS
   ========================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
}

.contact-info-panel {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 48px;
}

.panel-title {
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 42px;
}

.contact-method {
  display: flex;
  gap: 20px;
}

.method-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.method-details h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.method-details p,
.method-details a {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
}

.contact-form-wrapper {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  box-shadow: var(--box-shadow);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 16px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background-color: var(--bg-base);
  color: var(--text-main);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* Success Modal Details */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 1001;
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  box-shadow: var(--box-shadow);
  max-width: 480px;
  width: 90%;
}

.popup.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(42, 34, 32, 0.4);
  backdrop-filter: blur(5px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

.popup-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.popup-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 1.5rem;
}

.popup i {
  font-size: 3.5rem;
  color: #4caf50;
  margin-bottom: 24px;
}

.popup h3 {
  margin-bottom: 12px;
}

.popup p {
  margin-bottom: 24px;
}

/* ==========================================
   FOOTER STYLE SYSTEM (Strictly Matched Across Pages)
   ========================================== */
.footer {
  position: relative;
  background-color: var(
    --text-main
  ); /* Dark contrast header / footer theme background */
  color: var(--bg-alt);
  padding: 80px 0 40px 0;
  overflow: hidden;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-logo {
  height: 44px;
  object-fit: contain;
  margin-bottom: 24px;
  filter: invert(1);
}

.footer-about p {
  color: rgba(243, 237, 226, 0.7);
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(243, 237, 226, 0.1);
  color: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-fast);
}

.social-links a:hover {
  background-color: var(--accent-primary);
  color: #fff;
}

.footer-title {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 24px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(243, 237, 226, 0.7);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-secondary);
}

.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  color: rgba(243, 237, 226, 0.7);
}

.contact-list i {
  color: var(--accent-secondary);
}

.contact-list a {
  color: rgba(243, 237, 226, 0.7);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(243, 237, 226, 0.1);
  padding-top: 40px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(243, 237, 226, 0.5);
}

/* ==========================================
   LIVE CHET WIDGET SYSTEM
   ========================================== */
.chat-widget {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 999;
}

.chat-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(212, 85, 56, 0.3);
  cursor: none !important;
}

.chat-icon .fa-times {
  display: none;
}

.chat-box {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 320px;
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  display: none;
  overflow: hidden;
}

.chat-widget.open .chat-box {
  display: block;
}

.chat-widget.open .chat-icon .fa-comments {
  display: none;
}

.chat-widget.open .chat-icon .fa-times {
  display: block;
}

.chat-header {
  background-color: var(--accent-primary);
  color: #fff;
  padding: 24px;
}

.chat-header h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 4px;
}

.chat-header p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.chat-body {
  padding: 24px;
}

.chat-body p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.chat-footer {
  padding: 16px 24px;
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-color);
}

.chat-footer .btn {
  width: 100%;
  justify-content: center;
}

/* ==========================================
   SCROLL REVEAL / ENTRY ANIMATIONS
   ========================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.animate-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards ease-out;
}

.animate-title-slide {
  opacity: 0;
  transform: translateY(50px);
  animation: titleSlide 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes titleSlide {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   RESPONSIVE DESIGN ADAPTATIONS
   ========================================== */
@media (max-width: 1024px) {
  .grid-3-cols,
  .services-container-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-title {
    font-size: 3.6rem;
  }
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2-cols,
  .grid-3-cols,
  .services-container-grid,
  .contact-wrapper,
  .calculator-wrapper {
    grid-template-columns: 1fr;
  }
  .mobile-toggle {
    display: flex;
  }
  .nav-main,
  .header-cta {
    display: none;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .section-padding {
    padding: 80px 0;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .calculator-wrapper {
    display: flex;
    flex-direction: column;
  }
}
