/*
Theme Name: Salish Camp
Theme URI: https://salishcamp.com
Author: Salish Camp
Description: Foggy-forest outdoor gear discovery homepage for salishcamp.com. Snow Peak–inspired layout, A-frame tent logo.
Version: 1.2.0
Text Domain: salish-camp
*/

:root {
  --fog-bright: #e8eae8;
  --fog: #d5d8d5;
  --mist: #aaabaa;
  --mid: #6a6b69;
  --canopy: #525450;
  --trunk: #2d322e;
  --deep: #1f2420;
  --text: #2a2e2b;
  --muted: #6a6b69;
  --soft: #f2f3f2;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  background: var(--soft);
  color: var(--text);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

.sc-utility {
  background: var(--deep);
  color: rgba(232,234,232,0.82);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.45rem 1rem;
}
.sc-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(242,243,242,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45,50,46,0.1);
}
.sc-nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; gap: 1rem;
}
.sc-logo {
  display: flex; align-items: center; gap: 14px;
  color: var(--deep);
}
.sc-logo svg { width: 44px; height: 44px; flex-shrink: 0; }
.sc-logo-text {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.95rem; font-weight: 600; letter-spacing: 0.03em;
}
.sc-nav-links {
  display: flex; gap: 2rem;
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.sc-nav-links a:hover { color: var(--deep); }

.sc-hero {
  position: relative; min-height: 88vh;
  display: flex; align-items: flex-end;
  color: var(--fog-bright);
  background:
    linear-gradient(180deg, rgba(31,36,32,0.18) 0%, rgba(31,36,32,0.35) 45%, rgba(31,36,32,0.78) 100%),
    var(--hero-image) center 40% / cover no-repeat;
}
.sc-hero-inner { width: 100%; padding: 0 32px 72px; max-width: 1200px; margin: 0 auto; }
.sc-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.88; margin-bottom: 1rem; font-weight: 500;
}
.sc-hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 500; line-height: 1.05;
  max-width: 14ch; margin-bottom: 1rem;
}
.sc-hero p { max-width: 38ch; font-size: 1.05rem; opacity: 0.9; margin-bottom: 1.75rem; }
.sc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 1.7rem; font-size: 0.74rem; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 500; border: 1px solid var(--fog-bright);
  background: var(--fog-bright); color: var(--deep); transition: 0.2s ease;
}
.sc-btn:hover { background: transparent; color: var(--fog-bright); }

.sc-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 56px 0 24px; }
.sc-cat {
  aspect-ratio: 4/5; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 1.25rem; color: var(--fog-bright);
}
.sc-cat span {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500; position: relative; z-index: 1;
}
.sc-cat::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(31,36,32,0.78));
}
/* category photo tiles — gradients are fallbacks; homepage sets photo backgrounds inline */
.sc-cat { background-size: cover; background-position: center; transition: transform .25s ease, filter .25s ease; }
.sc-cat:hover { filter: brightness(1.06); transform: translateY(-2px); }
.sc-c1 { background: linear-gradient(160deg, #c8cbc8, #6a6b69 50%, #1f2420); }
.sc-c2 { background: linear-gradient(160deg, #d5d8d5, #525450 55%, #1f2420); }
.sc-c3 { background: linear-gradient(160deg, #aaabaa, #2d322e 60%, #1f2420); }
.sc-c4 { background: linear-gradient(160deg, #e0e2e0, #6a6b69 45%, #252b27); }

.sc-section { padding: 72px 0; }
.sc-section-head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 2rem; gap: 1rem;
}
.sc-section-head h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.35rem; font-weight: 500; color: var(--deep);
}
.sc-section-head a {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--canopy);
}
.sc-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.sc-card-img {
  aspect-ratio: 4/5; margin-bottom: 1rem; position: relative; background: var(--fog);
}
.sc-badge {
  position: absolute; top: 12px; left: 12px; background: var(--soft);
  font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.35rem 0.55rem; font-weight: 500; color: var(--deep);
}
.sc-p1 { background: linear-gradient(145deg, #e8eae8, #aaabaa 45%, #2d322e); }
.sc-p2 { background: linear-gradient(145deg, #d5d8d5, #6a6b69 50%, #1f2420); }
.sc-p3 { background: linear-gradient(145deg, #f2f3f2, #525450 48%, #2d322e); }
.sc-card .meta {
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.4rem;
}
.sc-card h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem; font-weight: 500; margin-bottom: 0.4rem; color: var(--deep);
}
.sc-card .blurb { font-size: 0.92rem; color: var(--muted); }

.sc-two-up {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 0; min-height: 480px;
  background: var(--deep); color: var(--fog-bright);
}
.sc-two-up-copy {
  padding: 72px 56px; display: flex; flex-direction: column; justify-content: center;
}
.sc-two-up-copy h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.4rem; font-weight: 500; line-height: 1.15; margin: 0.75rem 0 1rem;
}
.sc-two-up-copy p { opacity: 0.8; max-width: 36ch; margin-bottom: 1.5rem; }
.sc-two-up-copy .sc-btn { align-self: flex-start; }
.sc-two-up-photo {
  background:
    linear-gradient(180deg, rgba(31,36,32,0.15), rgba(31,36,32,0.55)),
    var(--hero-image) 60% center / cover no-repeat;
}

.sc-footer {
  border-top: 1px solid rgba(45,50,46,0.12);
  padding: 48px 0; font-size: 0.85rem; color: var(--muted);
}
.sc-foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.sc-foot strong {
  display: block; color: var(--deep); margin-bottom: 0.6rem; font-weight: 500;
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
}

/* Fallback pages (non-home) */
.sc-simple { max-width: 720px; margin: 0 auto; padding: 64px 32px 96px; }
.sc-simple h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.4rem; font-weight: 500; color: var(--deep); margin-bottom: 1rem;
}
.sc-simple .content { color: var(--muted); }

@media (max-width: 900px) {
  .sc-cats, .sc-grid-3, .sc-two-up, .sc-foot { grid-template-columns: 1fr; }
  .sc-nav-links { display: none; }
  .sc-two-up-copy { padding: 48px 28px; }
  .sc-hero { min-height: 72vh; }
}
