/* ===========================================================
   Lake Worth RV Ranch — peaceful pastoral landing page
   Palette: warm cream, sepia/wagon brown, bluebonnet blue,
            sage cactus green, gentle prairie-gold accents.
   =========================================================== */

:root {
  --cream:        #fbf3d6;
  --cream-deep:   #f1e3bb;
  --sand:         #e9d9b0;
  --paper:        #fffbf1;

  --brown:        #6b4226;   /* matches the logo lettering */
  --brown-deep:   #4a2c18;
  --ink:          #3c2a1c;

  --bluebonnet:   #455ea0;
  --bluebonnet-d: #324377;
  --sage:         #6f9162;
  --sage-deep:    #4f6b47;
  --gold:         #cc8f33;
  --terracotta:   #bd6a38;

  --shadow: 0 18px 40px -22px rgba(74, 44, 24, 0.45);
  --radius: 20px;

  --display: "Fraunces", Georgia, serif;
  --body: "Mulish", system-ui, sans-serif;
  --western: "Rye", "Fraunces", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 50% -10%, #fffdf2 0%, var(--cream) 42%, var(--cream-deep) 100%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--bluebonnet-d); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--brown-deep); margin: 0; line-height: 1.1; }

section { position: relative; }

.label {
  font-family: var(--western);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--terracotta);
  display: inline-block;
  margin-bottom: 0.85rem;
}
.label-light { color: #f0d49a; }

/* ---------- Buttons ---------- */
.btn {
  --pad: 0.85rem 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: var(--pad);
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn-primary {
  background: var(--brown);
  color: var(--cream);
  box-shadow: 0 10px 24px -12px rgba(74, 44, 24, 0.8);
}
.btn-primary:hover { background: var(--brown-deep); transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(74, 44, 24, 0.85); }
.btn-ghost {
  background: transparent;
  color: var(--brown);
  border-color: rgba(107, 66, 38, 0.4);
}
.btn-ghost:hover { background: rgba(107, 66, 38, 0.08); border-color: var(--brown); transform: translateY(-2px); }

/* ---------- Barbed-wire fence line ----------
   Tileable SVG strip (two twisted strands + barbs) repeated across the width.
   A warm-cream variant rides on the dark ranch-life band. */
.barbed {
  height: 26px;
  background:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='84'%20height='28'%20viewBox='0%200%2084%2028'%3E%3Cg%20fill='none'%20stroke='%236b4226'%20stroke-width='2'%20stroke-linecap='round'%3E%3Cpath%20d='M0,9C21,9,21,19,42,19,63,19,63,9,84,9'/%3E%3Cpath%20d='M0,19C21,19,21,9,42,9,63,9,63,19,84,19'/%3E%3Cpath%20d='M14,5L28,23M28,5L14,23'/%3E%3Cpath%20d='M56,5L70,23M70,5L56,23'/%3E%3C/g%3E%3C/svg%3E")
    repeat-x center;
  background-size: 84px 26px;
  opacity: 0.85;
}
.barbed-light {
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='84'%20height='28'%20viewBox='0%200%2084%2028'%3E%3Cg%20fill='none'%20stroke='%23ecd49a'%20stroke-width='2.2'%20stroke-linecap='round'%3E%3Cpath%20d='M0,9C21,9,21,19,42,19,63,19,63,9,84,9'/%3E%3Cpath%20d='M0,19C21,19,21,9,42,9,63,9,63,19,84,19'/%3E%3Cpath%20d='M14,5L28,23M28,5L14,23'/%3E%3Cpath%20d='M56,5L70,23M70,5L56,23'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.7;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(251, 243, 214, 0.84);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(107, 66, 38, 0.12);
}
.brand img { height: 52px; width: auto; mix-blend-mode: multiply; }
.topnav { display: flex; align-items: center; gap: clamp(0.6rem, 2vw, 1.6rem); }
.topnav a {
  text-decoration: none;
  color: var(--brown);
  font-weight: 600;
  font-size: 0.95rem;
}
.topnav a:not(.nav-fb):hover { color: var(--terracotta); }
.nav-phone { white-space: nowrap; }
.nav-fb {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bluebonnet);
  color: #fff !important;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  transition: background 0.18s ease, transform 0.18s ease;
}
.nav-fb:hover { background: var(--bluebonnet-d); transform: translateY(-1px); }
.nav-fb svg { fill: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 5vw, 3rem) 0;
  overflow: hidden;
}
.hero-haze {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 12%, rgba(217, 154, 58, 0.18), transparent 70%),
    radial-gradient(55% 45% at 12% 30%, rgba(69, 94, 160, 0.10), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: clamp(7rem, 16vw, 11rem);
}
.eyebrow {
  font-family: var(--western);
  font-size: clamp(0.78rem, 2vw, 0.95rem);
  letter-spacing: 0.03em;
  color: var(--sage-deep);
  margin: 0 0 1.4rem;
}
.hero-logo img {
  width: clamp(220px, 42vw, 340px);
  margin: 0 auto 1.5rem;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 14px 22px rgba(74, 44, 24, 0.18));
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-title {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.1rem;
  animation: rise 0.9s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--brown);
  max-width: 56ch;
  margin: 0 auto 2rem;
  animation: rise 0.9s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: rise 0.9s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* decorative cactus */
