/* ==========================================================================
   KOCHI KITCHEN CARE - Main Stylesheet
   Theme: Premium White / Deep Navy / Brass Gold / Subtle Grey
   Sections:
     1. Design tokens        6. Hero
     2. Base & typography    7. Cards, grids, sections
     3. Layout helpers       8. Gallery & lightbox
     4. Buttons              9. Floating buttons & mobile bar
     5. Header & navigation 10. Footer, animations, responsive
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --navy: #0B1F3A;
  --navy-soft: #163058;
  --accent: #C9973A;          /* brass gold: premium accent */
  --accent-dark: #8F6720;     /* darker gold for small text on white */
  --accent-light: #F8F1E2;
  --grey: #5F6B7A;
  --grey-light: #F5F6F8;
  --line: #E1E5EA;
  --ink: #1B2430;
  --white: #FFFFFF;
  --whatsapp: #128C4A;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
  --shadow-hover: 0 14px 34px rgba(11, 31, 58, 0.14);
  --font-head: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --header-height: 78px;
}

/* ---------- 2. Base & typography ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-dark);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }

ul { padding-left: 1.2em; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 300;
}

.skip-link:focus { left: 8px; }

/* ---------- 3. Layout helpers ---------- */
.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

.section { padding: 84px 0; }
.section-grey { background: var(--grey-light); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2,
.section-navy h3 { color: #fff; }

.section-head {
  max-width: 740px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-head p { color: var(--grey); font-size: 1.05rem; }
.section-navy .section-head p { color: #B8C7DA; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-row.center { justify-content: center; }

/* ---------- 4. Buttons ---------- */
/* Compact, corporate buttons. Call = navy (gold on dark sections), WhatsApp = deep green. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-call { background: var(--navy); color: #fff; }
.btn-call:hover { background: var(--navy-soft); }

.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #0E7A3F; }

/* On dark backgrounds the Call button turns gold so it stays visible */
.hero .btn-call,
.page-hero .btn-call,
.cta-band .btn-call,
.section-navy .btn-call { background: var(--accent); color: var(--navy); }

.hero .btn-call:hover,
.page-hero .btn-call:hover,
.cta-band .btn-call:hover,
.section-navy .btn-call:hover { background: #DDB057; }

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

.btn-small { min-height: 38px; padding: 7px 14px; font-size: 0.8rem; border-radius: 8px; }
.btn-large { min-height: 48px; padding: 11px 26px; font-size: 0.92rem; }

/* Call and WhatsApp buttons always share the same size */
.button-row .btn { min-width: 184px; }
.button-row .btn-large { min-width: 224px; }
.card-actions .btn { flex: 1 1 0; min-width: 0; }

/* ---------- 5. Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(11, 37, 69, 0.10); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 52px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a.nav-link {
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.main-nav a.nav-link:hover,
.main-nav a.nav-link[aria-current="page"] {
  background: var(--accent-light);
  color: var(--accent-dark);
}

.main-nav .btn { margin-left: 8px; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
  border-radius: 10px;
  padding: 8px 14px;
  font-family: var(--font-head);
  font-weight: 600;
  cursor: pointer;
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: min(86vh, 720px);
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--navy);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Dark navy overlay keeps text readable on top of the photograph */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(11, 37, 69, 0.92) 0%, rgba(11, 37, 69, 0.60) 48%, rgba(11, 37, 69, 0.08) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
  padding: 70px 0;
}

.hero h1 { color: #fff; }
.hero-sub { font-size: 1.15rem; color: #D3DFEC; margin-bottom: 28px; }

.hero .eyebrow { color: #E0B25A; }

.trust-strip {
  background: var(--navy);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

.trust-item {
  padding: 24px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; font-family: var(--font-head); color: #E0B25A; }
.trust-item span { font-size: 0.9rem; color: #B8C7DA; }

.page-hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  padding: 70px 0 60px;
}

.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.page-hero p { color: #C8D6E6; max-width: 720px; font-size: 1.08rem; }

.breadcrumb { font-size: 0.85rem; color: #9FB3CB; margin-bottom: 14px; }
.breadcrumb a { color: #CFE2F5; }

/* ---------- 7. Cards, grids, sections ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--grey-light); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-media img { transform: scale(1.05); }

.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--grey); font-size: 0.95rem; flex: 1; }

.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.mini-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.mini-card p { color: var(--grey); font-size: 0.94rem; flex: 1; }
.mini-card h3 a { text-decoration: none; color: inherit; }

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-weight: 700;
}

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }

.feature-list li {
  position: relative;
  padding-left: 34px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='white' stroke-width='2.2' d='M5 10.5l3.2 3.2L15 6.8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

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

.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

.steps { counter-reset: step; }

.step {
  position: relative;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 30px 24px 24px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -20px;
  left: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.step h3 { color: var(--navy); margin-top: 6px; }
.step p { color: var(--grey); margin: 0; }

.chip-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.chip {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.chip:hover { border-color: var(--accent); color: var(--accent-dark); }

.notice {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 18px 22px;
  color: var(--navy);
}

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 22px;
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  padding: 16px 0;
}

.faq details[open] { border-color: var(--accent); }
.faq details p { color: var(--grey); padding-bottom: 8px; }

.testimonial-box {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  padding: 38px 30px;
}

.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  text-align: center;
  padding: 76px 0;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: #C8D6E6; max-width: 640px; margin: 0 auto 28px; }

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-number {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--navy);
  margin: 8px 0 18px;
}

.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 1.4rem; margin-top: 1.6em; }

/* ---------- 8. Gallery & lightbox ---------- */
.gallery-grid {
  columns: 3;
  column-gap: 20px;
}

.gallery-item {
  break-inside: avoid;
  margin: 0 0 20px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--grey-light);
  position: relative;
}

.gallery-item button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.gallery-item img { width: 100%; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.04); }

.gallery-item figcaption {
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--grey);
  background: #fff;
  border-top: 1px solid var(--line);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 18, 34, 0.94);
  padding: 24px;
}

.lightbox.is-open { display: flex; }

.lightbox-figure { margin: 0; max-width: 92vw; text-align: center; }

.lightbox-image {
  max-width: 92vw;
  max-height: 78vh;
  width: auto;
  margin-inline: auto;
  border-radius: 10px;
}

.lightbox-caption { color: #D3DFEC; margin-top: 14px; font-size: 0.95rem; }

.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.7rem;
  cursor: pointer;
}

.lightbox-btn:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- 9. Floating buttons & mobile bar ---------- */
.floating-contact {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-contact a {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease;
}

.floating-contact a:hover { transform: scale(1.08); }
.floating-contact svg { width: 28px; height: 28px; fill: currentColor; }
.floating-call { background: var(--navy); border: 2px solid var(--accent); }
.floating-whatsapp { background: var(--whatsapp); }

.mobile-bar { display: none; }

/* ---------- 10. Footer, animations, responsive ---------- */
.site-footer { background: #06142A; color: #B8C7DA; padding: 64px 0 26px; }
.site-footer h4 { color: #fff; font-size: 1rem; }
.site-footer a { color: #B8C7DA; text-decoration: none; }
.site-footer a:hover { color: #E0B25A; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 1.5fr;
  gap: 38px;
}

.footer-logo { background: #fff; border-radius: 12px; padding: 10px 14px; display: inline-block; margin-bottom: 16px; }
.footer-logo img { height: 44px; width: auto; }

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  text-align: center;
}

/* Footer disclaimer and address */
.footer-disclaimer {
  max-width: 860px;
  margin: 0 auto 14px;
  color: #9FB0C6;
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-address { line-height: 1.5; }

/* Gentle reveal animation (disabled for users who prefer reduced motion) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .card-media img, .gallery-item img { transition: none; }
}

@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { columns: 2; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-height);
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 4%;
    display: none;
  }

  .main-nav.is-open { display: flex; }
  .main-nav .btn { margin: 8px 0 0; }
  .split { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 680px) {
  .section { padding: 60px 0; }
  /* Phones: Call and WhatsApp sit side by side, identical size */
  .button-row { flex-wrap: nowrap; gap: 10px; }
  .button-row .btn,
  .button-row .btn-large { flex: 1 1 0; min-width: 0; padding: 10px 8px; font-size: 0.8rem; }
  .button-row .btn svg { width: 16px; height: 16px; }
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand img { height: 44px; }

  /* Floating buttons are replaced by the sticky bottom bar on phones */
  .floating-contact { display: none; }

  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 160;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(11, 37, 69, 0.12);
  }

  .mobile-bar a {
    min-height: 46px;
    border-radius: 10px;
    padding: 8px 6px;
    gap: 6px;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  /* Keep the footer clear of the sticky bar */
  body { padding-bottom: 76px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .hero::after { background: linear-gradient(180deg, rgba(11, 37, 69, 0.82) 0%, rgba(11, 37, 69, 0.92) 100%); }
}
