/* =========================================================
   Krishna Kamala Heritage — homestay site
   ========================================================= */

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4eddf;
  --paper-bright: #fbf6eb;
  --paper-deep: #ece1cc;
  --sand: #e9dcc4;
  --sand-deep: #e0cfb1;
  --ink: #241d18;
  --ink-soft: #625449;
  --ink-faint: #8d7c6d;
  --clay: #b14e35;
  --clay-deep: #8d3826;
  --clay-btn: #9f402a;
  --terracotta: #d37955;
  --green: #405a41;
  --green-deep: #1f3126;
  --green-black: #17251b;
  --moss: #7c8f61;
  --gold: #c89b5c;
  --line: rgba(36, 29, 24, 0.14);
  --line-soft: rgba(36, 29, 24, 0.08);
  --cream-line: rgba(244, 237, 223, 0.2);
  --cream-soft: rgba(244, 237, 223, 0.68);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 80px);
  --section-x: max(var(--gutter), calc((100vw - 1360px) / 2));
  --radius: 18px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  background-image: url("assets/noise.svg");
  background-size: 220px 220px;
  opacity: 0.035;
}

body.nav-open {
  overflow: hidden;
}

::selection {
  background: var(--clay);
  color: var(--paper-bright);
}

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

svg {
  display: block;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.section-contact :focus-visible,
.site-footer :focus-visible,
.lightbox :focus-visible {
  outline-color: #e7c28f;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 2000;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip-link:focus {
  transform: translateY(0);
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---------- shared type ---------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 380;
  font-optical-sizing: auto;
}

h1 em,
h2 em,
h3 em {
  font-style: italic;
  font-weight: 340;
  color: var(--clay);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--clay-deep);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  flex: none;
  background: currentColor;
  opacity: 0.55;
}

.hero .eyebrow::before {
  display: none;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(64, 90, 65, 0.12);
}

.section {
  position: relative;
  padding: clamp(80px, 9vw, 136px) var(--section-x);
}

main:focus {
  outline: none;
}

section[id] {
  scroll-margin-top: 70px;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 68px);
}