.deco { position: absolute; pointer-events: none; z-index: 1; }
.cactus-left  { left: clamp(-40px, -2vw, 0px); bottom: 60px; width: clamp(120px, 16vw, 200px); }
.cactus-right { right: -30px; bottom: -10px; width: clamp(120px, 16vw, 210px); opacity: 0.92; }

/* decorative windmill, hero right side */
.windmill-right {
  right: clamp(-10px, 2vw, 40px);
  bottom: 40px;
  width: clamp(90px, 12vw, 150px);
  opacity: 0.9;
  filter: drop-shadow(0 10px 16px rgba(74, 44, 24, 0.16));
}
@media (max-width: 600px) { .windmill-right { display: none; } }

/* wildflowers (bluebonnets + Indian paintbrush) along the bottom of the hero */
.wildflower-row {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(0.5rem, 3vw, 2.5rem);
  padding: 0 1rem;
}
.wildflower-row svg { width: clamp(46px, 7vw, 78px); height: auto; filter: drop-shadow(0 6px 8px rgba(50, 67, 119, 0.18)); }
.wildflower-row .wf-paint { filter: drop-shadow(0 6px 8px rgba(168, 48, 26, 0.22)); }
.wildflower-row .bb-tall  { transform: scaleY(1.18) translateY(-4px); }
.wildflower-row .bb-short { transform: scale(0.82) translateY(8px); }

/* ---------- Welcome ---------- */
.welcome {
  background: linear-gradient(180deg, var(--cream-deep) 0%, var(--cream) 100%);
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 5vw, 3rem);
}
.star-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 420px;
  margin: 0 auto clamp(2.2rem, 5vw, 3rem);
}
.star-divider .rule {
  height: 2px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(107, 66, 38, 0.45));
}
.star-divider .rule:last-child { background: linear-gradient(90deg, rgba(107, 66, 38, 0.45), transparent); }
.star-divider svg { width: 26px; height: 26px; flex: none; opacity: 0.9; }
.welcome-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.welcome-copy h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.welcome-copy p { color: var(--brown); margin: 0 0 1rem; }

.welcome-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.welcome-cards li {
  background: var(--paper);
  border: 1px solid rgba(107, 66, 38, 0.12);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.welcome-cards li:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -22px rgba(74,44,24,0.5); }
.welcome-cards svg { width: 48px; height: 48px; grid-row: 1 / 3; align-self: start; }
.welcome-cards h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.welcome-cards p { margin: 0; font-size: 0.96rem; color: var(--brown); }

/* ---------- Photo gallery ---------- */
.gallery {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 5vw, 3rem);
}
.gallery-head { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.gallery-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.7rem; }
.gallery-head p { color: var(--brown); margin: 0; }

/* collage: lead photo claims a 2x2 block, four supporting tiles fill the rest */
.collage {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: clamp(0.5rem, 1.4vw, 0.9rem);
}
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(107, 66, 38, 0.14);
  box-shadow: var(--shadow);
  background: var(--sand);
  aspect-ratio: 1 / 1;
}
.tile-lead { grid-column: 1 / 3; grid-row: 1 / 3; aspect-ratio: auto; }
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.tile:hover img, .tile:focus-visible img { transform: scale(1.06); }
.tile-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(0deg, rgba(60, 42, 28, 0.45), rgba(60, 42, 28, 0) 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.tile:hover .tile-zoom, .tile:focus-visible .tile-zoom { opacity: 1; }
.tile-zoom svg { width: 38px; height: 38px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4)); }
.tile:focus-visible { outline: 3px solid var(--bluebonnet); outline-offset: 3px; }

