/* ==========================================
   CSS RESET & BASE STYLES
   ========================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

section {
  padding: 100px 0;
  position: relative;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   NAVIGATION HEADER
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #ffffff;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: height var(--transition-normal);
}

.header.scrolled .nav-container {
  height: 70px;
}

/* ==========================================
   TOP BAR SECTION
   ========================================== */
.top-bar {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  height: 40px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: height var(--transition-normal), opacity var(--transition-normal), padding var(--transition-normal);
  overflow: hidden;
}

[data-theme="dark"] .top-bar {
  background-color: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid var(--border-color);
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-bar-left a,
.top-bar-right a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.top-bar-left a:hover,
.top-bar-right a:hover {
  color: var(--color-secondary);
}

.top-bar-left i {
  color: var(--color-secondary);
  font-size: 0.9rem;
}

.top-bar-right a:hover {
  transform: translateY(-2px);
}

/* Scrolled State for Top Bar */
.header.scrolled .top-bar {
  height: 0;
  opacity: 0;
  pointer-events: none;
  border-bottom: none;
}

@media (max-width: 768px) {
  .top-bar {
    display: none !important;
  }
}

/* ==========================================
   FLOATING WHATSAPP BUTTON
   ========================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 1500;
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #20ba5a;
  box-shadow: 0 6px 20px rgba(32, 186, 90, 0.4);
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 48px;
  width: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--border-color);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-tagline {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-secondary);
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-main);
  position: relative;
  padding: 8px 0;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-secondary);
}

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

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

.btn.btn-mobile-cta {
  display: none;
}


/* Dropdown Navigation */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-icon {
  font-size: 0.7rem;
  transition: transform var(--transition-fast);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #ffffff;
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 260px;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
  z-index: 100;
}

.dropdown-item {
  display: block;
  padding: 10px 24px;
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
  text-align: left;
}

.dropdown-item:hover {
  background: var(--color-primary-light);
  color: #fff;
}

/* Hover Triggers on Desktop */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  
  .dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
  }
}

/* Mobile Dropdown Menu (Inline Accordion) */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 10px 0 0 16px;
    min-width: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  
  .dropdown-item {
    padding: 4px 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    text-align: left;
  }
  
  .dropdown-item:hover {
    background: transparent;
    color: var(--color-secondary);
  }
  
  .dropdown-icon {
    display: none;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Header Franchise Button Swap (Filled -> Outline on Hover) */
#franchise-btn-desktop {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}

#franchise-btn-desktop:hover {
  background-color: transparent;
  color: var(--color-secondary);
  box-shadow: none;
}

