/* ============================================
   S.K AFFORDABLE ROOFING CO. — Design System & Styles
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Colors */
  --clr-primary: #0051A8;
  /* Dark Blue */
  --clr-primary-light: #1868C6;
  /* Lighter Dark Blue */
  --clr-secondary: #25B5E9;
  /* Light Blue / Cyan */
  --clr-secondary-light: #4DC2F0;
  /* Lighter Cyan */
  --clr-accent: #E8F4FA;
  /* Very light blue background */
  --clr-accent-glow: rgba(37, 181, 233, 0.4);
  --clr-bg: #FAFBFC;
  --clr-bg-alt: #F0F5F9;
  --clr-text: #1E293B;
  --clr-text-light: #475569;
  --clr-text-on-dark: #F8FAFC;
  --clr-white: #ffffff;
  --clr-whatsapp: #25D366;
  --clr-whatsapp-dark: #128C7E;
  --clr-overlay: #0051A8;
  --clr-overlay-heavy: rgba(0, 81, 168, 0.85);
  --clr-card-bg: #ffffff;
  --clr-border: rgba(0, 81, 168, 0.15);

  /* Typography */
  --ff-heading: 'Outfit', sans-serif;
  --ff-body: 'Inter', sans-serif;
  --fs-hero: clamp(2.8rem, 6vw, 5.5rem);
  --fs-h1: clamp(2rem, 4vw, 3.5rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.5rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.6rem);
  --fs-body: clamp(0.95rem, 1.2vw, 1.1rem);
  --fs-small: 0.875rem;
  --fs-tiny: 0.75rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-section: clamp(4rem, 8vw, 8rem);

  /* Layout */
  --max-width: 1280px;
  --nav-height: 80px;
  --nav-height-scrolled: 64px;

  /* Borders & Shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50%;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.18);
  --shadow-glow: 0 0 30px var(--clr-accent-glow);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  color: var(--clr-text);
  background-color: var(--clr-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

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

/* ---------- Section Base ---------- */
.section {
  padding: var(--space-section) 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--ff-heading);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-secondary);
  margin-bottom: var(--space-sm);
}

.section-label.reveal.revealed {
  color: var(--clr-secondary-light);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--clr-primary-light);
  border-radius: 1px;
}

.section-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h1);
  font-weight: 800;
  color: var(--clr-primary);
  line-height: 1.15;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: var(--fs-body);
  color: var(--clr-text-light);
  max-width: 600px;
  line-height: 1.8;
}

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

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  height: var(--nav-height-scrolled);
  background: transparent;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--ff-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--clr-white);
  z-index: 1001;
  text-decoration: none;
}

.nav-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px #0051A8);
  background: transparent;
  border-radius: var(--radius-sm);
}

.nav-logo-text {
  font-family: var(--ff-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1.3;
}

.nav-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--clr-secondary), var(--clr-primary-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

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

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

.nav-links a {
  font-family: var(--ff-body);
  font-size: var(--fs-small);
  font-weight: 500;
  color: #ffffffcc;
  letter-spacing: 0.02em;
  position: relative;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-primary);
  transition: width var(--transition-base);
}

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

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.6rem 1.4rem;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary));
  color: var(--clr-white) !important;
  font-weight: 600 !important;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-spring), box-shadow var(--transition-base) !important;
}

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

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 81, 168, 0.4);
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/Sk\ roof\ images/hero-bg-sk.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 0.8s ease;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      #1a1a2ed9 0%,
      #1a1a2e99 40%,
      #1a1a2e66 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-xl);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.4rem 1rem;
  background: rgba(0, 81, 168, 0.15);
  border: 1px solid rgba(0, 81, 168, 0.3);
  border-radius: var(--radius-lg);
  color: var(--clr-accent);
  font-size: var(--fs-small);
  font-weight: 500;
  margin-bottom: var(--space-md);
  backdrop-filter: blur(8px);
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--clr-white);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

.hero-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-hero);
  font-weight: 900;
  color: var(--clr-white);
  line-height: 1.05;
  margin-bottom: var(--space-md);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.9rem 2rem;
  font-family: var(--ff-heading);
  font-size: var(--fs-body);
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light));
  color: var(--clr-white);
  border: none;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 81, 168, 0.4);
}

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