.section-head h2 {
  margin-top: 18px;
  font-size: clamp(2.5rem, 4.8vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-head--row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 60px;
  align-items: end;
  justify-content: space-between;
  max-width: none;
}

.section-intro {
  max-width: 520px;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.section-head--row .section-intro {
  max-width: 400px;
  margin-top: 0;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  min-height: 100svh;
  padding: 130px var(--section-x) 80px;
  background:
    radial-gradient(circle at 88% 20%, rgba(211, 121, 85, 0.16), transparent 38%),
    linear-gradient(180deg, var(--paper-bright), var(--paper));
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.6rem, 6.4vw, 6.2rem);
  font-weight: 340;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.hero h1 em {
  display: block;
  font-size: 0.8em;
  white-space: nowrap;
}

.hero-title {
  position: relative;
  padding-left: 0.82em;
  color: #4b2a85;
}

.title-feather {
  position: absolute;
  top: -0.3em;
  left: 0.02em;
  width: auto;
  height: 2.15em;
  transform: rotate(-12deg);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 8px 14px rgba(20, 70, 80, 0.2));
}

.hero-flute {
  width: min(100%, 470px);
  height: auto;
  margin-top: 18px;
  margin-left: 0.2em;
  transform: rotate(-2.5deg);
}

.hero-lede {
  max-width: 540px;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.7;
}

.hero-lede strong {
  color: var(--ink);
  font-weight: 600;
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 600px;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact-row li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 14px 16px 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.fact-row li + li {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.fact-row .icon {
  width: 22px;
  height: 22px;
  margin-bottom: 6px;
  color: var(--clay);
}

.fact-row strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  align-items: center;
  margin-top: 36px;
}

.hero-art {
  position: relative;
  padding: 0 0 60px 60px;
}

.hero-illustration {
  overflow: hidden;
  border-radius: 999px 999px 24px 24px;
  background: var(--sand);
  box-shadow: 0 50px 90px -60px rgba(80, 30, 15, 0.6);
}

.hero-illustration img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 10;
  object-fit: cover;
}

.hero-photo {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40%;
  padding: 8px;
  border-radius: 14px;
  background: var(--paper-bright);
  box-shadow: 0 30px 60px -30px rgba(36, 29, 24, 0.55);
  transform: rotate(-3deg);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  object-fit: cover;
}

/* ---------- the home ---------- */

.section-home {
  background: var(--sand);
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.home-media {
  position: relative;
  padding-bottom: 70px;
}

.home-media > img:first-child {
  width: 100%;
  aspect-ratio: 4 / 3.6;
  border-radius: var(--radius);
  object-fit: cover;
}

.home-media-inset {
  position: absolute;
  right: -18px;
  bottom: 0;
  width: 42%;
  aspect-ratio: 3 / 4;
  border: 8px solid var(--sand);
  border-radius: 16px;
  object-fit: cover;
}

.home-copy h2 {
  margin-top: 18px;
  font-size: clamp(2.5rem, 4.6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.home-copy .lead {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  line-height: 1.5;
}

.home-copy > p:not(.eyebrow):not(.lead) {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.amenity-title {
  margin-top: 36px;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.amenities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.amenities li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.4;
}

.amenities .icon {
  width: 22px;
  height: 22px;
  color: var(--clay);
}

.house-rules p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.house-rules ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.house-rules li {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid rgba(141, 56, 38, 0.3);
  border-radius: 999px;
  background: rgba(251, 246, 235, 0.6);
  color: var(--clay-deep);
  font-size: 14px;
  font-weight: 600;
}

.house-rules .icon {
  width: 18px;
  height: 18px;
}

.footer-blurb a {
  color: var(--paper);
  text-underline-offset: 3px;
}

/* ---------- certification badge ---------- */

.cert-badge {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  max-width: 600px;
  margin-top: 26px;
  padding: 10px 16px;
  border: 1px solid rgba(64, 90, 65, 0.3);
  border-radius: 14px;
  background: rgba(64, 90, 65, 0.07);
  color: var(--green-deep);
  font-size: 13.5px;
  line-height: 1.45;
}

.cert-badge .icon {
  width: 22px;
  height: 22px;
  color: var(--green);
}

.cert-badge strong {
  font-weight: 700;
}

/* ---------- explore udupi ---------- */

.section-udupi {
  background: var(--paper-bright);
}

.udupi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}

.udupi-card {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--paper);
}

.udupi-card .icon {
  width: 34px;
  height: 34px;
  color: var(--clay);
}

.udupi-card h3 {
  margin-top: 18px;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.udupi-card p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.7;
}

/* ---------- gallery ---------- */

.section-gallery {
  background: var(--paper);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 17vw, 240px);
  gap: clamp(10px, 1.2vw, 16px);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--sand);
}

.gallery-grid {
  grid-template-areas:
    "a b c c"
    "a d c c"
    "f d e e"
    "g i e e";
}

.gi-a { grid-area: a; }
.gi-b { grid-area: b; }
.gi-c { grid-area: c; }
.gi-d { grid-area: d; }
.gi-e { grid-area: e; }
.gi-f { grid-area: f; }
.gi-g { grid-area: g; }
.gi-i { grid-area: i; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.9s var(--ease),
    filter 0.4s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20, 14, 10, 0.55));
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.gallery-caption {
  position: absolute;
  bottom: 12px;
  left: 14px;
  z-index: 2;
  color: var(--paper-bright);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 25px;
  border: 1px solid var(--clay-btn);
  border-radius: 999px;
  background: var(--clay-btn);
  color: var(--paper-bright);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.btn .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease);
}

.btn:hover {
  background: var(--clay-deep);
  border-color: var(--clay-deep);
  transform: translateY(-2px);
}

.btn:hover .icon {
  transform: translate(2px, -2px);
}

.btn--small {
  min-height: 40px;
  padding: 10px 18px;
  font-size: 11px;
}

