/* ============================================================
   KITCHEN SERVICES INDIA — V2.0 DESIGN SYSTEM
   Luxury / Organic / Architectural
============================================================ */

:root{
  --navy: #0D1A63;
  --navy-deep: #081040;
  --ivory: #FFF7CD;
  --ivory-soft: #FFFBEA;
  --gold: #C89A5B;
  --gold-soft: #DDBB88;
  --success: #3B7A57;
  --white: #FFFFFF;
  --ink: #1B1B1B;
  --ink-soft: rgba(27,27,27,0.62);
  --line: rgba(13,26,99,0.12);

  --serif: 'Cormorant Garamond', serif;
  --sans: 'Inter', sans-serif;

  --r-xl: 40px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-pill: 999px;

  --ease: cubic-bezier(.16,.84,.44,1);
  --ease-soft: cubic-bezier(.22,1,.36,1);
  --container: 1320px;
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:auto; }
body{
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory-soft);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img{ display:block; max-width:100%; }
picture{ display:block; width:100%; height:100%; }
a{ text-decoration:none; color:inherit; }
button{ font-family:inherit; border:none; background:none; cursor:pointer; }
em{ font-style: italic; color: var(--gold); }
::selection{ background: var(--navy); color: var(--ivory); }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ---------- Accessibility: skip link + focus ---------- */
.skip-link{
  position: absolute; top: -60px; left: 16px; z-index: 10000;
  background: var(--navy); color: var(--ivory); padding: 14px 24px;
  border-radius: var(--r-pill); font-size: 0.85rem; font-weight: 500;
  transition: top .3s var(--ease);
}
.skip-link:focus{ top: 16px; outline: 2px solid var(--gold); outline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px;
}

/* ---------- Grain texture (subtle, premium) ---------- */
.grain{
  position: fixed; inset:0; z-index: 9998; pointer-events:none;
  opacity: 0.02; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.progress-rail{ position: fixed; top:0; left:0; width:100%; height:2px; z-index: 9999; background: transparent; }
.progress-fill{ height:100%; width:0%; background: var(--gold); transition: width .05s linear; }

/* ============================================================
   FLOATING NAVBAR — glass, rounded, auto-hide on scroll
============================================================ */
.nav{
  position: fixed; top: 20px; left:0; right:0; z-index: 1150;
  display:flex; justify-content:center;
  transition: transform .5s var(--ease-soft);
}
.nav.hide-nav{ transform: translateY(-140%); }
.nav-inner{
  width: min(1320px, calc(100% - 32px));
  display:flex; align-items:center; justify-content:space-between; gap:28px;
  padding: 14px 18px 14px 26px;
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--r-pill);
  box-shadow: 0 12px 40px rgba(13,26,99,0.1);
  transition: box-shadow .4s ease, background .4s ease;
}
.nav.scrolled .nav-inner{ box-shadow: 0 16px 50px rgba(13,26,99,0.16); }

