/* =========================================================
   Lakshmi Hotel – Heritage layer
   • Royal crest header (logo hangs in a temple-arch crest)
   • Thanjavur heritage line icons in every section background
   • Temple frieze dividers, mango-leaf toran, lotus title flourish
   ========================================================= */

/* ---------- TOP BAR refinements ---------- */
.topbar{background:linear-gradient(90deg,#3f0f52,#6c2386 40%,#a0287a 70%,#3f0f52);background-size:200% 100%;animation:tbFlow 14s ease-in-out infinite alternate}
@keyframes tbFlow{to{background-position:100% 0}}
.tb-tour{display:flex;align-items:center;gap:.45rem;padding:.35rem 1rem;border-radius:30px;border:1px solid rgba(255,224,138,.6);color:var(--gold-300);font-weight:600;font-size:.8rem;transition:background .3s,color .3s}
.tb-tour:hover{background:var(--gold-grad);color:var(--purple-900)}
.tb-tour svg{width:16px;height:16px}

/* =========================================================
   HEADER – royal crest
   ========================================================= */
.hdr2{position:sticky;top:0;z-index:35;background:#fff;box-shadow:0 6px 24px rgba(46,10,61,.08);transition:box-shadow .4s}
.hdr2::after{display:none}
.hdr2-inner{position:relative;min-height:86px;display:flex;align-items:center;transition:min-height .4s var(--ease)}
.hdr2 .nav{width:100%;display:grid;grid-template-columns:1fr 240px 1fr;align-items:center}
@media (min-width:1201px){.hdr2 .nav-cta{display:none}}
.hdr2 .nav-l{grid-column:1;justify-content:flex-start}
.hdr2 .nav-r{grid-column:3;justify-content:flex-end}
.hdr2 .nav>ul{gap:0}
.hdr2 .nav>ul>li{opacity:0;transform:translateY(-12px);animation:navDrop .7s var(--ease) forwards}
.hdr2 .nav-l>li:nth-child(1){animation-delay:.9s}.hdr2 .nav-l>li:nth-child(2){animation-delay:.8s}.hdr2 .nav-l>li:nth-child(3){animation-delay:.7s}
.hdr2 .nav-l>li:nth-child(4){animation-delay:.6s}.hdr2 .nav-l>li:nth-child(5){animation-delay:.5s}.hdr2 .nav-l>li:nth-child(6){animation-delay:.4s}
.hdr2 .nav-r>li:nth-child(1){animation-delay:.4s}.hdr2 .nav-r>li:nth-child(2){animation-delay:.5s}.hdr2 .nav-r>li:nth-child(3){animation-delay:.6s}
.hdr2 .nav-r>li:nth-child(4){animation-delay:.7s}.hdr2 .nav-r>li:nth-child(5){animation-delay:.8s}
@keyframes navDrop{to{opacity:1;transform:none}}
.hdr2 .nav>ul>li>a{font-size:.86rem;padding:.6rem .62rem;letter-spacing:.01em}
/* lotus rises above link on hover */
.hdr2 .nav>ul>li>a::before{content:"";position:absolute;left:50%;top:-6px;width:18px;height:12px;margin-left:-9px;opacity:0;transform:translateY(8px) scale(.6);transition:all .4s var(--bounce,cubic-bezier(.34,1.56,.64,1));
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Cg fill='none' stroke='%23d6338a' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M15 2q5 7 0 16q-5-9 0-16zM15 18q-9-1-11-11q8 2 11 11zM15 18q9-1 11-11q-8 2-11 11z'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat}
.hdr2 .nav>ul>li>a:hover::before,.hdr2 .nav>ul>li>a.active::before{opacity:1;transform:none}
.hdr2 .nav>ul>li>a::after{left:50%;right:auto;width:0;bottom:.2rem;height:2px;transform:none;transition:width .35s var(--ease),left .35s var(--ease)}
.hdr2 .nav>ul>li>a:hover::after,.hdr2 .nav>ul>li>a.active::after{left:.62rem;width:calc(100% - 1.24rem)}
.hdr2 .sub{border-top:3px solid var(--gold-500);border-radius:0 0 14px 14px}
.hdr2 .nav-r .sub{left:auto;right:0}
/* Book button */
.hdr-book{display:inline-flex!important;align-items:center;gap:.45rem;margin-left:.5rem;padding:.7rem 1.25rem!important;border-radius:40px;background:var(--gold-grad);color:var(--purple-900)!important;font-weight:700!important;box-shadow:0 8px 18px rgba(201,138,27,.35);position:relative;overflow:hidden}
.hdr-book svg{width:16px;height:16px}
.hdr-book::after{display:none!important}
.hdr-book::before{display:block!important;content:""!important;position:absolute!important;top:0!important;left:-60%!important;width:40%!important;height:100%!important;margin:0!important;opacity:1!important;background:linear-gradient(120deg,transparent,rgba(255,255,255,.75),transparent)!important;transform:skewX(-20deg)!important;animation:bookShine2 3.5s ease-in-out 2s infinite}
@keyframes bookShine2{0%,70%{left:-60%}100%{left:140%}}

/* crest */
.crest{position:absolute;left:50%;top:0;z-index:6;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;animation:crestIn 1.1s cubic-bezier(.34,1.56,.64,1) .1s both}
@keyframes crestIn{from{transform:translate(-50%,-110%)}to{transform:translateX(-50%)}}
.crest-card{position:relative;display:flex;flex-direction:column;align-items:center;padding:12px 24px 20px;max-width:240px;background:#fff;border:2px solid var(--gold-400);border-top:0;border-radius:0 0 120px 120px/0 0 64px 64px;box-shadow:0 16px 34px rgba(62,15,82,.18),inset 0 0 0 5px #fff,inset 0 0 0 6px rgba(246,196,69,.55);transition:padding .4s var(--ease),border-radius .4s}
.crest-card::before{content:"";position:absolute;left:50%;bottom:-9px;width:16px;height:16px;margin-left:-8px;background:var(--gold-grad);transform:rotate(45deg);border-radius:3px;box-shadow:0 3px 8px rgba(201,138,27,.4)}
.crest-logo{height:66px;width:auto;transition:height .4s var(--ease)}
.crest-tag{font-size:.56rem;font-weight:600;color:var(--gold-600);letter-spacing:.06em;white-space:nowrap;margin-top:3px;transition:opacity .3s}
.crest-bell{width:26px;height:34px;margin-top:6px;fill:none;stroke:var(--gold-500);stroke-width:4;transform-origin:50% 0;animation:bellSwing 2.6s ease-in-out infinite;filter:drop-shadow(0 3px 4px rgba(201,138,27,.4))}
@keyframes bellSwing{0%,100%{transform:rotate(12deg)}50%{transform:rotate(-12deg)}}
/* temple frieze under header */
.hdr2-frieze{position:absolute;left:0;right:0;bottom:-10px;height:10px;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10'%3E%3Cpath d='M0 0h40v2H0zM4 2l4 6 4-6M16 2v5h8V2M28 2l4 6 4-6' fill='none' stroke='%23e9ab22' stroke-width='1.2'/%3E%3Ccircle cx='20' cy='8.5' r='1.2' fill='%23d6338a'/%3E%3C/svg%3E") repeat-x;animation:friezeMove 30s linear infinite;opacity:.9}
@keyframes friezeMove{to{background-position:400px 0}}

/* scrolled state */
.hdr2.scrolled{background:rgba(255,255,255,.96);backdrop-filter:blur(12px)}
.hdr2.scrolled .hdr2-inner{min-height:68px}
.hdr2.scrolled .crest-card{padding:6px 22px 10px;border-radius:0 0 80px 80px/0 0 40px 40px}
.hdr2.scrolled .crest-logo{height:44px}
.hdr2.scrolled .crest-tag{opacity:0;height:0;margin:0;overflow:hidden}
.hdr2.scrolled .crest-bell{height:0;opacity:0;margin:0}

/* hero sits under the hanging crest */
.hero.v3{margin-top:0}

/* =========================================================
   Heritage icons in section backgrounds
   ========================================================= */
.hx{position:relative}
.hx>.container{position:relative;z-index:1}
section.hx:not(.quick){overflow:hidden}
.hdeco{position:absolute;z-index:0;pointer-events:none;fill:none;stroke:var(--gold-500);stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;opacity:.22;
  stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 3s cubic-bezier(.65,0,.35,1),opacity 1s;will-change:transform}
.hdeco.in{stroke-dashoffset:0}
.hdeco.light{stroke:var(--gold-300);opacity:.2}
.hdeco.o-lo{opacity:.15}
.s-sm{width:90px;height:90px}.s-md{width:150px;height:150px}.s-lg{width:220px;height:220px}.s-xl{width:320px;height:320px}
/* motions */
.float{animation:hFloat 9s ease-in-out infinite}
.float2{animation:hFloat2 11s ease-in-out infinite}
.sway{animation:hSway 7s ease-in-out infinite;transform-origin:50% 100%}
.spin{animation:hSpin 40s linear infinite}
.spin.rev{animation-direction:reverse}
.swing{animation:hSwing 3.2s ease-in-out infinite;transform-origin:50% 0}
.swing.d2{animation-delay:-1.6s}
.dance{animation:hDance 3s ease-in-out infinite;transform-origin:50% 90%}
@keyframes hFloat{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-18px) rotate(2deg)}}
@keyframes hFloat2{0%,100%{transform:translate(0,0)}33%{transform:translate(12px,-10px)}66%{transform:translate(-10px,8px)}}
@keyframes hSway{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(4deg)}}
@keyframes hSpin{to{transform:rotate(360deg)}}
@keyframes hSwing{0%,100%{transform:rotate(10deg)}50%{transform:rotate(-10deg)}}
@keyframes hDance{0%,100%{transform:rotate(-6deg) translateY(0)}25%{transform:rotate(0) translateY(-6px)}50%{transform:rotate(6deg) translateY(0)}75%{transform:rotate(0) translateY(-6px)}}

/* positions, section by section */
.booking .d-l{left:1%;top:-10px}.booking .d-r{right:1%;top:-10px}
.w-1{right:-40px;bottom:-30px}.w-2{left:2%;top:30px}.w-3{left:44%;bottom:10px}
.r-1{left:-40px;top:60px}.r-2{right:1%;top:40px}.r-3{right:12%;bottom:30px}
.n-1{right:3%;top:40px}.n-2{left:2%;bottom:50px}.n-3{left:46%;top:20px}
.c-1{left:6%;top:60px}.c-2{left:12%;top:70px}.c-3{right:-30px;bottom:20px}.c-4{right:22%;top:40px}
.t-1{left:-60px;top:120px}.t-2{right:-20px;top:42%}.t-3{left:6%;bottom:60px}
.x-1{right:2%;top:30px}.x-2{left:-40px;bottom:-30px}.x-3{right:30%;bottom:10px}
.e-1{right:4%;top:20px}.e-2{left:40%;bottom:-20px}.e-3{left:2%;top:30px}
.g-1{left:1%;top:40px}.g-2{right:2%;top:50px}.g-3{right:30%;bottom:20px}
.hl-1{right:3%;top:20px}.hl-2{left:1%;bottom:10px}
.ct-1{right:-40px;top:30px}.ct-2{left:3%;top:30px}.ct-3{left:40%;bottom:10px}
.footer .f-1{left:-30px;bottom:30px;opacity:.15}.footer .f-2{right:-30px;bottom:30px;opacity:.15}.footer .f-3{left:46%;top:20px;opacity:.12}

/* temple frieze divider between sections */
.frieze{height:28px;position:relative;z-index:2;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='28' viewBox='0 0 56 28'%3E%3Cg fill='none' stroke='%23e9ab22' stroke-width='1.3' stroke-linejoin='round'%3E%3Cpath d='M0 26h56'/%3E%3Cpath d='M28 3v3M24 9q4-5 8 0zM23 9h10l1 4H22zM21 13h14l1 4H20zM19 17h18l1 5H18zM16 22h24v4H16z'/%3E%3Cpath d='M4 22q4-6 8 0M44 22q4-6 8 0'/%3E%3C/g%3E%3Ccircle cx='8' cy='18' r='1.4' fill='%23d6338a'/%3E%3Ccircle cx='48' cy='18' r='1.4' fill='%23d6338a'/%3E%3C/svg%3E") repeat-x center/56px 28px;
  animation:friezeMove2 40s linear infinite;background-color:var(--cream)}
@keyframes friezeMove2{to{background-position:560px 50%}}

/* mango-leaf & marigold toran on Celebrate */
.toran{position:absolute;left:0;right:0;top:0;height:64px;z-index:2;pointer-events:none;transform-origin:50% 0;animation:toranSway 6s ease-in-out infinite;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='64' viewBox='0 0 120 64'%3E%3Cpath d='M0 4q60 18 120 0' fill='none' stroke='%23c98a1b' stroke-width='2'/%3E%3Cg fill='%234f9d3a' stroke='%23316b22' stroke-width='.8'%3E%3Cpath d='M20 11q-7 18 0 34q7-16 0-34z'/%3E%3Cpath d='M60 14q-7 20 0 38q7-18 0-38z'/%3E%3Cpath d='M100 11q-7 18 0 34q7-16 0-34z'/%3E%3C/g%3E%3Cg%3E%3Ccircle cx='40' cy='14' r='5' fill='%23ff9f1a'/%3E%3Ccircle cx='40' cy='24' r='4' fill='%23ffcf33'/%3E%3Ccircle cx='80' cy='14' r='5' fill='%23ff9f1a'/%3E%3Ccircle cx='80' cy='24' r='4' fill='%23ffcf33'/%3E%3Ccircle cx='0' cy='6' r='4' fill='%23d6338a'/%3E%3Ccircle cx='120' cy='6' r='4' fill='%23d6338a'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 0/120px 64px}
@keyframes toranSway{0%,100%{transform:skewX(0)}50%{transform:skewX(1.5deg)}}
.celebrate.v3{padding-top:6rem}

/* lotus flourish under centred section titles */
.section-head .title::after{content:"";display:block;width:180px;height:24px;margin:.7rem auto 0;transform:scaleX(0);transition:transform 1.2s cubic-bezier(.22,1,.36,1) .3s;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 24'%3E%3Cg fill='none' stroke='%23e9ab22' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M4 14h60M116 14h60'/%3E%3Cpath d='M90 2q6 8 0 18q-6-10 0-18zM90 20q-11-1-15-12q10 3 15 12zM90 20q11-1 15-12q-10 3-15 12zM70 14l4-3 4 3-4 3zM102 14l4-3 4 3-4 3z'/%3E%3C/g%3E%3Ccircle cx='90' cy='22' r='1.6' fill='%23d6338a'/%3E%3C/svg%3E") center/contain no-repeat}
.section-head.in .title::after,.section-head:not([data-anim]) .title::after{transform:scaleX(1)}

/* subtle drift of the kolam background pattern */
.section-pattern{animation:patternDrift 60s linear infinite}
@keyframes patternDrift{to{background-position:240px 120px,0 0}}

/* gentle glow pulse on section eyebrows */
.eyebrow-line::after{animation:diamondPulse 2.4s ease-in-out infinite}
@keyframes diamondPulse{50%{transform:rotate(45deg) scale(1.35);background:var(--gold-300)}}

/* =========================================================
   Responsive header
   ========================================================= */
@media (max-width:1300px){
  .hdr2 .nav{grid-template-columns:1fr 225px 1fr}
  .crest-card{max-width:220px;padding:10px 18px 18px}.crest-logo{height:58px}
  .hdr2 .nav>ul>li>a{font-size:.8rem;padding:.55rem .45rem}
  .hdr-book{padding:.6rem 1rem!important}
}
@media (max-width:1200px){
  .hdr2-inner{min-height:74px;justify-content:space-between}
  .crest{position:relative;left:0;transform:none;animation:none;align-items:flex-start}
  .crest-card{padding:6px 0;border:0;box-shadow:none;border-radius:0;background:transparent;align-items:flex-start}
  .crest-card::before,.crest-bell{display:none}
  .crest-logo{height:46px}
  .hdr2.scrolled .crest-card{padding:6px 0;border-radius:0}
  .hdr2 .nav-toggle{display:flex;position:relative;z-index:45}
  .hdr2 .nav{position:fixed;top:0;right:0;height:100vh;width:min(330px,86vw);display:block;background:#fff;box-shadow:-10px 0 40px rgba(0,0,0,.2);transform:translateX(100%);transition:transform .45s var(--ease);overflow-y:auto;padding:5rem 1.2rem 2rem;z-index:40}
  .hdr2 .nav.open{transform:none}
  .hdr2 .nav>ul{flex-direction:column;align-items:stretch}
  .hdr2 .nav>ul>li>a{font-size:.95rem;padding:.75rem .5rem;border-bottom:1px solid #f2e7d3}
  .hdr2 .nav>ul>li>a::after,.hdr2 .nav>ul>li>a::before{display:none}
  .hdr2 .sub{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:0;padding:0 0 0 1rem;display:none}
  .hdr2 .has-sub.open .sub{display:block}
  .hdr-book{margin:1rem 0 0;justify-content:center}
  .hdr2 .nav-toggle.open span:nth-child(1){transform:translateY(7.5px) rotate(45deg)}
  .hdr2 .nav-toggle.open span:nth-child(2){opacity:0}
  .hdr2 .nav-toggle.open span:nth-child(3){transform:translateY(-7.5px) rotate(-45deg)}
  .s-xl{width:220px;height:220px}.s-lg{width:160px;height:160px}
}
@media (max-width:720px){
  .s-xl,.s-lg{width:130px;height:130px}.s-md{width:100px;height:100px}.s-sm{width:70px;height:70px}
  .hdeco{opacity:.14}
  .toran{height:44px;background-size:84px 44px}
  .celebrate.v3{padding-top:4.5rem}
  .tb-tour{display:none}
}
@media (prefers-reduced-motion:reduce){
  .hdeco{stroke-dashoffset:0;animation:none!important}
  .crest,.hdr2 .nav>ul>li{animation:none;opacity:1;transform:none}
  .crest{transform:translateX(-50%)}
}
.hdr2 .sub{z-index:60}
.hdr2-frieze{z-index:-1}
.crest-tag{font-size:.52rem;letter-spacing:.02em}
@media (max-width:1300px){.crest-tag{font-size:.48rem}}
.hdeco{opacity:.32;stroke-width:1.6}
.hdeco.light{opacity:.28}
.hdeco.o-lo{opacity:.22}
@media (max-width:720px){.hdeco{opacity:.2}}
@media (max-width:720px){.topbar .socials,.topbar .follow{display:none}}
