/* ============================================================
   The Coral Palms Resort — shared styles
   Demo website by Pavan Rengade · https://pavan.rengade.in
   Palette: deep ocean teal · warm sand & cream · gold accents
   ============================================================ */

:root {
  --teal-deep: #0b3c3f;
  --teal: #10555a;
  --teal-soft: #1d6f74;
  --sand: #f4ead9;
  --cream: #fdf9f1;
  --cream-2: #f9f2e6;
  --gold: #c19a4b;
  --gold-soft: #d9bd85;
  --ink: #23302f;
  --ink-soft: #5c6a68;
  --white: #ffffff;
  --shadow: 0 14px 40px rgba(11, 60, 63, 0.12);
  --shadow-soft: 0 6px 18px rgba(11, 60, 63, 0.08);
  --radius: 18px;
  --font-head: "Prata", "Georgia", serif;
  --font-body: "Mulish", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--teal-deep);
  line-height: 1.25;
}

a { color: var(--teal); }

img { max-width: 100%; }

.wrap {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* ---------- Demo ribbon ---------- */
.demo-ribbon {
  background: var(--teal-deep);
  color: #eadfc6;
  text-align: center;
  font-size: 0.82rem;
  padding: 8px 14px;
  letter-spacing: 0.02em;
}
.demo-ribbon a {
  color: var(--gold-soft);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 249, 241, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(193, 154, 75, 0.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal-soft));
  box-shadow: inset 0 0 0 2px rgba(217, 189, 133, 0.6);
}
.brand-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--teal-deep);
  letter-spacing: 0.04em;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a.current {
  color: var(--teal-deep);
  border-bottom-color: var(--gold);
}
.btn {
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  border-radius: 999px;
  padding: 12px 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #a9812f);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(193, 154, 75, 0.35);
}
.btn-teal {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(16, 85, 90, 0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--teal-deep);
  border: 1.5px solid var(--teal);
}
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(ellipse at 80% 10%, rgba(244, 162, 97, 0.35), transparent 55%),
    radial-gradient(ellipse at 15% 90%, rgba(127, 200, 201, 0.3), transparent 50%),
    linear-gradient(160deg, #0b3c3f 0%, #10555a 45%, #14666c 70%, #d9bd85 160%);
  padding: 92px 0 120px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  background: linear-gradient(to top, var(--cream), transparent);
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 18px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 5.4vw, 3.8rem);
  max-width: 18ch;
  margin: 0 auto 18px;
}
.hero p.lede {
  max-width: 56ch;
  margin: 0 auto 34px;
  color: #e8f0ec;
  font-size: 1.05rem;
}
.hero-emoji { font-size: 1.6rem; letter-spacing: 0.4em; margin-bottom: 22px; }

/* Compact page hero for inner pages */
.hero--inner { padding: 64px 0 84px; }

/* ---------- Quick booking bar ---------- */
.booking-bar {
  position: relative;
  z-index: 2;
  margin: -58px auto 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(193, 154, 75, 0.25);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
  width: min(880px, 92%);
}
.booking-bar label,
.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.booking-bar input,
.booking-bar select,
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid #dcd2bd;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cream);
}
.booking-bar input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus,
.booking-bar select:focus {
  outline: 2px solid var(--gold-soft);
  border-color: var(--gold);
}

