/* ==========================================================================
   TechF Solutions - High-End Light Corporate Design System
   Targeting: Hostinger Static Web Hosting
   Aesthetics: Ultra-Clean White, Premium Corporate, High-Contrast Navy & Teal
   Logo Palette: Dark Navy (#0E1726) & Vibrant Teal (#00C9A7 / #0D9488)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Kalam:wght@700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Palette from TechF Logo */
  --techf-navy: #0e1726;
  --techf-navy-light: #1e293b;
  --techf-navy-hover: #152238;
  --techf-teal: #00c9a7;
  --techf-teal-dark: #0d9488;
  --techf-teal-light: #e6fffa;
  --techf-teal-glow: rgba(0, 201, 167, 0.18);
  
  /* White & Light Surface Spectrum */
  --bg-white: #ffffff;
  --bg-body: #fafafc;
  --bg-surface: #f8fafc;
  --bg-card: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-accent-soft: #f0fdfa;

  /* Borders & Dividers */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-teal: rgba(0, 201, 167, 0.35);

  /* Typography Colors */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --text-white: #ffffff;

  /* Gradients */
  --grad-navy-teal: linear-gradient(135deg, #0e1726 0%, #0d9488 100%);
  --grad-teal-btn: linear-gradient(135deg, #00c9a7 0%, #0d9488 100%);
  --grad-hero: radial-gradient(circle at 50% 0%, rgba(0, 201, 167, 0.1) 0%, rgba(250, 250, 252, 0) 70%), #fafafc;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(14, 23, 38, 0.04);
  --shadow-md: 0 10px 28px rgba(14, 23, 38, 0.07);
  --shadow-lg: 0 18px 42px rgba(14, 23, 38, 0.12);
  --shadow-teal: 0 8px 24px rgba(0, 201, 167, 0.3);

  /* Layout Constants */
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-handwriting-1: 'Caveat', cursive;
  --font-handwriting-2: 'Kalam', cursive;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --container-max: 1240px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

ul {
  list-style: none;
}

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

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

.section-padding {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

/* Navigation Header */
.navbar-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: var(--transition-smooth);
}

.navbar-header.scrolled {
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(14, 23, 38, 0.08);
}

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

.brand-logo-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.brand-logo:hover {
  opacity: 0.92;
  transform: scale(1.02);
}

.brand-logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.brand-subline {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--techf-teal-dark);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-top: 2px;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Teal indicator removed */

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

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

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

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

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

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

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

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.btn-primary {
  background: var(--techf-navy);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(14, 23, 38, 0.2);
}

.btn-primary:hover {
  background: var(--techf-navy-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 23, 38, 0.3);
}

.btn-teal {
  background: var(--grad-teal-btn);
  color: #ffffff;
  box-shadow: var(--shadow-teal);
}

.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 201, 167, 0.4);
}

.btn-secondary {
  background: #ffffff;
  border-color: var(--border-medium);
  color: var(--techf-navy);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--techf-teal);
  color: var(--techf-teal-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--techf-navy);
  color: var(--techf-navy);
}

.btn-outline:hover {
  background: var(--techf-navy);
  color: var(--text-white);
}

.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.875rem;
}

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

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--techf-teal-light);
  border: 1px solid var(--border-teal);
  color: var(--techf-teal-dark);
}

.badge-pill.badge-navy {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--techf-navy);
}

.badge-pill.badge-pink {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #e11d48;
}

/* Hero Section */
.hero-section {
  padding-top: 9.5rem;
  padding-bottom: 5.5rem;
  background: var(--grad-hero);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

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

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--techf-navy);
  letter-spacing: -0.03em;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.hero-content h1 .highlight-teal {
  color: var(--techf-teal-dark);
  background: linear-gradient(135deg, #00c9a7 0%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.metric-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--techf-navy);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.metric-number.teal {
  color: var(--techf-teal-dark);
}

.metric-label {
  font-size: 0.825rem;
  color: var(--text-dim);
  font-weight: 600;
}

.hero-card-white {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-card-white::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--grad-teal-btn);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.status-dot {
  width: 10px;
  height: 10px;
  background: var(--techf-teal);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--techf-teal);
}

