/* ========================================
   KOSHI — Custom Hugo Theme Styles
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300;1,9..40,400&display=swap');

:root {
  --koshi-teal: #1a6b5a;
  --koshi-teal-light: #e6f2ef;
  --koshi-teal-dark: #0f4a3e;
  --koshi-cream: #faf8f5;
  --koshi-warm-gray: #f5f2ee;
  --koshi-text: #2a2a28;
  --koshi-text-muted: #6d6b68;
  --koshi-text-light: #9a9895;
  --koshi-border: rgba(0,0,0,0.08);
  --koshi-gold: #b8860b;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --max-width: 1200px;
  --content-width: 800px;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--koshi-text);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--koshi-teal); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

/* ── Navigation ── */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem;
  transition: background 0.3s, box-shadow 0.3s;
}

.site-nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--koshi-border);
}
.not-home .site-nav {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--koshi-border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.site-nav:not(.scrolled):not(.nav-inner-page) .nav-logo img {
  filter: brightness(0) invert(1);
}

.not-home .nav-logo img {
  filter: none;
}

.nav-inner-page {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--koshi-border);
}

.nav-inner-page .nav-logo img { filter: none; }
.nav-inner-page .nav-links a { color: var(--koshi-text); }
.nav-inner-page .nav-links .nav-wholesale { color: var(--koshi-teal); }
.nav-inner-page .nav-links .nav-amazon { border-color: var(--koshi-border); }
.nav-inner-page .nav-toggle span { background: var(--koshi-text); }

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--koshi-text);
  transition: color 0.2s;
}

.site-nav:not(.scrolled):not(.nav-inner-page) .nav-links a {
  color: rgba(255,255,255,0.85);
}
.site-nav:not(.scrolled):not(.nav-inner-page) .nav-links a:hover {
  color: #fff;
  opacity: 1;
}

.nav-links .nav-wholesale {
  color: var(--koshi-teal);
  font-weight: 500;
}
.site-nav:not(.scrolled):not(.nav-inner-page) .nav-links .nav-wholesale {
  color: #fff;
  font-weight: 500;
}

.nav-links .nav-amazon {
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--koshi-border);
  border-radius: 6px;
  transition: all 0.2s;
}
.site-nav:not(.scrolled):not(.nav-inner-page) .nav-links .nav-amazon {
  border-color: rgba(255,255,255,0.3);
}
.nav-links .nav-amazon:hover { opacity: 1; background: var(--koshi-teal-light); }
.site-nav:not(.scrolled) .nav-links .nav-amazon:hover { background: rgba(255,255,255,0.15); }

/* mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--koshi-text); margin: 5px 0; transition: all 0.3s; }
.site-nav:not(.scrolled) .nav-toggle span { background: #fff; }

/* ── Hero ── */

.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  max-height: 900px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeInUp 1s ease 0.5s both;
}

.hero-scroll-indicator span {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 1.5px solid rgba(255,255,255,0.5);
  border-bottom: 1.5px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
  50% { transform: rotate(45deg) translateY(6px); opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Intro section (below hero) ── */

.intro {
  padding: 5rem 2rem;
  text-align: center;
  background: #fff;
}

.intro-inner {
  max-width: 640px;
  margin: 0 auto;
}

.intro-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--koshi-teal);
  margin-bottom: 1rem;
  font-weight: 500;
}

.intro h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--koshi-text);
}

.intro p {
  font-size: 1.0625rem;
  color: var(--koshi-text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.intro-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--koshi-teal);
  color: #fff;
}
.btn-primary:hover { background: var(--koshi-teal-dark); opacity: 1; }

.btn-outline {
  background: transparent;
  color: var(--koshi-teal);
  border: 1.5px solid var(--koshi-teal);
}
.btn-outline:hover { background: var(--koshi-teal-light); opacity: 1; }

.btn svg { width: 16px; height: 16px; }

/* ── Section common ── */

.section { padding: 5rem 2rem; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--koshi-teal);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--koshi-text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Collections ── */

.collections { background: #fff; }

.collections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.collection-card {
  border: 1px solid var(--koshi-border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.2s;
  background: #fff;
}
.collection-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.collection-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--koshi-warm-gray);
}
.collection-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.collection-card:hover .collection-image img {
  transform: scale(1.03);
}

.collection-info {
  padding: 1.25rem 1.5rem 1.5rem;
}

.collection-info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.375rem;
}