.btn-outline:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--clr-whatsapp);
  color: var(--clr-white);
  border: none;
}

.btn-whatsapp:hover {
  background: var(--clr-whatsapp-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
}

/* Hero Trust Bar */
.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.trust-number {
  font-family: var(--ff-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--clr-accent);
  line-height: 1;
}

.trust-label {
  font-size: var(--fs-tiny);
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--fs-tiny);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: float-scroll 2.5s ease-in-out infinite;
}

.hero-scroll .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--clr-accent), transparent);
}

@keyframes float-scroll {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* ============================================
   ABOUT / WHY US SECTION
   ============================================ */
.about {
  background: var(--clr-bg);
}

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

.about-content .section-title {
  margin-bottom: var(--space-md);
}

.about-text {
  color: var(--clr-text-light);
  margin-bottom: var(--space-lg);
  line-height: 1.9;
}

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

.feature-card {
  padding: var(--space-md);
  background: var(--clr-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  transition: all var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-secondary);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0, 81, 168, 0.1), rgba(37, 181, 233, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
}

.feature-card h4 {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--clr-primary);
  margin-bottom: 4px;
}

.feature-card p {
  font-size: var(--fs-small);
  color: var(--clr-text-light);
  line-height: 1.6;
}

/* Stats Column */
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.stat-card {
  padding: var(--space-lg);
  background: var(--clr-primary-light);
  border-radius: var(--radius-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: rgba(0, 81, 168, 0.1);
  border-radius: var(--radius-full);
}

.stat-number {
  font-family: var(--ff-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--clr-accent);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: var(--fs-small);
  color: var(--clr-text-on-dark);
  font-weight: 500;
}

/* ============================================
   PARALLAX ROOF TYPES GALLERY
   ============================================ */
.roof-gallery {
  padding: 0;
}

.roof-gallery .section-header {
  padding: var(--space-section) 0 var(--space-xl);
}

.parallax-panel {
  position: relative;
  height: 85vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.parallax-bg {
  position: absolute;
  inset: -20% 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Individual roof backgrounds */
.parallax-panel[data-roof="asphalt"] .parallax-bg {
  background-image: url('images/Sk\ roof\ images/aluminium-sk.jpg');
}

.parallax-panel[data-roof="metal"] .parallax-bg {
  background-image: url('images/Sk\ roof\ images/color bond-sk-1.jpg');
}

.parallax-panel[data-roof="tile"] .parallax-bg {
  background-image: url('images/Sk\ roof\ images/aluzinc-sk.jpg');
}

.parallax-panel[data-roof="flat"] .parallax-bg {
  background-image: url('images/Sk\ roof\ images/metro tiles-sk.jpg');
}

.parallax-panel[data-roof="slate"] .parallax-bg {
  background-image: url('images/Sk\ roof\ images/metal-sk.jpg');
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      #1a1a2ed9 20%,
      #1a1a2e80 50%,
      transparent 100%);
}

.parallax-content {
  position: relative;
  z-index: 2;
  max-width: 550px;
  padding: var(--space-xl);
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.parallax-panel.in-view .parallax-content {
  opacity: 1;
  transform: translateX(0);
}

.roof-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.3rem 0.8rem;
  background: rgba(0, 81, 168, 0.2);
  border: 1px solid rgba(0, 81, 168, 0.4);
  border-radius: var(--radius-lg);
  color: var(--clr-accent);
  font-size: var(--fs-tiny);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-md);
}

.parallax-content h3 {
  font-family: var(--ff-heading);
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1.15;
  margin-bottom: var(--space-sm);
}

.parallax-content p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.roof-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.roof-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.35rem 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-small);
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.roof-feature-tag .tag-icon {
  color: var(--clr-accent);
}

/* Panel counter */
.panel-counter {
  position: absolute;
  bottom: var(--space-lg);
  right: var(--space-xl);
  z-index: 2;
  font-family: var(--ff-heading);
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.08);
  line-height: 1;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works {
  background: var(--clr-primary-light);
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(0, 81, 168, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(37, 181, 233, 0.05) 0%, transparent 50%);
}

.how-it-works .section-label {
  color: var(--clr-primary);
}

.how-it-works .section-title {
  color: var(--clr-white);
}

.how-it-works .section-subtitle {
  color: var(--clr-text-on-dark);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  position: relative;
}