.sourcing-pipeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pipeline-step {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-fast);
}

/* --------------------------------------------------------------------------
   TESTIMONIALS HUB - Collapse & Expand Logic
   -------------------------------------------------------------------------- */
.testimonials-section {
  background: #ffffff;
  padding-top: 5rem;
  padding-bottom: 6rem;
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--techf-navy);
  letter-spacing: -0.02em;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.testimonial-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.tab-btn {
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.tab-btn:hover, .tab-btn.active {
  background: var(--techf-navy);
  border-color: var(--techf-navy);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.testimonials-grid-20 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card-light {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: opacity, transform;
}

/* Hide Collapsed Testimonials */
.testimonial-card-light.collapsed-hidden {
  display: none !important;
}

.testimonial-card-light.in-view {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-card-light:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--techf-teal);
  box-shadow: var(--shadow-md);
}

.testimonial-card-light.featured {
  border-color: var(--techf-teal-dark);
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
}

.testimonial-card-light.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-teal-btn);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.t-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: var(--techf-navy);
  margin-bottom: 1.25rem;
  align-self: flex-start;
}

.t-badge.green {
  background: #d1fae5;
  color: #065f46;
}

.t-badge.blue {
  background: #e0f2fe;
  color: #0369a1;
}

/* Dynamic Camera Positioning & Framing Variations */
.t-image-holder {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  background: var(--bg-surface);
  position: relative;
}

/* Close-Up Selfie Framing */
.t-image-holder.close-up {
  height: 260px;
  border: 3px solid #ffffff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.t-image-holder.close-up img {
  object-fit: cover;
  object-position: center 20%;
}

/* Wide Distance Snapshot Framing */
.t-image-holder.wide-shot {
  height: 190px;
}

.t-image-holder.wide-shot img {
  object-fit: cover;
  object-position: center center;
}

/* Medium Snapshot Framing */
.t-image-holder.medium-shot img {
  object-fit: cover;
  object-position: center top;
}

.t-image-holder img {
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.testimonial-card-light:hover .t-image-holder img {
  transform: scale(1.04);
}

/* Distinct Handwriting Overlays on Note Badges */
.handwritten-badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: #fef08a;
  color: #854d0e;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-size: 1.15rem;
  margin-bottom: 1rem;
  transform: rotate(-1.5deg);
  border: 1px solid #fde047;
}

.handwritten-badge.style-cursive {
  font-family: var(--font-handwriting-1);
  font-weight: 700;
}

.handwritten-badge.style-block {
  font-family: var(--font-handwriting-2);
  background: #ffffff;
  color: #1e3a8a;
  border-color: #93c5fd;
  transform: rotate(1deg);
}

.handwritten-badge.style-marker {
  font-family: var(--font-handwriting-1);
  background: #e0f2fe;
  color: #0369a1;
  border-color: #7dd3fc;
  transform: rotate(-2deg);
}

.t-rating {
  color: #f59e0b;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

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

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

.t-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--techf-navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.t-avatar.teal {
  background: var(--techf-teal-dark);
}

.t-info h5 {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--techf-navy);
}

.t-info p {
  font-size: 0.825rem;
  color: var(--text-dim);
}

/* Core Services & Other Sections */
.services-section {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
}

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

.service-card-light {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.service-card-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-teal-btn);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.service-card-light:hover {
  transform: translateY(-6px);
  border-color: var(--techf-teal);
  box-shadow: var(--shadow-md);
}

.service-icon-box {
  width: 60px;
  height: 60px;
  background: var(--techf-teal-light);
  border-radius: 14px;
  color: var(--techf-teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.75rem;
}

.service-card-light h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--techf-navy);
  margin-bottom: 1rem;
}

.service-card-light p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* AI Engine */
.ai-section {
  background: #ffffff;
}

