/* ==========================================================================
   KriKan Physiotherapy & Rehabilitation Center
   Core Stylesheet
   Design language: editorial warmth + Konark heritage geometry
   Typefaces: Fraunces (display/serif) + Manrope (body/UI)
   ========================================================================== */

/* ---------------------------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------------------------- */
:root{
  /* Brand colors — from logo */
  --magenta:        #D81B60;
  --magenta-dark:   #A81050;
  --magenta-deep:   #7E0C3C;
  --magenta-soft:   #F1387A;
  --charcoal:       #252525;
  --charcoal-soft:  #3A3838;
  --ink:            #1B1918;
  --warm-white:     #FFFDFB;
  --rose:           #FCE7EF;
  --rose-deep:      #F6D3E3;
  --gray-light:     #F4F4F4;
  --gold:           #C79A3B;
  --gold-soft:      #E4C784;

  /* Semantic */
  --bg:             var(--warm-white);
  --text:           var(--ink);
  --text-muted:     #6B6664;
  --line:           rgba(37,37,37,0.12);
  --line-soft:      rgba(37,37,37,0.08);

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container-w: 1280px;
  --container-pad: clamp(20px, 5vw, 64px);
  --section-pad-y: clamp(72px, 10vw, 148px);
  --radius-lg: 32px;
  --radius-md: 18px;
  --radius-sm: 10px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.35s;
  --dur-med: 0.6s;

  --header-h: 92px;
  --header-h-scrolled: 72px;
}

/* ---------------------------------------------------------------------
   2. RESET / BASE
   --------------------------------------------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}
body{
  margin:0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html, body{ max-width: 100%; overflow-x: hidden; }

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; }
ul{ list-style: none; margin:0; padding:0; }
input, textarea, select{ font-family: inherit; font-size: inherit; }

h1,h2,h3,h4,h5,h6{
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Visible focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible{
  outline: 2.5px solid var(--magenta);
  outline-offset: 3px;
  border-radius: 4px;
}

.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;
}

.skip-link{
  position:absolute; left: 16px; top: -60px;
  background: var(--charcoal); color:#fff; padding: 12px 20px;
  border-radius: 8px; z-index: 9999; transition: top .25s var(--ease-out);
}
.skip-link:focus{ top: 16px; }

/* ---------------------------------------------------------------------
   3. LAYOUT UTILITIES
   --------------------------------------------------------------------- */