.collection-info p {
  font-size: 0.875rem;
  color: var(--koshi-text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.collection-link {
  font-size: 0.8125rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.collection-link svg { width: 14px; height: 14px; transition: transform 0.2s; }
.collection-card:hover .collection-link svg { transform: translateX(3px); }

.collections-wholesale-banner {
  margin-top: 2rem;
  padding: 1.25rem 1.75rem;
  background: var(--koshi-teal-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.collections-wholesale-banner p {
  font-size: 0.9375rem;
  color: var(--koshi-teal-dark);
}
.collections-wholesale-banner p strong {
  font-weight: 500;
}

.collections-wholesale-banner a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--koshi-teal);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

/* ── Story section (homepage preview) ── */

.story-preview {
  background: var(--koshi-cream);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
  align-items: center;
}

.story-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.story-photo {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
}
.story-photo:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
}
.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-text h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.story-text p {
  color: var(--koshi-text-muted);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.story-text .story-stats {
  display: flex;
  gap: 2rem;
  margin: 1.5rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--koshi-border);
  border-bottom: 1px solid var(--koshi-border);
}

.story-stat-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--koshi-teal);
  display: block;
}

.story-stat-label {
  font-size: 0.8125rem;
  color: var(--koshi-text-muted);
}

/* ── Wholesale CTA ── */

.wholesale-cta {
  background: var(--koshi-teal);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.wholesale-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.wholesale-cta .section-label { color: rgba(255,255,255,0.6); }
.wholesale-cta .section-title { color: #fff; }
.wholesale-cta .section-subtitle { color: rgba(255,255,255,0.8); max-width: 480px; }

.wholesale-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.wholesale-highlight {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}

.wholesale-highlight .wh-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.25rem;
}

.wholesale-highlight .wh-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
}

.btn-white {
  background: #fff;
  color: var(--koshi-teal);
}
.btn-white:hover { background: var(--koshi-teal-light); opacity: 1; }

/* ── Reviews ── */

.reviews { background: #fff; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.review-card {
  background: var(--koshi-cream);
  border-radius: 12px;
  padding: 1.75rem;
}

.review-stars {
  color: var(--koshi-gold);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.review-text {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: var(--koshi-text);
}

.review-author {
  font-size: 0.8125rem;
  color: var(--koshi-text-muted);
}

.reviews-link {
  text-align: center;
  margin-top: 2rem;
}

.reviews-link a {
  font-size: 0.9375rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

/* ── Footer ── */

.site-footer {
  background: var(--koshi-warm-gray);
  padding: 3.5rem 2rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--koshi-border);
}

.footer-brand img { height: 32px; margin-bottom: 1rem; }
.footer-brand p {
  font-size: 0.875rem;
  color: var(--koshi-text-muted);
  line-height: 1.6;
  max-width: 280px;
}
.footer-brand .footer-email {
  margin-top: 0.75rem;
  color: var(--koshi-teal);
  font-weight: 500;
  font-size: 0.875rem;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--koshi-text);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.625rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--koshi-text-muted);
}
.footer-col a:hover { color: var(--koshi-teal); opacity: 1; }

.footer-bottom {
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--koshi-text-light);
}

/* ── Story page ── */

.page-hero {
  padding: 10rem 2rem 4rem;
  background: var(--koshi-cream);
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.0625rem;
  color: var(--koshi-text-muted);
  max-width: 540px;
  margin: 0 auto;
}

.story-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 4rem 2rem;
}

.story-content p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--koshi-text);
  margin-bottom: 1.5rem;
}

.story-content .story-full-photo {
  margin: 3rem -2rem;
  border-radius: 12px;
  overflow: hidden;
}
.story-content .story-full-photo img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.story-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  margin: 3rem 0 1rem;
}

.story-photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.story-photo-pair img {
  border-radius: 10px;
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

/* ── Wholesale page ── */

.wholesale-hero {
  padding: 10rem 2rem 4rem;
  background: var(--koshi-teal);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.wholesale-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}

.wholesale-hero h1 {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.wholesale-hero p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.8);
  max-width: 540px;
  margin: 0 auto;
}

.wholesale-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 4rem 2rem;
}

.wholesale-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  margin: 3rem 0 1rem;
}

.wholesale-content h2:first-child { margin-top: 0; }

.wholesale-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--koshi-text);
  margin-bottom: 1rem;
}

.wholesale-terms {
  background: var(--koshi-cream);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.wholesale-terms dt {
  font-weight: 500;
  font-size: 0.9375rem;
  margin-top: 1.25rem;
  color: var(--koshi-text);
}
.wholesale-terms dt:first-child { margin-top: 0; }

.wholesale-terms dd {
  font-size: 0.9375rem;
  color: var(--koshi-text-muted);
  margin-top: 0.25rem;
}

.wholesale-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}

.wholesale-product {
  border: 1px solid var(--koshi-border);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
}

.wholesale-product img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}

.wholesale-product p {
  padding: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  margin: 0;
}

.wholesale-contact {
  background: var(--koshi-teal-light);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  margin-top: 3rem;
}

.wholesale-contact h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.wholesale-contact p {
  color: var(--koshi-text-muted);
  margin-bottom: 1.5rem;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    gap: 1rem;
  }
  .nav-links.open a { color: var(--koshi-text) !important; }
  .nav-toggle { display: block; }

  .hero { height: 65vh; min-height: 360px; }
  .intro h1 { font-size: 2rem; }
  .collections-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; gap: 2rem; }
  .wholesale-highlights { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .story-photo-pair { grid-template-columns: 1fr; }
  .wholesale-products-grid { grid-template-columns: repeat(2, 1fr); }

  .page-hero { padding: 8rem 1.5rem 3rem; }
  .page-hero h1 { font-size: 2rem; }
  .wholesale-hero { padding: 8rem 1.5rem 3rem; }
  .wholesale-hero h1 { font-size: 2rem; }

  .collections-wholesale-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .intro-ctas { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .collections-grid { gap: 1rem; }
  .wholesale-products-grid { grid-template-columns: 1fr 1fr; }
}
