/* Hotel Emerald Dove — hill-station hotel, Yelagiri
   Palette: deep emerald forest, brass/gold accent, warm cream, misty sage.
   Type: Fraunces (display serif) + Work Sans (body/utility). */

:root {
  --emerald-900: #10261e;
  --emerald-700: #1b4332;
  --emerald-500: #2d6a4f;
  --sage-300: #a9c5b8;
  --brass-500: #c9a15d;
  --brass-300: #e3c98f;
  --cream-100: #faf6ee;
  --cream-200: #f2ead9;
  --ink-900: #201d17;
  --ink-600: #55524a;
  --white: #ffffff;

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 4px;
  --radius-md: 10px;
  --shadow-soft: 0 20px 45px -25px rgba(16, 38, 30, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--emerald-900);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-600); }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-500);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--brass-500);
}

/* ---------- signature contour divider ---------- */
.contour {
  width: 100%;
  height: 34px;
  display: block;
  margin: 0;
}

/* ---------- topbar ---------- */
.topbar {
  background: var(--emerald-900);
  color: var(--sage-300);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 34px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.topbar-gst { font-weight: 500; color: var(--cream-200); }
.topbar-phone a { color: var(--brass-300); font-weight: 600; }
.topbar-phone a:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .topbar-inner { font-size: 0.68rem; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(27, 67, 50, 0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--emerald-900);
}
.brand img { height: 40px; width: auto; border-radius: 4px; }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-500);
  font-weight: 600;
}
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-900);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--brass-500);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--emerald-700); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--emerald-700); color: var(--white); }
.btn-primary:hover { background: var(--emerald-900); transform: translateY(-1px); }
.btn-gold { background: var(--brass-500); color: var(--emerald-900); }
.btn-gold:hover { background: var(--brass-300); transform: translateY(-1px); }
.btn-outline { border-color: var(--emerald-700); color: var(--emerald-700); background: transparent; }
.btn-outline:hover { background: var(--emerald-700); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }

.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--emerald-900); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(16,38,30,.55) 0%, rgba(16,38,30,.72) 60%, rgba(16,38,30,.92) 100%);
  z-index: -1;
}
.hero-slider {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  z-index: -2;
}
.hero-slide {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease, transform 7s ease;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}
.hero-dots {
  position: absolute;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 1;
}
.hero-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.25);
  padding: 0;
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
}
.hero-dots button.active {
  background: var(--brass-300);
  border-color: var(--brass-300);
  width: 22px;
  border-radius: 5px;
}
.hero-content { max-width: 640px; padding: 100px 0 80px; }
.hero .eyebrow { color: var(--brass-300); }
.hero .eyebrow::before { background: var(--brass-300); }
.hero h1 { color: var(--white); }
.hero p.lead { color: var(--cream-200); font-size: 1.12rem; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.hero-badges {
  display: flex; gap: 28px; margin-top: 46px; flex-wrap: wrap;
}
.hero-badges div { font-family: var(--font-display); font-size: 1.5rem; color: var(--brass-300); }
.hero-badges span { display: block; font-family: var(--font-body); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--cream-200); margin-top: 2px; }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-alt { background: var(--cream-200); }
.section-dark { background: var(--emerald-900); color: var(--cream-100); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: var(--sage-300); }

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head.left { margin: 0 0 44px; text-align: left; }

/* ---------- about split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.split-media .float-card {
  position: absolute;
  bottom: -28px; right: -28px;
  background: var(--brass-500);
  color: var(--emerald-900);
  padding: 20px 26px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  box-shadow: var(--shadow-soft);
}
.split-media .float-card strong { display: block; font-size: 1.6rem; }
.split-media .float-card span { font-family: var(--font-body); font-size: 0.72rem; text-transform: uppercase; letter-spacing: .08em; }
.feature-list { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-900); font-weight: 500; }
.feature-list li::before { content: '✦'; color: var(--brass-500); flex-shrink: 0; margin-top: 2px; }

/* ---------- rooms ---------- */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.room-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease;
}
.room-card:hover { transform: translateY(-6px); }
.room-media { position: relative; height: 240px; overflow: hidden; }
.room-media img { width: 100%; height: 100%; object-fit: cover; }
.room-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.room-meta { display: flex; gap: 16px; margin: 10px 0 14px; font-size: 0.82rem; color: var(--ink-600); }
.room-body .btn { margin-top: auto; }