.container{
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}
.section{ padding-top: var(--section-pad-y); padding-bottom: var(--section-pad-y); position: relative; }
.section-tight{ padding-top: clamp(48px,6vw,88px); padding-bottom: clamp(48px,6vw,88px); }
.section--rose{ background: var(--rose); }
.section--charcoal{ background: var(--charcoal); color: #fff; }
.section--charcoal h1,.section--charcoal h2,.section--charcoal h3{ color: #fff; }
.section--gray{ background: var(--gray-light); }
.overflow-clip{ overflow: hidden; }
.relative{ position: relative; }

.grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,80px); align-items:center; }
.grid-3{ display:grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4{ display:grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* Typography scale */
.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.06em; color: var(--magenta);
}
.eyebrow::before{
  content:''; width: 22px; height: 2px; background: var(--magenta); display:inline-block; border-radius: 2px;
}
.h-display{
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.h-xl{ font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.h-lg{ font-size: clamp(1.7rem, 3vw, 2.5rem); }
.h-md{ font-size: clamp(1.3rem, 2vw, 1.7rem); }
.lede{
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--text-muted);
  max-width: 46ch;
  line-height: 1.7;
}
.body-text{ color: var(--text-muted); line-height: 1.75; max-width: 62ch; }
.section--charcoal .body-text,.section--charcoal .lede{ color: rgba(255,255,255,0.72); }

.text-serif-italic{ font-style: italic; font-weight: 500; color: var(--magenta); }

/* ---------------------------------------------------------------------
   4. BUTTONS
   --------------------------------------------------------------------- */
.btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content:center;
  gap: 10px;
  padding: 16px 30px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px 999px 999px 6px;
  border: 1.5px solid transparent;
  transition: background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  will-change: transform;
}
.btn:not(.is-magnetic):hover{ transform: translateY(-3px); }
.btn:not(.is-magnetic):active{ transform: translateY(-1px); }

.btn--primary{
  background: var(--magenta);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(216,27,96,0.55);
}
.btn--primary:hover{ background: var(--magenta-dark); box-shadow: 0 16px 34px -12px rgba(168,16,80,0.6); }

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

.section--charcoal .btn--outline{ border-color: rgba(255,255,255,0.4); color:#fff; }
.section--charcoal .btn--outline:hover{ background:#fff; color: var(--charcoal); }

.btn--ghost{
  background: transparent; color: var(--ink); border-color: var(--line);
  padding: 14px 24px;
}
.btn--ghost:hover{ border-color: var(--magenta); color: var(--magenta); }

.btn--sm{ padding: 11px 20px; font-size: 0.85rem; }

.link-underline{
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
  font-weight: 700;
}
.link-underline::after{
  content:''; position:absolute; left:0; bottom:0; width:100%; height: 1.5px;
  background: currentColor; transform: scaleX(1); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.link-underline:hover::after{ transform: scaleX(0); transform-origin: left; }

/* ---------------------------------------------------------------------
   5. KONARK WHEEL
   --------------------------------------------------------------------- */
.konark-wheel{
  position: absolute;
  pointer-events: none;
  will-change: transform;
  opacity: 0.9;
}
.konark-wheel svg{ width: 100%; height: 100%; display:block; overflow: visible; }
.konark-wheel .kw-ring{ fill:none; stroke: url(#kwGradA); stroke-opacity:0.24; }
.konark-wheel .kw-ring-2{ fill:none; stroke: url(#kwGradB); stroke-opacity:0.22; }
.konark-wheel .kw-spoke{ stroke: url(#kwGradA); stroke-opacity:0.26; stroke-width:1.2; }
.konark-wheel .kw-bead{ fill: var(--magenta); fill-opacity:0.4; }
.konark-wheel .kw-hub{ fill: url(#kwGradA); fill-opacity:0.6; }
.konark-wheel .kw-hub-ring{ fill:none; stroke: var(--gold); stroke-opacity:0.45; }

.section--charcoal .konark-wheel .kw-bead,
.section--charcoal .konark-wheel .kw-hub{ fill: var(--gold); fill-opacity:0.35; }

.konark-wheel--hero{ width: min(620px, 62vw); height: min(620px, 62vw); right: clamp(-140px,-6vw,-40px); top: 50%; transform: translateY(-50%); }
.konark-wheel--bg{ width: 900px; height: 900px; opacity: 0.55; }
.konark-wheel--small{ width: 240px; height: 240px; }

/* Soft glow that sits behind the hero wheel for depth */
.hero-glow{
  position:absolute; border-radius:50%; pointer-events:none;
  background: radial-gradient(circle, rgba(216,27,96,0.22) 0%, rgba(216,27,96,0.08) 45%, transparent 72%);
  filter: blur(6px);
  width: min(680px,70vw); height: min(680px,70vw);
  right: clamp(-220px,-10vw,-80px); top:50%; transform: translateY(-50%);
  z-index:0;
}
.hero-visual{ z-index:1; }

@media (prefers-reduced-motion: reduce){
  .konark-wheel{ transition: none !important; }
}

/* ---------------------------------------------------------------------
   6. PRELOADER — cinematic, dark-mode reveal
   --------------------------------------------------------------------- */
#preloader{
  position: fixed; inset:0; z-index: 10000;
  background:
    radial-gradient(circle at 50% 42%, rgba(216,27,96,0.20) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, #2e2b2b 0%, #1b1918 72%);
  display:flex; align-items:center; justify-content:center;
  flex-direction: column;
  overflow: hidden;
}
#preloader::before{
  /* fine radial hairline texture for a stone-carved, heritage feel */
  content:'';
  position:absolute; inset:-10%;
  background-image: repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 64px);
  opacity:0.5;
}
#preloader .pl-wheel{
  position:absolute; width: 420px; height: 420px; max-width:82vw; max-height:82vw;
  filter: drop-shadow(0 0 40px rgba(216,27,96,0.18));
}
#preloader .pl-wheel .kw-ring,
#preloader .pl-wheel .kw-ring-2{ stroke: url(#kwGradPreloader); stroke-opacity:0.9; }
#preloader .pl-wheel .kw-spoke{ stroke: url(#kwGradPreloader); stroke-opacity:0.55; }
#preloader .pl-wheel .kw-bead{ fill: var(--gold-soft); fill-opacity:0.85; }
#preloader .pl-wheel .kw-hub{ fill: url(#kwGradPreloader); fill-opacity:1; }
#preloader .pl-wheel .kw-hub-ring{ stroke: var(--gold-soft); stroke-opacity:0.8; }

.pl-content{ position:relative; z-index:2; display:flex; flex-direction:column; align-items:center; }
.pl-mark{
  width: 84px; height: auto; margin-bottom: 22px; opacity:0;
  filter: drop-shadow(0 4px 18px rgba(216,27,96,0.35));
}
.pl-wordmark{ display:flex; overflow:hidden; }
.pl-word{
  font-family: var(--font-display); font-size: clamp(2.1rem,5vw,3rem); font-weight:600; color: #fff;
  letter-spacing: -0.01em; display:flex;
}
.pl-word .ch{ display:inline-block; opacity:0; }
.pl-sub{
  font-size: 0.66rem; letter-spacing: 0.22em; color: var(--gold-soft); font-weight:700;
  margin-top:10px; opacity:0; text-align:center;
}
.pl-bar-track{
  width: 230px; height: 2px; background: rgba(255,255,255,0.14); margin-top: 34px; position:relative;
  opacity:0; border-radius:2px; overflow:hidden;
}
.pl-bar-fill{
  height:100%; width:0%;
  background: linear-gradient(90deg, var(--magenta), var(--gold-soft));
  position:relative;
}
.pl-bar-fill::after{
  content:''; position:absolute; inset:0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.75), transparent);
  width:40%; animation: plShimmer 1.1s ease-in-out infinite;
}
@keyframes plShimmer{ 0%{ transform:translateX(-120%); } 100%{ transform:translateX(320%); } }
.pl-percent{
  margin-top: 14px; font-size: 0.7rem; color: rgba(255,255,255,0.55); letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums; opacity:0;
}
.pl-curtain{
  position:fixed; inset:0; z-index: 10001;
  background: linear-gradient(155deg, var(--charcoal) 0%, #1b1918 100%);
  transform: translateY(101%);
}
body.is-loading{ overflow:hidden; height:100vh; }

@media (prefers-reduced-motion: reduce){
  .pl-bar-fill::after{ animation:none; }
}

/* ---------------------------------------------------------------------
   6b. PAGE TRANSITION OVERLAY — brief brand "stamp" between pages
   --------------------------------------------------------------------- */
#page-transition{
  position: fixed; inset:0; z-index: 9998;
  background: linear-gradient(155deg, var(--charcoal) 0%, #1b1918 100%);
  display:flex; align-items:center; justify-content:center;
  clip-path: circle(150% at 50% 50%);
  pointer-events:none;
}
#page-transition.is-hidden{ clip-path: circle(0% at 50% 50%); }
#page-transition .pt-mark{
  width: 56px; height:auto; opacity:0; transform: scale(0.8); position:relative; z-index:2;
}
#page-transition .pt-wheel{
  position:absolute; width:220px; height:220px; opacity:0;
  top:50%; left:50%; transform: translate(-50%,-50%);
}
#page-transition .pt-wheel .kw-ring,
#page-transition .pt-wheel .kw-spoke{ stroke: var(--gold-soft); stroke-opacity:0.6; }
#page-transition .pt-wheel .kw-hub{ fill: var(--magenta); }

/* ---------------------------------------------------------------------
   6c. GRAIN TEXTURE OVERLAY — tactile, premium finish site-wide
   --------------------------------------------------------------------- */
body::after{
  content:'';
  position: fixed; inset:0; z-index: 9500; pointer-events:none;
  opacity: 0.035; mix-blend-mode: overlay;
  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.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
@media (prefers-reduced-motion: reduce){ body::after{ opacity:0.02; } }

/* ---------------------------------------------------------------------
   7. HEADER / NAV
   --------------------------------------------------------------------- */
#site-header{
  position: fixed; top:0; left:0; width:100%; z-index: 900;
  height: var(--header-h);
  display:flex; align-items:center;
  background: transparent;
  transition: background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), height var(--dur-fast) var(--ease-out), border-color .3s;
  border-bottom: 1px solid transparent;
}
#site-header.is-scrolled{
  height: var(--header-h-scrolled);
  background: rgba(255,253,251,0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 8px 30px -18px rgba(37,37,37,0.35);
  border-bottom: 1px solid var(--line-soft);
}
/* Pages with a non-transparent hero start solid immediately */
#site-header.header--solid{
  background: rgba(255,253,251,0.92);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner{
  width:100%; max-width: var(--container-w); margin:0 auto;
  padding: 0 var(--container-pad);
  display:flex; align-items:center; justify-content:space-between;
  gap: 24px;
}
.brand{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.brand img{ height: 52px; width:auto; object-fit:contain; transition: height var(--dur-fast) var(--ease-out); }
#site-header.is-scrolled .brand img{ height: 42px; }

.brand-word{ display:flex; flex-direction:column; line-height:1.05; }
.brand-word strong{ font-family: var(--font-display); font-size: 1.28rem; color: var(--ink); font-weight:600; }
.brand-word span{ font-size: 0.56rem; letter-spacing: 0.09em; color: var(--magenta); font-weight:700; }

.main-nav{ display:flex; align-items:center; gap: clamp(20px,2.4vw,40px); }
.main-nav a{
  position:relative; font-weight:700; font-size: 0.92rem; color: var(--ink);
  padding: 8px 2px;
}
.main-nav a::after{
  content:''; position:absolute; left:0; bottom:0; width:0%; height:2px; background: var(--magenta);
  transition: width .35s var(--ease-out); border-radius:2px;
}
.main-nav a:hover::after,
.main-nav a.is-active::after{ width:100%; }
.main-nav a.is-active{ color: var(--magenta); }

.header-actions{ display:flex; align-items:center; gap:18px; }
.hamburger{
  display:none; flex-direction:column; justify-content:center; align-items:center;
  width: 46px; height:46px; border-radius:50%; border:1.5px solid var(--line);
  background: rgba(255,255,255,0.6); gap:5px; flex-shrink:0;
}
.hamburger span{ width: 18px; height:2px; background: var(--ink); border-radius:2px; transition: transform .3s var(--ease-out), opacity .3s; }
.hamburger[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.hamburger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
#mobile-nav{
  position: fixed; inset:0; z-index: 850;
  background: var(--warm-white);
  display:flex; flex-direction:column;
  padding: 120px var(--container-pad) 48px;
  visibility:hidden;
  clip-path: circle(0% at 92% 5%);
}
#mobile-nav.is-open{ visibility:visible; }
#mobile-nav ul{ display:flex; flex-direction:column; gap: 4px; }
#mobile-nav a{
  font-family: var(--font-display); font-size: 2.2rem; font-weight:600; color: var(--ink);
  padding: 14px 0; border-bottom: 1px solid var(--line-soft); display:block;
}
#mobile-nav a.nav-cta{ color: var(--magenta); }
#mobile-nav .mobile-nav-footer{ margin-top:auto; padding-top: 32px; color: var(--text-muted); font-size:0.85rem; }

/* ---------------------------------------------------------------------
   8. HERO
   --------------------------------------------------------------------- */
.hero{
  min-height: 100svh;
  display:flex; align-items:center;
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--warm-white) 0%, var(--rose) 130%);
}
.hero-inner{
  width:100%; max-width: var(--container-w); margin:0 auto;
  padding: 48px var(--container-pad) 40px;
  display:grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items:center;
  position:relative; z-index:2;
}
.hero-badge{
  display:inline-flex; align-items:center; gap:10px;
  background: #fff; border:1px solid var(--line-soft); padding: 9px 18px 9px 10px;
  border-radius: 999px; font-size: 0.72rem; font-weight:700; letter-spacing:0.05em; color: var(--charcoal);
  box-shadow: 0 8px 22px -14px rgba(37,37,37,0.3);
  margin-bottom: 26px;
}
.hero-badge .dot{ width:8px; height:8px; border-radius:50%; background: var(--magenta); }

.hero-heading{ font-size: clamp(2.9rem, 6.4vw, 5.6rem); overflow:hidden; }
.hero-heading .line{ display:block; overflow:hidden; }
.hero-heading .line span{ display:inline-block; }
.hero-heading em{ font-style: italic; color: var(--magenta); font-weight:500; }

.hero-lede{ margin-top: 26px; font-size: 1.12rem; color: var(--text-muted); max-width: 46ch; line-height:1.75; }
.hero-actions{ display:flex; gap:16px; margin-top: 38px; flex-wrap:wrap; }

.hero-visual{ position: relative; height: clamp(360px, 44vw, 560px); }
.hero-blob{
  position:absolute; inset: 6% 8%; border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
  background: linear-gradient(155deg, var(--rose-deep), var(--rose) 60%);
  overflow:hidden;
}
.hero-blob img{ width:100%; height:100%; object-fit:cover; opacity:0; }

/* Floating credential card overlapping the hero visual — premium "designed" touch */
.hero-float-card{
  position:absolute; left:-6%; bottom:12%; z-index:4;
  background:#fff; border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 4px;
  padding: 18px 22px; box-shadow: 0 26px 50px -20px rgba(37,37,37,0.28);
  display:flex; align-items:center; gap:14px;
  border: 1px solid var(--line-soft);
  opacity:0;
}
.hero-float-card .hfc-icon{
  width:42px; height:42px; border-radius:50%; background: var(--rose); color: var(--magenta);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.hero-float-card strong{ display:block; font-family: var(--font-display); font-size:1.05rem; color: var(--ink); }
.hero-float-card span{ font-size:0.76rem; color: var(--text-muted); }

.hero-orbit-ring{
  position:absolute; top:8%; right:6%; width:120px; height:120px; border-radius:50%;
  border: 1.5px dashed var(--gold); opacity:0.45; z-index:0;
}

@media (max-width: 980px){
  .hero-float-card{ left: 4%; bottom:6%; padding:14px 18px; }
  .hero-orbit-ring{ display:none; }
}
@media (max-width: 480px){
  .hero-float-card strong{ font-size:0.92rem; }
  .hero-float-card span{ font-size:0.7rem; }
}

.hero-scroll-cue{
  position:absolute; left:50%; bottom: 26px; transform: translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:8px;
  font-size: 0.66rem; letter-spacing:0.1em; color: var(--text-muted); font-weight:700;
  z-index:3;
}
.hero-scroll-cue .cue-line{ width:1.5px; height: 38px; background: var(--line);
  position:relative; overflow:hidden; }
.hero-scroll-cue .cue-line::after{
  content:''; position:absolute; top:-100%; left:0; width:100%; height:100%; background: var(--magenta);
  animation: cueDrop 2.1s ease-in-out infinite;
}
@keyframes cueDrop{ 0%{ top:-100%; } 60%{ top:100%; } 100%{ top:100%; } }
@media (prefers-reduced-motion: reduce){ .hero-scroll-cue .cue-line::after{ animation:none; top:0; } }

/* Page hero (non-home) */
.page-hero{
  padding-top: calc(var(--header-h) + 90px);
  padding-bottom: 80px;
  background: linear-gradient(180deg, var(--warm-white) 0%, var(--rose) 150%);
  position: relative; overflow:hidden;
}
.page-hero-inner{ max-width: 760px; position:relative; z-index:2; }
.page-hero h1{ font-size: clamp(2.6rem, 5.6vw, 4.4rem); margin-top:18px; }
.page-hero .lede{ margin-top: 20px; }

/* ---------------------------------------------------------------------
   9. CARDS — Services / Features
   --------------------------------------------------------------------- */
.services-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 56px; }
.service-card{
  background:#fff; border:1px solid var(--line-soft); border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 4px;
  padding: 32px 26px; position:relative; overflow:hidden;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.service-card::before{
  content:''; position:absolute; inset:0; background: linear-gradient(155deg, var(--rose) 0%, transparent 60%);
  opacity:0; transition: opacity var(--dur-fast) var(--ease-out);
}
.service-card:hover{ transform: translateY(-8px); border-color: var(--magenta); box-shadow: 0 24px 44px -26px rgba(37,37,37,0.28); }
.service-card:hover::before{ opacity:1; }
.service-card > *{ position:relative; z-index:1; }
.service-card .sc-num{ font-family: var(--font-display); font-size:0.85rem; color: var(--magenta); font-weight:600; }
.service-card .sc-icon{ width:44px; height:44px; margin: 16px 0 18px; color: var(--charcoal); }
.service-card h3{ font-size: 1.18rem; margin-bottom:10px; }
.service-card p{ color: var(--text-muted); font-size:0.92rem; line-height:1.65; margin:0; }
.service-card .sc-arrow{
  display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px;
  border-radius:50%; border:1.5px solid var(--line); margin-top:20px;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.service-card:hover .sc-arrow{ background: var(--magenta); border-color: var(--magenta); transform: translateX(4px) rotate(0deg); }
.service-card:hover .sc-arrow svg{ stroke:#fff; }

/* Feature blocks — Why KriKan */
.features-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); margin-top:56px; border:1px solid var(--line); border-radius: var(--radius-md); overflow:hidden; }
.feature-block{ background: var(--warm-white); padding: 40px 32px; }
.feature-block .fb-num{ font-family: var(--font-display); font-size: 2.4rem; color: var(--rose-deep); font-weight:600; -webkit-text-stroke: 1px var(--magenta); color: transparent; }
.feature-block h3{ font-size: 1.15rem; margin: 14px 0 10px; }
.feature-block p{ color: var(--text-muted); font-size:0.9rem; margin:0; line-height:1.65; }

/* ---------------------------------------------------------------------
   10. PROCESS TIMELINE
   --------------------------------------------------------------------- */
.process-track{ position:relative; margin-top: 68px; }
.process-line{ position:absolute; left:0; right:0; top: 27px; height:2px; background: var(--line); }
.process-line-fill{ position:absolute; left:0; top:0; height:100%; width:0%; background: var(--magenta); }
.process-steps{ display:grid; grid-template-columns: repeat(4,1fr); gap: 28px; position:relative; }
.process-step{ position:relative; padding-top: 74px; }
.process-dot{
  position:absolute; top:0; left:0; width: 56px; height:56px; border-radius:50%;
  background:#fff; border:2px solid var(--line); display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display); font-weight:600; color: var(--magenta); font-size:1.1rem;
  transition: border-color .4s var(--ease-out), background .4s var(--ease-out), color .4s var(--ease-out);
}
.process-step.is-active .process-dot{ background: var(--magenta); border-color: var(--magenta); color:#fff; }
.process-step h3{ font-size: 1.15rem; margin-bottom:8px; }
.process-step p{ color: var(--text-muted); font-size: 0.9rem; margin:0; }

@media (max-width: 860px){
  .process-line{ display:none; }
  .process-steps{ grid-template-columns: 1fr; gap:0; }
  .process-step{ padding: 0 0 36px 74px; border-left: 2px solid var(--line); margin-left:27px; }
  .process-step:last-child{ border-color:transparent; padding-bottom:0; }
  .process-dot{ left:-27px; }
}

/* ---------------------------------------------------------------------
   11. TESTIMONIALS
   --------------------------------------------------------------------- */
.testimonial-slider{ position:relative; max-width: 820px; margin: 56px auto 0; }
.testimonial-track{ position:relative; min-height: 260px; }
.testimonial-slide{
  position:absolute; inset:0; opacity:0; visibility:hidden; transition: opacity .5s var(--ease-out);
  text-align:center; display:flex; flex-direction:column; align-items:center;
}
.testimonial-slide.is-active{ opacity:1; visibility:visible; position:relative; }
.testimonial-quote{
  font-family: var(--font-display); font-size: clamp(1.3rem,2.4vw,1.7rem); font-weight:500;
  line-height:1.55; color: var(--ink); max-width: 64ch;
}
.testimonial-quote::before{ content:'\201C'; color: var(--magenta); }
.testimonial-quote::after{ content:'\201D'; color: var(--magenta); }
.testimonial-meta{ margin-top: 24px; }
.testimonial-meta strong{ display:block; font-size:0.95rem; }
.testimonial-meta span{ font-size:0.82rem; color: var(--magenta); font-weight:700; }
.testimonial-nav{ display:flex; align-items:center; justify-content:center; gap: 20px; margin-top: 40px; }
.t-arrow{
  width:44px; height:44px; border-radius:50%; border:1.5px solid var(--line); display:flex; align-items:center; justify-content:center;
  transition: border-color .3s, background .3s;
}
.t-arrow:hover{ border-color: var(--magenta); background: var(--rose); }
.t-dots{ display:flex; gap:8px; }
.t-dot{ width:7px; height:7px; border-radius:50%; background: var(--line); border:none; padding:0; transition: background .3s, transform .3s; }
.t-dot.is-active{ background: var(--magenta); transform: scale(1.3); }
.editable-note{ font-size:0.72rem; color: var(--text-muted); text-align:center; margin-top:28px; opacity:0.7; }

/* ---------------------------------------------------------------------
   12. FINAL CTA
   --------------------------------------------------------------------- */
.final-cta{
  background: var(--charcoal); color:#fff; border-radius: var(--radius-lg);
  padding: clamp(52px,7vw,96px) clamp(28px,6vw,80px); text-align:center;
  position:relative; overflow:hidden; margin: 0 var(--container-pad);
}
.final-cta h2{ color:#fff; }
.final-cta .lede{ color: rgba(255,255,255,0.68); margin: 20px auto 0; }
.final-cta .hero-actions{ justify-content:center; margin-top: 36px; }

/* ---------------------------------------------------------------------
   13. FOOTER
   --------------------------------------------------------------------- */
footer{ background: var(--charcoal); color: rgba(255,255,255,0.82); padding-top: clamp(64px,8vw,110px); }
.footer-top{ display:grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand img{ height:48px; margin-bottom:16px; }
.footer-brand p{ font-size:0.9rem; color: rgba(255,255,255,0.6); max-width:32ch; line-height:1.7; }
.footer-social{ display:flex; gap:12px; margin-top:22px; }
.footer-social a{
  width:38px; height:38px; border-radius:50%; border:1px solid rgba(255,255,255,0.2);
  display:flex; align-items:center; justify-content:center; transition: background .3s, border-color .3s, transform .3s;
}
.footer-social a:hover{ background: var(--magenta); border-color: var(--magenta); transform: translateY(-3px); }
.footer-col h4{ color:#fff; font-size:0.78rem; letter-spacing:0.08em; font-weight:700; margin-bottom:20px; font-family: var(--font-body); }
.footer-col ul{ display:flex; flex-direction:column; gap:12px; }
.footer-col a{ font-size:0.9rem; color: rgba(255,255,255,0.65); transition: color .25s, padding-left .25s; }
.footer-col a:hover{ color:#fff; padding-left:4px; }
.footer-col address{ font-style:normal; font-size:0.9rem; color: rgba(255,255,255,0.65); line-height:1.8; }
.footer-bottom{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px;
  padding: 26px 0; font-size:0.8rem; color: rgba(255,255,255,0.5);
}
.footer-tagline{ font-weight:700; letter-spacing:0.04em; color: rgba(255,255,255,0.7); }

/* ---------------------------------------------------------------------
   14. WHATSAPP FLOAT + BACK TO TOP
   --------------------------------------------------------------------- */
.whatsapp-float{
  position: fixed; right:24px; bottom:24px; z-index: 700;
  width:60px; height:60px; border-radius:50%; background:#25D366;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 14px 30px -12px rgba(37,211,102,0.6);
  transition: transform .3s var(--ease-out);
}
.whatsapp-float:hover{ transform: scale(1.08); }
.whatsapp-float svg{ width:30px; height:30px; }
.wa-ring{
  position:absolute; inset:0; border-radius:50%; border:2px solid #25D366;
  animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse{
  0%{ transform: scale(1); opacity:0.7; }
  100%{ transform: scale(1.7); opacity:0; }
}
@media (prefers-reduced-motion: reduce){ .wa-ring{ animation:none; display:none; } }
.wa-tooltip{
  position:absolute; right:72px; top:50%; transform: translateY(-50%) translateX(6px);
  background: var(--charcoal); color:#fff; font-size:0.78rem; font-weight:600; padding:8px 14px;
  border-radius:8px; white-space:nowrap; opacity:0; pointer-events:none; transition: opacity .25s, transform .25s;
}
.whatsapp-float:hover .wa-tooltip{ opacity:1; transform: translateY(-50%) translateX(0); }

@media (max-width:600px){
  .whatsapp-float{ right:16px; bottom:16px; width:54px; height:54px; }
  .wa-tooltip{ display:none; }
}

.back-to-top{
  position: fixed; right:24px; bottom:96px; z-index:699;
  width:44px; height:44px; border-radius:50%; background: var(--charcoal); color:#fff;
  display:flex; align-items:center; justify-content:center; opacity:0; visibility:hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility .3s;
}
.back-to-top.is-visible{ opacity:1; visibility:visible; transform:translateY(0); }
@media (max-width:600px){ .back-to-top{ right:16px; bottom: 86px; width:40px; height:40px; } }

/* ---------------------------------------------------------------------
   15. FORMS (Contact page)
   --------------------------------------------------------------------- */
.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field{ display:flex; flex-direction:column; gap:8px; margin-bottom:22px; }
.field.full{ grid-column: 1 / -1; }
.field label{ font-size:0.82rem; font-weight:700; color: var(--charcoal); }
.field input, .field select, .field textarea{
  border:1.5px solid var(--line); background:#fff; border-radius: var(--radius-sm);
  padding: 14px 16px; font-size:0.95rem; color: var(--ink);
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus{
  border-color: var(--magenta); box-shadow: 0 0 0 4px rgba(216,27,96,0.1); outline:none;
}
.field textarea{ resize: vertical; min-height:120px; }
.field .field-error{ font-size:0.76rem; color: var(--magenta-deep); min-height:16px; }
.field.has-error input, .field.has-error select, .field.has-error textarea{ border-color: var(--magenta-deep); }
.form-success{
  display:none; text-align:center; padding: 60px 20px; background:#fff; border-radius: var(--radius-md); border:1px solid var(--line-soft);
}
.form-success.is-visible{ display:block; }
.form-success .fs-icon{
  width:64px; height:64px; border-radius:50%; background: var(--rose); color: var(--magenta);
  display:flex; align-items:center; justify-content:center; margin:0 auto 20px;
}

.contact-info-card{ background:#fff; border:1px solid var(--line-soft); border-radius: var(--radius-md); padding: 32px; }
.contact-info-row{ display:flex; gap:16px; padding: 18px 0; border-bottom:1px solid var(--line-soft); }
.contact-info-row:last-child{ border-bottom:none; }
.contact-info-row .ci-icon{
  width:44px; height:44px; border-radius:50%; background: var(--rose); color: var(--magenta);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.contact-info-row h4{ font-size:0.95rem; margin-bottom:4px; }
.contact-info-row p{ font-size:0.88rem; color: var(--text-muted); margin:0; }
.map-placeholder{
  border-radius: var(--radius-md); overflow:hidden; border:1px solid var(--line-soft); aspect-ratio: 16/9; position:relative;
  background: var(--gray-light);
}
.map-placeholder iframe{ width:100%; height:100%; border:0; filter: grayscale(0.15); }

/* ---------------------------------------------------------------------
   16. GALLERY
   --------------------------------------------------------------------- */
.gallery-filters{ display:flex; flex-wrap:wrap; gap:10px; margin: 40px 0 44px; }
.gallery-filter{
  padding: 10px 20px; border-radius:999px; border:1.5px solid var(--line); font-size:0.85rem; font-weight:700;
  background:#fff; transition: all .3s var(--ease-out);
}
.gallery-filter.is-active, .gallery-filter:hover{ background: var(--charcoal); border-color: var(--charcoal); color:#fff; }

.gallery-grid{
  columns: 3 260px; column-gap: 20px;
}
.gallery-item{
  break-inside: avoid; margin-bottom:20px; border-radius: var(--radius-md); overflow:hidden; position:relative;
  cursor: zoom-in; background: var(--gray-light);
}
.gallery-item img{ width:100%; height:auto; display:block; transition: transform .5s var(--ease-out); }
.gallery-item:hover img{ transform: scale(1.06); }
.gallery-item .gi-overlay{
  position:absolute; inset:0; background: linear-gradient(0deg, rgba(37,37,37,0.65), transparent 55%);
  opacity:0; transition: opacity .35s var(--ease-out); display:flex; align-items:flex-end; padding:18px;
}
.gallery-item:hover .gi-overlay{ opacity:1; }
.gi-overlay span{ color:#fff; font-weight:700; font-size:0.86rem; }

#lightbox{
  position: fixed; inset:0; z-index:2000; background: rgba(27,25,24,0.94);
  display:flex; align-items:center; justify-content:center; opacity:0; visibility:hidden; transition: opacity .35s var(--ease-out), visibility .35s;
}
#lightbox.is-open{ opacity:1; visibility:visible; }
.lb-content{ max-width:90vw; max-height:82vh; position:relative; }
.lb-content img{ max-width:90vw; max-height:82vh; border-radius:10px; object-fit:contain; }
.lb-caption{ color: rgba(255,255,255,0.7); text-align:center; margin-top:16px; font-size:0.88rem; }
.lb-close, .lb-prev, .lb-next{
  position:fixed; width:48px; height:48px; border-radius:50%; background: rgba(255,255,255,0.1); color:#fff;
  display:flex; align-items:center; justify-content:center; transition: background .3s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover{ background: var(--magenta); }
.lb-close{ top:26px; right:26px; }
.lb-prev{ left:26px; top:50%; transform: translateY(-50%); }
.lb-next{ right:26px; top:50%; transform: translateY(-50%); }
@media (max-width:768px){
  .lb-prev{ left:10px; } .lb-next{ right:10px; } .lb-close{ top:14px; right:14px; }
}

/* ---------------------------------------------------------------------
   17. SERVICE ACCORDION (Services page)
   --------------------------------------------------------------------- */
.service-accordion{ display:flex; flex-direction:column; gap:16px; margin-top:52px; }
.accordion-item{ background:#fff; border:1px solid var(--line-soft); border-radius: var(--radius-md); overflow:hidden; }
.accordion-head{
  display:flex; align-items:center; gap:22px; padding: 26px 28px; width:100%; text-align:left; background:none; border:none;
}
.accordion-head .ac-num{ font-family: var(--font-display); color: var(--magenta); font-size:1rem; flex-shrink:0; width:32px; }
.accordion-head .ac-icon{ width:38px; height:38px; color: var(--charcoal); flex-shrink:0; }
.accordion-head h3{ font-size:1.15rem; flex:1; }
.accordion-head .ac-chevron{ width:22px; height:22px; flex-shrink:0; transition: transform .35s var(--ease-out); color: var(--text-muted); }
.accordion-item.is-open .ac-chevron{ transform: rotate(180deg); color: var(--magenta); }
.accordion-body{ max-height:0; overflow:hidden; transition: max-height .45s var(--ease-out); }
.accordion-body-inner{ padding: 0 28px 30px 82px; display:grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.accordion-body-inner p{ color: var(--text-muted); font-size:0.92rem; line-height:1.7; margin:0 0 12px; }
.accordion-body-inner .ac-focus-title{ font-weight:700; font-size:0.78rem; letter-spacing:0.04em; color: var(--charcoal); margin-bottom:8px; }
@media (max-width:700px){ .accordion-body-inner{ grid-template-columns:1fr; padding-left:28px; } .accordion-head .ac-num{ display:none; } }

/* ---------------------------------------------------------------------
   18. ABOUT PAGE SPECIFICS
   --------------------------------------------------------------------- */
.values-grid{ display:grid; grid-template-columns: repeat(5,1fr); gap:18px; margin-top:52px; }
.value-chip{ text-align:center; padding: 34px 16px; border:1px solid var(--line-soft); border-radius: var(--radius-md); background:#fff; }
.value-chip .vc-icon{ width:40px; height:40px; margin: 0 auto 16px; color: var(--magenta); }
.value-chip h3{ font-size:1rem; }

.divider-wheel{ display:flex; align-items:center; justify-content:center; gap:20px; margin: 60px 0; }
.divider-line{ flex:1; height:1px; background: var(--line); max-width:220px; }
.divider-wheel-icon{ width:64px; height:64px; flex-shrink:0; }

.history-track{ position:relative; margin-top:56px; padding-left:36px; border-left:2px solid var(--line); }
.history-item{ position:relative; padding-bottom:44px; }
.history-item:last-child{ padding-bottom:0; }
.history-item::before{
  content:''; position:absolute; left:-42px; top:4px; width:14px; height:14px; border-radius:50%;
  background: var(--warm-white); border:2.5px solid var(--magenta);
}
.history-item .hy-year{ font-family: var(--font-display); color: var(--magenta); font-size:1.1rem; margin-bottom:6px; display:block; }
.history-item h3{ font-size:1.1rem; margin-bottom:8px; }
.history-item p{ color: var(--text-muted); font-size:0.92rem; margin:0; max-width:56ch; }

.philosophy-panel{
  background: var(--charcoal); color:#fff; border-radius: var(--radius-lg); padding: clamp(40px,6vw,80px);
  position:relative; overflow:hidden;
}
.philosophy-panel h2{ color:#fff; }
.philosophy-panel p{ color: rgba(255,255,255,0.72); }

/* ---------------------------------------------------------------------
   19. REVEAL / ANIMATION HELPERS (JS-driven via GSAP, base states here)
   --------------------------------------------------------------------- */
.js-split-line{ overflow:hidden; }
.gsap-hidden{ visibility:hidden; }
@media (prefers-reduced-motion: reduce){
  .gsap-hidden{ visibility:visible !important; opacity:1 !important; transform:none !important; }
}

/* ---------------------------------------------------------------------
   20. RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 1100px){
  .services-grid{ grid-template-columns: repeat(2,1fr); }
  .features-grid{ grid-template-columns: repeat(2,1fr); }
  .footer-top{ grid-template-columns: 1fr 1fr; row-gap:40px; }
  .values-grid{ grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 980px){
  .main-nav{ display:none; }
  .header-actions .btn{ display:none; }
  .hamburger{ display:flex; }
  .hero-inner{ grid-template-columns: 1fr; text-align:left; }
  .hero-visual{ height: 340px; order:-1; }
  .konark-wheel--hero{ width: min(420px,80vw); height:min(420px,80vw); right:50%; transform: translate(50%,-50%); top:52%; opacity:0.7; }
  .grid-2{ grid-template-columns:1fr; }
  .process-steps{ }
  .form-grid{ grid-template-columns:1fr; }
  .gallery-grid{ columns: 2 220px; }
}

@media (max-width: 720px){
  :root{ --section-pad-y: 64px; }
  .services-grid{ grid-template-columns: 1fr; }
  .features-grid{ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: 1fr; }
  .values-grid{ grid-template-columns: repeat(2,1fr); }
  .accordion-body-inner{ grid-template-columns:1fr; }
  .final-cta{ margin: 0 12px; border-radius: 24px; }
  .gallery-grid{ columns: 1 100%; }
  .testimonial-nav{ gap:14px; }
}

@media (max-width: 480px){
  .container{ padding-left:18px; padding-right:18px; }
  .btn{ width:100%; }
  .hero-actions{ flex-direction:column; }
  .hero-actions .btn{ width:100%; }
  .values-grid{ grid-template-columns: 1fr 1fr; }
}

/* Utility: prevent any accidental overflow */
.no-overflow-guard{ max-width:100vw; overflow-x:hidden; }
