/* ============================================
   Mother-Crochet — Ink & Wool
   ============================================ */

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

:root {
  --ink: #141210;
  --ink-soft: #2a2622;
  --wool: #8a735a;
  --wool-soft: #a89278;
  --off-white: #f7f4ef;
  --stone: #ebe6df;
  --stone-deep: #ddd6cc;
  --text-primary: #141210;
  --text-secondary: #5c564e;
  --text-muted: #7a736a;
  --border: rgba(20, 18, 16, 0.1);
  --nav-bg: rgba(247, 244, 239, 0.82);
  --radius: 6px;
  --radius-md: 10px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1180px;
  --nav-h: 72px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--off-white);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100vw;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* ============================================
   Typography helpers
   ============================================ */

h1, h2, h3,
.section-title,
.hero-title,
.stat-number,
.step-number {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  height: 40px;
  text-decoration: none;
  transition: opacity 0.25s var(--ease);
}

.logo img {
  height: 100%;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.logo:hover {
  opacity: 0.7;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--wool);
}

/* ============================================
   Buttons
   ============================================ */

.cta-button,
.shop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.cta-button.primary,
.shop-btn {
  background: var(--ink);
  color: var(--off-white);
}

.cta-button.primary:hover,
.shop-btn:hover {
  background: var(--ink-soft);
}

.cta-button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: rgba(20, 18, 16, 0.28);
}

.cta-button.secondary:hover {
  border-color: var(--ink);
  background: rgba(20, 18, 16, 0.04);
}

/* ============================================
   Hero
   ============================================ */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 48px) 28px 80px;
  background:
    linear-gradient(180deg, rgba(20, 18, 16, 0.28) 0%, rgba(20, 18, 16, 0.42) 55%, rgba(20, 18, 16, 0.55) 100%),
    url("assets/hero-bg3.png") center/cover no-repeat;
  color: var(--off-white);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-logo {
  margin-bottom: 28px;
}

.hero-logo img {
  height: clamp(72px, 14vw, 120px);
  width: auto;
  margin: 0 auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 500;
  color: var(--off-white);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 19px);
  font-weight: 400;
  color: rgba(247, 244, 239, 0.82);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero-section .cta-button.primary {
  background: var(--off-white);
  color: var(--ink);
}

.hero-section .cta-button.primary:hover {
  background: #fff;
}

.hero-section .cta-button.secondary {
  color: var(--off-white);
  border-color: rgba(247, 244, 239, 0.45);
}

.hero-section .cta-button.secondary:hover {
  border-color: var(--off-white);
  background: rgba(247, 244, 239, 0.08);
}

/* ============================================
   Story sections
   ============================================ */

.story-section {
  padding: 110px 28px;
}

.section-1 {
  background: var(--off-white);
}

.section-2 {
  background: var(--stone);
}

.content-wrapper {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.content-wrapper.reverse {
  direction: rtl;
}

.content-wrapper.reverse > * {
  direction: ltr;
}

.text-content {
  max-width: 460px;
}

.text-content h2 {
  font-size: clamp(34px, 4.5vw, 52px);
  margin-bottom: 20px;
  color: var(--ink);
}

.text-content p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.story-media {
  margin: 0;
}

.story-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--stone-deep);
}

.story-media figcaption,
.gallery-item figcaption {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

/* ============================================
   Gallery
   ============================================ */

.gallery-section {
  padding: 110px 28px;
  background: var(--off-white);
}

.section-title {
  text-align: center;
  font-size: clamp(34px, 4.5vw, 52px);
  color: var(--ink);
  margin-bottom: 56px;
}

.gallery-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 22px;
}

.gallery-item {
  margin: 0;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--stone);
  transition: transform 0.45s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover img {
    transform: scale(1.015);
  }
}

/* ============================================
   Shop CTA
   ============================================ */

.shop-cta-section {
  padding: 110px 28px;
  background:
    linear-gradient(180deg, rgba(20, 18, 16, 0.72), rgba(20, 18, 16, 0.82)),
    url("assets/hero-bg.png") center/cover no-repeat;
  color: var(--off-white);
  text-align: center;
}

.shop-cta-content {
  max-width: 640px;
  margin: 0 auto;
}

.shop-cta-content h2 {
  font-size: clamp(34px, 4.5vw, 52px);
  margin-bottom: 16px;
  color: var(--off-white);
}

.shop-cta-content p {
  font-size: 17px;
  color: rgba(247, 244, 239, 0.78);
  margin-bottom: 32px;
}

.shop-cta-section .cta-button.primary {
  background: var(--off-white);
  color: var(--ink);
}

.shop-cta-section .cta-button.primary:hover {
  background: #fff;
}

/* ============================================
   Bio
   ============================================ */

.bio-section {
  padding: 110px 28px;
  background: var(--stone);
}

.bio-container {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: 64px;
  align-items: start;
}

