/* ========================================
   Technora Services - Packers & Movers
   Production Ready | Responsive Design
   Theme: Change in js/config.js (green | orange | blue)
   ======================================== */

/* ---- Theme: Green (light base + green accents) ---- */
:root,
[data-theme="green"] {
  --color-primary: #2d7a5e;
  --color-primary-dark: #1a5f4a;
  --color-accent: #3d9a7a;
  --color-accent-dark: #2d7a5e;
  --theme-navbar: #ffffff;
  --theme-hero-overlay: rgba(0, 0, 0, 0.45);
  --theme-hero-bg: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 50%, #ffffff 100%);
  --theme-section-title: #334155;
  --theme-service-icon: linear-gradient(135deg, #2d7a5e 0%, #1a5f4a 100%);
  --theme-service-underline: linear-gradient(90deg, #2d7a5e, #3d9a7a);
  --theme-why-icon: #2d7a5e;
  --theme-why-heading: #334155;
  --theme-cta-bg: linear-gradient(135deg, #2d7a5e 0%, #1a5f4a 100%);
  --theme-footer: #f1f5f9;
  --theme-footer-text: #334155;
  --theme-outline-border: #2d7a5e;
  --theme-outline-color: #2d7a5e;
  --color-bg-light: #ffffff;
  --color-bg-silver: #f8fafc;
  --theme-navbar-text: #334155;
  --theme-navbar-text-hover: #2d7a5e;
}

/* ---- Theme: Blue (Azure-style — #0078d4 Azure Pulse) ---- */
[data-theme="blue"] {
  --color-primary: #0078d4;
  --color-primary-dark: #106ebe;
  --color-accent: #3ccbf4;
  --color-accent-dark: #0078d4;
  --theme-navbar: #ffffff;
  --theme-hero-overlay: rgba(0, 0, 0, 0.45);
  --theme-hero-bg: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 50%, #ffffff 100%);
  --theme-section-title: #334155;
  --theme-service-icon: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
  --theme-service-underline: linear-gradient(90deg, #0078d4, #3ccbf4);
  --theme-why-icon: #0078d4;
  --theme-why-heading: #334155;
  --theme-cta-bg: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
  --theme-footer: #f1f5f9;
  --theme-footer-text: #334155;
  --theme-outline-border: #0078d4;
  --theme-outline-color: #0078d4;
  --color-bg-light: #ffffff;
  --color-bg-silver: #f8fafc;
  --theme-navbar-text: #334155;
  --theme-navbar-text-hover: #0078d4;
}

/* ---- Theme: Orange ---- */
[data-theme="orange"] {
  --color-primary: #f97316;
  --color-primary-dark: #ea580c;
  --color-accent: #fb923c;
  --color-accent-dark: #f97316;
  --theme-navbar: #ffffff;
  --theme-hero-overlay: rgba(0, 0, 0, 0.45);
  --theme-hero-bg: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 50%, #ffffff 100%);
  --theme-section-title: #334155;
  --theme-service-icon: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --theme-service-underline: linear-gradient(90deg, #f97316, #fb923c);
  --theme-why-icon: #f97316;
  --theme-why-heading: #334155;
  --theme-cta-bg: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --theme-footer: #f1f5f9;
  --theme-footer-text: #334155;
  --theme-outline-border: #f97316;
  --theme-outline-color: #f97316;
  --color-bg-light: #ffffff;
  --color-bg-silver: #f8fafc;
  --theme-navbar-text: #334155;
  --theme-navbar-text-hover: #f97316;
}

/* ---- Shared Variables ---- */
:root {
  --color-silver: #64748b;
  --color-silver-light: #e2e8f0;
  --color-silver-dark: #475569;
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #20bd5a;
  --color-text: #334155;
  --color-text-muted: #64748b;
  --color-white: #fff;
  --font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --transition: 0.3s ease;
}

/* ---- Base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* offset for fixed navbar */
}
body {
  font-family: var(--font-family);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- Navbar ---- */
.navbar {
  z-index: 2000 !important;
  pointer-events: auto !important;
  background: var(--theme-navbar) !important;
  padding: 0.75rem 0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.navbar.scrolled { padding: 0.5rem 0; }
.navbar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 1.35rem;
  color: var(--theme-navbar-text) !important;
}
.navbar-brand .brand-tagline { font-size: 0.7rem; font-weight: 400; opacity: 0.9; letter-spacing: 0.08em; }

/* Brand name: two-tone per theme */
.navbar-brand .brand-word-1,
.footer .brand-word-1 { color: inherit; }
.navbar-brand .brand-word-2,
.footer .brand-word-2 { color: inherit; }

[data-theme="green"] .navbar-brand .brand-word-1,
[data-theme="green"] .footer .brand-word-1 { color: var(--color-primary); }
[data-theme="green"] .navbar-brand .brand-word-2,
[data-theme="green"] .footer .brand-word-2 { color: #334155; }

[data-theme="orange"] .navbar-brand .brand-word-1,
[data-theme="orange"] .footer .brand-word-1 { color: var(--color-primary); }
[data-theme="orange"] .navbar-brand .brand-word-2,
[data-theme="orange"] .footer .brand-word-2 { color: #334155; }

[data-theme="blue"] .navbar-brand .brand-word-1,
[data-theme="blue"] .footer .brand-word-1 { color: var(--color-primary); }
[data-theme="blue"] .navbar-brand .brand-word-2,
[data-theme="blue"] .footer .brand-word-2 { color: #334155; }
.nav-link {
  color: var(--theme-navbar-text) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem !important;
  position: relative;
  transition: var(--transition);
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background: var(--theme-navbar-text-hover);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-link:hover { color: var(--theme-navbar-text-hover) !important; }
.navbar .nav-link,
.navbar .btn { pointer-events: auto !important; }
.nav-link:hover::after { transform: scaleX(1); }

/* ---- WhatsApp Buttons ---- */
.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: var(--color-white) !important;
  border: none;
  font-weight: 600;
  transition: var(--transition);
}
.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-dark);
  color: var(--color-white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline-primary { border-color: var(--theme-outline-border); color: var(--theme-outline-color); }
.btn-outline-primary:hover { background-color: var(--color-accent); color: var(--color-white); border-color: var(--color-accent); }

/* ---- Hero / Carousel ---- */
.hero { position: relative; min-height: 100vh; overflow: hidden; }
.hero-carousel .carousel { position: absolute; inset: 0; }
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item { height: 100vh; }
.hero-carousel-img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  animation: heroZoom 5s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
[data-hero-animation="fade"] .hero-carousel-img { animation: none; }
[data-hero-animation="slide"] .hero-carousel-img {
  animation: heroPan 6s ease-in-out forwards;
}
@keyframes heroPan { from { transform: translateX(-2%) scale(1.05); } to { transform: translateX(2%) scale(1.02); } }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--theme-hero-overlay);
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero-content .container { pointer-events: auto; }
.hero-carousel-control { z-index: 3; opacity: 0.7; }
.hero-carousel-control:hover { opacity: 1; }

/* Carousel indicators */
#heroCarousel .carousel-indicators { z-index: 4; margin-bottom: 1.5rem; }
#heroCarousel .carousel-indicators [data-bs-target] {
  width: 10px; height: 10px; border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  opacity: 1; margin: 0 6px;
  transition: all 0.3s ease;
}
#heroCarousel .carousel-indicators [data-bs-target]:hover { background-color: rgba(255, 255, 255, 0.8); }
#heroCarousel .carousel-indicators .active {
  width: 32px; border-radius: 5px;
  background-color: #fff; border-color: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}
.hero-carousel .carousel-item.active .hero-carousel-img {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.hero-tagline { font-size: 1rem; font-weight: 600; color: rgba(255, 255, 255, 0.95); letter-spacing: 0.2em; margin-bottom: 0.5rem; text-transform: uppercase; }
.hero-title { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; color: var(--color-white); margin-bottom: 1rem; line-height: 1.2; }
.hero-subtitle { font-size: 1.15rem; color: rgba(255, 255, 255, 0.9); margin-bottom: 1.75rem; max-width: 520px; }
.hero-cta .btn-whatsapp { font-size: 1.1rem; }

/* ---- Sections (scroll targets for nav) ---- */
#home,
#services,
#why-us,
#contact,
#find-us {
  scroll-margin-top: 80px;
}

.section { padding: 4rem 0; }
.section-header { margin-bottom: 3rem; }
.section-title { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; color: var(--theme-section-title); margin-bottom: 0.5rem; }
.section-subtitle { color: var(--color-text-muted); font-size: 1.05rem; }

/* ---- Services ---- */
.services { background: var(--color-bg-light); }
.service-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  text-align: center;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.service-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1rem;
  background: var(--theme-service-icon);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}
.service-card h3 { font-size: 1.2rem; font-weight: 600; color: var(--theme-section-title); margin-bottom: 0.5rem; }
.service-card h3::after {
  content: "";
  display: block;
  width: 40px; height: 3px;
  background: var(--theme-service-underline);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}
.service-card p { color: var(--color-text-muted); font-size: 0.95rem; margin: 0; }

/* ---- Why Us ---- */
.why-us { background: var(--color-bg-silver); }
.why-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}
.why-card:hover { box-shadow: var(--shadow-md); }
.why-card i { font-size: 2.5rem; color: var(--theme-why-icon); margin-bottom: 1rem; }
.why-card h4 { font-size: 1.15rem; font-weight: 600; color: var(--theme-why-heading); margin-bottom: 0.5rem; }
.why-card p { color: var(--color-text-muted); font-size: 0.95rem; margin: 0; }

/* ---- CTA ---- */
.cta-section { background: var(--theme-cta-bg); }
.cta-box { padding: 3rem 2rem; color: var(--color-white); }
.cta-box h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.5rem; }
.cta-box p { opacity: 0.9; }

/* ---- Theme Switcher ---- */
.theme-switcher-hidden { display: none !important; }
.theme-switcher {
  position: fixed;
  bottom: 24px; left: 24px;
  width: 48px; height: 48px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: var(--shadow-md);
  z-index: 1100;
  cursor: pointer;
  transition: var(--transition);
}
.theme-switcher:hover { transform: scale(1.1); color: var(--color-white); }

/* ---- Floating WhatsApp ---- */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: var(--color-whatsapp);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); color: var(--color-white); }

/* ---- Footer ---- */
.footer { background: var(--theme-footer); color: var(--theme-footer-text); font-size: 0.95rem; }
.footer-address-title { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; opacity: 0.9; }
.footer-address-text { font-size: 0.95rem; line-height: 1.6; opacity: 0.9; }
.border-footer { border-color: rgba(255, 255, 255, 0.15) !important; }
[data-theme="green"] .border-footer,
[data-theme="orange"] .border-footer,
[data-theme="blue"] .border-footer { border-color: rgba(51, 65, 85, 0.2) !important; }
.footer-email { color: var(--theme-footer-text); text-decoration: none; font-size: 0.9rem; opacity: 0.9; }

/* ---- Map Section ---- */
.map-section { background: var(--color-bg-silver); }
.map-container { min-height: 350px; }
.map-container iframe { display: block; }
.footer-email:hover { color: var(--theme-footer-text); text-decoration: underline; opacity: 1; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .section { padding: 3rem 0; }
}
@media (max-width: 767px) {
  .hero-subtitle { font-size: 1rem; }
  .service-card, .why-card { padding: 1.5rem; }
  .cta-box { padding: 2rem 1rem; }
  .whatsapp-float { width: 50px; height: 50px; font-size: 1.5rem; bottom: 20px; right: 20px; }
  .theme-switcher { width: 44px; height: 44px; font-size: 1.2rem; bottom: 20px; left: 20px; }
  .footer-content { flex-direction: column; text-align: center; }
}
