/* ============================================
   Hostel San Roque Navia — Styles
   Palette: Emerald Green + Cream / Pastel
   Fonts: Cormorant Garamond + Nunito
   ============================================ */

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --emerald: #047857;
  --emerald-light: #065f46;
  --emerald-pale: #d1fae5;
  --emerald-soft: #ecfdf5;
  --cream: #fef9f0;
  --cream-dark: #f5efe3;
  --cream-mid: #fdf6e8;
  --text-dark: #1a2e28;
  --text-mid: #3d5a4e;
  --text-light: #6b8f82;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(4,120,87,0.06), 0 1px 2px rgba(4,120,87,0.04);
  --shadow-md: 0 4px 16px rgba(4,120,87,0.08), 0 2px 6px rgba(4,120,87,0.04);
  --shadow-lg: 0 12px 40px rgba(4,120,87,0.12), 0 4px 12px rgba(4,120,87,0.06);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Nunito', system-ui, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Typography ─── */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; color: var(--text-dark); }

em { font-style: italic; color: var(--emerald); }

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald);
  background: var(--emerald-pale);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 600px;
  margin: 0 auto;
}

.text-center { text-align: center; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  padding: 12px 28px;
}

.btn-sm { padding: 8px 18px; font-size: 0.82rem; }

.btn-lg { padding: 16px 36px; font-size: 1rem; border-radius: var(--radius-md); }

.btn-full { width: 100%; justify-content: center; }

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

.btn-outline-cream {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
}
.btn-outline-cream:hover {
  background: var(--white);
  color: var(--emerald);
  border-color: var(--white);
  transform: translateY(-2px);
}

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

.btn-outline-emerald {
  background: transparent;
  color: var(--emerald);
  border-color: var(--emerald);
}
.btn-outline-emerald:hover {
  background: var(--emerald);
  color: var(--white);
  transform: translateY(-2px);
}

/* ─── Header ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(254,249,240,0.92);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
}

.logo-light { color: var(--white); }

.logo-icon {
  width: 36px;
  height: 36px;
  color: var(--emerald);
}

.logo-light .logo-icon { color: var(--white); }

.logo-dot { color: var(--emerald); font-weight: 700; }

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

.nav-links a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-mid);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--emerald);
  background: var(--emerald-soft);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  position: relative;
  transition: var(--transition);
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  left: 0;
  transition: var(--transition);
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after { top: 0; transform: rotate(-45deg); }

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #047857 0%, #065f46 30%, #064e3b 60%, #1a5c45 100%);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(6,95,70,0.6) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(4,120,87,0.4) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(254,249,240,0.05) 0%, transparent 70%);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 20px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  margin-bottom: 32px;
}

.hero-badge svg { width: 14px; height: 14px; }

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero-subtitle strong { color: var(--white); font-weight: 700; }

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.hero-stat { text-align: center; }

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float 2.5s ease-in-out infinite;
}

.hero-scroll svg { width: 20px; height: 20px; }

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ─── About ─── */
.about {
  padding: 100px 0;
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img { width: 100%; height: 420px; object-fit: cover; }

.about-img-secondary {
  position: absolute;
  bottom: -40px;
  right: -30px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 5px solid var(--cream);
}

.about-img-secondary img { width: 200px; height: 200px; object-fit: cover; }

.about-accent {
  position: absolute;
  top: -20px;
  left: -20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--emerald);
  color: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  box-shadow: var(--shadow-md);
}

.about-accent svg { width: 28px; height: 28px; color: rgba(255,255,255,0.7); }

.about-text .section-label { margin-bottom: 16px; }
.about-text .section-title { margin-bottom: 24px; }
.about-text > p { color: var(--text-mid); margin-bottom: 16px; }

.about-features {
  list-style: none;
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-mid);
  font-weight: 500;
}

.about-features li svg {
  width: 20px;
  height: 20px;
  color: var(--emerald);
  flex-shrink: 0;
}

/* ─── Rooms ─── */
.rooms {
  padding: 100px 0;
  background: var(--emerald-soft);
}

