/* Serendip House — mobile-first, conversion-focused */

:root {
  --color-bg: #faf8f5;
  --color-surface: #ffffff;
  --color-text: #1a1a18;
  --color-muted: #5c5a55;
  --color-accent: #1e4d45;
  --color-accent-hover: #163a34;
  --color-gold: #b8956a;
  --color-whatsapp: #25d366;
  --color-whatsapp-hover: #1fb855;
  --color-border: #e8e4de;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-sinhala: "Noto Sans Sinhala", "DM Sans", system-ui, sans-serif;
  --header-h: 56px;
  --mobile-bar-h: 64px;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(26, 26, 24, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  padding-bottom: var(--mobile-bar-h);
}

body.nav-open {
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 8px;
}

.lang-switch {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.lang-btn {
  min-width: 40px;
  min-height: 36px;
  padding: 0 10px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  color: var(--color-muted);
  cursor: pointer;
}

.lang-btn.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

html[lang="si"] body {
  font-family: var(--font-sinhala);
}

html[lang="si"] .logo,
html[lang="si"] h1,
html[lang="si"] h2,
html[lang="si"] h3,
html[lang="si"] .footer-logo,
html[lang="si"] .testimonial p {
  font-family: var(--font-sinhala);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-right: -10px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
}

.nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  flex-direction: column;
  gap: 0;
  padding: 8px 20px 24px;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  overflow-y: auto;
}

.nav.is-open {
  display: flex;
}

.nav a {
  padding: 14px 0;
  font-size: 1.0625rem;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}

.nav-book {
  margin-top: 16px;
  padding: 14px 20px !important;
  text-align: center;
  background: var(--color-accent);
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius);
}

.header-cta {
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
  min-height: 44px;
  padding: 0 20px;
  text-align: center;
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.875rem;
}

.btn-lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--color-accent);
  color: #fff;
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  border-color: var(--color-whatsapp);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  background: var(--color-whatsapp-hover);
  border-color: var(--color-whatsapp-hover);
}

.icon {
  flex-shrink: 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-h);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 26, 24, 0.82) 0%,
    rgba(26, 26, 24, 0.45) 45%,
    rgba(26, 26, 24, 0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 32px 20px 40px;
  color: #fff;
}

.hero-eyebrow {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.hero-content h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 10vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.hero-tagline {
  margin: 0 0 24px;
  max-width: 36ch;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-trust li::before {
  content: "✓";
  color: var(--color-gold);
  font-weight: 600;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-header {
  margin-bottom: 32px;
}

.section-header h2,
.experience-copy h2,
.booking-copy h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
}

.section-header--center {
  text-align: center;
}

.section-header--center p {
  margin-left: auto;
  margin-right: auto;
}

.section-header p,
.booking-copy p {
  margin: 0;
  color: var(--color-muted);
  max-width: 52ch;
}

/* Stats bar */
.stats-bar {
  background: var(--color-accent);
  color: #fff;
  padding: 28px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat span {
  font-size: 0.8125rem;
  opacity: 0.85;
}

/* Rooms */
.rooms {
  background: var(--color-surface);
}

.room-grid {
  display: grid;
  gap: 24px;
}

.room-card {
  position: relative;
  background: var(--color-bg);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.room-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-gold);
  color: #fff;
  border-radius: 999px;
}

.room-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.room-card-body {
  padding: 20px;
}

.room-card-body h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
}

.room-card-body p {
  margin: 0 0 12px;
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.room-price {
  margin-bottom: 16px !important;
  color: var(--color-text) !important;
}

.room-price strong {
  font-size: 1.125rem;
  color: var(--color-accent);
}

.room-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.room-features li {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-muted);
}

/* Amenities */
.amenities {
  background: var(--color-bg);
}

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.amenity-card {
  padding: 20px 16px;
  background: var(--color-surface);
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--color-border);
}

.amenity-icon {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.amenity-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9375rem;
}

.amenity-card span:last-child {
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.45;
}

/* Dining */
.dining {
  background: var(--color-surface);
}

.dining-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.dining-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius) + 4px);
}

.dining-copy h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 600;
}

.dining-lead {
  margin: 0 0 20px;
  color: var(--color-muted);
}

