/* =====================================================================
   KAEVIK FACILITIES — GLOBAL BASE & DESIGN SYSTEM
   Hostinger Premium Compatible — Zero Node/Webpack dependencies
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Outfit:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand Core Palette */
  --primary-navy: #0B192C;
  --primary-navy-dark: #060E18;
  --secondary-slate: #1E3E62;
  --secondary-slate-light: #2A527F;
  --accent-orange: #F26522; /* Matches exact Kaevik logo orange */
  --accent-orange-hover: #D95314;
  --accent-amber: #FFA133;
  --accent-amber-light: #FFF4E5;
  
  /* Backgrounds & Neutrals */
  --bg-ivory: #FAF8F5;
  --bg-pure-white: #FFFFFF;
  --bg-subtle-grey: #F1F5F9;
  --text-dark: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border-subtle: #E2E8F0;
  --border-strong: #CBD5E1;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-display: 'Outfit', sans-serif;

  /* Shadows & Depth */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(11, 25, 44, 0.08), 0 4px 6px -4px rgba(11, 25, 44, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(11, 25, 44, 0.12), 0 8px 10px -6px rgba(11, 25, 44, 0.05);
  --shadow-glow: 0 0 25px rgba(242, 101, 34, 0.25);

  /* Shape & Transitions */
  --btn-radius: 8px;
  --card-radius: 12px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1240px;
}

/* Brand Logo Global System */
.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.brand-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}
.brand-text-facilities {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Plus Jakarta Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--primary-navy, #0B192C);
  text-transform: uppercase;
  line-height: 1;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

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

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

@media (max-width: 768px) {
  .section-padding {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

/* Section Header Typography */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(242, 101, 34, 0.1);
  color: var(--accent-orange);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.65;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.75rem;
  }
  .section-subtitle {
    font-size: 1rem;
  }
}

/* Common Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--btn-radius);
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-orange);
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(242, 101, 34, 0.28);
}
.btn-primary:hover {
  background-color: var(--accent-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(242, 101, 34, 0.38);
}

.btn-navy {
  background-color: var(--primary-navy);
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(11, 25, 44, 0.2);
}
.btn-navy:hover {
  background-color: var(--secondary-slate);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-navy);
  border: 1.5px solid var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--primary-navy);
  background-color: rgba(11, 25, 44, 0.04);
}

.btn-ghost-white {
  background-color: rgba(255, 255, 255, 0.12);
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}
.btn-ghost-white:hover {
  background-color: rgba(255, 255, 255, 0.22);
  border-color: #FFFFFF;
}

.btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  background-color: #20BA59;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.84rem;
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
}

/* Service Category Badges */
.badge-service {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}
.badge-home {
  background: #E0F2FE;
  color: #0369A1;
}
.badge-business {
  background: #FEF3C7;
  color: #B45309;
}
.badge-care {
  background: #DCFCE7;
  color: #15803D;
}

/* Prototype Switcher Bar (Top Fixed Bar for client review) */
.prototype-bar {
  position: sticky;
  top: 0;
  z-index: 99999;
  background: #060E18;
  color: #F8FAFC;
  padding: 0.55rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--accent-orange);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  font-size: 0.8125rem;
}

.prototype-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.prototype-tag {
  background: var(--accent-orange);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prototype-title {
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}

.prototype-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.proto-btn-group {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.proto-btn {
  padding: 0.35rem 0.85rem;
  font-size: 0.775rem;
  font-weight: 600;
  border-radius: 4px;
  color: #94A3B8;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.proto-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
}

.proto-btn.active {
  background: var(--accent-orange);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(242, 101, 34, 0.4);
}

.proto-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.proto-btn-secondary:hover {
  background: #FFFFFF;
  color: var(--primary-navy);
}

/* Comparison Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 25, 44, 0.75);
  backdrop-filter: blur(6px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #FFFFFF;
  border-radius: 14px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  padding: 2rem;
  position: relative;
  animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #475569;
  transition: all 0.2s;
}
.modal-close:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* Quick Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.floating-whatsapp:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.55);
}
.floating-whatsapp svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* Toast Notification */
.kaevik-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--primary-navy);
  color: #FFFFFF;
  padding: 0.9rem 1.4rem;
  border-radius: 8px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 100001;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 4px solid var(--accent-orange);
  font-size: 0.9rem;
}
.kaevik-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Device Viewport Simulation Container */
.viewport-frame-wrapper {
  background: #334155;
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 46px);
  transition: all 0.3s ease;
}
.viewport-frame {
  background: #FFFFFF;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-x: hidden;
  position: relative;
}
.viewport-frame.desktop {
  width: 100%;
  max-width: 100%;
  border-radius: 0;
}
.viewport-frame.tablet {
  width: 768px;
  max-width: 100%;
  border-radius: 16px;
  border: 12px solid #0F172A;
}
.viewport-frame.mobile {
  width: 375px;
  max-width: 100%;
  border-radius: 36px;
  border: 14px solid #0F172A;
}

/* Announcement Bar Responsive Controls */
@media (min-width: 768px) {
  .ticker-bar.ann-hide-desktop,
  #topAnnouncementBar.ann-hide-desktop {
    display: none !important;
  }
}
@media (max-width: 767px) {
  .ticker-bar.ann-hide-mobile,
  #topAnnouncementBar.ann-hide-mobile {
    display: none !important;
  }
}

/* ==========================================================================
   GLOBAL REUSABLE INDIAN MOBILE NUMBER INPUT COMPONENT
   ========================================================================== */
