/* Cinnamon Cottage Bentota — shared design system */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --green-deep: #223423;
  --green: #3c5b41;
  --green-soft: #6d8f6f;
  --terracotta: #c1673f;
  --terracotta-deep: #a04f2d;
  --sand: #f6efdf;
  --cream: #fbf8f1;
  --ink: #24291f;
  --ink-soft: #57604f;
  --line: #e2d9c4;
  --white: #ffffff;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Jost', 'Segoe UI', sans-serif;

  --radius: 14px;
  --radius-lg: 26px;
  --shadow: 0 18px 40px -20px rgba(34, 52, 35, 0.35);
  --shadow-soft: 0 10px 24px -14px rgba(34, 52, 35, 0.25);
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--green-deep);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--terracotta-deep);
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--terracotta);
  display: inline-block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--sand { background: var(--sand); }
.section--green {
  background: var(--green-deep);
  color: var(--sand);
}
.section--green h1, .section--green h2, .section--green h3 { color: var(--sand); }
.section--green p { color: #cdd9c9; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9em 1.8em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--terracotta-deep); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--green-deep);
  color: var(--green-deep);
}
.btn-outline-dark:hover { background: var(--green-deep); color: var(--sand); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green-deep);
}
.brand span { color: var(--terracotta); }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2vw, 2.4rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 0.2em 0;
}
.nav-links a.active,
.nav-links a:hover { color: var(--terracotta-deep); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4em;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-deep);
  margin: 5px 0;
  transition: 0.25s ease;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
    gap: 1.1rem;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-cta .btn-outline-dark { display: none; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,30,20,0.35) 0%, rgba(20,30,20,0.55) 60%, rgba(20,30,20,0.8) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-content h1 { color: var(--white); }
.hero-content p { color: #eef1e8; font-size: 1.1rem; max-width: 560px; }
.hero-badges {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}
.hero-badge {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.hero-badge strong { font-family: var(--font-display); font-size: 1.4rem; }
.hero-badge span { font-size: 0.8rem; color: #d9decd; text-transform: uppercase; letter-spacing: 0.08em; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }

/* Small page hero (about/contact/reserve) */
.page-hero {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 3rem);
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}
.page-hero p { max-width: 640px; }

/* Grid helpers */
.grid { display: grid; gap: clamp(1.2rem, 3vw, 2.2rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.6rem;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}

.amenity-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.7rem 1.6rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.amenity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.amenity-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.amenity-card h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.amenity-card p { font-size: 0.92rem; margin: 0; }
.amenity-price {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--terracotta-deep);
  background: var(--sand);
  padding: 0.25em 0.7em;
  border-radius: 999px;
  width: fit-content;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 0.8rem;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.4s ease;
}
.gallery-grid img:hover { transform: scale(1.02); }
.gallery-grid .span-2 { grid-column: span 2; }
.gallery-grid .row-2 { grid-row: span 2; }
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery-grid .span-2 { grid-column: span 2; }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 25, 18, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 10px; }
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.8rem;
  color: var(--white);
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Rooms */
.room-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.room-card img { height: 220px; object-fit: cover; }

/* Used wherever we don't have a real photo yet (room interiors) — an
   honest placeholder rather than a mismatched stock photo. */
.photo-placeholder {
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #ded2ae 0%, #c7d8bf 55%, #a9c2b8 100%);
  color: var(--green-deep);
}
.photo-placeholder .ph-icon { font-size: 2.2rem; }
.photo-placeholder .ph-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.room-card .body { padding: 1.5rem 1.6rem 1.8rem; }
.room-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.8rem 0 1rem; }
.room-tags span {
  font-size: 0.75rem;
  background: var(--sand);
  color: var(--ink-soft);
  padding: 0.3em 0.7em;
  border-radius: 999px;
}

/* Testimonials */
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  border: 1px solid var(--line);
}
.testimonial .stars { color: var(--terracotta); letter-spacing: 0.15em; margin-bottom: 0.6rem; }
.testimonial cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 600; color: var(--green-deep); }

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5em 1.1em 0.5em 0.6em;
  box-shadow: var(--shadow-soft);
}
.rating-pill .score {
  background: var(--green-deep);
  color: var(--sand);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.rating-pill small { display: block; color: var(--ink-soft); font-size: 0.72rem; }

/* Forms */
.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green-deep);
  margin-bottom: 0.4rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75em 0.9em;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-soft);
  box-shadow: 0 0 0 3px rgba(109, 143, 111, 0.2);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem 1rem; }
.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.checkbox-item input { width: auto; margin-top: 0.25em; }

.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: var(--sand);
  border-radius: 10px;
  padding: 0.9em 1em;
  margin-top: 1rem;
}
.form-success {
  display: none;
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.form-success.show { display: block; }
.form-success .icon { font-size: 2.4rem; margin-bottom: 0.6rem; }

/* Calendar */
.calendar-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
}
.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.calendar-head h3 { margin: 0; font-size: 1.15rem; }
.calendar-nav { display: flex; gap: 0.5rem; }
.calendar-nav button {
  border: 1px solid var(--line);
  background: var(--sand);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--green-deep);
}
.calendar-nav button:hover { background: var(--terracotta); color: var(--white); }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
  text-align: center;
}
.calendar-grid .dow {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 0.4rem;
  letter-spacing: 0.05em;
}
.calendar-grid .day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.88rem;
  cursor: pointer;
  border: 1px solid transparent;
  color: var(--ink);
}
.calendar-grid .day.empty { cursor: default; }
.calendar-grid .day.past { color: #c8c2b0; cursor: not-allowed; }
.calendar-grid .day.blocked {
  background: #f1e3e3;
  color: #b56a6a;
  text-decoration: line-through;
  cursor: not-allowed;
}
.calendar-grid .day.available:hover { background: var(--sand); }
.calendar-grid .day.selected {
  background: var(--terracotta);
  color: var(--white);
}
.calendar-grid .day.in-range {
  background: rgba(193, 103, 63, 0.18);
}
.calendar-legend {
  display: flex;
  gap: 1.4rem;
  margin-top: 1.3rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.calendar-legend span { display: inline-flex; align-items: center; gap: 0.4em; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.available { background: var(--sand); border: 1px solid var(--line); }
.dot.blocked { background: #f1e3e3; border: 1px solid #e2b9b9; }
.dot.selected { background: var(--terracotta); }
.sync-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 1rem;
}
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: #6d8f6f; display: inline-block; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.contact-item .icon { font-size: 1.3rem; width: 40px; height: 40px; border-radius: 50%; background: var(--sand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.map-frame {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius);
  filter: saturate(0.9);
}

/* Footer */
.site-footer {
  background: var(--green-deep);
  color: #cfd9cb;
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: var(--sand); font-size: 0.95rem; margin-bottom: 1rem; font-family: var(--font-body); font-weight: 600; }
.site-footer .brand { color: var(--sand); }
.site-footer .brand span { color: #e2a077; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.6rem; font-size: 0.9rem; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 1.6rem;
  font-size: 0.8rem;
  color: #9fae99;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.tag-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tag-row span {
  font-size: 0.78rem;
  background: var(--sand);
  color: var(--ink-soft);
  padding: 0.3em 0.8em;
  border-radius: 999px;
}
