/* =========================================
   VARIABLES
========================================= */

:root {
  --green: #17251f;
  --green-light: #24372e;

  --cream: #f2ebdd;
  --cream-dark: #e6ddcd;

  --gold: #b99a62;
  --terracotta: #a65d3f;

  --black: #151713;
  --white: #ffffff;

  --font-title: "Playfair Display", serif;
  --font-body: "DM Sans", sans-serif;
}


/* =========================================
   RESET
========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--black);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
}


/* =========================================
   HEADER
========================================= */

.header {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  z-index: 1000;

  color: white;

  transition: 0.35s ease;
}

.header.scrolled {
  background: rgba(23, 37, 31, 0.95);
  backdrop-filter: blur(15px);
}

.header-inner {
  height: 90px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-title);
  font-size: 21px;
  letter-spacing: 1px;
}

.logo span {
  display: block;
  font-size: 12px;

  font-family: var(--font-body);

  letter-spacing: 4px;
  font-weight: 400;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav a {
  font-size: 14px;
  opacity: 0.85;

  transition: 0.25s;
}

.nav a:hover {
  opacity: 1;
}


/* =========================================
   BUTTONS
========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 52px;
  padding: 0 28px;

  background: var(--gold);
  color: var(--black);

  font-size: 13px;
  font-weight: 600;

  letter-spacing: 1px;
  text-transform: uppercase;

  transition: 0.3s;
}

.btn:hover {
  background: var(--cream);
}

.btn-small {
  min-height: 44px;
  padding: 0 22px;
}

.btn-light {
  background: var(--cream);
}

.btn-light:hover {
  background: white;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: white;
}

.btn-link {
  display: inline-flex;

  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;

  border-bottom: 1px solid currentColor;

  padding-bottom: 5px;
}


/* =========================================
   MOBILE MENU
========================================= */

.menu-toggle {
  display: none;

  width: 40px;
  height: 40px;

  background: transparent;
  border: none;

  cursor: pointer;
}

.menu-toggle span {
  display: block;

  width: 24px;
  height: 1px;

  background: white;

  margin: 6px auto;

  transition: 0.3s;
}


/* =========================================
   HERO
========================================= */

.hero {
  min-height: 100vh;

  position: relative;

  display: flex;
  align-items: center;

  background:
    url("images/casa_san_miguel4.jpg")
    center / cover no-repeat;

  color: white;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(10, 15, 12, 0.72) 0%,
      rgba(10, 15, 12, 0.35) 55%,
      rgba(10, 15, 12, 0.15) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;

  padding-top: 100px;
}

.eyebrow,
.section-number {
  display: block;

  margin-bottom: 25px;

  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;

  font-family: var(--font-title);

  font-size: clamp(64px, 9vw, 125px);
  line-height: 0.87;

  font-weight: 500;
}

.hero h1 em {
  color: var(--gold);
  font-weight: 500;
}

.hero p {
  max-width: 560px;

  margin-top: 36px;

  font-size: 18px;
  font-weight: 300;

  color: rgba(255,255,255,0.82);
}

.hero-actions {
  display: flex;
  align-items: center;

  gap: 32px;

  margin-top: 42px;
}

.scroll-down {
  position: absolute;
  z-index: 2;

  bottom: 36px;
  right: 5%;

  font-size: 12px;

  letter-spacing: 2px;
  text-transform: uppercase;

  color: rgba(255,255,255,0.75);
}


/* =========================================
   GENERAL SECTIONS
========================================= */

.section {
  padding: 130px 0;
}

.section-number {
  color: var(--terracotta);
}

.section h2,
.quote-section h2,
.cta h2 {
  font-family: var(--font-title);

  font-size: clamp(42px, 6vw, 78px);
  line-height: 1;

  font-weight: 500;
}

.section-heading {
  margin-bottom: 70px;
}


/* =========================================
   HISTORY
========================================= */

.history {
  background: var(--cream);
}

.history-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(300px, 0.85fr);

  gap: 100px;
}

.history-copy {
  padding-top: 45px;
}

.history-copy p {
  font-size: 18px;
  color: #55564f;

  margin-bottom: 24px;
}


/* =========================================
   EXPERIENCE
========================================= */

.experience {
  background: var(--green);
  color: white;
}

.experience .section-number {
  color: var(--gold);
}

.experience-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 16px;
}

.experience-card {
  position: relative;

  height: 390px;

  overflow: hidden;
}

.experience-card.large {
  grid-column: span 2;
  height: 520px;
}

.experience-card img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.7s ease;
}

.experience-card:hover img {
  transform: scale(1.04);
}

.experience-card::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      transparent 30%,
      rgba(0,0,0,0.75)
    );
}

.card-overlay {
  position: absolute;

  z-index: 2;

  left: 34px;
  right: 34px;
  bottom: 30px;
}

.card-overlay span {
  font-size: 11px;
  letter-spacing: 2px;

  opacity: 0.65;
}

