/* =================================================================
   OUTBACK LEATHER - Premium Western Design System
   Inspired by King Ranch Saddle Shop, Tecovas, Lucchese
   ================================================================= */

/* ===== CSS VARIABLES ===== */
:root {
  --gold: #C8A96E;
  --gold-light: #D4BA85;
  --gold-dark: #A8894E;
  --brown: #8B5E3C;
  --brown-deep: #5C3A1E;
  --charcoal: #1A1611;
  --charcoal-light: #2C2520;
  --cream: #F5F0E8;
  --parchment: #EDE6D8;
  --copper: #B87333;
  --saddle: #6B4226;
  --black: #0D0B09;
  --white: #FEFCF9;
  --text-primary: #1A1611;
  --text-secondary: #6B6560;
  --text-light: #9C9590;
  --border: #DDD5C8;
  --shadow: rgba(26,22,17,0.12);
  --shadow-heavy: rgba(26,22,17,0.25);
}

/* ===== GLOBAL RESETS ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* ===== SCROLL PROGRESS BAR ===== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--charcoal); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 0; border: 2px solid var(--charcoal); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.animate-visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll.from-left {
  transform: translateX(-60px) translateY(0);
}
.animate-on-scroll.from-left.animate-visible {
  transform: translateX(0) translateY(0);
}
.animate-on-scroll.from-right {
  transform: translateX(60px) translateY(0);
}
.animate-on-scroll.from-right.animate-visible {
  transform: translateX(0) translateY(0);
}
.animate-on-scroll.scale-in {
  transform: scale(0.9);
}
.animate-on-scroll.scale-in.animate-visible {
  transform: scale(1);
}
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.18s; }
.stagger > *:nth-child(4) { transition-delay: 0.25s; }
.stagger > *:nth-child(5) { transition-delay: 0.3s; }
.stagger > *:nth-child(6) { transition-delay: 0.35s; }
.stagger > *:nth-child(7) { transition-delay: 0.4s; }
.stagger > *:nth-child(8) { transition-delay: 0.45s; }

/* ===== WESTERN DECORATIVE DIVIDERS ===== */
.western-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 20px;
}
.western-divider::before,
.western-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.western-divider .divider-icon {
  color: var(--gold);
  font-size: 1.25rem;
  line-height: 1;
}

.rope-border {
  border-image: repeating-linear-gradient(
    90deg,
    var(--gold) 0px,
    var(--gold) 8px,
    transparent 8px,
    transparent 12px,
    var(--gold-dark) 12px,
    var(--gold-dark) 20px,
    transparent 20px,
    transparent 24px
  ) 1;
  border-width: 2px 0;
  border-style: solid;
}

.accent-line {
  width: 60px;
  height: 2px;
  background: var(--gold);
}
.accent-line-center {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto;
}

/* ===== TOOLING PATTERN BACKGROUND ===== */
.tooling-pattern {
  background-color: var(--charcoal);
  background-image:
    radial-gradient(circle at 25% 25%, rgba(200,169,110,0.03) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(200,169,110,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}

.leather-texture {
  background-color: var(--charcoal);
  background-image:
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C8A96E' fill-opacity='0.035'%3E%3Cpath d='M20 0L40 20 20 40 0 20z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ===== HERO STYLES ===== */
.hero-western {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-western::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(13,11,9,0.95) 0%,
      rgba(13,11,9,0.85) 35%,
      rgba(13,11,9,0.55) 65%,
      rgba(13,11,9,0.35) 100%
    ),
    linear-gradient(
      to top,
      rgba(13,11,9,0.5) 0%,
      transparent 40%
    );
  z-index: 1;
}
.hero-western > * {
  position: relative;
  z-index: 2;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Hero 3D text effects */
.hero-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow:
    0 0 20px rgba(200,169,110,0.5),
    0 0 40px rgba(200,169,110,0.2);
}
.hero-title {
  color: #fff;
  text-shadow:
    0 2px 0 rgba(0,0,0,0.4),
    0 4px 0 rgba(0,0,0,0.3),
    0 6px 0 rgba(0,0,0,0.2),
    0 8px 15px rgba(0,0,0,0.6),
    0 12px 40px rgba(0,0,0,0.4),
    0 0 60px rgba(200,169,110,0.08);
}
.hero-title-accent {
  color: var(--gold);
  text-shadow:
    0 2px 0 var(--gold-dark),
    0 4px 0 rgba(168,137,78,0.6),
    0 6px 0 rgba(168,137,78,0.3),
    0 8px 15px rgba(0,0,0,0.5),
    0 12px 40px rgba(0,0,0,0.3),
    0 0 30px rgba(200,169,110,0.3);
}
.hero-subtitle {
  color: rgba(255,255,255,0.85);
  text-shadow:
    0 2px 8px rgba(0,0,0,0.7),
    0 4px 20px rgba(0,0,0,0.4);
}

/* Hero decorative frame */
.hero-frame {
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(200,169,110,0.15);
  z-index: 2;
  pointer-events: none;
}
.hero-frame::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 40px;
  right: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}
.hero-frame::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 40px;
  right: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200,169,110,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(139,94,60,0.04) 0%, transparent 60%);
}
.page-header > * { position: relative; z-index: 1; }

/* ===== NAVIGATION ===== */
.nav-western {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link.active {
  color: var(--gold) !important;
}

/* ===== CARD STYLES ===== */
.card-western {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid var(--border);
}
.card-western:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px var(--shadow-heavy);
}