.nav-logo{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.nav-logo-mark{
  width:36px; height:36px; border-radius: 50%; background: var(--navy); color:var(--gold-soft);
  display:flex; align-items:center; justify-content:center; font-family: var(--serif); font-size:1.05rem;
}
.nav-logo-text{ font-family: var(--serif); font-size: 1.08rem; color: var(--navy); letter-spacing: 0.01em; white-space:nowrap; }
.nav-logo-text em{ color: var(--gold); }

.nav-links{ display:flex; gap: 10px; }
.nav-links a{
  font-size: 0.83rem; font-weight: 500; color: var(--navy); padding: 11px 18px; border-radius: var(--r-pill);
  transition: background .3s ease, color .3s ease;
}
.nav-links a:hover, .nav-links a.active{ background: var(--navy); color: var(--ivory); }

.nav-cta{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.nav-burger{ display:none; flex-direction:column; align-items:center; justify-content:center; gap:6px; width: 44px; height: 44px; padding:0; }
.nav-burger span{ height:2.5px; width:26px; background: var(--navy); transition: all .35s var(--ease-soft); border-radius:2px; transform-origin: center; }
.nav-burger.active span:nth-child(1){ transform: translateY(8.5px) rotate(45deg); }
.nav-burger.active span:nth-child(2){ opacity:0; }
.nav-burger.active span:nth-child(3){ transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- Mobile menu — full-screen glass panel ---------- */
.mobile-menu{
  position: fixed; inset:0; z-index: 1100;
  background: rgba(13,26,99,0.97);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap: 6px;
  padding: 110px 32px 40px; overflow-y:auto;
  opacity:0; visibility:hidden; transform: scale(1.05);
  transition: opacity .5s var(--ease-soft), transform .5s var(--ease-soft), visibility 0s linear .5s;
}
.mobile-menu.open{ opacity:1; visibility:visible; transform: scale(1); transition: opacity .5s var(--ease-soft), transform .5s var(--ease-soft), visibility 0s; }
.mobile-menu a{
  color: var(--ivory); font-family: var(--serif); font-size: clamp(1.4rem, 5.5vw, 2rem); opacity:0; transform: translateY(16px);
  padding: 12px 32px; border-radius: var(--r-pill); min-width: 44px; min-height: 44px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  transition: opacity .5s var(--ease-soft), transform .5s var(--ease-soft), color .3s ease, background .3s ease;
}
.mobile-menu a:hover, .mobile-menu a:focus-visible{ color: var(--gold); background: rgba(255,247,205,0.06); }
.mobile-menu.open a{ opacity:1; transform:none; }
.mobile-menu.open a:nth-child(1){ transition-delay: .08s; }
.mobile-menu.open a:nth-child(2){ transition-delay: .13s; }
.mobile-menu.open a:nth-child(3){ transition-delay: .18s; }
.mobile-menu.open a:nth-child(4){ transition-delay: .23s; }
.mobile-menu.open a:nth-child(5){ transition-delay: .28s; }
.mobile-menu.open a:nth-child(6){ transition-delay: .33s; }
.mobile-menu.open a:nth-child(7){ transition-delay: .38s; }
.mobile-menu.open a:nth-child(8){ transition-delay: .43s; }
.mobile-menu .btn{
  margin-top: 20px; padding: 20px 46px; font-size: 0.95rem; letter-spacing: 0.03em;
  box-shadow: 0 20px 46px rgba(0,0,0,0.35);
}
.mobile-menu .btn:hover{ box-shadow: 0 26px 56px rgba(0,0,0,0.45); }
.menu-open{ overflow:hidden; }

/* ============================================================
   BUTTONS — large, rounded, luxury hover with arrow + ripple
============================================================ */
.btn{
  position:relative; display:inline-flex; align-items:center; gap:10px; overflow:hidden;
  padding: 17px 34px; border-radius: var(--r-pill); cursor:pointer; touch-action: manipulation;
  font-size: 0.87rem; font-weight: 600; letter-spacing: 0.01em;
  transition: transform .5s var(--ease), box-shadow .4s ease;
  will-change: transform;
}
.btn-primary{ background: var(--navy); color: var(--ivory); }
.btn-primary:hover{ box-shadow: 0 16px 34px rgba(13,26,99,0.32); transform: translateY(-2px); }
.btn-gold{
  background: linear-gradient(155deg, var(--gold-soft) 0%, var(--gold) 55%, var(--gold) 100%);
  color: var(--navy-deep); letter-spacing: 0.03em; box-shadow: 0 10px 26px rgba(200,154,91,0.28);
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-gold:hover{ box-shadow: 0 20px 42px rgba(200,154,91,0.44); transform: translateY(-3px); }
.btn-ghost{ border: 1.5px solid rgba(255,255,255,0.5); color: var(--ivory); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-ghost:hover{ background: rgba(255,255,255,0.14); transform: translateY(-2px); }
.btn-outline{ border: 1.5px solid var(--navy); color: var(--navy); }
.btn-outline:hover{ background: var(--navy); color: var(--ivory); transform: translateY(-2px); }
.btn-nav{ padding: 13px 26px; font-size: 0.82rem; box-shadow: 0 8px 20px rgba(13,26,99,0.18); }
.btn-nav:hover{ box-shadow: 0 12px 28px rgba(13,26,99,0.28); }
.btn span{ transition: transform .4s var(--ease); }
.btn:hover span{ transform: translateX(5px); }
.magnetic{ will-change: transform; }

/* ---------- Ripple ---------- */
.ripple{
  position:absolute; border-radius:50%; background: rgba(255,255,255,0.5);
  transform: scale(0); animation: rippleAnim .6s var(--ease-soft) forwards; pointer-events:none;
}
@keyframes rippleAnim{ to{ transform: scale(3); opacity:0; } }

/* ============================================================
   ORGANIC SECTION DIVIDERS — wave transitions between sections
============================================================ */
.wave-to-ivory{ fill: var(--ivory-soft); }

/* ============================================================
   CONTAINER / SECTION RHYTHM
============================================================ */
section{ padding: 120px 0; position: relative; }
.section-head{ max-width: var(--container); margin: 0 auto 64px; padding: 0 24px; }
.section-head.center{ text-align:center; }
.section-head.light{ color: var(--ivory); }
.section-eyebrow{
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 18px;
  display:inline-flex; align-items:center; gap:10px;
}
.section-eyebrow::before{ content:''; width:22px; height:2px; background: var(--gold); display:inline-block; }
.section-head.center .section-eyebrow{ justify-content:center; }
.section-title{
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.1; letter-spacing: -0.01em; max-width: 720px; color: var(--navy);
}
.section-head.center .section-title{ margin: 0 auto; }
.section-head.light .section-title{ color: var(--ivory); }
.section-sub{
  font-size: 1.02rem; color: var(--ink-soft); max-width: 520px; margin-top: 22px; line-height: 1.65;
}
.section-head.center .section-sub{ margin-left:auto; margin-right:auto; }
.section-head.light .section-sub{ color: rgba(255,247,205,0.72); }

/* ============================================================
   CARDS — luxury rounded, soft shadow
============================================================ */
.card{
  background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover{ transform: translateY(-8px); box-shadow: 0 30px 60px rgba(13,26,99,0.12); }

/* ============================================================
   CUSTOM CURSOR — magnetic luxury
============================================================ */
.cursor-dot{
  position: fixed; width: 12px; height:12px; border-radius:50%; background: var(--gold);
  pointer-events:none; z-index: 9997; transform: translate(-50%,-50%);
  transition: width .3s var(--ease), height .3s var(--ease), background .3s ease;
  display:none;
}
@media (hover:hover) and (pointer:fine){ .cursor-dot{ display:block; } }

/* ============================================================
   SCROLL REVEAL SYSTEM
============================================================ */
.reveal-up{ opacity:0; transform: translateY(44px); transition: opacity 1s var(--ease-soft), transform 1s var(--ease-soft); }
.reveal-up.in{ opacity:1; transform:none; }
.reveal-scale{ opacity:0; transform: scale(0.92); transition: opacity 1s var(--ease-soft), transform 1s var(--ease-soft); }
.reveal-scale.in{ opacity:1; transform:none; }
.reveal-row{ opacity:0; transform: translateY(26px); transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft); }
.reveal-row.in{ opacity:1; transform:none; }
.reveal-fade{ opacity:0; transition: opacity 1.1s var(--ease-soft) .15s; }
.reveal-fade.in{ opacity:1; }
.reveal-mask{ position:relative; overflow:hidden; }
.reveal-mask::after{
  content:''; position:absolute; inset:0; background: var(--navy); z-index:2;
  transform-origin: right; transform: scaleX(1); transition: transform 1.1s var(--ease-soft);
}
.reveal-mask.in::after{ transform: scaleX(0); }
.reveal-word{ overflow:hidden; }

@media (prefers-reduced-motion: reduce){ *{ animation: none !important; transition: none !important; } }