/* Burger Menu */
.burger-menu {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger-bar {
  width: 24px;
  height: 2.5px;
  background-color: var(--color-text-main);
  margin: 5px 0;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

/* ==========================================
   HERO CAROUSEL / SLIDER
   ========================================== */
.hero-carousel-section {
  width: 100%;
  overflow: hidden;
  background-color: var(--color-bg-main);
  border-bottom: 1px solid var(--border-color);
  padding: 0;
}

.carousel-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1600 / 550;
  overflow: hidden;
}

.carousel-slides {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform var(--transition-normal);
}

.carousel-slide {
  width: 33.333%;
  height: 100%;
  position: relative;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Carousel Controls */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
  z-index: 10;
  opacity: 0.8;
}

.carousel-arrow:hover {
  background: var(--color-primary);
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-arrow.prev {
  left: 20px;
}

.carousel-arrow.next {
  right: 20px;
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.carousel-dots .dot.active {
  background: var(--color-primary-light);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  .carousel-arrow.prev {
    left: 10px;
  }
  .carousel-arrow.next {
    right: 10px;
  }
  .carousel-dots {
    bottom: 10px;
  }
  .carousel-dots .dot {
    width: 8px;
    height: 8px;
  }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  min-height: calc(100vh - var(--navbar-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 60px 0;
  background: radial-gradient(circle at 80% 20%, rgba(10, 147, 192, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(244, 162, 97, 0.05) 0%, transparent 40%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-badge {
  align-self: flex-start;
  background: rgba(10, 147, 192, 0.1);
  color: var(--color-secondary);
  border: 1px solid rgba(10, 147, 192, 0.2);
  padding: 6px 16px;
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1.15;
  color: var(--color-primary);
}

.hero-title span {
  color: var(--color-secondary);
  position: relative;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 16px;
}

.hero-trust-metrics {
  display: flex;
  gap: 40px;
  margin-top: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1.2;
}

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

.hero-image-wrapper {
  position: relative;
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #fff;
  transition: transform var(--transition-slow);
}

[data-theme="dark"] .hero-image-frame {
  border-color: var(--color-bg-card);
}

.hero-image-frame:hover {
  transform: scale(1.02) rotate(1deg);
}

.hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.hero-image-backdrop {
  position: absolute;
  top: 20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary-light) 100%);
  z-index: -1;
  opacity: 0.2;
  transition: transform var(--transition-slow);
}

.hero-image-wrapper:hover .hero-image-backdrop {
  transform: translate(-10px, 10px);
}

/* Floating Clean Badge */
.floating-badge {
  position: absolute;
  bottom: 30px;
  left: -30px;
  background: var(--color-bg-glass);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 6s ease-in-out infinite;
}

.floating-badge-icon {
  width: 40px;
  height: 40px;
  background: var(--color-secondary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.floating-badge-text h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.floating-badge-text p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ==========================================
   ABOUT / TRUST SECTION
   ========================================== */
.about {
  background-color: var(--color-bg-card);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature-box {
  background: var(--color-bg-glass);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.feature-box:hover {
  border-color: var(--color-secondary);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 1.6rem;
  color: var(--color-secondary);
  margin-bottom: 12px;
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-quote {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-style: italic;
  border-left: 3px solid var(--color-accent);
  padding-left: 20px;
  margin: 10px 0;
  color: var(--color-primary-light);
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  margin-top: auto;
  padding-top: 20px;
  transition: color var(--transition-fast);
  width: fit-content;
}

.service-read-more i {
  font-size: 0.8rem;
  transition: transform var(--transition-fast);
}

.service-read-more:hover {
  color: var(--color-secondary);
}

.service-read-more:hover i {
  transform: translateX(4px);
}

.service-list {
  margin-top: 15px;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-item {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-item i {
  color: var(--color-secondary);
  font-size: 0.8rem;
}

/* ==========================================
   FRANCHISE SECTION
   ========================================== */
.franchise {
  background: radial-gradient(circle at 10% 10%, rgba(10, 147, 192, 0.05) 0%, transparent 60%);
}

.franchise-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
  align-items: center;
}

.franchise-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.franchise-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.franchise-bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.bullet-item {
  display: flex;
  gap: 16px;
}

.bullet-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.bullet-text h4 {
  font-size: 1rem;
  color: var(--color-text-main);
  margin-bottom: 6px;
}

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

.franchise-calculator-section {
  margin-top: 80px;
}

.calculator-wrapper {
  max-width: 950px;
  margin: 0 auto;
}

.calc-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 30px;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
  background-color: var(--color-bg-card);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-icon-box {
  width: 50px;
  height: 50px;
  background: rgba(10, 147, 192, 0.1);
  color: var(--color-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-details h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-details p,
.contact-details a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.contact-details a:hover {
  color: var(--color-secondary);
}

.contact-map-placeholder {
  height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  background: #eee;
  position: relative;
}

[data-theme="dark"] .contact-map-placeholder {
  background: #1a2233;
}

.contact-map-placeholder iframe {
  border: 0;
  width: 100%;
  height: 100%;
}

.form-success-message {
  display: none;
  background: rgba(46, 196, 182, 0.15);
  border: 1px solid rgba(46, 196, 182, 0.3);
  color: #1a7a6c;
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  margin-bottom: 20px;
  text-align: center;
}

[data-theme="dark"] .form-success-message {
  color: #55d0c0;
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.footer {
  background-color: var(--color-primary);
  color: #fff;
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer .logo-text {
  color: #fff;
}

.footer .logo-tagline {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .footer {
  background-color: hsl(218, 40%, 4%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

.footer-brand span {
  color: var(--color-secondary);
}

.footer-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  transition: all var(--transition-fast);
}

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

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 10px;
}

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

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-secondary);
  padding-left: 6px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item i {
  color: var(--color-secondary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

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

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-link:hover {
  color: #fff;
}

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

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

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* Keyframes */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* ==========================================
   RESPONSIVE DESIGN MEDIA QUERIES
   ========================================== */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 40px;
  }
  
  .hero-title {
    font-size: 3.2rem;
  }
  
  .hero-img {
    height: 400px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Navigation mobile layout */
  .burger-menu {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--navbar-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--navbar-height));
    background: var(--color-bg-glass);
    backdrop-filter: blur(var(--glass-blur));
    flex-direction: column;
    padding: 60px 24px;
    gap: 32px;
    transition: left var(--transition-normal);
    border-top: 1px solid var(--border-color);
  }
  
  .nav-menu.open {
    left: 0;
  }
  
  .nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
  }
  
  #franchise-btn-desktop {
    display: none;
  }
  
  .nav-menu .btn {
    width: 100%;
    margin-top: 20px;
  }
  
  .btn.btn-mobile-cta {
    display: inline-flex;
  }
  
  .burger-menu.open .burger-bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  
  .burger-menu.open .burger-bar:nth-child(2) {
    opacity: 0;
  }
  
  .burger-menu.open .burger-bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  /* Grid adaptations */
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-badge {
    align-self: center;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-trust-metrics {
    justify-content: center;
    gap: 30px;
  }
  
  .hero-image-wrapper {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }
  
  .hero-img {
    height: 320px;
  }
  
  .floating-badge {
    left: 10px;
    bottom: -15px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .franchise-intro-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .franchise-img {
    height: 280px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-trust-metrics {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .franchise-bullets {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   PAGE HERO (INNER PAGES)
   ========================================== */
.page-hero {
  position: relative;
  padding: 30px 0 45px;
  text-align: center;
  background: radial-gradient(circle at 10% 20%, rgba(10, 147, 192, 0.06) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(244, 162, 97, 0.05) 0%, transparent 40%),
              linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(240, 246, 250, 0.8) 100%);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  z-index: 1;
}

[data-theme="dark"] .page-hero {
  background: radial-gradient(circle at 10% 20%, rgba(10, 147, 192, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 90% 80%, rgba(244, 162, 97, 0.08) 0%, transparent 40%),
              linear-gradient(135deg, rgba(13, 20, 33, 0.9) 0%, rgba(20, 30, 48, 0.95) 100%);
}

/* Floating water bubbles for decorative effect */
.page-hero::before,
.page-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
  animation: float-bubble 8s ease-in-out infinite;
}

.page-hero::before {
  width: 150px;
  height: 150px;
  background: rgba(10, 147, 192, 0.12);
  top: 10%;
  left: 5%;
}

[data-theme="dark"] .page-hero::before {
  background: rgba(10, 147, 192, 0.25);
}

.page-hero::after {
  width: 220px;
  height: 220px;
  background: rgba(244, 162, 97, 0.06);
  bottom: -10%;
  right: 5%;
  animation-delay: -3s;
}

[data-theme="dark"] .page-hero::after {
  background: rgba(244, 162, 97, 0.15);
}

.page-hero .section-tagline {
  background: rgba(10, 147, 192, 0.08);
  border: 1px solid rgba(10, 147, 192, 0.15);
  padding: 6px 16px;
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-secondary);
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.page-hero .section-tagline::after {
  display: none; /* Hide standard underline line for the hero tagline */
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.page-hero-desc {
  max-width: 650px;
  margin: 0 auto;
  font-family: var(--font-body);
  color: var(--color-text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

@keyframes float-bubble {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-15px) scale(1.05); }
  100% { transform: translateY(0) scale(1); }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 95px 0 30px;
  }
  .page-hero-title {
    font-size: 2.5rem;
  }
  .page-hero-desc {
    font-size: 1rem;
  }
}

/* ==========================================
   MACHINERY GALLERY SECTION
   ========================================== */
.machinery-gallery {
  position: relative;
  overflow: hidden;
}

.gallery-wrapper {
  position: relative;
  margin-top: 50px;
  padding: 10px 0;
}

.gallery-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Hide scrollbar Firefox */
  padding: 10px 4px;
  -webkit-overflow-scrolling: touch;
}

.gallery-track::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.gallery-card {
  flex: 0 0 280px;
  height: 280px;
  background-color: rgba(13, 20, 33, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

[data-theme="dark"] .gallery-card {
  background-color: rgba(0, 0, 0, 0.4);
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

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

.gallery-card:hover .gallery-img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(13, 20, 33, 0.85) 0%, rgba(13, 20, 33, 0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

.gallery-zoom-icon {
  align-self: flex-end;
  width: 40px;
  height: 40px;
  background: rgba(10, 147, 192, 0.9);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}

.gallery-card-info {
  color: #fff;
}

.gallery-card-info h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.gallery-card-info p {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Nav Buttons */
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: var(--color-bg-glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-color);
  color: var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  z-index: 10;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.gallery-nav-btn:hover {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}

.gallery-nav-btn.prev {
  left: -25px;
}

.gallery-nav-btn.next {
  right: -25px;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 20, 33, 0.95);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 85%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: zoom-animation 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#lightbox-caption {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-size: 1.1rem;
  margin-top: 15px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 35px;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  transition: color var(--transition-fast);
  z-index: 2010;
}

.lightbox-close:hover {
  color: var(--color-secondary);
}

.lightbox-nav-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 2rem;
  cursor: pointer;
  padding: 20px;
  transition: color var(--transition-fast), transform var(--transition-fast);
  z-index: 2010;
}

.lightbox-nav-btn:hover {
  color: #fff;
  transform: scale(1.1);
}

@keyframes zoom-animation {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
  .gallery-card {
    flex: 0 0 240px;
    height: 240px;
  }
  .gallery-nav-btn {
    display: none; /* Hide nav arrows on mobile, rely on touch swipe */
  }
  .lightbox-nav-btn {
    padding: 10px;
    font-size: 1.5rem;
  }
}

/* Footer Designer attribution styling */
.footer-designer {
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.footer-designer a {
  color: var(--color-secondary);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-designer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ==========================================
   INTL-TEL-INPUT & VALIDATION CUSTOM STYLES
   ========================================== */
.iti {
  display: block !important;
  width: 100%;
}

.iti__country-list {
  background-color: var(--color-bg-card) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--color-text-main) !important;
  z-index: 100;
  max-width: 300px;
}

.iti__country {
  padding: 10px 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.iti__country:hover {
  background-color: rgba(10, 147, 192, 0.08) !important;
}

.iti__dial-code {
  color: var(--color-text-muted) !important;
}

.iti__country-name {
  color: var(--color-text-main) !important;
}

input[type="tel"].error {
  border-color: #e74c3c !important;
  background-color: rgba(231, 76, 60, 0.03) !important;
}

.phone-error-msg {
  display: block;
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 6px;
  font-weight: 500;
}
