/* ============================================================
   DESTINY RANCH EVENTS — Rustic Modern
   Palette: cream/ivory · warm taupe · deep brown · sage · terracotta
   Type: Cormorant Garamond (display) + Jost (body)
   ============================================================ */

:root {
  --ivory: #fdfbf7;
  --cream: #f6f1e8;
  --linen: #efe8db;
  --taupe: #9a8570;
  --bark: #5c4a38;
  --ink: #372c21;
  --sage: #7c8266;
  --sage-deep: #5d644b;
  --terra: #bf7048;
  --terra-deep: #a85c38;
  --line: #e3dacb;
  --shadow: 0 18px 45px -18px rgba(55, 44, 33, 0.25);
  --radius: 14px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background-color: var(--ivory);
  /* subtle linen texture */
  background-image:
    repeating-linear-gradient(0deg, rgba(154, 133, 112, 0.028) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(154, 133, 112, 0.028) 0 1px, transparent 1px 3px);
  line-height: 1.65;
  font-size: 1.06rem;
}

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

a { color: var(--sage-deep); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--terra); }

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}
.container-narrow { width: min(820px, 92%); }

/* ============ TYPE ============ */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 5.4vw, 4.3rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.35rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.9rem;
}

.section-sub {
  max-width: 640px;
  margin: 1rem auto 0;
  color: var(--bark);
}

.section-note {
  text-align: center;
  margin-top: 2.2rem;
  color: var(--bark);
}

/* ============ BUTTONS ============ */
.button {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.28s ease;
}

.button-primary {
  background: var(--terra);
  color: #fff;
}
.button-primary:hover {
  background: var(--terra-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(168, 92, 56, 0.55);
}

.button-outline {
  background: transparent;
  color: var(--sage-deep);
  border-color: var(--sage);
}
.button-outline:hover {
  background: var(--sage);
  color: #fff;
  transform: translateY(-2px);
}

/* ============ SOCIAL BAR ============ */
.social-bar { display: flex; gap: 0.55rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #d9cfc2;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}
.social-link svg { width: 15px; height: 15px; }
.social-link:hover { background: var(--terra); color: #fff; transform: translateY(-2px); }

/* ============ HEADER / NAV ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.header.scrolled { box-shadow: 0 8px 30px -18px rgba(55, 44, 33, 0.35); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  height: 54px;
  overflow: hidden;
  flex: 0 0 auto;
}
/* logo PNG has large built-in margins; oversize and clip to trim them */
.brand-logo {
  height: 110px;
  width: auto;
  max-width: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav a { white-space: nowrap; }
.nav a:not(.social-link) {
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bark);
  position: relative;
  padding: 0.3rem 0;
}
.nav a:not(.social-link)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--terra);
  transition: width 0.28s ease;
}
.nav a:not(.social-link):hover { color: var(--ink); }
.nav a:not(.social-link):hover::after { width: 100%; }

.nav-socials { margin-left: 0.3rem; }
.nav .social-link {
  color: var(--bark);
  background: var(--linen);
}
.nav .social-link:hover { background: var(--terra); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: all 0.3s ease;
}

/* ============ HERO ============ */
.hero {
  display: block;
  line-height: 0;
  background: var(--ink);
}
.hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============ SECTIONS ============ */
.section { padding: 6rem 0; }
.section-tinted {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.4rem;
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ ABOUT ============ */
.about-copy {
  max-width: 62rem;
  margin: 0 auto;
}
.about-copy p { margin-bottom: 1.2rem; color: var(--bark); }
.about-copy strong { font-weight: 500; color: var(--ink); }

.about-details {
  list-style: none;
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 2.4rem;
}
.about-details li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--ink);
  font-weight: 400;
}
.about-details li::before {
  content: "❧";
  position: absolute;
  left: 0;
  color: var(--sage);
}

.about-banner {
  margin-top: 3rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid #fff;
}
.about-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.stat-band {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2.4rem 2rem;
  background: var(--sage-deep);
  border-radius: var(--radius);
  color: #eef0e6;
  text-align: center;
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
}
.stat-label {
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  opacity: 0.9;
}

/* ============ PRICING ============ */
.rate-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.rate-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.6rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.rate-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.rate-featured {
  background: var(--ink);
  border-color: var(--ink);
  color: #efe8db;
  position: relative;
}
.rate-featured::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--terra);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}
.rate-day {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 0.8rem;
}
.rate-featured .rate-day { color: #cbb9a4; }
.rate-price {
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}
.rate-featured .rate-price { color: #fff; }
.rate-range { font-size: 1.5rem; }
.rate-note { margin-top: 0.7rem; font-size: 0.9rem; color: var(--taupe); }
.rate-featured .rate-note { color: #cbb9a4; }

.rate-disclaimer {
  text-align: center;
  margin-top: 1.8rem;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--taupe);
}

.included {
  margin-top: 4rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.8rem clamp(1.5rem, 4vw, 3.2rem);
}
.included h3 {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 1.8rem;
}
.included-list {
  list-style: none;
  columns: 2;
  column-gap: 3rem;
}
.included-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.75rem;
  break-inside: avoid;
  color: var(--bark);
}
.included-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 600;
  color: var(--sage);
}