.engine-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.platform-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.chip {
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chip.active {
  background: var(--techf-teal-light);
  border-color: var(--techf-teal);
  color: var(--techf-teal-dark);
}

/* ROI Calculator */
.calc-card-light {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.calc-range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  outline: none;
}

.calc-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--techf-teal-dark);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(13, 148, 136, 0.4);
}

.calc-res-light {
  background: var(--bg-surface);
  border: 1px solid var(--border-teal);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
}

.res-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--techf-teal-dark);
  line-height: 1;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item-light {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.faq-item-light.active {
  border-color: var(--techf-teal-dark);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.75rem;
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.6;
}

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

/* Modal Dialog */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(14, 23, 38, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box-light {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--techf-navy);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--techf-teal-dark);
  background: #ffffff;
}

/* Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding-top: 4rem;
  padding-bottom: 2.5rem;
}

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

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--techf-navy);
  margin-bottom: 1.25rem;
}

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

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

.footer-links a:hover {
  color: var(--techf-teal-dark);
}

.footer-bottom {
  border-top: 1px solid var(--border-medium);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Global Mobile Overflow Safeguard */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

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

@media (max-width: 1024px) {
  .hero-grid, .engine-layout, .calc-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .testimonials-grid-20 {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  /* Navbar Mobile Layout */
  .navbar-header {
    height: 72px;
  }
  
  .navbar-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .brand-logo-img {
    height: 38px;
  }

  .brand-subline {
    font-size: 0.62rem;
    letter-spacing: 0.3px;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--techf-navy);
    font-size: 1.2rem;
    cursor: pointer;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 2px solid var(--border-teal);
    flex-direction: column;
    padding: 1.75rem 1.5rem;
    gap: 1rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(-150%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1500;
  }

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

  .nav-link {
    font-size: 1.05rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
  }

  .nav-actions {
    gap: 0.4rem;
  }

  .nav-actions .btn-secondary {
    display: none; /* Hide secondary compare button on mobile header to prevent clutter */
  }

  .nav-actions .btn-teal {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }

  /* Typography & Hero Responsiveness */
  .hero-section {
    padding-top: 6.5rem;
    padding-bottom: 3rem;
  }

  .hero-content h1 {
    font-size: clamp(1.85rem, 6.5vw, 2.5rem);
    line-height: 1.25;
  }

  .hero-subtext {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }

  .badge-pill {
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    font-size: 0.78rem;
    padding: 0.4rem 0.8rem;
  }

  /* CTA Groups & Buttons */
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.25rem;
    font-size: 0.95rem;
  }

  /* Hero Cards & General Cards Padding Fix */
  .hero-card-white, 
  .calc-card-light, 
  .service-card-light, 
  .testimonial-card-light, 
  .feature-card {
    padding: 1.35rem !important;
    border-radius: 14px !important;
  }

  /* Metrics Grid */
  .hero-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .metric-card {
    padding: 0.85rem 0.5rem;
  }

  .metric-number {
    font-size: 1.75rem;
  }

  .metric-label {
    font-size: 0.75rem;
  }

  /* Testimonials Grid */
  .testimonials-grid-20 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Section Headers */
  .section-header h2 {
    font-size: 1.75rem !important;
  }

  .section-header p {
    font-size: 0.95rem !important;
  }

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

  /* Footer Responsiveness */
  .site-footer {
    padding-top: 3rem;
    padding-bottom: 2rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
    align-items: center;
    padding-top: 1.5rem;
  }

  .footer-bottom div:last-child {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem !important;
  }

  /* Modal Overlay Mobile Fix */
  .modal-overlay {
    padding: 1rem;
  }

  .modal-box-light, .modal-card {
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 1.5rem !important;
    border-radius: 14px !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-content h1 {
    font-size: 1.7rem;
  }

  .hero-metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .badge-pill {
    font-size: 0.73rem;
    padding: 0.35rem 0.65rem;
  }

  .cards-grid-3 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