/* Connecting line */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 12.5%;
  width: 75%;
  height: 2px;
  background: linear-gradient(90deg,
      var(--clr-primary),
      var(--clr-accent),
      var(--clr-primary),
      var(--clr-accent));
  opacity: 0.3;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--clr-white);
  margin: 0 auto var(--space-md);
  box-shadow: 0 4px 20px rgba(0, 81, 168, 0.3);
}

.step-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  color: var(--clr-white);
}

.step-card h4 {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: var(--fs-h3);
  color: var(--clr-white);
  margin-bottom: var(--space-xs);
}

.step-card p {
  font-size: var(--fs-small);
  color: var(--clr-text-on-dark);
  line-height: 1.7;
  max-width: 240px;
  margin: 0 auto;
}

/* ============================================
   MEDIA GALLERY SECTION
   ============================================ */
.media-gallery {
  background: var(--clr-bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--clr-bg-alt);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

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

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

/* Placeholder styling before Cloudinary URL is added */
.gallery-img.placeholder {
  object-fit: contain;
  padding: var(--space-xl);
  opacity: 0.2;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 81, 168, 0.9) 0%, rgba(0, 81, 168, 0.2) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.gallery-overlay span {
  color: var(--clr-white);
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
  transform: translateY(15px);
  transition: transform var(--transition-base);
}

.gallery-item:hover .gallery-overlay span {
  transform: translateY(0);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
  background: var(--clr-bg-alt);
}

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

.testimonial-card {
  background: var(--clr-white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  position: relative;
  transition: all var(--transition-base);
}

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

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-sm);
  color: var(--clr-primary);
  font-size: 1.1rem;
}

.testimonial-text {
  font-size: var(--fs-body);
  color: var(--clr-text);
  line-height: 1.8;
  margin-bottom: var(--space-md);
  font-style: italic;
}

.testimonial-text::before {
  content: '"';
  font-family: var(--ff-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--clr-primary);
  opacity: 0.2;
  line-height: 0;
  display: block;
  margin-bottom: var(--space-sm);
}

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

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1rem;
}

.author-info h5 {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--clr-primary);
}

.author-info span {
  font-size: var(--fs-tiny);
  color: var(--clr-text-light);
}

/* ============================================
   QUOTE / ORDER FORM SECTION
   ============================================ */
.quote-section {
  background: var(--clr-bg);
  position: relative;
}

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

.quote-info {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-lg));
}

.quote-info .section-label {
  color: var(--clr-whatsapp-dark);
}

.quote-info .section-label.reveal.revealed {
  color: var(--clr-whatsapp-dark);
}

.quote-info .section-title {
  margin-bottom: var(--space-sm);
  color: var(--clr-whatsapp-dark);
}


.quote-info-text {
  color: var(--clr-text-light);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.quote-benefits {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.quote-benefit {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--clr-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
}

.benefit-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0, 81, 168, 0.1), rgba(37, 181, 233, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.quote-benefit span {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--clr-text);
}

/* Form */
.quote-form-wrapper {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-md);
}

.quote-form-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--clr-whatsapp-dark);
  margin-bottom: var(--space-xs);
}

.quote-form-subtitle {
  font-size: var(--fs-small);
  color: var(--clr-text-light);
  margin-bottom: var(--space-lg);
}

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

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

.form-group label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--clr-whatsapp-dark);
  margin-bottom: 6px;
}

.form-group label .required {
  color: var(--clr-whatsapp-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--clr-text);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clr-whatsapp-dark);
  box-shadow: 0 0 0 3px rgba(0, 81, 168, 0.12);
  background: var(--clr-white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--clr-text-light);
  opacity: 0.6;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6b7b' d='M6 8.825L0.575 3.4L1.4 2.575L6 7.175L10.6 2.575L11.425 3.4L6 8.825Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Radio group */
