/* ===================================
   WARREN HOUSE — Luxury Holiday Rental
   Warm & Inviting Design System
   =================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
  --color-teal: #2A3D45;
  --color-teal-light: #3A5A68;
  --color-copper: #C4834C;
  --color-copper-light: #D4A373;
  --color-cream: #F5F0EB;
  --color-warm-white: #FAF8F5;
  --color-charcoal: #1A1A2E;
  --color-text: #3A3A3A;
  --color-text-light: #6B6B6B;
  --color-white: #FFFFFF;
  --color-gold: #B8860B;
  --color-border: #E8E2DB;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1400px;
  --header-height: 80px;

  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.2s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-warm-white);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-charcoal);
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p {
  margin-bottom: 1.2em;
  font-size: 1rem;
  color: var(--color-text);
}

.subtitle {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-copper);
  margin-bottom: 0.8rem;
}

.section-intro {
  max-width: 680px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section--cream {
  background-color: var(--color-cream);
}

.section--teal {
  background-color: var(--color-teal);
  color: var(--color-cream);
}

.section--teal h2,
.section--teal h3,
.section--teal h4 {
  color: var(--color-cream);
}

.section--teal p {
  color: rgba(245, 240, 235, 0.8);
}

.section--teal .subtitle {
  color: var(--color-copper-light);
}

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

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
  background: transparent;
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--color-border);
}

.header--scrolled .logo {
  color: var(--color-charcoal);
}

.header--scrolled .nav-link {
  color: var(--color-text);
}

.header--scrolled .nav-link:hover,
.header--scrolled .nav-link--active {
  color: var(--color-copper);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--color-white);
  letter-spacing: 0.02em;
  transition: var(--transition-fast);
}

.logo span {
  font-weight: 300;
  font-style: italic;
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: -2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-copper);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link--active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link--active {
  color: var(--color-white);
}

.nav-link--cta {
  background: var(--color-copper);
  color: var(--color-white) !important;
  padding: 0.6rem 1.6rem;
  border-radius: 2px;
  font-weight: 500;
}

.nav-link--cta::after {
  display: none;
}

.nav-link--cta:hover {
  background: var(--color-copper-light);
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition-fast);
}

.header--scrolled .hamburger span {
  background: var(--color-charcoal);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 46, 0.3) 0%,
    rgba(26, 26, 46, 0.15) 40%,
    rgba(26, 26, 46, 0.4) 100%
  );
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--color-white);
  max-width: 800px;
  padding: 0 2rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  color: var(--color-white);
  line-height: 1.05;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero__tagline {
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 2.5rem;
}

.hero__scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--color-white);
  opacity: 0.7;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero__scroll svg {
  width: 24px;
  height: 24px;
}

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

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}

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

.btn--primary:hover {
  background: var(--color-copper-light);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
}

.btn--dark {
  background: var(--color-teal);
  color: var(--color-white);
}

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

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Image Grid / Cards --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.feature-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: var(--color-white);
}

.feature-card__overlay h3 {
  color: var(--color-white);
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.feature-card__overlay p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin: 0;
}

/* Two-column feature layout */
.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 500px;
}

.split-feature--reverse {
  direction: rtl;
}

.split-feature--reverse > * {
  direction: ltr;
}

.split-feature__image {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
}

.split-feature__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 5rem;
}

.split-feature__content h2 {
  margin-bottom: 1.5rem;
}

.split-feature__content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* --- Amenity Icons --- */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.amenity {
  text-align: center;
}

.amenity__icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  color: var(--color-copper);
}

.amenity h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.amenity p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 0;
}

/* --- Gallery Filter --- */
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.gallery-filter__btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text-light);
  cursor: pointer;
  border-radius: 2px;
  transition: var(--transition-fast);
}

.gallery-filter__btn:hover {
  border-color: var(--color-copper);
  color: var(--color-copper);
}

.gallery-filter__btn--active {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: var(--color-white);
}

.gallery-filter__btn--active:hover {
  background: var(--color-teal-light);
  border-color: var(--color-teal-light);
  color: var(--color-white);
}