/* ---------- amenities ---------- */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.amenity-card {
  background: var(--white);
  border: 1px solid rgba(27,67,50,.08);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: left;
}
.amenity-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--cream-200);
  color: var(--emerald-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 1.2rem;
}
.amenity-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.amenity-card p { font-size: 0.9rem; margin-bottom: 0; }

/* ---------- gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 16px;
}
.gallery-grid a { border-radius: var(--radius-md); overflow: hidden; position: relative; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-grid a:hover img { transform: scale(1.08); }
.gallery-grid .tall { grid-row: span 2; }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--white);
  background: linear-gradient(0deg, rgba(16,38,30,.75), transparent);
}

/* ---------- contact / booking ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
}
.contact-info-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 22px; }
.contact-info-list li { display: flex; gap: 16px; }
.contact-info-list .ico {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--brass-300);
}
.contact-info-list strong { display: block; color: var(--white); font-size: 0.95rem; }
.contact-info-list span { color: var(--sage-300); font-size: 0.9rem; }

.card-form {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-soft);
  color: var(--ink-900);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; color: var(--emerald-900); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd6c6;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--cream-100);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--brass-500);
  outline-offset: 1px;
}
.field textarea { resize: vertical; min-height: 110px; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; font-size: 0.92rem; }
.alert-success { background: #e5f3ea; color: var(--emerald-900); border: 1px solid #b9dcc4; }
.alert-error { background: #fbeaea; color: #7a2222; border: 1px solid #f0c4c4; }

.map-embed { border-radius: var(--radius-md); overflow: hidden; margin-top: 26px; box-shadow: var(--shadow-soft); }
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--emerald-900);
  color: var(--sage-300);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-grid h4 { color: var(--white); font-family: var(--font-body); font-size: 0.82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a:hover { color: var(--brass-300); }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.2rem; color: var(--white); margin-bottom: 14px; }
.footer-brand img { height: 34px; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; font-size: 0.82rem; flex-wrap: wrap; gap: 10px; }

/* ---------- page banner (interior pages) ---------- */
.page-banner {
  background: var(--emerald-900);
  color: var(--white);
  padding: 90px 0 60px;
  text-align: center;
}
.page-banner h1 { color: var(--white); margin-bottom: 10px; }
.breadcrumb { color: var(--sage-300); font-size: 0.85rem; }
.breadcrumb a { color: var(--brass-300); }

.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; color: var(--ink-600); }

.room-detail-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: start; }
.room-detail-media img { border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.sticky-card { position: sticky; top: 100px; }

.table-plain { width: 100%; border-collapse: collapse; }
.table-plain th, .table-plain td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; font-size: 0.9rem; }
.status-pill { padding: 4px 12px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; text-transform: uppercase; }
.status-pending { background: #fdf0da; color: #8a5a00; }
.status-confirmed { background: #e2f3e6; color: #1b6b34; }
.status-cancelled { background: #fbe6e6; color: #9b2c2c; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .rooms-grid { grid-template-columns: repeat(2, 1fr); }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .split, .contact-grid, .room-detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav { position: fixed; top: 78px; left: 0; right: 0; background: var(--cream-100); flex-direction: column; padding: 20px 24px 30px; gap: 18px; box-shadow: var(--shadow-soft); transform: translateY(-130%); transition: transform .3s ease; }
  .main-nav.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .rooms-grid { grid-template-columns: 1fr; }
  .amenities-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-content { padding: 130px 0 60px; }
}
