/* Ponderosa Sports — style.css */

/* ═══ RESET & BASE ═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body, h1, h2, h3, p, figure, blockquote, ul, table { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; }

/* ═══ TOKENS ══════════════════════════════════════════════ */
:root {
  --pine-950:  #12201a;
  --pine-800:  #1a2e24;
  --pine-700:  #23402f;
  --amber-600: #c2761a;
  --amber-400: #e8a44a;
  --amber-700: #9c5c14; /* AA-safe amber for text on cream (amber-600 is ~3.2:1, fails) */
  --moss-400:  #7fae86;
  --moss-600:  #4f7a58;
  --cream:     #f6f1e4;
  --stone-500: #9aa89a;
  --line:      #2d4536;

  --grad-amber: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  --grad-moss:  linear-gradient(135deg, var(--moss-400), var(--moss-600));
  --grad-pine:  linear-gradient(180deg, var(--pine-800), var(--pine-950));

  --font-display: "Big Shoulders Display", sans-serif;
  --font-body: "Work Sans", sans-serif;

  --container: 1180px;
  --radius: 16px;
  --nav-h: 76px;
}

html { font-size: 100%; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--pine-950);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--grad-amber);
  color: var(--pine-950);
  font-weight: 700;
  padding: 12px 18px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--amber-400);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ═══ TYPOGRAPHY ══════════════════════════════════════════ */
h1, h2, h3, .logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-700);
  margin-bottom: 10px;
}
.eyebrow-center { text-align: center; }

/* dark-background contexts need the brighter amber for AA contrast */
.hero-panel .eyebrow,
.jurassic-text .eyebrow,
.gallery .eyebrow {
  color: var(--amber-400);
}

.section-title {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  color: var(--pine-950);
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

/* ═══ BUTTONS ═════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad-amber);
  color: var(--pine-950);
  box-shadow: 0 10px 24px -8px rgba(194, 118, 26, 0.55);
}
.btn-primary:hover {
  box-shadow: 0 14px 30px -8px rgba(194, 118, 26, 0.65);
}

.btn-secondary {
  background: rgba(246, 241, 228, 0.08);
  color: var(--cream);
  border: 1.5px solid rgba(246, 241, 228, 0.5);
  backdrop-filter: blur(6px);
}
.btn-secondary:hover {
  background: rgba(246, 241, 228, 0.16);
  border-color: var(--cream);
}

.btn-block { width: 100%; margin-top: 22px; }

/* ═══ NAV ═════════════════════════════════════════════════ */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(18, 32, 26, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
#nav.scrolled {
  background: rgba(18, 32, 26, 0.96);
  border-bottom-color: var(--line);
}

.nav-inner {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-text {
  font-size: 1.05rem;
  color: var(--cream);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.logo-accent { color: var(--amber-400); }

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--stone-500);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--cream); }

.nav-actions { display: flex; align-items: center; gap: 16px; }

.nav-call {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--amber-400);
  font-weight: 700;
  font-size: 0.92rem;
  border: 1.5px solid var(--line);
  padding: 9px 16px;
  border-radius: 8px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav-call svg { width: 17px; height: 17px; }
.nav-call:hover { border-color: var(--amber-400); background: rgba(232, 164, 74, 0.08); }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 32, 26, 0.7);
  z-index: 150;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 84vw);
  background: var(--pine-950);
  border-left: 1px solid var(--line);
  z-index: 151;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.mobile-overlay[hidden], .mobile-menu[hidden] { display: none; }