/* ---------- Sections ---------- */
section.block { padding: 72px 0; }
section.block.tinted { background: var(--cream-2); }
section.block.deep {
  background: linear-gradient(150deg, var(--teal-deep), var(--teal));
  color: #e8f0ec;
}
section.block.deep h2 { color: var(--white); }
.section-head { text-align: center; max-width: 62ch; margin: 0 auto 44px; }
.section-head .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); }
section.block.deep .section-head p { color: #cfe0dc; }

/* ---------- Highlights strip ---------- */
.highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.highlight {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border-top: 3px solid var(--gold);
  padding: 26px 22px;
  text-align: center;
}
.highlight .h-emoji { font-size: 1.9rem; display: block; margin-bottom: 10px; }
.highlight h3 { font-size: 1.05rem; margin-bottom: 6px; }
.highlight p { font-size: 0.87rem; color: var(--ink-soft); }

/* ---------- Room cards ---------- */
.room-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.room-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(193, 154, 75, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.room-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.room-visual {
  height: 190px;
  display: grid;
  place-items: center;
  font-size: 3.4rem;
  position: relative;
}
.room-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(255,255,255,0.22), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(0,0,0,0.14), transparent 45%);
}
.room-visual span { position: relative; z-index: 1; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.3)); }
.room-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.room-body h3 { font-size: 1.35rem; }
.room-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.room-desc { font-size: 0.93rem; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal-deep);
  background: var(--sand);
  border: 1px solid rgba(193, 154, 75, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
}
.room-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px dashed #e4d9c2;
  flex-wrap: wrap;
}
.price { font-family: var(--font-head); font-size: 1.4rem; color: var(--teal-deep); }
.price small { font-family: var(--font-body); font-size: 0.75rem; color: var(--ink-soft); }
.room-card.unavailable { opacity: 0.55; }
.room-card.selected { border: 2px solid var(--gold); box-shadow: 0 0 0 4px rgba(193,154,75,0.15), var(--shadow); }
.capacity-note { font-size: 0.8rem; font-weight: 700; color: #a4532e; }

/* ---------- Booking page layout ---------- */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}
.booking-layout .room-grid { grid-template-columns: 1fr; }

.booking-widget {
  position: sticky;
  top: 92px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(193, 154, 75, 0.3);
  overflow: hidden;
}
.widget-head {
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  color: var(--white);
  padding: 18px 22px;
}
.widget-head h3 { color: var(--white); font-size: 1.15rem; }
.widget-head p { font-size: 0.8rem; color: #bcd8d3; }
.widget-body { padding: 20px 22px 24px; display: grid; gap: 14px; }
.field { display: block; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.summary {
  background: var(--cream-2);
  border: 1px dashed var(--gold-soft);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.9rem;
}
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.summary-row.total {
  border-top: 1px solid var(--gold-soft);
  margin-top: 8px;
  padding-top: 9px;
  font-weight: 800;
  color: var(--teal-deep);
  font-size: 1.02rem;
}
.summary .muted { color: var(--ink-soft); }
.fineprint { font-size: 0.76rem; color: var(--ink-soft); }
.fineprint.ok { color: #2c6e49; font-weight: 700; }

/* Confirmation panel */
.confirm-panel {
  background: linear-gradient(160deg, #f0f7f1, #fdf9f1);
  border: 1.5px solid #7fb99a;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}
.confirm-panel .big { font-size: 2rem; }
.confirm-panel h4 { font-size: 1.25rem; margin: 6px 0 2px; }
.booking-id {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.12em;
  background: var(--teal-deep);
  color: var(--gold-soft);
  border-radius: 8px;
  padding: 5px 14px;
  margin: 8px 0;
}
.confirm-lines { text-align: left; margin: 12px 0; font-size: 0.9rem; }
.confirm-lines div { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dotted #cfe0d4; }

.hidden { display: none !important; }

/* ---------- Amenities grid ---------- */
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.amenity {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(217, 189, 133, 0.35);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.amenity .a-emoji { font-size: 2rem; display: block; margin-bottom: 10px; }
.amenity h3 { color: var(--gold-soft); font-size: 1.05rem; margin-bottom: 6px; }
.amenity p { font-size: 0.86rem; color: #cfe0dc; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tile {
  border-radius: var(--radius);
  height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--white);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.25), transparent 45%);
}
.tile .t-emoji { font-size: 2.3rem; z-index: 1; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35)); }
.tile figcaption {
  z-index: 1;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(11, 60, 63, 0.55);
  padding: 4px 14px;
  border-radius: 999px;
}

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 26px 24px;
  border-left: 3px solid var(--gold);
}
.stars { color: var(--gold); letter-spacing: 0.15em; margin-bottom: 10px; }
.testi blockquote { font-size: 0.93rem; color: var(--ink-soft); font-style: italic; }
.testi cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--teal-deep);
}
.testi cite span { display: block; font-weight: 600; color: var(--ink-soft); font-size: 0.76rem; }

