/* mayaguezindios.net – Travel & Discover */
:root {
  --color-bg: #f5f4f0;
  --color-surface: #fff;
  --color-text: #252830;
  --color-text-muted: #5c5e68;
  --color-accent: #b85c38;
  --color-accent-light: #d47854;
  --color-border: #e4e2de;
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --shadow: 0 4px 24px rgba(184, 92, 56, 0.1);
  --radius: 12px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-light);
}

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(245, 244, 240, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: #8b3a1f;
  letter-spacing: 0.02em;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}

.nav-list a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-list a:hover {
  color: var(--color-accent);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
}

@media (max-width: 991px) {
  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 24px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list li {
    border-bottom: 1px solid var(--color-border);
  }

  .nav-list a {
    display: block;
    padding: 14px 0;
  }
}

/* Main content offset for fixed header */
main {
  padding-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #8b3a1f url('../images/hero-bg.jpg') center/cover no-repeat;
  color: #fff;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 58, 31, 0.4) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.5) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 48px 24px;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 0 0 16px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.95;
  margin: 0;
  line-height: 1.65;
}

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

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 32px;
  color: var(--color-text);
  text-align: center;
}

/* Country blocks on home */
.country-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.country-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.country-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(184, 92, 56, 0.14);
}

.country-card > a:first-child {
  display: block;
  line-height: 0;
}

.country-card img {
  width: 100%;
  min-width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top;
  display: block;
  vertical-align: top;
}

.country-card-body {
  padding: 20px;
}

.country-card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.country-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.country-card a {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Features block (home) */
.section-alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.features-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-bottom: 36px;
}

.feature-item {
  text-align: center;
  padding: 0 12px;
}

.feature-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  font-size: 1rem;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.feature-item h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.feature-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.section-cta {
  text-align: center;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.section-cta .btn {
  margin: 0;
}

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

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

/* Footer */
.site-footer {
  background: #252830;
  color: #b8b8bc;
  padding: 48px 0 24px;
  margin-top: 48px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

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

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: #e8e6e4;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
}

.footer-links a {
  color: #b8b8bc;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #d47854;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #3a3c45;
  font-size: 0.85rem;
  color: #7a7c86;
  text-align: center;
}

/* Page headings */
.page-hero {
  background: linear-gradient(135deg, #8b3a1f 0%, var(--color-accent) 50%, var(--color-accent-light) 100%);
  color: #fff;
  padding: 48px 24px;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #fff;
}

.page-hero p {
  margin: 0;
  opacity: 0.9;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* About */
.about-content {
  max-width: 720px;
  margin: 0 auto;
}

.about-content p {
  margin-bottom: 1.25em;
  color: var(--color-text-muted);
}

/* Contact form */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-surface);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.18);
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--color-accent-light);
}

.contact-form-wrap {
  max-width: 520px;
  margin: 0 auto;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-surface);
  padding: 32px;
  border-radius: var(--radius);
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal h3 {
  margin: 0 0 12px;
  color: #8b3a1f;
}

.modal p {
  margin: 0 0 20px;
  color: var(--color-text-muted);
}

/* Reviews grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--color-surface);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

.review-card .stars {
  color: #c97a3a;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.review-card .name {
  font-weight: 600;
  margin-bottom: 8px;
}

.review-card .text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Country page attractions */
.attractions-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.attraction-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .attraction-block {
    grid-template-columns: 1fr;
  }
}

.attraction-block:nth-child(even) .attraction-image {
  order: 2;
}

@media (max-width: 768px) {
  .attraction-block:nth-child(even) .attraction-image {
    order: 0;
  }
}

.attraction-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.attraction-content {
  padding: 28px;
}

.attraction-content h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.attraction-content p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Policy pages */
.policy-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
}

.policy-content h2 {
  font-size: 1.35rem;
  margin: 28px 0 12px;
}

.policy-content p,
.policy-content ul {
  color: var(--color-text-muted);
  margin-bottom: 1em;
}

.policy-content ul {
  padding-left: 1.5em;
}

/* Countries index */
.countries-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.countries-index .country-card {
  text-align: center;
}

.countries-index .country-card-body {
  padding: 24px;
}