.mobile-close {
  align-self: flex-end;
  width: 40px;
  height: 40px;
  color: var(--cream);
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  display: block;
  padding: 12px 4px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.mobile-call {
  margin-top: auto;
  text-align: center;
  padding: 15px;
  border-radius: 10px;
  background: var(--grad-amber);
  color: var(--pine-950);
  font-weight: 700;
}

/* ═══ REVEAL ANIMATION ════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ═══ HERO ════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background: var(--grad-pine);
  overflow: hidden;
  padding: 64px 0 72px;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-art svg { width: 100%; height: 100%; }

.topo-layer { transform-box: fill-box; transform-origin: 50% 50%; }
.topo-layer-a { animation: driftA 26s ease-in-out infinite alternate; }
.topo-layer-b { animation: driftB 32s ease-in-out infinite alternate; }
.topo-layer-c { animation: driftC 22s ease-in-out infinite alternate; }

@keyframes driftA {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-18px, 12px) scale(1.03); }
}
@keyframes driftB {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(14px, -10px) scale(1.04); }
}
@keyframes driftC {
  from { transform: translate(0, 0); }
  to   { transform: translate(24px, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .topo-layer-a, .topo-layer-b, .topo-layer-c { animation: none; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.hero-panel {
  max-width: 620px;
  background: rgba(18, 32, 26, 0.62);
  backdrop-filter: blur(8px);
  border-left: 4px solid transparent;
  border-image: var(--grad-amber) 1;
  border-radius: 4px 18px 18px 4px;
  padding: 34px 30px;
}

.hero-title {
  font-size: clamp(2.1rem, 6.5vw, 3.4rem);
  color: var(--cream);
  margin-bottom: 18px;
}
.hero-title .accent { color: var(--amber-400); }

.hero-sub {
  color: var(--stone-500);
  font-size: 1.05rem;
  max-width: 52ch;
  margin-bottom: 30px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* ═══ TRUST BAR ═══════════════════════════════════════════ */
.trust-bar {
  background: var(--pine-950);
  position: relative;
  padding: 20px 0;
}
.trust-bar::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-amber);
  opacity: 0.7;
}
.trust-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  text-align: center;
}
.trust-stars { display: flex; gap: 3px; color: var(--amber-400); }
.trust-stars svg { width: 18px; height: 18px; }
.trust-text { color: var(--stone-500); font-size: 0.95rem; }
.trust-text strong { color: var(--cream); font-size: 1.05rem; }
.trust-text a { color: var(--amber-400); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.trust-text a:hover { color: var(--amber-400); }

/* ═══ SECTIONS (generic) ══════════════════════════════════ */
.carry, .why, .location {
  padding: 88px 0;
}
.jurassic { padding: 56px 0; background: var(--pine-800); }
.testimonial, .gallery { padding: 88px 0; background: var(--grad-pine); }

/* ═══ WHAT WE CARRY ═══════════════════════════════════════ */
.carry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.carry-card {
  background: linear-gradient(155deg, var(--pine-700), var(--pine-800));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: 0 16px 32px -20px rgba(0,0,0,0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.carry-card:hover {
  transform: translateY(-5px);
  border-color: var(--amber-600);
  box-shadow: 0 20px 40px -18px rgba(194,118,26,0.35);
}
.carry-card h3 {
  color: var(--cream);
  font-size: 1.25rem;
  margin: 18px 0 10px;
  text-transform: none;
}
.carry-card p { color: var(--stone-500); font-size: 0.96rem; }

.icon-badge {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-badge svg { width: 28px; height: 28px; }
.icon-badge-amber { background: var(--grad-amber); color: var(--pine-950); }
.icon-badge-moss  { background: var(--grad-moss); color: var(--pine-950); }

/* ═══ JURASSIC WORLD PLAQUE ═══════════════════════════════ */
.jurassic-plaque {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(155deg, var(--pine-700), var(--pine-950));
  border: 1px solid var(--line);
  border-top: 3px solid transparent;
  border-image: var(--grad-amber) 1;
  border-radius: var(--radius);
  padding: 28px;
}
.jurassic-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-amber);
  color: var(--pine-950);
}
.jurassic-icon svg { width: 26px; height: 26px; }
.jurassic-text h2 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--cream);
  margin: 4px 0 12px;
  text-transform: none;
}
.jurassic-text h2 em { color: var(--amber-400); font-style: normal; }
.jurassic-text p { color: var(--stone-500); font-size: 0.98rem; }

/* ═══ WHY PONDEROSA ═══════════════════════════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
.why-card { position: relative; padding-top: 8px; }
.why-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.6rem;
  line-height: 1;
  opacity: 0.16;
  margin-bottom: -14px;
}
.why-num-amber { color: var(--amber-600); }
.why-num-moss { color: var(--moss-600); }
.why-card h3 {
  font-size: 1.2rem;
  color: var(--pine-950);
  margin-bottom: 8px;
  text-transform: none;
}
.why-card p { color: var(--pine-800); opacity: 0.85; font-size: 0.97rem; }

/* ═══ TESTIMONIAL ═════════════════════════════════════════ */
.quote-wrap {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.quote-mark {
  width: 52px;
  height: 40px;
  color: var(--amber-600);
  opacity: 0.8;
  margin: 0 auto 8px;
}
.quote-wrap blockquote p {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: none;
  font-size: clamp(1.3rem, 3.4vw, 1.9rem);
  line-height: 1.35;
  color: var(--cream);
}
.quote-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  color: var(--amber-400);
  margin: 22px 0 12px;
}
.quote-stars svg { width: 18px; height: 18px; }
.quote-wrap cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--cream);
}
.quote-wrap cite span { color: var(--stone-500); font-weight: 500; }