/* ============ CALENDAR ============ */
.calendar-embed {
  max-width: 62rem;
  margin: 0 auto;
  min-height: 480px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
/* embed.js appends a stray duplicate widget host to <body>; the real one
   lives inside .calendar-embed and carries the data attribute */
body > div[rendered]:not([data-events-calendar-app]) { display: none !important; }

/* ============ GALLERY ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.gallery-item {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(1.05);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(55, 44, 33, 0.08);
  border-radius: 10px;
  pointer-events: none;
}

/* ============ TESTIMONIALS ============ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 62rem;
  margin: 0 auto;
}
.testimonial-card {
  border: 6px solid #fff;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-5px); }
.testimonial-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============ FAQ ============ */
.faq-list { display: grid; gap: 0.9rem; }
.faq-item {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 3.2rem 1.15rem 1.5rem;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--ink);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--terra);
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  padding: 0 1.5rem 1.3rem;
  color: var(--bark);
  font-size: 0.98rem;
}

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: stretch;
}
.contact-info { display: grid; gap: 1.2rem; align-content: start; }
.contact-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.8rem;
}
.contact-card h3 { margin-bottom: 0.5rem; }
.contact-card p { color: var(--bark); margin-bottom: 0.3rem; }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid #fff;
  min-height: 420px;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: #cbb9a4;
  margin-top: 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr 1.1fr;
  gap: 3rem;
  padding: 4rem 0 3rem;
}
.footer-logo-img {
  height: 62px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.footer-tag { margin: 0.8rem 0 1.4rem; font-size: 0.95rem; }
.footer-links { display: grid; gap: 0.55rem; align-content: start; }
.footer-links p { color: #cbb9a4; font-size: 0.95rem; margin: 0; }
.footer-links h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.5rem;
}
.footer-links a { color: #cbb9a4; font-size: 0.95rem; }
.footer-links a:hover { color: var(--terra); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.2rem 0;
  font-size: 0.85rem;
  text-align: center;
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(30, 23, 17, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lb-content {
  max-width: min(1100px, 88vw);
  max-height: 86vh;
}
.lb-content img {
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 8px;
}
.lb-close, .lb-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.7rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}
.lb-close:hover, .lb-nav:hover { background: var(--terra); }
.lb-close { top: 20px; right: 24px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ============ BOOK A TOUR SECTION ============ */
.tour-promo {
  max-width: 480px;
  margin: 0 auto;
}
.tour-promo-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: transform 0.3s ease;
}
.tour-promo-btn:hover { transform: translateY(-4px); }
.tour-promo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ============ BOOK A TOUR MODAL ============ */
.tour-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(55, 44, 33, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5vh 2vw;
}
.tour-modal[hidden] { display: none; }
.tour-modal-panel {
  --wix-clip: 110px;
  position: relative;
  width: min(1100px, 100%);
  height: 90vh;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tour-modal-clip {
  flex: 1;
  overflow: hidden;
}
.tour-modal-clip iframe {
  display: block;
  width: 100%;
  height: calc(100% + var(--wix-clip));
  margin-top: calc(-1 * var(--wix-clip));
  border: 0;
}
.tour-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--ivory);
  color: var(--bark);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.25s ease;
}
.tour-modal-close:hover { background: var(--terra); color: #fff; }
.tour-modal-fallback {
  margin: 0;
  padding: 0.55rem 0.8rem;
  border-top: 1px solid var(--line);
  background: var(--ivory);
  text-align: center;
  font-size: 0.88rem;
}
.tour-modal-fallback a { color: var(--terra); font-weight: 500; }
.tour-modal-fallback a:hover { text-decoration: underline; }

/* ============ WEDDING CALCULATOR ============ */
.calc-card {
  max-width: 62rem;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.4rem 2.6rem;
}
.calc-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 2.4rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.8rem;
}
.calc-field label,
.calc-row label {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--bark);
}
.calc-field label { margin-bottom: 0.4rem; }
.calc-input {
  display: flex;
  align-items: center;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 0.85rem;
  transition: border-color 0.25s ease;
}
.calc-input:focus-within { border-color: var(--sage); }
.calc-input span { color: var(--taupe); font-weight: 500; margin-right: 0.35rem; }
.calc-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.6rem 0;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  outline: none;
}
.calc-select {
  width: 100%;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s ease;
}
.calc-select:focus { border-color: var(--sage); }
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 2.4rem;
}
.calc-row {
  display: grid;
  grid-template-columns: 1fr 8.5rem 2.6rem;
  align-items: center;
  gap: 0.8rem;
}
.calc-share {
  font-size: 0.82rem;
  color: var(--taupe);
  text-align: right;
}
.calc-results {
  margin-top: 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.calc-summary { font-size: 1.12rem; }
.calc-summary strong { font-weight: 600; color: var(--bark); }
.calc-bar {
  height: 12px;
  max-width: 34rem;
  margin: 1.1rem auto 0.7rem;
  background: var(--linen);
  border-radius: 999px;
  overflow: hidden;
}
.calc-bar-fill {
  height: 100%;
  width: 0;
  background: var(--sage);
  border-radius: inherit;
  transition: width 0.35s ease, background-color 0.35s ease;
}
.calc-bar-fill.over { background: var(--terra-deep); }
.calc-remaining { font-weight: 500; }
.calc-remaining.under { color: var(--sage-deep); }
.calc-remaining.over { color: var(--terra-deep); }
#calcReset { margin-top: 1.5rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1020px) {
  .rate-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1320px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav.open { max-height: 600px; }
  .nav a:not(.social-link) {
    width: 100%;
    padding: 0.9rem 6%;
    border-top: 1px solid var(--line);
  }
  .nav-socials { margin: 1.1rem 6% 1.4rem; }
  .nav-toggle { display: flex; }
}

@media (max-width: 820px) {
  .section { padding: 4.2rem 0; }
  .brand { height: 48px; }
  .brand-logo { height: 96px; }

  .about-details { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .included-list { columns: 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .calc-top { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-card { padding: 1.8rem 1.4rem; }
  .calc-row { grid-template-columns: 1fr 7.5rem 2.4rem; gap: 0.6rem; }
}

@media (max-width: 560px) {
  .rate-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
