/* ============================================================
   TONDEROSA RANCH — Shared Stylesheet
   Color palette:
     --green:  #295F2D  (dark forest green)
     --red:    #D32815  (deep red)
     --yellow: #FFE67C  (warm gold/yellow)
     --dark:   #212121  (near black)
     --white:  #FFFFFF
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cabin', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #212121;
  background: #fff;
}

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

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

ul {
  list-style: none;
}

/* ---------- CSS Variables ---------- */
:root {
  --green:      #295F2D;
  --green-dark: #1e4721;
  --red:        #D32815;
  --red-dark:   #b02010;
  --yellow:     #FFE67C;
  --yellow-dark:#FFD940;
  --dark:       #212121;
  --white:      #ffffff;
  --nav-height: 64px;
}

/* ---------- Google Fonts ---------- */
/* Roboto (headings) + Cabin (body) — loaded in each HTML <head> */

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.25s ease;
}

.site-nav.scrolled {
  background: var(--dark);
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.nav-links a {
  font-family: 'Cabin', sans-serif;
  font-size: 0.875rem;
  color: var(--white);
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-cta {
  background: var(--green);
  color: var(--yellow) !important;
  font-weight: 700;
  padding: 0.5rem 1.25rem !important;
  border-radius: 4px;
  transition: background 0.2s !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--green-dark) !important;
}

.nav-cta::after {
  display: none !important;
}

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- Page Hero (home only) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.50);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
  max-width: 800px;
}

.hero-subtitle {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 1rem;
}

.hero-divider {
  width: 80px;
  height: 2px;
  background: var(--white);
  border: none;
  margin: 1rem auto 1.5rem;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--yellow);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Page Header (interior pages) ---------- */
.page-header {
  background: var(--green);
  padding: 6rem 1.5rem 3rem;
  text-align: center;
  color: var(--yellow);
}

.page-header h1 {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 6px;
  margin-bottom: 1.5rem;
}

.page-header .intro-text {
  font-size: clamp(1rem, 2vw, 1.1rem);
  max-width: 720px;
  margin: 0 auto 1.5rem;
  line-height: 1.75;
  color: var(--white);
}

.page-header .intro-text strong {
  color: var(--yellow);
}

.page-header .contact-line {
  font-size: 1rem;
  color: var(--yellow);
  margin-top: 1.5rem;
}

/* ---------- Section / Content Blocks ---------- */
.section {
  padding: 3rem 1.5rem;
}

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

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

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

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

.container {
  max-width: 960px;
  margin: 0 auto;
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Hunt Detail Blocks ---------- */
.hunt-block {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hunt-block:last-of-type {
  border-bottom: none;
}

.hunt-block h3 {
  font-family: 'Roboto', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-align: center;
  margin-bottom: 0.75rem;
}

.hunt-block p {
  text-align: center;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.hunt-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--yellow);
  text-align: center;
  margin-top: 0.5rem;
}

.hunt-note {
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  text-align: center;
  margin-bottom: 1.5rem;
}

.contact-block {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--yellow);
  font-size: 1rem;
  line-height: 1.8;
}

.contact-block a {
  color: var(--yellow);
}

/* ---------- Photo Grid ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* ---------- Lodge Gallery ---------- */
.lodge-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 2rem 1.5rem;
  background: var(--red);
}

.lodge-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
}

/* ---------- License / Pricing Table ---------- */
.price-table {
  margin: 2rem auto;
  max-width: 480px;
  text-align: center;
}

.price-table h3 {
  font-family: 'Roboto', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 0.75rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-weight: 600;
  color: var(--yellow);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.price-row:last-child {
  border-bottom: none;
}

.terms-text {
  text-align: center;
  color: var(--white);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.8;
}

.terms-text p {
  margin-bottom: 1.25rem;
}

.terms-highlight {
  font-weight: 700;
  color: var(--yellow);
  font-size: 1.1rem;
  text-align: center;
  margin-top: 2rem;
}

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.contact-map {
  width: 100%;
  height: 400px;
  border: none;
}

.contact-info {
  background: var(--red);
  color: var(--white);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
}

.contact-info p {
  font-size: 1rem;
  line-height: 1.7;
}

.contact-info a {
  color: var(--white);
  text-decoration: underline;
}

.contact-form-section {
  background: var(--red);
  padding: 3rem 1.5rem;
}

.contact-form-section h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 800px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.875rem;
  color: var(--yellow);
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 3px;
  padding: 0.6rem 0.75rem;
  color: var(--white);
  font-family: 'Cabin', sans-serif;
  font-size: 1rem;
  width: 100%;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-full {
  grid-column: 1 / -1;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  grid-column: 1 / -1;
}

.form-checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 2px;
  flex-shrink: 0;
}

.btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  font-family: 'Cabin', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.7rem 2rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--yellow-dark);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--yellow);
  padding: 1.25rem 1.5rem;
  text-align: left;
}

.site-footer p {
  font-size: 0.875rem;
  color: var(--dark);
}

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

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

  .contact-map {
    height: 300px;
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(33, 33, 33, 0.97);
    padding: 5rem 2rem 2rem;
    gap: 0.5rem;
    z-index: 99;
    align-items: center;
    justify-content: center;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.5rem;
    padding: 0.75rem 1rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 101;
    position: relative;
  }

  .nav-cta {
    margin-top: 1rem;
  }
}

@media (max-width: 600px) {
  .photo-grid,
  .lodge-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-header {
    padding: 5rem 1rem 2rem;
  }
}

/* ========== LIGHTBOX GALLERY ========== */
.gallery-item {
  cursor: pointer;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  color: white;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
  z-index: 1001;
}

.lightbox-close:hover {
  color: #FFE67C;
}

.lightbox-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-counter {
  color: white;
  margin-top: 1rem;
  font-size: 1rem;
  text-align: center;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
  border: none;
  font-size: 2.5rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  user-select: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  z-index: 1001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    font-size: 1.5rem;
    padding: 0.75rem 1rem;
  }

  .lightbox-close {
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
  }

  .lightbox-image {
    max-width: 95vw;
    max-height: 75vh;
  }
}