/* --- Gallery Room Sections --- */
.gallery-room__header {
  margin-bottom: 2.5rem;
}

.gallery-room__header .subtitle {
  margin-bottom: 0.5rem;
}

.gallery-room__header h2 {
  margin-bottom: 1rem;
}

.gallery-room__desc {
  max-width: 750px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-light);
}

.gallery-grid--rooms {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.gallery-grid--rooms .gallery-grid__item {
  aspect-ratio: 3/2;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.gallery-grid__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

.gallery-grid__item--wide {
  grid-column: span 2;
}

.gallery-grid__item--tall {
  grid-row: span 2;
}

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

.gallery-grid__item:hover img {
  transform: scale(1.08);
}

.gallery-grid__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: var(--transition-smooth);
}

.gallery-grid__item:hover::after {
  background: rgba(0,0,0,0.15);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox--active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition-fast);
}

.lightbox__close:hover {
  opacity: 1;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 1.5rem;
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lightbox__nav:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

/* --- Video Page --- */
.video-hero {
  position: relative;
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 6rem;
  background: var(--color-charcoal);
  text-align: center;
}

.video-container {
  position: relative;
  max-width: 1100px;
  margin: 3rem auto 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-container video {
  width: 100%;
  display: block;
}

/* --- Booking / Availability --- */
.booking-embed {
  max-width: 900px;
  margin: 2rem auto;
  min-height: 500px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-text-light);
}

/* --- Testimonials --- */
.testimonial {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 0;
}

.testimonial__quote {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--color-charcoal);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.testimonial__author {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-copper);
}

/* --- Location Map --- */
.map-container {
  width: 100%;
  height: 450px;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 2rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  background: var(--color-white);
  color: var(--color-text);
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-copper);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer__logo span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.5;
  font-style: italic;
  font-weight: 300;
}

.footer h4 {
  color: var(--color-white);
  font-size: 0.82rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-fast);
  font-size: 0.95rem;
}

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

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 0.6rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* --- Page Header (inner pages) --- */
.page-header {
  position: relative;
  padding: calc(var(--header-height) + 5rem) 0 5rem;
  text-align: center;
  overflow: hidden;
}

.page-header--image {
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-header__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-header__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.5);
  z-index: 2;
}

.page-header__content {
  position: relative;
  z-index: 3;
}

.page-header h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

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

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

/* --- Divider --- */
.divider {
  width: 60px;
  height: 1px;
  background: var(--color-copper);
  margin: 1.5rem auto;
}

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

  .split-feature {
    grid-template-columns: 1fr;
  }

  .split-feature__content {
    padding: 3rem 2rem;
  }

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

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

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

  .nav--mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--color-charcoal);
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 999;
  }

  .nav--mobile-open .nav-link {
    color: var(--color-white);
    font-size: 1.2rem;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .section {
    padding: 4rem 0;
  }

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

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

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

  .gallery-grid__item--wide {
    grid-column: span 2;
  }

  .gallery-grid__item--tall {
    grid-row: span 1;
  }

  .gallery-filter {
    gap: 0.4rem;
  }

  .gallery-filter__btn {
    font-size: 0.7rem;
    padding: 0.5rem 0.9rem;
  }

  .gallery-room__desc {
    font-size: 0.95rem;
  }

  .split-feature__content {
    padding: 2.5rem 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .page-header {
    padding: calc(var(--header-height) + 3rem) 0 3rem;
  }

  .page-header--image {
    min-height: 35vh;
  }

  .hero {
    min-height: 500px;
  }

  .hero__tagline {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2.5rem;
  }

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

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

  .gallery-grid__item--wide {
    grid-column: span 1;
  }

  .gallery-filter {
    flex-direction: column;
    align-items: center;
  }

  .gallery-filter__btn {
    width: 100%;
    max-width: 200px;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .container {
    padding: 0 1.2rem;
  }

  .lightbox__nav--prev { left: 0.5rem; }
  .lightbox__nav--next { right: 0.5rem; }
  .lightbox__close { top: 1rem; right: 1rem; }
}