.btn--outline {
  background: transparent;
  border-color: rgba(36, 29, 24, 0.28);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn--cream {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.btn--cream:hover {
  background: var(--paper-bright);
  border-color: var(--paper-bright);
  color: var(--clay-deep);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(36, 29, 24, 0.35);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.text-link .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease);
}

.text-link:hover {
  color: var(--clay);
  border-color: var(--clay);
}

.text-link:hover .icon {
  transform: translate(2px, 2px);
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  padding: 18px var(--gutter);
  transition:
    padding 0.35s var(--ease),
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(244, 237, 223, 0.9);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 12px 38px -30px rgba(36, 29, 24, 0.5);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--clay);
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  transition: transform 0.4s var(--ease);
}

.brand:hover .brand-mark {
  transform: translateY(-2px);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 450;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-sub {
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.23em;
  line-height: 1.3;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.5vw, 38px);
}

.site-nav a,
.footer-nav a {
  position: relative;
  padding: 4px 0;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--clay-deep);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  justify-self: end;
}

.nav-toggle {
  position: relative;
  z-index: 130;
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(36, 29, 24, 0.2);
  border-radius: 50%;
  background: rgba(244, 237, 223, 0.55);
  color: var(--ink);
}

.nav-toggle span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition:
    transform 0.3s var(--ease),
    top 0.3s var(--ease);
}

