:root {
  --ink: #221813;
  --ink-2: #34251d;
  --paper: #fcfaf7;
  --sand: #f2ebe2;
  --gold: #a57d3f;
  --gold-light: #dcc08a;
  --wine: #4e1c24;
  --muted: #75655b;
  --serif: "Cormorant Garamond", "Noto Sans Malayalam", Georgia, serif;
  --sans: "Jost", "Noto Sans Malayalam", system-ui, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 1.06rem; line-height: 1.65; overflow-x: clip; }
img, video { max-width: 100%; }
a { color: var(--gold); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; }
h2 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); margin-bottom: 1.5rem; }
section { padding: clamp(4rem, 8vw, 7rem) 0; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 3000; background: var(--gold-light); color: var(--ink); padding: .5rem 1rem; }
.skip-link:focus { top: 1rem; }
html[lang="ml"] body { line-height: 1.75; }
html[lang="ml"] h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.35; font-weight: 700; }
html[lang="ml"] h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.4; font-weight: 700; }
html[lang="ml"] .menu h3, html[lang="ml"] .panel h3 { font-size: 1.15rem; }
html[lang="ml"] .btn-lg { font-size: .95rem; }

.btn { border-radius: 2px; font-weight: 400; letter-spacing: .01em; padding: .65rem 1.4rem; }
.btn-lg { font-size: 1.05rem; padding: .85rem 1.8rem; }
.btn-gold { --bs-btn-color: var(--ink); --bs-btn-bg: var(--gold-light); --bs-btn-border-color: var(--gold-light); --bs-btn-hover-color: var(--ink); --bs-btn-hover-bg: #ead5a8; --bs-btn-hover-border-color: #ead5a8; --bs-btn-active-color: var(--ink); --bs-btn-active-bg: #ead5a8; --bs-btn-active-border-color: #ead5a8; }
.btn-line { --bs-btn-color: #f6eee3; --bs-btn-border-color: rgba(220,192,138,.55); --bs-btn-hover-color: var(--ink); --bs-btn-hover-bg: var(--gold-light); --bs-btn-hover-border-color: var(--gold-light); --bs-btn-active-color: var(--ink); --bs-btn-active-bg: var(--gold-light); }
.btn-ink { --bs-btn-color: #f6eee3; --bs-btn-bg: var(--ink); --bs-btn-border-color: var(--ink); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--ink-2); --bs-btn-hover-border-color: var(--ink-2); --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--ink-2); --bs-btn-active-border-color: var(--ink-2); }

/* Navigation */
#nav { background: var(--ink); border-bottom: 1px solid rgba(220,192,138,.18); padding-block: .55rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--gold-light); line-height: 1; }
.brand:hover { color: var(--gold-light); }
.brand svg { width: 34px; height: 40px; fill: none; stroke: var(--gold-light); stroke-width: 2.2; }
.brand svg .star { fill: var(--gold-light); stroke: none; }
.brand b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.6rem; letter-spacing: .12em; }
.brand small { display: block; font-size: .68rem; letter-spacing: .08em; color: #e9ddcb; }
.nav-link { color: #efe5d8; font-weight: 300; padding-inline: .8rem !important; }
.nav-link:hover, .nav-link:focus { color: var(--gold-light); }
.lang { background: none; border: 1px solid rgba(220,192,138,.5); color: #f6eee3; border-radius: 2px; padding: .35rem .8rem; font-size: .88rem; font-family: var(--sans); }
.lang:hover { background: var(--gold-light); color: var(--ink); }
.navbar-toggler { border: 0; width: 40px; height: 38px; padding: 0; }
.navbar-toggler span { display: block; width: 24px; height: 1.5px; background: #f6eee3; margin: 7px auto; transition: transform .25s; }
.navbar-toggler[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
@media (max-width: 1199.98px) { #menu { padding: .8rem 0 1rem; } #menu .btn { margin-top: .5rem; } }

/* Hero */
.hero { background: radial-gradient(ellipse at 78% 45%, #4a3226 0, var(--ink) 58%); color: #f6eee3; padding: 128px 0 72px; min-height: 100svh; display: flex; align-items: center; }
.hero h1 { font-size: clamp(2.9rem, 6.2vw, 5.4rem); line-height: 1.02; font-weight: 500; margin-bottom: 1.25rem; }
.hero .lead { color: #d9cbbb; font-weight: 300; max-width: 30rem; margin-bottom: 2rem; }
.facts { display: flex; flex-wrap: wrap; gap: 1.25rem 1.75rem; margin: 3rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(220,192,138,.28); }
.facts dt { font-weight: 300; font-size: .85rem; color: #bca995; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 1.2rem; color: var(--gold-light); }

/* Before and after */
.compare { --pos: 50%; position: relative; aspect-ratio: 4 / 5; max-width: 480px; margin: 0 auto 2.2rem; user-select: none; box-shadow: 0 0 0 1px rgba(220,192,138,.5), 0 40px 70px -30px rgba(0,0,0,.8); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--gold-light); pointer-events: none; }
.divider i { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.divider i::before, .divider i::after { content: ""; position: absolute; top: 18px; border: 5px solid transparent; }
.divider i::before { left: 7px; border-right-color: var(--ink); }
.divider i::after { right: 7px; border-left-color: var(--ink); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; touch-action: pan-y; }
.compare:focus-within { outline: 2px solid var(--gold-light); outline-offset: 4px; }
.tag { position: absolute; bottom: .8rem; background: rgba(34,24,19,.78); color: #f6eee3; padding: .2rem .8rem; font-size: .85rem; pointer-events: none; }
.tag-before { left: .8rem; }
.tag-after { right: .8rem; }
.compare figcaption { position: absolute; top: calc(100% + .7rem); left: 0; right: 0; text-align: center; font-size: .9rem; color: #bca995; }

/* Services */
.service-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.menu { list-style: none; padding: 0; margin: 0; }
.menu li { display: grid; grid-template-columns: 1fr auto auto; gap: 1.5rem; align-items: center; padding: 1.35rem 0; border-bottom: 1px solid #e4d8c8; }
.menu li:first-child { border-top: 1px solid #e4d8c8; }
.menu h3 { font-size: 1.65rem; margin: 0; }
.menu p { margin: .15rem 0 0; color: var(--muted); font-size: .98rem; }
.price { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--wine); text-align: right; }
html[lang="ml"] .price { font-size: 1rem; }
.menu a { border: 1px solid var(--ink); color: var(--ink); text-decoration: none; padding: .35rem 1.1rem; font-size: .95rem; font-weight: 400; }
.menu a:hover { background: var(--ink); color: #fff; }
@media (max-width: 575.98px) { .menu li { grid-template-columns: 1fr auto; row-gap: .75rem; } .menu li > div { grid-column: 1 / -1; } .price { text-align: left; } }

/* Gallery */
.gallery { background: var(--sand); }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2rem; }
.head-row h2 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filters button { background: none; border: 1px solid #cdbba4; color: var(--ink); padding: .4rem 1rem; border-radius: 2px; font-family: var(--sans); font-size: .95rem; }
.filters button.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.grid { columns: 4 220px; column-gap: 1rem; }
.shot { display: block; width: 100%; border: 0; padding: 0; margin: 0 0 1rem; background: #ddd0bf; overflow: hidden; break-inside: avoid; cursor: zoom-in; }
.shot img { display: block; width: 100%; height: auto; transition: transform .7s ease; }
.shot:hover img { transform: scale(1.04); }
.shot[hidden] { display: none; }
@media (max-width: 575.98px) { .grid { columns: 2; column-gap: .6rem; } .shot { margin-bottom: .6rem; } }

/* Videos */
.videos { background: var(--ink); color: #f6eee3; }
.more { color: var(--gold-light); }
.more:hover { color: #fff; }
.reels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.reel { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border: 0; padding: 0; overflow: hidden; background: var(--ink-2); color: #fff; }
.reel img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.reel:hover img { transform: scale(1.05); }
.reel::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(20,12,8,.88)); }
.play { position: absolute; z-index: 1; top: 50%; left: 50%; width: 54px; height: 54px; margin: -27px; border-radius: 50%; background: rgba(34,24,19,.55); border: 1px solid rgba(255,255,255,.75); transition: background .25s; }
.play::after { content: ""; position: absolute; left: 21px; top: 17px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.reel:hover .play { background: var(--gold); }
.reel-name { position: absolute; z-index: 1; left: .85rem; right: .85rem; bottom: .75rem; text-align: left; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
html[lang="ml"] .reel-name { font-size: .92rem; line-height: 1.5; }
@media (max-width: 991.98px) { .reels { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; } .reels .reel { flex: 0 0 min(62vw, 240px); scroll-snap-align: start; } }

.tall-dialog { max-width: min(400px, calc((100vh - 130px) * .5625)); margin-inline: auto; }
.tall-dialog .modal-content { background: var(--ink); border: 1px solid rgba(220,192,138,.4); }
.tall-dialog .modal-title { font-size: 1.3rem; }
.tall-dialog video { display: block; width: 100%; aspect-ratio: 9 / 16; background: #000; }
.photo-dialog { max-width: min(640px, 94vw); justify-content: center; margin-inline: auto; }
.photo-dialog .modal-content { background: transparent; border: 0; align-items: center; }
.photo-dialog img { max-height: 86vh; width: auto; min-width: min(420px, 90vw); object-fit: contain; }
.viewer-close { position: absolute; top: .6rem; right: .6rem; z-index: 2; background-color: rgba(0,0,0,.6); opacity: 1; }
.step { position: absolute; top: 50%; translate: 0 -50%; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(34,24,19,.75); color: #fff; font-size: 1.7rem; line-height: 1; }
.step.prev { left: .5rem; }
.step.next { right: .5rem; }

/* Academy */
.academy { background: var(--wine); color: #f8eee6; }
.academy-lead { color: #e6d0c8; max-width: 32rem; }
.academy-media { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.academy-media figure { margin: 0; }
.academy-media figure > img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.academy-media figcaption { font-family: var(--serif); font-size: 1.2rem; color: var(--gold-light); padding-top: .5rem; }
.panel { background: var(--paper); color: var(--ink); padding: clamp(1.4rem, 3vw, 2.25rem); box-shadow: 0 30px 60px -30px rgba(30,15,10,.45); }
.panel h3 { font-size: 1.9rem; margin-bottom: 1rem; }
.panel .form-label { font-weight: 400; margin: 0 0 .25rem; font-size: .95rem; }
.panel .form-control, .panel .form-select { border-radius: 2px; border-color: #d6c7b3; background-color: #fff; color: var(--ink); }
.panel .form-control:focus, .panel .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(165,125,63,.18); }
#admitForm .form-label { margin-top: .85rem; }
#admitForm .btn { margin-top: 1.4rem; }
#admitForm .btn-gold { --bs-btn-bg: var(--ink); --bs-btn-border-color: var(--ink); --bs-btn-color: #f6eee3; --bs-btn-hover-bg: var(--ink-2); --bs-btn-hover-border-color: var(--ink-2); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--ink-2); --bs-btn-active-color: #fff; }

/* Reviews and questions */
.client { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 1.5rem; align-items: end; }
.client .reel-name { font-size: 1.05rem; }
.client-text p { font-family: var(--serif); font-size: 1.6rem; line-height: 1.3; }
html[lang="ml"] .client-text p { font-size: 1.1rem; line-height: 1.6; }
.quotes blockquote { border-top: 1px solid #e4d8c8; padding-top: 1.2rem; margin: 1.5rem 0 0; }
.accordion { --bs-accordion-bg: transparent; --bs-accordion-color: var(--ink); --bs-accordion-btn-color: var(--ink); --bs-accordion-active-bg: transparent; --bs-accordion-active-color: var(--wine); --bs-accordion-border-color: #e4d8c8; --bs-accordion-btn-focus-box-shadow: 0 0 0 .15rem rgba(165,125,63,.35); --bs-accordion-btn-padding-x: 0; --bs-accordion-body-padding-x: 0; }
.accordion-header { margin: 0; }
.accordion-button { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; box-shadow: none !important; }
.accordion-button:focus-visible { outline: 2px solid var(--gold); }
html[lang="ml"] .accordion-button { font-size: 1.05rem; line-height: 1.5; }
.accordion-body { padding-top: 0; color: var(--muted); }

.book { background: var(--sand); }
.book-note { color: var(--muted); margin: -.75rem 0 2rem; }

/* Visit */
address { font-family: var(--serif); font-size: 1.6rem; line-height: 1.35; max-width: 24rem; }
html[lang="ml"] address { font-size: 1.1rem; line-height: 1.6; }
.contact li { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px solid #e4d8c8; }
.contact span { min-width: 6.5rem; color: var(--muted); }
.contact a { color: var(--ink); text-decoration: none; font-weight: 400; }
.contact a:hover { color: var(--gold); }
.map { width: 100%; height: 430px; border: 0; filter: sepia(.25) saturate(.8); }

.foot { background: var(--ink); color: #bca995; text-align: center; padding: 3.5rem 0 3rem; }
.foot p { margin-bottom: .4rem; }
.foot-name { font-family: var(--serif); font-size: 3rem; letter-spacing: .18em; color: var(--gold-light); line-height: 1; }
.foot a { color: var(--gold-light); }

.dock { display: none; }
@media (max-width: 767.98px) {
  body { padding-bottom: 58px; }
  .dock { display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: var(--ink); border-top: 1px solid rgba(220,192,138,.35); padding-bottom: env(safe-area-inset-bottom); }
  .dock a { text-align: center; padding: .95rem .3rem; color: #f6eee3; text-decoration: none; font-weight: 400; }
  .dock .dock-book { background: var(--gold-light); color: var(--ink); }
  .client { grid-template-columns: 140px 1fr; gap: 1rem; }
  .map { height: 320px; }
}
@media (max-width: 991.98px) {
  .g-5 { --bs-gutter-x: 1.5rem; } /* the wide desktop gutter is wider than the page padding */
  .hero { min-height: 0; padding-top: 104px; }
  .compare { max-width: 420px; }
  .facts { display: block; margin-top: 1.75rem; padding-top: .75rem; }
  .facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .2rem 0; }
  .facts dd { font-size: 1.1rem; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