.dining-hours {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.dining-hours li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

.dining-hours strong {
  display: inline-block;
  min-width: 4em;
}

.dining-note {
  margin: 0 0 20px;
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
}

.gallery-item--wide {
  grid-column: 1 / -1;
}

.gallery-item--wide img {
  min-height: 200px;
  aspect-ratio: 16 / 9;
}

/* Experience */
.experience-grid {
  display: grid;
  gap: 32px;
}

.benefit-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.benefit-list li:first-child {
  padding-top: 0;
}

.benefit-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.benefit-list span {
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.testimonial {
  margin: 0;
  padding: 24px;
  background: var(--color-surface);
  border-left: 3px solid var(--color-gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.testimonial p {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.45;
}

.testimonial footer {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.nearby-card {
  padding: 24px;
  background: var(--color-surface);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

.nearby-card h3 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1.375rem;
}

.nearby-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nearby-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

.nearby-list strong {
  white-space: nowrap;
  color: var(--color-accent);
  font-size: 0.875rem;
}

.nearby-note {
  margin: 16px 0 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* Reviews */
.reviews {
  background: var(--color-bg);
}

.review-grid {
  display: grid;
  gap: 20px;
}

.stars {
  margin-bottom: 8px;
  color: var(--color-gold);
  font-size: 0.875rem;
  letter-spacing: 2px;
}

/* Location */
.location {
  background: var(--color-surface);
}

.location-grid {
  display: grid;
  gap: 24px;
}

.location-info {
  display: grid;
  gap: 16px;
}

.info-card {
  padding: 16px;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.info-card strong {
  display: block;
  margin-bottom: 6px;
}

.info-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.info-card a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.location-map {
  min-height: 280px;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.location-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

/* FAQ */
.faq {
  background: var(--color-bg);
}

.faq-inner {
  max-width: 720px;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 44px 16px 16px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-muted);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.55;
}

/* Booking */
.booking {
  background: var(--color-accent);
  color: #fff;
}

.booking-copy h2 {
  color: #fff;
}

.booking-copy p {
  color: rgba(255, 255, 255, 0.85);
}

.booking-perks {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.booking-perks li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
}

.booking-perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: 600;
}

.booking-inner {
  display: grid;
  gap: 32px;
}

.booking-form {
  background: var(--color-surface);
  color: var(--color-text);
  padding: 24px;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}

.form-row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-text);
  -webkit-appearance: none;
  appearance: none;
}

.form-row textarea {
  min-height: auto;
  padding: 12px 14px;
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}

/* CTA banner */
.cta-banner {
  padding: 48px 0;
  background: var(--color-text);
  color: #fff;
}

.cta-banner-inner {
  display: grid;
  gap: 24px;
  text-align: center;
}

.cta-banner h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
}

.cta-banner p {
  margin: 0;
  opacity: 0.85;
}

.cta-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-note {
  margin: 12px 0 0;
  font-size: 0.75rem;
  color: var(--color-muted);
  text-align: center;
}

/* Footer */
.site-footer {
  padding: 48px 0 24px;
  background: #111110;
  color: rgba(255, 255, 255, 0.75);
}

.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-logo {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: #fff;
}

.footer-brand p {
  margin: 0;
  font-size: 0.875rem;
}

.footer-links,
.footer-contact-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links strong,
.footer-contact-block strong {
  margin-bottom: 4px;
  color: #fff;
  font-size: 0.875rem;
}

.footer-links a,
.footer-contact-block a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover,
.footer-contact-block a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8125rem;
  text-align: center;
}

/* Mobile sticky CTA bar */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  gap: 10px;
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: rgba(250, 248, 245, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 16px rgba(26, 26, 24, 0.06);
}

.mobile-bar .btn-primary {
  flex: 1;
}

.mobile-bar .btn-whatsapp {
  flex: 0 0 52px;
  min-width: 52px;
  padding: 0;
}

/* Tablet+ */
@media (min-width: 640px) {
  body {
    padding-bottom: 0;
  }

  .mobile-bar {
    display: none;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-actions .btn {
    flex: 0 1 auto;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .room-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .amenity-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .review-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-banner-actions {
    flex-direction: row;
    justify-content: center;
  }

  .booking-form {
    padding: 32px;
  }
}

@media (min-width: 768px) {
  .lang-switch {
    margin-left: 0;
    order: 0;
  }

  .menu-toggle {
    display: none;
  }

  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 0;
    background: transparent;
    border: none;
    overflow: visible;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-muted);
    border: none;
    transition: color 0.15s;
  }

  .nav a:hover,
  .nav a:focus-visible {
    color: var(--color-accent);
  }

  .nav-book {
    display: none;
  }

  .dining-grid {
    grid-template-columns: 1fr 1fr;
  }

  .location-grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: stretch;
  }

  .location-map,
  .location-map iframe {
    min-height: 360px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .cta-banner-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    text-align: left;
  }

  .hero-content {
    padding-bottom: 64px;
  }

  .experience-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .booking-inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 48px;
  }

}

@media (min-width: 1024px) {
  .section {
    padding: 80px 0;
  }

  .hero-content {
    padding-bottom: 80px;
  }

  .room-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-item--wide {
    grid-column: span 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
