/*
  Stylesheet for Mezame Suites

  This CSS file implements the design system defined in the project blueprint. It
  provides a mobile‑first, fully responsive layout using vanilla CSS only.
  Variables are defined at the root for easy colour and typography management.
  The layout uses flexbox and grid patterns where appropriate.
*/

/* Reset and base typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Colour palette variables */
:root {
  --primary-color: #1F3D2B;
  --secondary-color: #F5F1EA;
  --accent-color: #C8A96A;
  --text-color: #1A1A1A;
  --text-secondary-color: #6B6B6B;
  --background-color: #FFFFFF;
  --border-radius: 8px;
  --max-width: 1200px;
}

/* Container */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.primary-btn {
  background-color: var(--primary-color);
  color: #fff;
}

.primary-btn:hover,
.primary-btn:focus {
  background-color: #153421;
  color: #fff;
}

.whatsapp-btn {
  background-color: var(--accent-color);
  color: #fff;
}

.whatsapp-btn:hover,
.whatsapp-btn:focus {
  background-color: #a58250;
  color: #fff;
}

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

.call-btn:hover,
.call-btn:focus {
  background-color: #e9e5dc;
  color: var(--primary-color);
}

.btn:focus {
  outline: 2px dashed var(--accent-color);
  outline-offset: 2px;
}

/* Header and navigation */
.site-header {
  background-color: var(--background-color);
  border-bottom: 1px solid #e9e9e9;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

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

/* Underline effect on active nav item */
.nav a.active::after,
.nav a:hover::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-color);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Transform the hamburger into a cross when active */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 0 3rem 0;
  gap: 2rem;
}

.hero-content {
  text-align: center;
  max-width: 600px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.hero p {
  color: var(--text-secondary-color);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.hero-image img {
  width: 100%;
  max-width: 600px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Quick highlights */
.highlights {
  background-color: var(--secondary-color);
  padding: 2rem 0;
}

.highlights .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.highlight-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.highlight-item p {
  color: var(--text-secondary-color);
  font-size: 0.95rem;
}

/* Featured Suites & Suite Grid */
.featured-suites,
.suite-list {
  padding: 3rem 0;
}

.featured-suites h2,
.suite-list h2 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.suite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.suite-card {
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.suite-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.suite-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  padding: 1rem;
  color: var(--primary-color);
}

.suite-card p {
  flex-grow: 1;
  padding: 0 1rem;
  color: var(--text-secondary-color);
  font-size: 0.95rem;
}

.suite-card .price {
  font-weight: 600;
  color: var(--primary-color);
  padding: 0 1rem;
  margin-bottom: 0.5rem;
}

.suite-card .btn {
  margin: 1rem;
  align-self: flex-start;
}

/* Why Choose & Trust sections */
.why-choose,
.trust {
  background-color: var(--secondary-color);
  padding: 3rem 0;
}

.why-choose h2,
.trust h2 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.reason h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.reason p {
  color: var(--text-secondary-color);
  font-size: 0.95rem;
}

/* Testimonials */
.testimonials {
  padding: 3rem 0;
  background-color: var(--background-color);
}

.testimonials h2 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.testimonial {
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.testimonial p {
  font-style: italic;
  color: var(--text-secondary-color);
  margin-bottom: 1rem;
}

.testimonial h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* CTA section */
.cta {
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
}

.cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.cta p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #e6e6e6;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Footer */
.site-footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 2rem 0;
}

.site-footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.site-footer .footer-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.site-footer .footer-nav a:hover,
.site-footer .footer-nav a:focus {
  text-decoration: underline;
}

.site-footer .footer-contact p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--accent-color);
}

/* Floating WhatsApp button */
.floating-whatsapp {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background-color: var(--accent-color);
  color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: background-color 0.2s ease;
  z-index: 999;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus {
  background-color: #a58250;
}

.floating-whatsapp svg {
  fill: #fff;
}

/* Sticky call now bar */
.call-now-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 0.75rem;
  display: none;
  z-index: 998;
}

.call-now-bar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.call-now-bar a:hover,
.call-now-bar a:focus {
  text-decoration: underline;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 4rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: var(--primary-color);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 997;
  transition: opacity 0.2s ease;
}

.back-to-top:hover,
.back-to-top:focus {
  background-color: #153421;
}

/* Gallery styles */
.suite-detail .gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.suite-detail .gallery-main img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.suite-detail .gallery-thumbs {
  display: flex;
  gap: 0.5rem;
}

.suite-detail .gallery-thumbs img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--border-radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.suite-detail .gallery-thumbs img.active,
.suite-detail .gallery-thumbs img:hover {
  border-color: var(--accent-color);
}

/* Overview, Features, Pricing & Booking sections on suite detail page */
.suite-detail h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  text-align: center;
}

