/* ==========================================================================
   Nightly Spa & Wellness — Responsive Stylesheet
   ========================================================================== */

:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-alt: #f3efe8;
  --primary: #2d5a4c;
  --primary-dark: #1f4036;
  --accent: #c59b5f;
  --accent-light: #f6efe2;
  --text: #1f2421;
  --text-muted: #5c645f;
  --border: #e5dfd5;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --shadow-sm: 0 4px 12px rgba(31, 36, 33, 0.06);
  --shadow-md: 0 12px 30px rgba(31, 36, 33, 0.1);
  --radius: 14px;
  --max-width: 1160px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Announcement Bar */
.top-bar {
  background-color: var(--primary-dark);
  color: #ffffff;
  font-size: 0.875rem;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar a {
  color: var(--accent-light);
  font-weight: 600;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  letter-spacing: 0.3px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s ease;
  padding: 6px 0;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(45, 90, 76, 0.24);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.28);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.875rem;
}

/* Hero Section */
.hero {
  padding: 56px 0 64px;
  background: radial-gradient(circle at top right, var(--accent-light), transparent 55%),
              linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-light);
  color: #7c5b2b;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.4px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.18;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.hero-photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.hero-photo-strip img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.contact-photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.contact-photo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.highlight-item strong {
  display: block;
  font-size: 1.1rem;
  color: var(--primary);
}

.highlight-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Quick Booking Card */
.booking-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.booking-card h2 {
  font-size: 1.35rem;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.booking-card .subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* Forms */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: #ffffff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 90, 76, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-alt {
  background-color: var(--surface-alt);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-muted);
}

/* Cards Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, #d7e2dc, #ede4d3);
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
  margin-bottom: 6px;
}

.card-title {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 18px;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* Page Banner (Services & Contact) */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #ffffff;
  padding: 48px 0;
  text-align: center;
}

.page-banner h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 10px;
}

.page-banner p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 600px;
  margin: 0 auto;
}

/* Contact Info Cards */
.info-list {
  display: grid;
  gap: 16px;
}

.info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.88);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-title {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 8px;
}

.wa-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.info-icon .wa-icon {
  width: 22px;
  height: 22px;
  color: var(--whatsapp-dark);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 18px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

/* Floating Call & WhatsApp Buttons */
.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 950;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.float-btn:hover {
  transform: translateY(-2px);
}

.float-call {
  background-color: var(--primary);
}

.float-wa {
  background-color: var(--whatsapp);
}

/* Call Number Popup Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 24, 21, 0.6);
  backdrop-filter: blur(3px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--surface);
  border-radius: 18px;
  max-width: 420px;
  width: 100%;
  padding: 28px 24px;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  animation: modalPop 0.22s ease-out;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text);
  display: grid;
  place-items: center;
}

.modal-badge {
  display: inline-block;
  background: var(--accent-light);
  color: #7c5b2b;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.modal-number {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 10px 0 18px;
  letter-spacing: 0.5px;
}

.modal-actions {
  display: grid;
  gap: 10px;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .hero-grid,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .grid-3,
  .grid-2,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 36px 0 48px;
  }

  .hero-highlights {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .section {
    padding: 46px 0;
  }

  .floating-actions {
    right: 12px;
    bottom: 12px;
  }

  .float-btn {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .top-bar .container {
    justify-content: center;
    text-align: center;
    font-size: 0.8rem;
  }

  .nav-wrap {
    height: 64px;
  }

  .nav-links {
    top: 64px;
  }

  .brand {
    font-size: 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-photo-strip {
    gap: 6px;
  }

  .hero-photo-strip img {
    height: 76px;
  }

  .booking-card {
    padding: 20px 16px;
  }

  .card-img {
    height: 200px;
  }

  .card-footer {
    flex-wrap: wrap;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .modal-box {
    padding: 24px 18px;
  }

  .modal-number {
    font-size: 1.45rem;
  }

  .floating-actions {
    left: 12px;
    right: 12px;
    bottom: 10px;
    flex-direction: row;
  }

  .float-btn {
    flex: 1;
    justify-content: center;
    padding: 11px 10px;
    font-size: 0.85rem;
  }

  .site-footer {
    padding-bottom: 80px;
  }
}