.bio-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-width: 360px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(160deg, var(--ink-soft) 0%, #3d342c 55%, var(--wool) 140%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bio-placeholder span {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 500;
  color: rgba(247, 244, 239, 0.55);
  letter-spacing: 0.08em;
}

.bio-content h2 {
  font-size: clamp(34px, 4.5vw, 48px);
  margin-bottom: 28px;
  color: var(--ink);
}

.bio-text p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.75;
}

.bio-signature {
  margin-top: 28px;
}

.bio-signature span {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  color: var(--text-muted);
}

/* ============================================
   Stats — open typographic layout
   ============================================ */

.stats-section {
  padding: 110px 28px;
  background: var(--off-white);
}

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 24px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-size: clamp(40px, 5vw, 56px);
  color: var(--ink);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.stat-description {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================
   Process
   ============================================ */

.process-section {
  padding: 110px 28px;
  background: var(--stone);
}

.process-timeline {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 28px;
}

.process-step {
  text-align: left;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.step-number {
  font-size: 42px;
  color: var(--wool);
  opacity: 0.55;
  margin: 20px 0 12px;
  line-height: 1;
}

.process-step h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0;
}

.process-step p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ============================================
   Contact & Footer
   ============================================ */

.contact-section {
  padding: 110px 28px;
  background: var(--off-white);
  text-align: center;
}

.contact-content {
  max-width: 640px;
  margin: 0 auto;
}

.contact-content h2 {
  font-size: clamp(34px, 4.5vw, 52px);
  margin-bottom: 16px;
  color: var(--ink);
}

.contact-content p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.contact-link {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.contact-link:hover {
  color: var(--wool);
  border-bottom-color: var(--wool);
}

.social-links {
  display: flex;
  gap: 28px;
}

.social-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.social-link:hover {
  color: var(--ink);
}

.footer {
  padding: 36px 28px;
  background: var(--off-white);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   Shop page
   ============================================ */

.shop-header {
  padding: calc(var(--nav-h) + 72px) 28px 56px;
  background: var(--stone);
  text-align: center;
}

.shop-header-content {
  max-width: 640px;
  margin: 0 auto;
}

.shop-header h1 {
  font-size: clamp(40px, 6vw, 64px);
  margin-bottom: 12px;
  color: var(--ink);
}

.shop-header p {
  font-size: 17px;
  color: var(--text-secondary);
}

.shop-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 28px 110px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 28px;
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-image {
  background: var(--stone);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 18px;
}

.product-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-image img {
    transform: scale(1.02);
  }
}

.product-info h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink);
}

.product-price {
  font-size: 15px;
  font-weight: 500;
  color: var(--wool);
  margin-bottom: 10px;
}

.product-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}

.shop-btn {
  width: 100%;
  min-height: 44px;
}

/* ============================================
   Reveal motion
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .gallery-item img,
  .product-image img,
  .cta-button,
  .shop-btn,
  .logo,
  .nav-menu a {
    transition: none;
  }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 960px) {
  .content-wrapper,
  .content-wrapper.reverse,
  .bio-container {
    grid-template-columns: 1fr;
    gap: 36px;
    direction: ltr;
  }

  .text-content {
    max-width: none;
  }

  .bio-placeholder {
    max-width: 280px;
    margin: 0 auto;
  }

  .gallery-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid,
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --nav-h: 64px;
  }

  .nav-container {
    padding: 0 18px;
  }

  .nav-menu {
    gap: 16px;
  }

  .nav-menu a {
    font-size: 13px;
  }

  .logo {
    height: 32px;
  }

  .hero-section,
  .story-section,
  .gallery-section,
  .shop-cta-section,
  .bio-section,
  .stats-section,
  .process-section,
  .contact-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .story-section,
  .gallery-section,
  .shop-cta-section,
  .bio-section,
  .stats-section,
  .process-section,
  .contact-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .gallery-grid,
  .product-grid,
  .stats-grid,
  .process-timeline {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .cta-button {
    width: 100%;
  }

  .shop-header {
    padding: calc(var(--nav-h) + 48px) 18px 40px;
  }

  .shop-section {
    padding: 40px 18px 80px;
  }

  .social-links {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (hover: none) and (pointer: coarse) {
  .nav-menu a,
  .shop-btn,
  .cta-button {
    -webkit-tap-highlight-color: rgba(138, 115, 90, 0.18);
  }
}


/* Home: light nav over dark hero until scrolled */
.page-home .navbar:not(.scrolled) .nav-menu a {
  color: rgba(247, 244, 239, 0.92);
}

.page-home .navbar:not(.scrolled) .nav-menu a:hover,
.page-home .navbar:not(.scrolled) .nav-menu a.active {
  color: #fff;
}

.page-home .navbar:not(.scrolled) .logo img {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.page-home .navbar.scrolled .logo img {
  filter: none;
  opacity: 1;
}