/* ═══ GALLERY ═════════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
}
.gallery-wash {
  position: absolute;
  inset: 0;
  background-size: 200% 200%;
}
.gallery-wash-1 { background-image: linear-gradient(135deg, var(--pine-700), var(--amber-600)); background-position: 20% 30%; }
.gallery-wash-2 { background-image: linear-gradient(135deg, var(--pine-800), var(--moss-400)); background-position: 60% 10%; }
.gallery-wash-3 { background-image: linear-gradient(135deg, var(--amber-600), var(--pine-950)); background-position: 80% 60%; }
.gallery-wash-4 { background-image: linear-gradient(135deg, var(--moss-600), var(--pine-700)); background-position: 30% 70%; }
.gallery-wash-5 { background-image: linear-gradient(135deg, var(--pine-950), var(--amber-400)); background-position: 50% 40%; }
.gallery-wash-6 { background-image: linear-gradient(135deg, var(--amber-400), var(--pine-800)); background-position: 10% 90%; }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream);
  background: linear-gradient(0deg, rgba(18,32,26,0.85), transparent);
}

/* ═══ LOCATION ════════════════════════════════════════════ */
.location-intro {
  text-align: center;
  max-width: 560px;
  margin: -28px auto 44px;
  color: var(--pine-800);
  opacity: 0.85;
}
.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 320px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

.location-panel {
  background: linear-gradient(155deg, var(--pine-700), var(--pine-950));
  border: 1px solid var(--line);
  border-top: 3px solid transparent;
  border-image: var(--grad-amber) 1;
  border-radius: var(--radius);
  padding: 32px 28px;
}
.location-panel h3 {
  color: var(--cream);
  font-size: 1.4rem;
  margin-bottom: 16px;
  text-transform: none;
}
.location-addr, .location-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--stone-500);
  margin-bottom: 12px;
  font-size: 0.98rem;
}
.location-addr svg, .location-phone svg { width: 19px; height: 19px; flex: none; color: var(--amber-400); }
.location-phone a { color: var(--cream); font-weight: 600; }

.hours-table { width: 100%; margin: 20px 0 4px; }
.hours-table caption {
  text-align: left;
  color: var(--amber-400);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hours-table tr { border-top: 1px solid var(--line); }
.hours-table th, .hours-table td {
  padding: 10px 0;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: left;
}
.hours-table th { color: var(--cream); font-weight: 600; }
.hours-table td { color: var(--stone-500); text-align: right; }

/* ═══ FOOTER ══════════════════════════════════════════════ */
.footer {
  background: var(--pine-950);
  position: relative;
  padding-top: 60px;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber-400), var(--moss-400));
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 40px;
}
.footer-brand .logo-text { display: block; margin-bottom: 10px; }
.footer-brand p { color: var(--stone-500); font-size: 0.92rem; max-width: 30ch; }
.footer-col h4 {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col p, .footer-col a { color: var(--stone-500); font-size: 0.94rem; }
.footer-col p { margin-bottom: 8px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a:hover { color: var(--amber-400); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--stone-500);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footer-social a svg { width: 18px; height: 18px; }
.footer-social a:hover { border-color: var(--amber-400); color: var(--amber-400); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px;
  text-align: center;
}
.footer-bottom p { color: var(--stone-500); font-size: 0.85rem; }

/* ═══ RESPONSIVE ══════════════════════════════════════════ */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-call { display: flex; }
  .hamburger { display: none; }

  .hero { min-height: 720px; }
  .carry-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .location-grid { grid-template-columns: 1.1fr 0.9fr; align-items: stretch; }
  .map-frame { min-height: 100%; }
  .map-frame iframe { min-height: 100%; }

  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .carry-grid { grid-template-columns: repeat(4, 1fr); }
  .hero { min-height: 780px; }
  .hero-panel { padding: 44px 40px; }
}

@media (min-width: 1440px) {
  :root { --container: 1280px; }
  .hero { min-height: 820px; }
}
