/* Base reset (mobile overflow guard) */
img, video, iframe { max-width: 100%; height: auto; display: block; }
html, body { overflow-x: hidden; overflow-x: clip; }

:root {
  --color-gold: #8f6b3c;
  --color-gold-rgb: 143, 107, 60;
  --color-emerald: #1e4538;
  --color-emerald-rgb: 30, 69, 56;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-light-grey: #f7f7f7;
  --color-dark-grey: #333333;

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Raleway', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
}

body {
  font-family: var(--font-body);
  color: var(--color-dark-grey);
  line-height: 1.6;
  margin: 0;
  background-color: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-emerald);
  line-height: 1.2;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem); /* Display large */
  font-weight: 700;
  color: var(--color-gold);
}

h2 {
  font-size: clamp(2rem, 7vw, 3.5rem); /* Display */
  font-weight: 600;
}

h3 {
  font-size: clamp(1.75rem, 6vw, 2.8rem); /* Heading */
  font-weight: 600;
}

h4 {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 500;
}

p {
  font-size: clamp(1rem, 2.5vw, 1.15rem); /* Body */
  margin-bottom: var(--spacing-sm);
}

small, .caption {
  font-size: 0.85rem; /* Caption */
  color: var(--color-dark-grey);
  opacity: 0.8;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.header {
  background-color: var(--color-white);
  padding: var(--spacing-sm) 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-emerald);
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 5vw, 1.8rem);
  font-weight: 700;
  white-space: nowrap;
}

.brand svg {
  height: 1.8em;
  width: 1.8em;
  margin-right: 0.5em;
  fill: var(--color-gold);
}

.desktop-nav {
  display: none;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: block;
  }

  .desktop-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--spacing-md);
  }

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

  .desktop-nav a:hover,
  .desktop-nav a.active,
  .desktop-nav a[aria-current="page"] {
    color: var(--color-gold);
  }

  .desktop-nav a.active::after,
  .desktop-nav a[aria-current="page"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-gold);
  }
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  font-size: var(--spacing-xl);
  color: var(--color-emerald);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-height: 100vh;
  background-color: var(--color-white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-100%);
  transition: transform 0.4s ease-out, opacity 0.4s ease-out;
  opacity: 0;
  padding: var(--spacing-lg);
  padding-top: var(--spacing-xxl);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-md);
}

.mobile-nav-overlay.open {
  transform: translateY(0%);
  opacity: 1;
}

.mobile-nav-overlay ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.mobile-nav-overlay li {
  border-bottom: 1px solid rgba(var(--color-emerald-rgb), 0.1);
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.mobile-nav-overlay li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.mobile-nav-overlay a {
  text-decoration: none;
  color: var(--color-emerald);
  font-size: 1.5rem;
  display: block;
  padding: var(--spacing-xs) 0;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-nav-overlay a:hover,
.mobile-nav-overlay a.active,
.mobile-nav-overlay a[aria-current="page"] {
  color: var(--color-gold);
}

.ja-nav-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: none;
  border: none;
  font-size: 3rem;
  color: var(--color-emerald);
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(var(--color-emerald-rgb), 0.7), rgba(var(--color-gold-rgb), 0.5));
  z-index: 1;
}

.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--spacing-md);
  max-width: 800px;
}

.hero h1 {
  color: var(--color-white);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  margin-bottom: var(--spacing-xl);
  color: var(--color-white);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.button {
  display: inline-block;
  background-color: var(--color-gold);
  color: var(--color-white);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.button:hover {
  background-color: var(--color-emerald);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button.button-outline {
  background-color: transparent;
  border: 2px solid var(--color-gold);
  color: var(--color-gold);
  box-shadow: none;
}

.button.button-outline:hover {
  background-color: var(--color-gold);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

section {
  padding: var(--spacing-xxl) 0;
}

section:nth-of-type(even) {
  background-color: var(--color-light-grey);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-header h2 {
  margin-bottom: var(--spacing-sm);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
}

.card {
  background-color: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.card img {
  border-radius: 4px;
  margin-bottom: var(--spacing-md);
}

.card h3 {
  color: var(--color-emerald);
  margin-top: 0;
  margin-bottom: var(--spacing-sm);
}

.card p {
  font-size: 0.95rem;
  margin-bottom: var(--spacing-lg);
}

form {
  display: grid;
  gap: var(--spacing-md);
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

form label {
  font-weight: 600;
  color: var(--color-emerald);
}

form input, form textarea, form select {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  box-sizing: border-box;
}

form input:focus, form textarea:focus, form select:focus {
  outline: 2px solid rgba(var(--color-gold-rgb), 0.5);
  border-color: var(--color-gold);
}

.form-group {
  margin-bottom: var(--spacing-sm);
}

.form-actions {
  text-align: center;
  margin-top: var(--spacing-md);
}

.footer {
  background-color: var(--color-emerald);
  color: var(--color-white);
  padding: var(--spacing-xxl) 0;
  text-align: center;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-sm) var(--spacing-md);
}

.footer-nav a {
  text-decoration: none;
  color: var(--color-white);
  font-weight: 400;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--color-gold);
}

.footer-contact {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-contact a {
  color: var(--color-white);
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.whatsapp-button {
  background-color: #25D366;
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.whatsapp-button:hover {
  background-color: #1DA851;
}

.whatsapp-button svg {
  fill: var(--color-white);
  width: 1.2em;
  height: 1.2em;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
}

.testimonial-card {
  background-color: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  font-style: italic;
  position: relative;
  text-align: center;
}

.testimonial-card::before {
  content: '“';
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--color-gold);
  position: absolute;
  top: 10px;
  left: 20px;
  opacity: 0.2;
}

.testimonial-card footer {
  margin-top: var(--spacing-md);
  font-style: normal;
  font-weight: 600;
  color: var(--color-emerald);
}

/* FAQ */
.faq-item {
  background-color: var(--color-white);
  border: 1px solid rgba(var(--color-emerald-rgb), 0.1);
  margin-bottom: var(--spacing-sm);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md);
  background-color: var(--color-light-grey);
  cursor: pointer;
  font-weight: 600;
  color: var(--color-emerald);
}

.faq-question:hover {
  background-color: rgba(var(--color-emerald-rgb), 0.05);
}

.faq-answer {
  padding: var(--spacing-md);
  padding-top: 0;
  display: none;
  background-color: var(--color-white);
}

.faq-question.active + .faq-answer {
  display: block;
}

.faq-question .icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-question.active .icon {
  transform: rotate(45deg);
}
