:root {
  --gold: #d4a64a;
  --stone: #e8d3a4;
  --burgundy: #6b1027;
  --burgundy-2: #8a1733;
  --warm-white: #fff8ec;
  --paper: #fbf7ee;
  --black: #111111;
  --soft-black: #24211e;
  --gray: #e7e1d7;
  --muted: #6d665d;
  --shadow: 0 22px 60px rgba(17, 17, 17, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--soft-black);
  background: var(--paper);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 48px);
  color: var(--warm-white);
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(17, 17, 17, 0.88);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: clamp(138px, 16vw, 218px);
  height: auto;
  max-height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 26px);
  font-size: 0.92rem;
}

.main-nav a,
.footer-links a,
.facebook-link,
.email-link {
  text-decoration: none;
}

.main-nav a {
  color: rgba(255, 248, 236, 0.88);
}

.main-nav a:hover,
.facebook-link:hover,
.email-link:hover {
  color: var(--gold);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 248, 236, 0.32);
  background: rgba(0, 0, 0, 0.18);
  color: var(--warm-white);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--warm-white);
  background: var(--black);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.78), rgba(17, 17, 17, 0.34) 48%, rgba(17, 17, 17, 0.1)),
    linear-gradient(0deg, rgba(17, 17, 17, 0.9), rgba(17, 17, 17, 0.05) 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: 180px 0 210px;
  transform: translateX(calc((min(100vw, var(--max)) - min(760px, calc(100vw - 36px))) / -2));
}

.hero-logo {
  width: min(280px, 70vw);
  height: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.46));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 10ch;
  font-size: clamp(4rem, 11vw, 8.7rem);
}

h2 {
  font-size: clamp(2.15rem, 5vw, 4.5rem);
  color: var(--black);
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
}

.hero-subtitle {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 248, 236, 0.92);
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--gold);
  color: #18130c;
}

.button.secondary {
  border-color: rgba(255, 248, 236, 0.5);
  color: var(--warm-white);
  background: rgba(255, 255, 255, 0.08);
}

.button.full {
  width: 100%;
}

.hero-metrics {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 5vw, 54px);
  bottom: 26px;
  left: clamp(18px, 5vw, 54px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 248, 236, 0.22);
  background: rgba(17, 17, 17, 0.2);
  backdrop-filter: blur(12px);
}

.hero-metrics div {
  padding: 18px 22px;
  border-right: 1px solid rgba(255, 248, 236, 0.18);
}

.hero-metrics div:last-child {
  border-right: 0;
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.hero-metrics span {
  color: rgba(255, 248, 236, 0.76);
  font-size: 0.92rem;
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 124px) 0;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 36px;
}

.section-heading p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.card-grid,
.monetization-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.content-card,
.reel-card,
.money-card,
.place-card {
  overflow: hidden;
  border: 1px solid rgba(36, 33, 30, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 248, 236, 0.76);
  box-shadow: 0 16px 40px rgba(17, 17, 17, 0.08);
}

.content-card img {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
}

.card-body,
.reel-card,
.money-card,
.place-card {
  padding: 22px;
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--burgundy);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.content-card p,
.reel-card p,
.money-card p,
.place-card p,
.booking-panel p,
.contact-copy p,
.community p {
  color: var(--muted);
}

.read-more {
  display: inline-flex;
  margin-top: 12px;
  color: var(--burgundy);
  font-weight: 900;
  text-decoration: none;
}

.tourism {
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100vw - var(--max)) / 2));
  background: #15120f;
}

.tourism h2,
.tourism h3 {
  color: var(--warm-white);
}

.tourism .section-heading p:not(.eyebrow),
.tourism .place-card p,
.tourism .booking-panel p {
  color: rgba(255, 248, 236, 0.72);
}

.tourism-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.place-card,
.booking-panel {
  border-color: rgba(255, 248, 236, 0.12);
  background: rgba(255, 248, 236, 0.08);
  box-shadow: none;
}

.booking-panel {
  position: sticky;
  top: 90px;
  align-self: start;
  padding: 26px;
  border: 1px solid rgba(255, 248, 236, 0.13);
  border-radius: var(--radius);
}

.gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  grid-auto-rows: 210px;
  gap: 12px;
}

.gallery-item {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--black);
  color: var(--warm-white);
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 17, 17, 0.78), rgba(17, 17, 17, 0.08));
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.98) contrast(1.05);
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(4) {
  grid-row: span 2;
}

.gallery-caption {
  position: absolute;
  inset: auto 18px 16px;
  z-index: 1;
}

.gallery-caption strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.reel-card {
  position: relative;
}

.reel-card::before {
  content: "";
  display: block;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, var(--gold), var(--burgundy));
}

.views {
  display: inline-flex;
  margin-top: 8px;
  color: var(--burgundy);
  font-weight: 900;
}

.monetization {
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100vw - var(--max)) / 2));
  background: var(--warm-white);
}

.money-card {
  background: #ffffff;
}

.community {
  padding: clamp(70px, 11vw, 120px) max(18px, calc((100vw - var(--max)) / 2));
  color: var(--warm-white);
  background:
    linear-gradient(90deg, rgba(107, 16, 39, 0.96), rgba(17, 17, 17, 0.85)),
    url("../images/salamanca-hero.png") center/cover;
}

.community-content {
  max-width: 760px;
}

.community h2 {
  color: var(--warm-white);
}

.newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 620px;
  margin-top: 28px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(36, 33, 30, 0.16);
  border-radius: var(--radius);
  padding: 12px 14px;
  font: inherit;
  color: var(--soft-black);
  background: #fffdf8;
}

textarea {
  resize: vertical;
}

.facebook-link,
.email-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--gold);
  font-weight: 900;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(36, 33, 30, 0.09);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--burgundy);
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 34px max(18px, calc((100vw - var(--max)) / 2));
  color: rgba(255, 248, 236, 0.78);
  background: var(--black);
}

.footer-logo {
  width: 170px;
  height: auto;
  margin-bottom: 10px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}

.site-footer strong {
  color: var(--warm-white);
}

.site-footer p {
  max-width: 520px;
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
    z-index: 32;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 31;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 20px;
    background: rgba(17, 17, 17, 0.96);
    transform: translateX(100%);
    transition: transform 180ms ease;
    font-size: 1.25rem;
  }

  body.nav-open .main-nav {
    transform: translateX(0);
  }

  .hero-content {
    transform: none;
    padding-bottom: 240px;
  }

  .card-grid,
  .monetization-grid,
  .tourism-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .booking-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .brand-logo {
    width: 132px;
    max-height: 48px;
  }

  .hero {
    min-height: 860px;
  }

  .hero-content {
    width: min(100% - 32px, 760px);
    padding-top: 140px;
  }

  h1 {
    font-size: clamp(3.4rem, 17vw, 5.6rem);
  }

  .hero-metrics,
  .feature-list,
  .gallery,
  .newsletter-form,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    display: grid;
  }

  .hero-metrics div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 248, 236, 0.18);
    padding: 14px 16px;
  }

  .gallery {
    grid-auto-rows: 240px;
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4) {
    grid-row: span 1;
  }

  .button {
    width: 100%;
  }
}