.card-dark {
  background: var(--charcoal-light);
  border: 1px solid rgba(200,169,110,0.1);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease;
}
.card-dark:hover {
  transform: translateY(-6px);
  border-color: rgba(200,169,110,0.3);
}

/* ===== IMAGE EFFECTS ===== */
.img-zoom { overflow: hidden; }
.img-zoom img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.img-zoom:hover img {
  transform: scale(1.08);
}

.img-reveal {
  position: relative;
  overflow: hidden;
}
.img-reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.img-reveal.revealed::after {
  transform: scaleX(1);
  transform-origin: right;
}

/* ===== BUTTON STYLES ===== */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--charcoal);
  padding: 14px 32px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.btn-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200,169,110,0.35);
}
.btn-gold:hover::before {
  transform: translateX(100%);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--gold);
  padding: 14px 32px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--charcoal);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200,169,110,0.25);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--charcoal);
  padding: 14px 32px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-white:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--shadow);
}

/* ===== STAR RATING ===== */
.star-rating { color: var(--gold); font-size: 1.1rem; }

/* ===== REVIEW CARD ===== */
.review-card {
  position: relative;
  border-left: 3px solid var(--gold);
}
.review-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.15;
  line-height: 1;
}

/* ===== FAQ ACCORDION ===== */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-toggle {
  cursor: pointer;
  transition: color 0.3s ease;
}
.faq-toggle:hover { color: var(--gold); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), padding 0.4s ease;
}
.faq-answer.open { max-height: 500px; }
.faq-toggle svg {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--gold);
}
.faq-toggle.open svg { transform: rotate(180deg); }

/* ===== FORM STYLES ===== */
.form-input {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
  background: var(--white);
}
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,169,110,0.15);
  outline: none;
}

/* ===== PROMO BADGE ===== */
.promo-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--charcoal);
  font-weight: 800;
  font-size: 0.65rem;
  padding: 5px 14px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ===== BRAND STAMP — LEATHER PATCH ===== */
.brand-stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 22px;
  background: linear-gradient(145deg, #6B4226 0%, #5C3A1E 40%, #4A2E17 100%);
  border-radius: 4px;
  position: relative;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.2);
  overflow: hidden;
}
/* Leather grain texture */
.brand-stamp::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(255,255,255,0.04) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(0,0,0,0.08) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000000' fill-opacity='0.06'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3Ccircle cx='13' cy='13' r='0.7'/%3E%3Ccircle cx='8' cy='17' r='0.5'/%3E%3Ccircle cx='18' cy='5' r='0.8'/%3E%3C/g%3E%3C/svg%3E");
  border-radius: 4px;
  pointer-events: none;
}
/* Stitching border */
.brand-stamp::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1.5px dashed rgba(200,169,110,0.45);
  border-radius: 2px;
  pointer-events: none;
}
.brand-stamp span {
  color: var(--gold-light) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 0 1px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
}

/* ===== COUNTER ANIMATION ===== */
.counter-value {
  font-variant-numeric: tabular-nums;
}

/* ===== SECTION DARK ===== */
.section-dark {
  background: var(--charcoal);
  color: var(--cream);
}
.section-dark .text-secondary { color: rgba(245,240,232,0.6); }

/* ===== HORIZONTAL SCROLL ===== */
.horizontal-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  scrollbar-width: none;
}
.horizontal-scroll::-webkit-scrollbar { display: none; }
.horizontal-scroll > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* ===== PARALLAX ===== */
.parallax-bg {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}
@media (max-width: 768px) {
  .parallax-bg { background-attachment: scroll; }
  .hero-bg { background-attachment: scroll; }
}

/* ===== TOOLTIP / LABEL ===== */
.label-western {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ===== GRADIENT OVERLAYS ===== */
.overlay-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,11,9,0.6) 0%, rgba(13,11,9,0.85) 100%);
  z-index: 1;
}
.overlay-dark > * { position: relative; z-index: 2; }

/* ===== MASONRY-ISH GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
}
.gallery-grid .g-wide { grid-column: span 8; }
.gallery-grid .g-narrow { grid-column: span 4; }
.gallery-grid .g-half { grid-column: span 6; }
.gallery-grid .g-third { grid-column: span 4; }
@media (max-width: 768px) {
  .gallery-grid .g-wide,
  .gallery-grid .g-narrow,
  .gallery-grid .g-half,
  .gallery-grid .g-third {
    grid-column: span 12;
  }
}

/* ===== SPLIT SECTION ===== */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}
@media (max-width: 768px) {
  .split-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

/* ===== LOADING ANIMATION ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes pulse-gold {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.shimmer-gold {
  background: linear-gradient(90deg, var(--gold-dark) 25%, var(--gold-light) 50%, var(--gold-dark) 75%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}

/* ===== WESTERN CORNER ORNAMENTS ===== */
.corner-ornament {
  position: relative;
}
.corner-ornament::before,
.corner-ornament::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: var(--gold);
  opacity: 0.4;
}
.corner-ornament::before {
  top: 0; left: 0;
  border-top: 2px solid;
  border-left: 2px solid;
}
.corner-ornament::after {
  bottom: 0; right: 0;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

/* ===== ACTIVE NAV ===== */
.nav-link.active { color: var(--gold) !important; font-weight: 700; }

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 1024px) {
  .hero-western { min-height: 85vh; }
  .hero-frame { inset: 12px; }
}
@media (max-width: 640px) {
  .hero-frame { display: none; }
}