.nav-toggle span:first-child {
  top: 18px;
}
.nav-toggle span:last-child {
  top: 24px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  top: 21px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

/* ---------- contact ---------- */

.section-contact {
  overflow: hidden;
  background:
    radial-gradient(circle at 87% 12%, rgba(211, 121, 85, 0.13), transparent 28%),
    var(--green-deep);
  color: var(--paper);
}

.section-contact::before {
  content: "";
  position: absolute;
  top: -240px;
  right: -180px;
  width: 640px;
  height: 640px;
  border: 1px solid rgba(244, 237, 223, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.section-contact::after {
  content: "";
  position: absolute;
  right: 10%;
  bottom: -300px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(177, 78, 53, 0.09);
  pointer-events: none;
}

.section-contact .eyebrow {
  color: #e1bd8b;
}

.contact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.contact-copy h2 {
  margin-top: 18px;
  font-size: clamp(3.2rem, 5.7vw, 5.7rem);
  font-weight: 340;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.contact-copy h2 em {
  color: #e4a783;
}

.contact-lede {
  max-width: 470px;
  margin-top: 28px;
  color: rgba(244, 237, 223, 0.75);
  font-size: 15px;
  line-height: 1.8;
}

.contact-details {
  max-width: 540px;
  margin-top: 42px;
  border-top: 1px solid var(--cream-line);
}

.contact-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  padding: 19px 0;
  border-bottom: 1px solid var(--cream-line);
}

.contact-row > dd {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
}

.contact-row > dt {
  padding-top: 5px;
  color: #d7b17e;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.contact-phone {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 380;
  letter-spacing: -0.01em;
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: rgba(211, 121, 85, 0.55);
  text-underline-offset: 5px;
  transition: color 0.25s ease;
}

.contact-phone:hover {
  color: #f0c29d;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 0;
  padding: 5px 9px;
  border: 1px solid rgba(244, 237, 223, 0.24);
  border-radius: 999px;
  background: transparent;
  color: rgba(244, 237, 223, 0.68);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1;
  vertical-align: middle;
  text-transform: uppercase;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.copy-button .icon {
  width: 11px;
  height: 11px;
}

.copy-button:hover {
  border-color: rgba(244, 237, 223, 0.55);
  color: var(--paper);
}

.copy-button.is-copied {
  border-color: rgba(168, 192, 140, 0.65);
  color: #b7cfa2;
}

.contact-row > dd {
  margin: 0;
  color: rgba(244, 237, 223, 0.88);
  font-size: 15px;
  line-height: 1.5;
}

.contact-row small {
  display: block;
  flex-basis: 100%;
  margin-top: 4px;
  color: rgba(244, 237, 223, 0.48);
  font-size: 12.5px;
  line-height: 1.5;
}

.contact-row address {
  font-style: normal;
  line-height: 1.6;
}

.contact-row small a {
  color: #f0c29d;
  text-underline-offset: 3px;
}

.contact-map {
  overflow: hidden;
  min-height: 420px;
  border-radius: 20px;
  background: var(--paper-deep);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.7);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--paper);
}

.lightbox::backdrop {
  background: rgba(14, 12, 10, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.lightbox-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 74px clamp(64px, 8vw, 120px);
}

.lightbox figure {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  max-width: 1100px;
  max-height: 100%;
  margin: 0;
}

.lightbox figure img {
  max-width: 100%;
  max-height: calc(100vh - 190px);
  border-radius: 4px;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.lightbox figcaption {
  color: rgba(244, 237, 223, 0.65);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.17em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 237, 223, 0.28);
  border-radius: 50%;
  background: rgba(244, 237, 223, 0.05);
  color: var(--paper);
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  border-color: rgba(244, 237, 223, 0.55);
  background: rgba(244, 237, 223, 0.13);
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
}

.lightbox-arrow {
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: clamp(10px, 2.5vw, 34px);
}

.lightbox-next {
  right: clamp(10px, 2.5vw, 34px);
}

/* ---------- footer ---------- */

.site-footer {
  padding: clamp(56px, 7vw, 90px) var(--section-x) 28px;
  background: var(--green-black);
  color: var(--cream-soft);
}

.footer-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 32px clamp(32px, 5vw, 72px);
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--cream-line);
}

.brand--footer {
  color: #e4a783;
}

.brand--footer .brand-name {
  color: var(--paper);
}

.brand--footer .brand-sub {
  color: rgba(244, 237, 223, 0.5);
}

.footer-blurb {
  max-width: 360px;
  font-size: 14px;
  line-height: 1.7;
}

.footer-nav {
  display: grid;
  gap: 10px;
}

.footer-nav a {
  color: var(--cream-soft);
}

.footer-nav a:hover {
  color: var(--paper);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 12px;
}

.back-top {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  text-decoration: none;
}

.back-top .icon {
  width: 14px;
  height: 14px;
  transform: rotate(-45deg);
}

/* ---------- reveal / motion ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.hero-copy > * {
  animation: rise 0.95s var(--ease) both;
}

.hero-copy > :nth-child(2) {
  animation-delay: 0.08s;
}
.hero-copy > :nth-child(3) {
  animation-delay: 0.16s;
}
.hero-copy > :nth-child(4) {
  animation-delay: 0.24s;
}
.hero-copy > :nth-child(5) {
  animation-delay: 0.32s;
}

.hero-art {
  animation: artIn 1.25s var(--ease) 0.12s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes artIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .site-header {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .header-cta {
    display: none;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: 110px var(--gutter) 60px;
    background:
      radial-gradient(circle at 85% 15%, rgba(177, 78, 53, 0.1), transparent 35%),
      var(--paper);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
      opacity 0.35s var(--ease),
      transform 0.35s var(--ease);
  }

  .site-nav a {
    padding: 6px 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 8vw, 4rem);
    font-weight: 360;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-transform: none;
  }

  .site-nav a::after {
    bottom: 5px;
    height: 2px;
  }

  .nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 112px;
    padding-bottom: 64px;
  }

  .hero-art {
    justify-self: center;
    width: min(100%, 520px);
  }

  .home-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .home-media-inset {
    right: 0;
  }
}

@media (max-width: 720px) {
  .fact-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact-row li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .fact-row li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .hero-art {
    padding: 0 0 48px 28px;
  }

  .amenities {
    grid-template-columns: 1fr;
  }

  .udupi-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 44vw;
  }

  .gallery-grid {
    grid-template-areas: none;
    grid-auto-flow: dense;
  }

  .gallery-item {
    grid-area: auto;
  }

  .gi-c,
  .gi-e {
    grid-column: span 2;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal],
  .hero-copy > *,
  .hero-art {
    opacity: 1;
    transform: none;
  }
}

/* ---------- no-JS fallback for small screens ---------- */

@media (max-width: 980px) {
  html:not(.js) .site-header {
    position: absolute;
  }

  html:not(.js) .header-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  html:not(.js) .nav-toggle {
    display: none;
  }

  html:not(.js) .site-nav {
    position: static;
    inset: auto;
    z-index: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px 20px;
    padding: 0;
    background: transparent;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  html:not(.js) .site-nav a {
    padding: 2px 0;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
  }

  html:not(.js) .hero {
    padding-top: 165px;
  }
}