.card-overlay h3 {
  margin-top: 5px;

  font-family: var(--font-title);

  font-size: 35px;
  font-weight: 500;
}

.card-overlay p {
  margin-top: 8px;

  max-width: 360px;

  color: rgba(255,255,255,0.75);
}


/* =========================================
   QUOTE
========================================= */

.quote-section {
  padding: 130px 0;

  background: var(--terracotta);

  color: white;

  text-align: center;
}

.quote-section p {
  margin-bottom: 18px;

  font-size: 17px;

  text-transform: uppercase;

  letter-spacing: 2px;

  opacity: 0.75;
}

.quote-section h2 {
  max-width: 950px;

  margin: auto;
}


/* =========================================
   GALLERY
========================================= */

.gallery {
  background: var(--cream);
}

.gallery-heading {
  display: flex;

  align-items: flex-end;
  justify-content: space-between;

  gap: 30px;
}

.gallery-grid {
  display: grid;

  grid-template-columns:
    1.4fr
    1fr
    1fr;

  grid-auto-rows: 280px;

  gap: 12px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.gallery-big {
  grid-row: span 2;
}


/* =========================================
   CTA
========================================= */

.cta {
  padding: 150px 0;

  background: var(--green);

  color: white;

  text-align: center;
}

.cta-content {
  max-width: 900px;
}

.cta span {
  display: block;

  margin-bottom: 28px;

  color: var(--gold);

  text-transform: uppercase;
  letter-spacing: 3px;

  font-size: 12px;
}

.cta p {
  margin: 30px auto;

  max-width: 500px;

  font-size: 18px;

  color: rgba(255,255,255,0.7);
}


/* =========================================
   VISIT
========================================= */

.visit {
  background: var(--cream);
}

.visit-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 100px;

  align-items: center;
}

.visit-description {
  max-width: 480px;

  margin-top: 30px;

  font-size: 18px;

  color: #55564f;
}

.visit-info {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 30px;

  margin: 45px 0;
}

.visit-info > div {
  padding-top: 20px;

  border-top: 1px solid #cfc7b8;
}

.visit-info span {
  display: block;

  margin-bottom: 10px;

  font-size: 11px;

  text-transform: uppercase;

  letter-spacing: 2px;

  color: var(--terracotta);
}

.visit-actions {
  display: flex;

  gap: 12px;

  flex-wrap: wrap;
}

.visit-image {
  height: 650px;
}

.visit-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}


/* =========================================
   FOOTER
========================================= */

.footer {
  padding: 80px 0 28px;

  background: var(--black);

  color: white;
}

.footer-top {
  display: flex;

  justify-content: space-between;
  align-items: flex-start;

  padding-bottom: 60px;

  border-bottom:
    1px solid rgba(255,255,255,0.12);
}

.footer-brand {
  font-family: var(--font-title);

  font-size: 40px;

  line-height: 0.9;
}

.footer-brand span {
  display: block;

  margin-top: 12px;

  font-family: var(--font-body);

  font-size: 13px;

  letter-spacing: 6px;
}

.footer-links {
  display: flex;

  gap: 30px;
}

.footer-links a {
  font-size: 13px;

  color: rgba(255,255,255,0.7);
}

.footer-bottom {
  display: flex;

  justify-content: space-between;

  padding-top: 26px;

  font-size: 12px;

  color: rgba(255,255,255,0.45);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

  .desktop-reserve {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;

    inset: 0;

    background: var(--green);

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 30px;

    opacity: 0;
    visibility: hidden;

    transition: 0.3s;
  }

  .nav.active {
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    font-family: var(--font-title);

    font-size: 34px;
  }

  .menu-toggle {
    position: relative;
    z-index: 1001;
  }

  .history-grid,
  .visit-grid {
    grid-template-columns: 1fr;

    gap: 50px;
  }

  .history-copy {
    padding-top: 0;
  }

  .experience-card.large {
    grid-column: auto;
  }

  .experience-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-big {
    grid-row: span 1;
  }

  .visit-image {
    height: 500px;
  }

}


@media (max-width: 620px) {

  .container {
    width: min(100% - 32px, 1180px);
  }

  .section {
    padding: 90px 0;
  }

  .header-inner {
    height: 75px;
  }

  .hero {
    min-height: 92vh;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;

    gap: 24px;
  }

  .scroll-down {
    display: none;
  }

  .experience-grid {
    grid-template-columns: 1fr;
  }

  .experience-card,
  .experience-card.large {
    height: 420px;
  }

  .gallery-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 380px;
  }

  .visit-info {
    grid-template-columns: 1fr;
  }

  .visit-image {
    height: 420px;
  }

  .footer-top {
    flex-direction: column;

    gap: 50px;
  }

  .footer-links {
    flex-direction: column;

    gap: 14px;
  }

  .footer-bottom {
    flex-direction: column;

    gap: 8px;
  }

}