/* ---------- Lightbox (CSS-only, via :target) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(36, 24, 15, 0.86);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox:target {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.lb-backdrop { position: absolute; inset: 0; cursor: zoom-out; }
.lb-figure {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: min(1000px, 100%);
  transform: scale(0.96);
  transition: transform 0.3s ease;
}
.lightbox:target .lb-figure { transform: scale(1); }
.lb-figure img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7);
}
.lb-figure figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
  color: var(--cream);
  font-family: var(--display);
  font-size: 1.05rem;
}
.lb-figure figcaption span {
  font-family: var(--western);
  font-size: 0.78rem;
  opacity: 0.7;
}
.lb-close, .lb-nav {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  background: rgba(107, 66, 38, 0.55);
  border: 1px solid rgba(250, 242, 223, 0.3);
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}
.lb-close {
  top: clamp(0.8rem, 3vw, 1.6rem);
  right: clamp(0.8rem, 3vw, 1.6rem);
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
}
.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}
.lb-prev { left: clamp(0.6rem, 3vw, 1.6rem); }
.lb-next { right: clamp(0.6rem, 3vw, 1.6rem); }
.lb-close:hover, .lb-nav:hover { background: var(--brown); transform: translateY(-2px); }
.lb-nav:hover { transform: translateY(-50%) scale(1.08); }

/* ---------- Ranch life band ---------- */
.ranchlife {
  position: relative;
  background:
    linear-gradient(170deg, var(--sage-deep) 0%, #3f5c39 100%);
  color: #f4ecd8;
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1rem, 5vw, 3rem);
  overflow: hidden;
}
.ranchlife::before {
  /* soft grain / texture overlay */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.6;
  pointer-events: none;
}
.ranchlife-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; text-align: center; }
.ranchlife .barbed-top    { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
.ranchlife .barbed-bottom { position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; }
.ranchlife h2 { color: #fff8e9; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.ranchlife p { color: #ece2cb; font-size: clamp(1.02rem, 2.2vw, 1.18rem); margin: 0; }
.ranchlife .cactus-right { bottom: -20px; right: clamp(-40px, 0vw, 20px); opacity: 0.35; z-index: 1; }
.wheel-deco {
  left: clamp(-30px, 1vw, 30px);
  top: clamp(-26px, -1vw, -10px);
  width: clamp(90px, 12vw, 150px);
  color: #f4ecd8;
  opacity: 0.16;
  z-index: 1;
}

/* ---------- Apply ---------- */
.apply {
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 5vw, 3rem);
}
.apply-card {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid rgba(107, 66, 38, 0.14);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.apply-card::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 8px;
  background: linear-gradient(180deg, var(--gold), var(--terracotta));
}
.shoe-deco {
  right: clamp(-14px, 1vw, 18px);
  top: clamp(-16px, -1vw, -6px);
  width: clamp(60px, 8vw, 92px);
  opacity: 0.12;
  z-index: 0;
  transform: rotate(14deg);
}
.apply-text, .apply-aside { position: relative; z-index: 1; }
.apply-text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.9rem; }
.apply-text p { color: var(--brown); margin: 0 0 1.4rem; }
.apply-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.apply-note { font-size: 0.95rem; color: var(--sage-deep); margin: 0; }
.apply-aside { display: flex; justify-content: center; }
.apply-aside svg { width: clamp(110px, 18vw, 150px); height: auto; filter: drop-shadow(0 14px 20px rgba(74,44,24,0.2)); }

/* ---------- Footer ---------- */
.footer {
  background: var(--brown-deep);
  color: var(--cream);
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1rem, 5vw, 3rem) 1.6rem;
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-logo { height: 72px; width: auto; background: var(--cream); padding: 6px 10px; border-radius: 12px; }
.footer-contact { color: var(--cream); font-size: 0.92rem; line-height: 1.5; }
.footer-contact p { margin: 0; }
.footer-addr { font-weight: 600; }
.footer-reach { margin-top: 0.35rem !important; opacity: 0.9; }
.footer-reach a { color: var(--cream); text-decoration: none; }
.footer-reach a:hover { text-decoration: underline; }
.footer-reach span { margin: 0 0.4rem; opacity: 0.6; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-links a { color: var(--cream); text-decoration: none; font-weight: 600; opacity: 0.9; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.footer-fb {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bluebonnet);
  color: #fff;
  transition: background 0.18s ease, transform 0.18s ease;
}
.footer-fb:hover { background: var(--bluebonnet-d); transform: translateY(-2px); }
.footer-fine {
  max-width: 1000px;
  margin: 1.8rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(250, 242, 223, 0.18);
  font-size: 0.85rem;
  opacity: 0.75;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .welcome-grid { grid-template-columns: 1fr; }
  .apply-card { grid-template-columns: 1fr; }
  .apply-aside { order: -1; }
  .topnav a:not(.nav-fb) { display: none; }
  .collage { grid-template-columns: repeat(2, 1fr); }
  .tile-lead { grid-column: 1 / 3; grid-row: auto; aspect-ratio: 16 / 10; }
}
@media (max-width: 520px) {
  .hero-actions .btn, .apply-actions .btn { width: 100%; justify-content: center; }
  .wildflower-row { gap: 0.2rem; }
  .lb-nav { width: 44px; height: 44px; font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
}
