/* ===========================
   MARFA.CO — Stylesheet
   =========================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --sand: #f5f0e8;
  --dusk: #2c2416;
  --rust: #b85c2a;
  --clay: #8b6f5c;
  --sky: #c8d8e4;
  --white: #faf9f7;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
}

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

body {
  background: var(--white);
  color: var(--dusk);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  background-color: var(--dusk);
  background-image: linear-gradient(to bottom, rgba(44,36,22,0.55) 0%, rgba(44,36,22,0.4) 60%, rgba(44,36,22,0.7) 100%),
                    url('img/hero.jpg');
  background-size: cover;
  background-position: center 40%;
  color: var(--sand);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
}

.hero-inner {
  max-width: 720px;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.6);
  margin-bottom: 2rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--sand);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero h1 em {
  font-style: italic;
  color: #e8a07a;
}

.tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(245, 240, 232, 0.8);
  max-width: 540px;
  margin: 0 auto;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  font-size: 1.25rem;
  color: rgba(245, 240, 232, 0.35);
  animation: bob 2s ease-in-out infinite;
}

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

/* ---- SHARED ---- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--dusk);
}

/* ---- INTRO ---- */
.intro {
  background: var(--sand);
  padding: 5rem 0;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.8;
  color: var(--dusk);
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 400;
}

/* ---- PILLARS ---- */
.pillars {
  background: var(--white);
}

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

.pillar {
  border-top: 2px solid var(--rust);
  padding-top: 1.5rem;
}

.pillar-icon {
  font-size: 1.5rem;
  color: var(--rust);
  margin-bottom: 0.75rem;
  opacity: 0.6;
}

.pillar p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.75;
}

/* ---- GALLERY ---- */
.gallery {
  padding: 0;
  background: var(--dusk);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 4px;
}

.gallery-item {
  overflow: hidden;
  aspect-ratio: 4/3;
  margin: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

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

/* ---- QUOTE BAND ---- */
.quote-band {
  background: var(--dusk);
  padding: 5rem 0;
}

blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--sand);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
  opacity: 0.9;
}

/* ---- VISIT ---- */
.visit {
  background: var(--sand);
}

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

.visit ul {
  list-style: none;
  padding: 0;
}

.visit li {
  border-bottom: 1px solid rgba(44, 36, 22, 0.12);
  padding: 0.75rem 0;
  font-size: 0.95rem;
  color: #444;
}

.visit li:last-child {
  border-bottom: none;
}

.visit strong {
  color: var(--dusk);
  font-weight: 500;
}

/* ---- PHOTO DIVIDER ---- */
.photo-divider {
  height: 420px;
  background-size: cover;
  background-position: center 60%;
  background-attachment: fixed;
  position: relative;
}

.photo-divider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(44,36,22,0.2), rgba(44,36,22,0.4));
}

/* ---- RANCH SECTION ---- */
.ranch-section {
  background: var(--white);
  padding: 6rem 0;
}

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

.ranch-img img {
  width: 100%;
  display: block;
  border-radius: 2px;
  filter: grayscale(20%);
}

.ranch-text p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.8;
}

/* ---- DOMAIN CTA ---- */
.domain-cta {
  background: var(--rust);
  color: var(--white);
  text-align: center;
  padding: 6rem 0;
}

.cta-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 1rem;
}

.domain-cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 1.25rem;
}

.domain-cta p {
  font-size: 1.05rem;
  opacity: 0.88;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.domain-cta em {
  font-style: normal;
  font-weight: 500;
  opacity: 1;
}

.btn {
  display: inline-block;
  background: var(--white);
  color: var(--rust);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 1rem 2.5rem;
  border-radius: 2px;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.88;
}

/* ---- FOOTER ---- */
footer {
  background: var(--dusk);
  color: rgba(245, 240, 232, 0.4);
  text-align: center;
  padding: 2rem 0;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-large {
    grid-column: span 2;
  }
  .gallery-wide {
    grid-column: span 2;
  }
  .ranch-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  section {
    padding: 4rem 0;
  }
  .photo-divider {
    height: 280px;
    background-attachment: scroll;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-large,
  .gallery-wide {
    grid-column: span 1;
  }
}
