/* ============================================
   HOTEL RURAL EL BARRANC DE L'INFERNO
   Editorial · Plum + Amber
   ============================================ */

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

:root {
  --plum-deep: #4A2040;
  --plum: #6B3A5D;
  --plum-light: #8E5274;
  --plum-pale: #F3EAF0;
  --plum-bg: #FDF8FB;
  --amber: #E8A84C;
  --amber-light: #F2C078;
  --amber-dark: #C4872E;
  --cream: #FFFAF5;
  --cream-dark: #F5EDE5;
  --charcoal: #1E1A1C;
  --text: #2D2529;
  --text-muted: #6B5E64;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(107, 58, 93, 0.06);
  --shadow-md: 0 8px 30px rgba(107, 58, 93, 0.1);
  --shadow-lg: 0 20px 60px rgba(107, 58, 93, 0.12);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--plum-deep);
}

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

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

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------- Layout ---------- */
.layout {
  display: flex;
  min-height: 100vh;
}

.content {
  flex: 1;
  margin-left: 240px;
  background: var(--cream);
}

/* ---------- Side Navigation ---------- */
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: var(--plum-deep);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 1.75rem;
  z-index: 100;
  overflow-y: auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.nav-brand-sub {
  font-size: 0.7rem;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.15rem;
}

.side-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.side-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  transition: var(--transition);
  position: relative;
}

.side-nav-link:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.07);
}

.side-nav-link.active {
  color: var(--white);
  background: rgba(232, 168, 76, 0.15);
}

.side-nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 28px;
  background: var(--amber);
  border-radius: 0 4px 4px 0;
}

.nav-num {
  font-family: 'Playfair Display', serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--amber);
  opacity: 0.7;
  min-width: 18px;
}

.nav-footer {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.nav-phone:hover {
  color: var(--amber);
}

/* ---------- Mobile Menu Toggle ---------- */
.menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  width: 48px;
  height: 48px;
  border: none;
  background: var(--plum-deep);
  border-radius: 12px;
  color: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.menu-toggle:hover {
  background: var(--plum);
}

/* ---------- Mobile Nav Overlay ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--plum-deep);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.5rem 1rem;
  transition: var(--transition);
}

.mobile-nav a:hover {
  color: var(--amber);
}

/* ---------- Sections ---------- */
.section {
  padding: 7rem 0;
  position: relative;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--amber-dark);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--plum);
  color: var(--white);
  border-color: var(--plum);
}

.btn-primary:hover {
  background: var(--plum-deep);
  border-color: var(--plum-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--plum);
  border-color: var(--plum);
}

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

.btn-full {
  width: 100%;
}

/* ---------- Hero Section ---------- */
.section-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--amber-dark);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: var(--plum-deep);
  letter-spacing: -0.03em;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

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

.hero-image {
  position: relative;
}

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
}

.hero-img-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--amber);
  border-radius: var(--radius);
  z-index: -1;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--plum-light);
  animation: bounce 2s infinite;
}

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

/* ---------- About Section ---------- */
.section-about {
  background: var(--plum-pale);
}

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

.about-image-col {
  position: relative;
}

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

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 5/6;
}

.about-img-secondary {
  position: absolute;
  bottom: -2rem;
  right: -1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--plum-pale);
}

.about-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3/2;
}

.about-text-col {
  padding: 1rem 0;
}

.about-text-col p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.85;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(107, 58, 93, 0.15);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--plum);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  background: rgba(107, 58, 93, 0.2);
  align-self: stretch;
}

/* ---------- Rooms Section ---------- */
.section-rooms {
  background: var(--cream);
}

.section-rooms .section-eyebrow,
.section-rooms .section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.section-rooms .section-eyebrow {
  margin-bottom: 0.75rem;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.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;
  aspect-ratio: 5/3.8;
}

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

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

.room-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--plum);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
}

.room-info {
  padding: 1.5rem;
}

.room-name {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--plum-deep);
}

.room-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.room-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.room-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text);
}

.room-features svg {
  flex-shrink: 0;
  color: var(--amber-dark);
}

/* ---------- Experiences Section ---------- */
.section-experiences {
  background: var(--plum-deep);
  color: var(--white);
}

.experiences-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.experiences-header .section-eyebrow {
  color: var(--amber);
}

.experiences-header .section-title {
  color: var(--white);
}

.experiences-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.experience-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: var(--transition);
}

.experience-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.experience-icon {
  margin-bottom: 1.25rem;
}

.experience-title {
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.experience-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

/* ---------- Landscape Section ---------- */
.section-landscape {
  background: var(--cream-dark);
}

.landscape-showcase {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.landscape-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.landscape-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.landscape-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  transition: var(--transition);
}

.landscape-gallery img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

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

.landscape-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 5/7;
}

/* ---------- Contact Section ---------- */
.section-contact {
  background: var(--cream);
}

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

.contact-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--plum-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-value {
  display: block;
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

.contact-value a {
  color: var(--plum);
  transition: var(--transition);
}

.contact-value a:hover {
  color: var(--amber-dark);
}

/* ---------- Contact Form ---------- */
.form-title {
  font-size: 1.75rem;
  margin-bottom: 1.75rem;
  color: var(--plum-deep);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(107, 58, 93, 0.2);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--plum);
  box-shadow: 0 0 0 3px rgba(107, 58, 93, 0.1);
}

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

.form-privacy {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1rem;
  text-align: center;
}

.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

.form-success.show {
  display: block;
}

.success-icon {
  margin-bottom: 1.25rem;
}

.form-success h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--plum-deep);
}

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

/* ---------- Footer ---------- */
.footer {
  background: var(--plum-deep);
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 0 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
}

.footer-legal p {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.footer-legal a {
  color: var(--amber);
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--amber-light);
}

.footer-bottom {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .rooms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .side-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .content {
    margin-left: 0;
  }

  .section {
    padding: 5rem 1.5rem;
  }

  .section-hero {
    padding: 6rem 1.5rem 4rem;
    min-height: auto;
  }

  .hero-grid,
  .about-grid,
  .contact-grid,
  .landscape-showcase {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-image {
    order: -1;
  }

  .hero-img-wrapper img {
    aspect-ratio: 4/3;
  }

  .hero-img-accent {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

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

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

  .about-img-secondary {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 1rem;
    border: none;
  }

  .about-image-col {
    display: flex;
    flex-direction: column;
  }

  .landscape-main-img {
    order: -1;
  }

  .landscape-main-img img {
    aspect-ratio: 4/3;
  }

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

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

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

  .about-stats {
    flex-direction: column;
    gap: 1.25rem;
  }

  .stat-divider {
    width: 100%;
    height: 1px;
  }

  .landscape-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .landscape-gallery img:last-child {
    grid-column: span 2;
  }
}