.phone-input-group {
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  position: relative !important;
}

.phone-country-prefix {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 0.85rem !important;
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  border-right: none !important;
  border-top-left-radius: 8px !important;
  border-bottom-left-radius: 8px !important;
  font-weight: 800 !important;
  font-size: 0.875rem !important;
  color: #334155 !important;
  user-select: none !important;
  letter-spacing: 0.02em !important;
  white-space: nowrap !important;
}

.phone-input-group .form-control,
.phone-input-group input[type="tel"],
.phone-input-group input.phone-input-field {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  flex: 1 !important;
  width: 100% !important;
}

.phone-input-group:focus-within .phone-country-prefix {
  border-color: #0284C7 !important;
  background: #E0F2FE !important;
  color: #0369A1 !important;
}

.phone-inline-error,
.field-error.phone-inline-error {
  display: none;
  color: #DC2626 !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  margin-top: 0.35rem !important;
}

/* Global Form Grids */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* ==========================================================================
   GLOBAL RESPONSIVE AUDIT & MOBILE VIEWPORT FIXES
   ========================================================================== */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

/* Prevent text overflow blowout on small screens */
.phone-input-group,
.form-group,
.b-card,
.feature-card,
.hero-content,
.chef-box,
.rating-box {
  min-width: 0;
}
a, p, span, h1, h2, h3, h4, h5, h6, strong {
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  /* Eliminate grid horizontal blowouts on mobile across all public pages */
  #contactGridWrapper,
  .startup-trust-grid,
  .form-grid-2,
  .form-grid-3,
  .proof-grid,
  .metrics-3,
  [style*="grid-template-columns: 1fr 1.3fr"],
  [style*="grid-template-columns:1fr 1.3fr"],
  [style*="grid-template-columns: 1.2fr 0.8fr"],
  [style*="grid-template-columns:1.2fr 0.8fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns:repeat(2, 1fr)"],
  [style*="grid-template-columns: repeat(2, 1fr)"],
  [style*="grid-template-columns:repeat(3, 1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(4, 1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Modal responsive containment */
  .modal-overlay {
    padding: 0.5rem !important;
  }
  .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.5rem 1rem !important;
    margin: 10px auto !important;
  }

  /* Touch-friendly interactive buttons and inputs (min 44px) */
  button, 
  .btn, 
  a.btn,
  input[type="button"],
  input[type="submit"] {
    min-height: 44px;
  }

  .form-control,
  .phone-input-field,
  .phone-country-prefix {
    min-height: 44px !important;
  }
}

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

  #contactFormCard {
    padding: 1.25rem 1rem !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* Tablet 2-column distribution for 4-col grids */
  .startup-trust-grid,
  [style*="grid-template-columns:repeat(4, 1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }
}

/* ==========================================================================
   PUBLIC MOBILE HAMBURGER NAVIGATION
   ========================================================================== */
.mobile-nav-toggle {
  display: none;
}
.nav-mobile-cta {
  display: none;
}

@media (max-width: 767px) {
  .site-header {
    position: relative;
    z-index: 1000;
  }
  .header-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative;
    height: 64px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .header-action-group .btn-fast-book,
  .header-actions .btn {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: transparent;
    border: 1.5px solid #CBD5E1;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    color: var(--primary-navy, #0B192C);
    transition: all 0.2s ease;
    flex-shrink: 0;
  }
  .mobile-nav-toggle:focus,
  .mobile-nav-toggle:hover {
    background: #F1F5F9;
    border-color: #94A3B8;
  }
  .mobile-nav-toggle.active {
    background: #FFF7ED;
    border-color: #F26522;
    color: #F26522;
  }
  .mobile-nav-toggle svg {
    width: 24px;
    height: 24px;
    display: block;
    pointer-events: none;
  }

  .nav-links,
  .main-nav-links {
    display: none !important;
  }

  .nav-links.is-open,
  .main-nav-links.is-open,
  .nav-links.nav-open,
  .main-nav-links.nav-open {
    display: flex !important;
    flex-direction: column !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #FFFFFF !important;
    border-top: 1px solid #E2E8F0 !important;
    border-bottom: 3px solid #FDE68A !important;
    box-shadow: 0 20px 25px -5px rgba(11, 25, 44, 0.15), 0 8px 10px -6px rgba(11, 25, 44, 0.08) !important;
    padding: 1rem 1.25rem 1.25rem !important;
    gap: 0.35rem !important;
    z-index: 99999 !important;
    overflow-y: auto !important;
    max-height: calc(100vh - 80px) !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: normal !important;
  }

  .nav-links.is-open a,
  .main-nav-links.is-open a,
  .nav-links.nav-open a,
  .main-nav-links.nav-open a {
    display: block !important;
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #1E293B !important;
    text-decoration: none !important;
    border-left: 3px solid transparent !important;
    transition: all 0.2s ease !important;
    white-space: normal !important;
  }

  .nav-links.is-open a:hover,
  .main-nav-links.is-open a:hover {
    background: #F8FAFC !important;
    color: #F26522 !important;
    border-left-color: #F26522 !important;
  }

  .nav-links.is-open a.active,
  .main-nav-links.is-open a.active {
    background: #FFF7ED !important;
    color: #F26522 !important;
    border-left-color: #F26522 !important;
    font-weight: 700 !important;
  }

  .nav-mobile-cta {
    display: block !important;
    margin-top: 0.75rem !important;
    padding: 0.85rem !important;
    text-align: center !important;
    background: #F26522 !important;
    color: #FFFFFF !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
  }
}



