/* ============================================
   BEARLY WESTERN — Main Stylesheet
   Custom Leather Goods | Cedar, MN
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Lato:wght@300;400;700&display=swap');

:root {
  --primary:   #4b3621;
  --primary-dark: #2e1f10;
  --accent:    #d4a373;
  --accent-dark: #b8895a;
  --bg:        #f5f1e8;
  --bg-dark:   #ede8da;
  --text:      #1a1107;
  --text-light:#6b5040;
  --white:     #ffffff;
  --card-bg:   #fffdf8;
  --shadow:    0 4px 24px rgba(75,54,33,0.10);
  --radius:    12px;
  --nav-h:     64px;
  --max-w:     1140px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Base ---- */
body {
  font-family: 'Lato', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  color: var(--primary);
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(75, 54, 33, 0.95);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
}

.nav-brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.nav-spacer { flex: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: rgba(255,255,255,0.88);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-links a.cta-nav {
  background: var(--accent);
  color: var(--primary-dark);
  padding: 8px 18px;
  border-radius: 6px;
  border-bottom: none;
  transition: background 0.2s, transform 0.15s;
}
.nav-links a.cta-nav:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  background: url('assets/background.png') center center / cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 60px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(26,17,7,0.72) 0%,
    rgba(75,54,33,0.55) 50%,
    rgba(26,17,7,0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  padding: 6px 16px;
  border: 1px solid rgba(212,163,115,0.4);
  border-radius: 100px;
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,0.88);
  font-weight: 300;
  margin-bottom: 36px;
  letter-spacing: 0.02em;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212,163,115,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--primary);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 80px 24px;
}
.section-alt {
  background: var(--bg-dark);
}
.section-dark {
  background: var(--primary);
  color: var(--white);
}
.section-dark h2,
.section-dark h3 { color: var(--accent); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 10px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 14px;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid rgba(75,54,33,0.08);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(75,54,33,0.16);
}
.product-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.product-card-body {
  padding: 20px 22px 24px;
}
.product-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.product-card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.step {
  text-align: center;
  padding: 32px 20px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary-dark);
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step p { font-size: 0.9rem; color: var(--text-light); }

/* ============================================
   GALLERY GRID
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 3/4;
  cursor: pointer;
  background: var(--bg-dark);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,17,7,0.75) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 18px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption {
  color: var(--white);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10,6,3,0.92);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-height: 88vh;
  max-width: 90vw;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: fixed;
  top: 20px; right: 24px;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

/* ============================================
   TESTIMONIAL / QUOTE STRIP
   ============================================ */
.quote-strip {
  background: var(--primary);
  color: var(--white);
  padding: 56px 24px;
  text-align: center;
}
.quote-strip blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-style: italic;
  color: var(--accent);
  max-width: 700px;
  margin: 0 auto 16px;
}
.quote-strip cite {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ============================================
   INSTAGRAM FEED STRIP
   ============================================ */
.insta-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.insta-strip a {
  aspect-ratio: 1;
  overflow: hidden;
  display: block;
}
.insta-strip img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.insta-strip a:hover img { transform: scale(1.08); }

/* ============================================
   CONTACT / ORDER FORM
   ============================================ */
.form-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 44px 48px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(75,54,33,0.08);
  max-width: 640px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full { grid-column: 1 / -1; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid rgba(75,54,33,0.18);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212,163,115,0.2);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234b3621' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.form-submit { margin-top: 8px; width: 100%; padding: 16px; font-size: 1rem; }

.form-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 14px;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
  min-height: 50vh;
  background: url('assets/background.png') center 30% / cover no-repeat;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 60px) 24px 60px;
}
.about-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,17,7,0.8) 0%, rgba(26,17,7,0.35) 100%);
}
.about-hero-text {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.about-hero-text h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.5rem); }
.about-hero-text p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-top: 10px; }

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-text .eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}
.about-text h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 20px; }
.about-text p { color: var(--text-light); margin-bottom: 18px; }

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.value-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--accent);
}
.value-card h4 { font-size: 1rem; margin-bottom: 8px; }
.value-card p { font-size: 0.88rem; color: var(--text-light); }

/* ============================================
   PAGE HERO (interior pages)
   ============================================ */
.page-hero {
  padding: calc(var(--nav-h) + 60px) 24px 50px;
  background: var(--primary);
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3rem); }
.page-hero p { color: rgba(255,255,255,0.72); margin-top: 12px; font-size: 1.05rem; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 24px 32px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
  border: 2px solid var(--accent);
}
.footer-brand h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }

.footer-col h4 {
  color: var(--accent);
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-col address { font-style: normal; font-size: 0.9rem; line-height: 1.8; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--accent); }

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .about-split { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .insta-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .section { padding: 56px 16px; }
  .form-card { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .insta-strip { grid-template-columns: repeat(3, 1fr); }
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--primary); padding: 16px 24px 24px; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero-btns { flex-direction: column; align-items: center; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