.radio-group {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.radio-option {
  position: relative;
}

.radio-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-option label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 1rem;
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.radio-option input:checked+label {
  background: rgba(0, 81, 168, 0.1);
  border-color: var(--clr-secondary);
  color: var(--clr-secondary);
}

.radio-option label:hover {
  border-color: var(--clr-secondary);
}

/* Submit button */
.form-submit {
  margin-top: var(--space-md);
}

.form-submit .btn {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.form-note {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
  font-size: var(--fs-tiny);
  color: var(--clr-text-light);
}

.form-note .whatsapp-icon {
  color: var(--clr-whatsapp);
}

/* Error states */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group .error-message {
  display: none;
  font-size: var(--fs-tiny);
  color: #e74c3c;
  margin-top: 4px;
}

.form-group.error .error-message {
  display: block;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--clr-primary-light);
  padding: var(--space-2xl) 0 var(--space-lg);
}

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

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

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

.footer-logo-img {
  width: 100px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  background: none;
}

.footer-brand p {
  color: var(--clr-text-on-dark);
  font-size: var(--fs-small);
  line-height: 1.8;
  max-width: 300px;
  margin-bottom: var(--space-md);
}

.footer-socials {
  display: flex;
  gap: var(--space-sm);
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--clr-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-on-dark);
  font-size: 1rem;
  transition: all var(--transition-base);
}

.social--link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--clr-primary-light);
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-on-dark);
  font-size: 1rem;
  transition: all var(--transition-base);
}


.social-link:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--clr-white);
  margin-bottom: var(--space-md);
}

.footer-col ul li {
  margin-bottom: var(--space-xs);
}

.footer-col ul li a {
  font-size: var(--fs-small);
  color: var(--clr-text-on-dark);
  transition: all var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--clr-primary);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  color: var(--clr-text-on-dark);
  font-size: var(--fs-small);
}

.footer-contact-item .contact-icon {
  color: var(--clr-accent);
  min-width: 20px;
  margin-top: 2px;
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-bottom p {
  font-size: var(--fs-tiny);
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-md);
}

.footer-bottom-links a {
  font-size: var(--fs-tiny);
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links a:hover {
  color: var(--clr-primary);
}

/* ============================================
   WHATSAPP FAB
   ============================================ */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--clr-whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-base);
  border: none;
}

.whatsapp-fab::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  border: 2px solid var(--clr-whatsapp);
  animation: fab-pulse 2s ease-in-out infinite;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-fab .fab-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: var(--clr-primary);
  color: var(--clr-white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.whatsapp-fab .fab-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--clr-primary);
  border-right-width: 0;
}

.whatsapp-fab:hover .fab-tooltip {
  opacity: 1;
}

@keyframes fab-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  .steps-grid::before {
    display: none;
  }

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

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

  .quote-info {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

/* Mobile */
@media (max-width: 360px),
(max-width: 600px),
(max-width: 768px),
(max-width: 375px),
(max-width: 540px),
(max-width: 720px),
(max-width: 200px),
(max-width: 50px),
(max-width: 377px) {
  :root {
    --nav-height: 70px;
    --nav-height-scrolled: 60px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--clr-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-height) + var(--space-lg)) var(--space-lg) var(--space-lg);
    gap: var(--space-md);
    transition: right var(--transition-smooth);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.3);
  }

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

  .nav-links a {
    font-size: 1rem;
    width: 100%;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
    margin-top: var(--space-sm);
  }

  .hero-content {
    padding-top: calc(var(--nav-height) + var(--space-lg));
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .parallax-panel {
    height: 1000vh;
  }

  .parallax-content {
    padding: var(--shadow-sm);
  }

  .parallax-overlay {
    background: linear-gradient(0deg,
        rgba(26, 26, 46, 0.9) 0%,
        rgba(26, 26, 46, 0.5) 50%,
        rgba(26, 26, 46, 0.3) 100%);
  }

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

  .gallery-item {
    border-radius: var(--radius-sm);
  }

  .gallery-overlay {
    padding: var(--space-sm);
  }

  .gallery-overlay span {
    font-size: 1rem;
    transform: translateY(0);
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

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

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

  .quote-form-wrapper {
    padding: var(--space-lg);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .panel-counter {
    display: none;
  }

  .whatsapp-fab {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 54px;
    height: 54px;
    font-size: 1.5rem;
  }

  .whatsapp-fab .fab-tooltip {
    display: none;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-trust {
    gap: var(--space-sm);
  }

  .trust-item {
    flex: 1;
  }

  .trust-number {
    font-size: 1.4rem;
  }

  .radio-group {
    flex-direction: column;
  }

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

  .parallax-panel {
    height: 60vh;
    min-height: 400px;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .parallax-bg {
    transform: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}