/* ==========================================================================
   RIVERWIND RANCH — MASTER STYLESHEET
   Palette: Midnight Navy · Champion Gold · Burnished Silver · Parchment
   ========================================================================== */

:root {
  /* CORE PALETTE */
  --navy: #0F1F3D;
  --navy-deep: #0A1628;
  --denim: #1E3A6F;
  --denim-light: #2D4E8C;
  --gold: #C9A961;
  --gold-bright: #E0C27A;
  --silver: #B8B8C4;
  --silver-light: #D8D8E0;
  --parchment: #F4EADB;
  --parchment-light: #FAF3E5;
  --parchment-shadow: #E8DCC4;
  --ink: #14100C;
  --saddle: #6B3410;
  --weathered: #8B6F47;
  --plum: #6B2C5C;

  /* TYPOGRAPHY */
  --font-display: 'Cinzel', serif;
  --font-editorial: 'Playfair Display', serif;
  --font-script: 'Allura', cursive;
  --font-body: 'Lora', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 3rem;
  background: rgba(15, 31, 61, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 169, 97, 0.25);
  transition: all 0.3s ease;
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--parchment);
  line-height: 1.1;
}

.nav-logo-text small {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-weight: 400;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--parchment);
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold); }

.nav-ctas {
  display: flex;
  gap: 0.5rem;
}

.nav-cta {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.7rem 1.2rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-cta.primary {
  background: var(--gold);
  color: var(--navy);
  border: 1px solid var(--gold);
}
.nav-cta.primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); }

.nav-cta.secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.nav-cta.secondary:hover { background: var(--gold); color: var(--navy); }

.nav-mobile-toggle {
  display: none;
  background: none; border: none;
  color: var(--parchment);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 1.15rem 2.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.2,.8,.2,1);
  display: inline-block;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border: 1px solid var(--gold);
}
.btn-primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201, 169, 97, 0.35);
}

.btn-outline-light {
  background: transparent;
  color: var(--parchment);
  border: 1px solid rgba(244, 234, 219, 0.4);
}
.btn-outline-light:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--parchment);
  transform: translateY(-2px);
}

.btn-silver {
  background: var(--silver);
  color: var(--navy);
  border: 1px solid var(--silver);
}
.btn-silver:hover {
  background: var(--silver-light);
  border-color: var(--silver-light);
  transform: translateY(-2px);
}

/* ==========================================================================
   SHARED SECTION ELEMENTS
   ========================================================================== */
.section-wrap {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  color: var(--denim);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
}

.section-eyebrow::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--denim);
}

.section-eyebrow.centered {
  justify-content: center;
}
.section-eyebrow.centered::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--denim);
}

.section-eyebrow.on-dark {
  color: var(--gold);
}
.section-eyebrow.on-dark::before,
.section-eyebrow.on-dark::after {
  background: var(--gold);
}

.section-title {
  font-family: var(--font-editorial);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.05;
  color: var(--navy);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.section-title em {
  font-family: var(--font-script);
  font-weight: 400;
  font-style: normal;
  font-size: 1.2em;
  color: var(--gold);
  display: inline-block;
  margin: 0 0.1em;
}

.section-title.on-dark { color: var(--parchment); }

.section-lead {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--denim);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

.section-lead.on-dark { color: var(--silver-light); }

/* Parchment noise texture */
.has-grain {
  position: relative;
}
.has-grain::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.3'/%3E%3C/svg%3E");
  opacity: 0.25;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* ==========================================================================
   INNER-PAGE HERO (shorter than home hero)
   ========================================================================== */
.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy);
  color: var(--parchment);
  padding: 10rem 2rem 5rem;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(30, 58, 111, 0.6) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(201, 169, 97, 0.12) 0%, transparent 50%),
    linear-gradient(135deg, #0F1F3D 0%, #0A1628 100%);
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.15;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.page-hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.page-hero-eyebrow::before,
.page-hero-eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.page-hero h1 {
  font-family: var(--font-editorial);
  font-weight: 900;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.page-hero h1 em {
  font-family: var(--font-script);
  font-weight: 400;
  font-style: normal;
  color: var(--gold);
  font-size: 1.2em;
}

.page-hero p {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--silver-light);
  max-width: 620px;
  margin: 0 auto;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--navy-deep);
  color: var(--silver);
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(201, 169, 97, 0.2);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo img {
  height: 60px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-tag {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 300px;
  color: var(--silver-light);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.75rem; }
.footer-col a {
  font-size: 0.92rem;
  transition: color 0.2s ease;
  color: var(--silver-light);
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(184, 184, 196, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--silver);
}

.footer-bottom .location {
  font-family: var(--font-display);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.72rem;
}

/* ==========================================================================
   UTILITY
   ========================================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--navy);
  color: var(--gold);
  border: 1px solid var(--gold);
  font-family: var(--font-editorial);
  font-size: 1.3rem;
  font-weight: 900;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-links { gap: 1.2rem; }
  .nav-cta { padding: 0.7rem 0.9rem; font-size: 0.68rem; }
}

@media (max-width: 960px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links, .nav-ctas { display: none; }
  .nav-mobile-toggle { display: block; }

  .nav.mobile-open .nav-links,
  .nav.mobile-open .nav-ctas {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy-deep);
    padding: 1.5rem;
    gap: 1rem;
    border-top: 1px solid rgba(201, 169, 97, 0.2);
  }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .page-hero { min-height: 50vh; padding: 9rem 1.5rem 4rem; }
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .btn { width: 100%; padding: 1rem 1.5rem; }
}