/* ---------- Experience cards ---------- */
.exp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.exp-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid rgba(193, 154, 75, 0.18);
}
.exp-visual { height: 130px; display: grid; place-items: center; font-size: 2.8rem; }
.exp-body { padding: 22px 24px 26px; }
.exp-body h3 { font-size: 1.3rem; margin-bottom: 8px; }
.exp-body p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 12px; }
.price-list { list-style: none; font-size: 0.88rem; }
.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px dotted #e4d9c2;
}
.price-list li:last-child { border-bottom: none; }
.price-list .amt { font-weight: 800; color: var(--teal-deep); white-space: nowrap; }

/* ---------- Timeline ---------- */
.timeline { max-width: 640px; margin: 0 auto; position: relative; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--gold), var(--teal-soft));
}
.tl-item { position: relative; padding: 0 0 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(193, 154, 75, 0.25);
}
.tl-time {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.tl-item h4 { font-size: 1.08rem; margin: 2px 0 4px; }
.tl-item p { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 26px 24px;
  text-align: center;
  border-top: 3px solid var(--teal);
}
.contact-card .c-emoji { font-size: 1.9rem; display: block; margin-bottom: 10px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.contact-card p { font-size: 0.9rem; color: var(--ink-soft); }
.contact-card a { font-weight: 700; }

.map-placeholder {
  border-radius: var(--radius);
  min-height: 260px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 14px, transparent 14px 28px),
    linear-gradient(140deg, #10555a, #0b3c3f);
  display: grid;
  place-items: center;
  text-align: center;
  color: #cfe0dc;
  padding: 30px;
  box-shadow: var(--shadow-soft);
}
.map-placeholder .m-emoji { font-size: 2.4rem; display: block; margin-bottom: 8px; }
.map-placeholder strong { color: var(--gold-soft); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(193, 154, 75, 0.25);
  padding: 30px;
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.form-note {
  background: #f0f7f1;
  border: 1.5px solid #7fb99a;
  color: #24523a;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.92rem;
  font-weight: 600;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: 64px 0;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(217, 189, 133, 0.35), transparent 60%),
    linear-gradient(150deg, var(--teal-deep), var(--teal));
  color: var(--white);
}
.cta-band h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 12px; }
.cta-band p { color: #cfe0dc; margin-bottom: 26px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: #082e31;
  color: #9fc0bb;
  padding: 48px 0 26px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(217, 189, 133, 0.2);
}
.site-footer h4 { color: var(--gold-soft); font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cfe0dc; text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); text-decoration: underline; }
.footer-credit {
  text-align: center;
  padding-top: 22px;
  font-size: 0.82rem;
  color: #7ba39d;
}
.footer-credit a { color: var(--gold-soft); font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .booking-layout { grid-template-columns: 1fr; }
  .booking-widget { position: static; }
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .amenity-grid, .gallery, .testi-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .booking-bar { grid-template-columns: 1fr 1fr; }
  .booking-bar .btn { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .room-grid, .exp-grid { grid-template-columns: 1fr; }
  .nav-inner { justify-content: center; }
  .hero { padding: 64px 0 110px; }
}

@media (max-width: 480px) {
  .highlights, .amenity-grid, .gallery, .testi-grid, .contact-grid,
  .booking-bar, .footer-grid, .two-col { grid-template-columns: 1fr; }
  .booking-bar { padding: 18px; }
  .form-card { padding: 22px 18px; }
  body { font-size: 15px; }
}