.rooms .section-header { margin-bottom: 56px; }

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.room-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.room-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.room-img {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.room-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.room-card:hover .room-img img { transform: scale(1.05); }

.room-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--emerald);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.room-body { padding: 28px; }

.room-name {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.room-desc {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.room-amenities {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
}

.room-amenities li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-mid);
}

.room-amenities li svg {
  width: 14px;
  height: 14px;
  color: var(--emerald);
}

/* ─── Environment ─── */
.environment {
  padding: 100px 0;
  background: var(--cream);
}

.environment .section-header { margin-bottom: 56px; }

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

.env-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid transparent;
}

.env-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--emerald-pale);
}

.env-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
}

.env-icon svg { width: 100%; height: 100%; }

.env-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.env-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ─── Gallery Strip ─── */
.gallery-strip {
  overflow: hidden;
  background: var(--emerald);
  padding: 0;
}

.gallery-strip-inner {
  display: flex;
  gap: 4px;
  animation: scroll-gallery 30s linear infinite;
}

.gallery-strip-inner img {
  flex-shrink: 0;
  width: 320px;
  height: 240px;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.gallery-strip-inner img:hover { opacity: 1; }

@keyframes scroll-gallery {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── CTA ─── */
.cta {
  padding: 100px 0;
  background: var(--cream);
}

.cta-card {
  position: relative;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-light) 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 72px 64px;
}

.cta-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='1' fill-rule='evenodd'%3E%3Ccircle cx='20' cy='20' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content .section-label { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }

.cta-content .section-title { color: var(--white); margin-bottom: 16px; }
.cta-content .section-title em { color: rgba(255,255,255,0.85); }

.cta-text {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  line-height: 1.8;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Contact ─── */
.contact {
  padding: 100px 0;
  background: var(--emerald-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info .section-label { margin-bottom: 16px; }
.contact-info .section-title { margin-bottom: 20px; }
.contact-info > p { color: var(--text-mid); margin-bottom: 36px; }

.contact-details {
  list-style: none;
  display: grid;
  gap: 24px;
  margin-bottom: 36px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-detail dt {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--emerald-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald);
}

.contact-detail dt svg { width: 20px; height: 20px; }

.contact-detail dd {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.contact-detail dd a {
  color: var(--emerald);
  font-weight: 600;
  transition: var(--transition);
}

.contact-detail dd a:hover { color: var(--emerald-light); }

.contact-map { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }

/* ─── Contact Form ─── */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.contact-form-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.contact-form-subtitle {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 28px;
}

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

.form-group { margin-bottom: 18px; }

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--cream);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--emerald);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(4,120,87,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }

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

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 40px 20px;
}

.form-success svg {
  width: 56px;
  height: 56px;
  color: var(--emerald);
}

.form-success h4 {
  font-size: 1.3rem;
  color: var(--text-dark);
}

.form-success p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ─── Footer ─── */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

.footer-links h4,
.footer-hours h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links ul,
.footer-hours ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

.footer-links a:hover { color: var(--white); }

.footer-hours li {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.footer-note {
  font-size: 0.8rem !important;
  color: rgba(255,255,255,0.3) !important;
  margin-top: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ─── Mobile Nav ─── */
@media (max-width: 900px) {
  .nav-toggle { display: block; z-index: 1001; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 32px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    z-index: 999;
  }

  .nav-links.open { right: 0; }

  .nav-links a {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .nav-links li:last-child { margin-top: 12px; }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }

  .nav-overlay.active { opacity: 1; pointer-events: all; }
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-img-secondary { right: 10px; bottom: -20px; }
  .rooms-grid { grid-template-columns: 1fr 1fr; }
  .env-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero-title { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-stat-divider { width: 40px; height: 1px; }
  .rooms-grid { grid-template-columns: 1fr; }
  .env-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-card { padding: 48px 28px; }
  .cta-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .contact-form-wrap { padding: 28px; }
  .gallery-strip-inner img { width: 240px; height: 180px; }
}