.suite-detail h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.suite-detail p,
.suite-detail ul {
  color: var(--text-secondary-color);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.features-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}

.features-list li::before {
  content: '\2022';
  color: var(--accent-color);
  margin-right: 0.5rem;
}

.pricing-table {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.pricing-option {
  flex: 1 1 120px;
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.pricing-option h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.pricing-option p {
  font-weight: 600;
  color: var(--accent-color);
}

.booking .cta-actions {
  margin-top: 1rem;
}

/* FAQ accordion */
.faq {
  margin-top: 2rem;
}

.faq-item {
  border-bottom: 1px solid #ddd;
}

.faq-item button {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  position: relative;
  cursor: pointer;
  color: var(--primary-color);
}

.faq-item button span {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: transform 0.2s ease;
}

.faq-item button[aria-expanded='true'] span {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item .answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item .answer p {
  padding: 0 0 1rem 0;
  color: var(--text-secondary-color);
  font-size: 0.95rem;
}

/* Suites listing filter buttons */
.filter-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary-color);
  background-color: #fff;
  color: var(--primary-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover,
.filter-btn:focus {
  background-color: var(--primary-color);
  color: #fff;
}

/* Map section */
.map-section iframe {
  width: 100%;
  height: 350px;
  border-radius: var(--border-radius);
}

.map-section p {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

/* Landmarks section */
.landmarks .landmark {
  margin-bottom: 1.5rem;
}

.landmarks .landmark h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--primary-color);
}

.landmarks .landmark p {
  font-size: 0.95rem;
  color: var(--text-secondary-color);
}

/* Contact page styles */
.contact-info {
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.contact-info div {
  background-color: var(--secondary-color);
  padding: 1rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.contact-info p,
.contact-info a {
  font-size: 0.95rem;
  color: var(--text-secondary-color);
  text-decoration: none;
}

.contact-form {
  background-color: var(--secondary-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-form h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.contact-form form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  font-weight: 600;
  color: var(--primary-color);
}

.contact-form input,
.contact-form textarea {
  padding: 0.5rem;
  border-radius: var(--border-radius);
  border: 1px solid #ccc;
  font-size: 0.95rem;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(200, 169, 106, 0.25);
}

.contact-form .error {
  color: #b30000;
  font-size: 0.85rem;
  display: none;
}

.contact-form button {
  width: max-content;
  align-self: start;
}

/* Media queries for responsive adjustments */
@media (max-width: 768px) {
  /* Show mobile nav toggle */
  .nav-toggle {
    display: flex;
  }
  /* Hide nav by default on small screens */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 240px;
    background-color: var(--background-color);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
    padding-top: 4rem;
  }
  .nav.open {
    transform: translateX(0);
  }
  .nav ul {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }
  .nav a {
    font-size: 1.1rem;
  }
  /* Adjust hero layout */
  .hero {
    padding-top: 3rem;
  }
  .hero-image img {
    max-width: 100%;
  }
  /* Show sticky call now bar on small screens */
  .call-now-bar {
    display: block;
  }
  /* adjust gallery layout */
  .suite-detail .gallery-main img {
    height: 200px;
  }
}

@media (min-width: 769px) {
  .hero {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .hero-content {
    flex: 1;
    padding-right: 2rem;
  }
  .hero-image {
    flex: 1;
    max-width: 50%;
  }
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: none;
}