/* ═══════════════════════════════════════════════════════
   CRAFTIFY — style.css
   Brand: Soft rose, dusty pink, cream, warm terracotta
   Fonts: Cormorant Garamond (display) + Lato (body)
         + DM Serif Display (hero headings)
         + Amiri (Arabic)
   ═══════════════════════════════════════════════════════ */

/* ── CSS VARIABLES ────────────────────────────────────── */
:root {
  /* Brand palette — inspired by Craftify logo (dusty rose/blush) */
  --rose:        #C87E7E;   /* primary brand rose */
  --rose-light:  #DDA8A8;   /* lighter rose */
  --rose-dark:   #A85C5C;   /* deeper rose */
  --blush:       #F4E8E8;   /* very light blush background */
  --cream:       #FDF8F4;   /* page background */
  --warm:        #F9F0E8;   /* warm off-white sections */
  --sand:        #EDE0D4;   /* divider / card bg */
  --taupe:       #C4A898;   /* muted warm accent */
  --bark:        #5A3D35;   /* rich dark for headings */
  --muted:       #9A7A72;   /* body text muted */
  --text:        #4A3028;   /* body text */

  /* Typography */
  --font-display: 'DM Serif Display', 'Cormorant Garamond', Georgia, serif;
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-body:    'Lato', 'Helvetica Neue', sans-serif;
  --font-arabic:  'Amiri', 'Traditional Arabic', serif;

  /* Spacing */
  --section-pad: clamp(5rem, 10vw, 9rem);
  --gap:         clamp(1.5rem, 3vw, 2.5rem);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-sm:  0 2px 12px rgba(90, 61, 53, 0.08);
  --shadow-md:  0 8px 32px rgba(90, 61, 53, 0.12);
  --shadow-lg:  0 20px 60px rgba(90, 61, 53, 0.16);
  --shadow-rose:0 8px 30px rgba(200, 126, 126, 0.25);
}

/* ── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* Arabic mode */
html[lang="ar"] body {
  font-family: var(--font-arabic);
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ── CONTAINER ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* ── HIDDEN UTILITY ───────────────────────────────────── */
.hidden { display: none !important; }

/* ══════════════════════════════════════════════════════
   FLOATING BACKGROUND DECORATIONS
   ══════════════════════════════════════════════════════ */
.bg-floats {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Floating crochet-style words */
.float-word {
  position: absolute;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--rose);
  opacity: 0;
  white-space: nowrap;
  user-select: none;
  animation: floatWord 20s ease-in-out infinite;
  letter-spacing: 0.06em;
}

.fw-1 { top: 8%;  left: -8%; font-size: clamp(2rem, 5vw, 4rem);   opacity: 0.055; animation-delay: 0s;   animation-duration: 22s; }
.fw-2 { top: 25%; right: -5%;font-size: clamp(1.5rem,4vw,3.2rem); opacity: 0.045; animation-delay: 3s;   animation-duration: 25s; }
.fw-3 { top: 55%; left: 2%;  font-size: clamp(3rem, 7vw, 6rem);   opacity: 0.04;  animation-delay: 6s;   animation-duration: 18s; }
.fw-4 { top: 70%; right: 3%; font-size: clamp(2rem, 5vw, 4rem);   opacity: 0.05;  animation-delay: 9s;   animation-duration: 24s; }
.fw-5 { top: 40%; left: 45%; font-size: clamp(1.2rem,3vw,2.5rem); opacity: 0.035; animation-delay: 12s;  animation-duration: 20s; }
.fw-6 { top: 85%; left: 15%; font-size: clamp(1.5rem,4vw,3rem);   opacity: 0.04;  animation-delay: 15s;  animation-duration: 26s; }
.fw-7 { top: 15%; left: 35%; font-size: clamp(1rem,  2.5vw,2rem); opacity: 0.035; animation-delay: 18s;  animation-duration: 22s; }

@keyframes floatWord {
  0%   { transform: translateY(0px) rotate(-3deg);  opacity: inherit; }
  30%  { transform: translateY(-18px) rotate(1deg); }
  60%  { transform: translateY(-8px) rotate(-2deg); }
  100% { transform: translateY(0px) rotate(-3deg);  }
}

/* Floating shapes (yarn circle outlines) */
.float-shape {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed var(--rose);
  opacity: 0;
  animation: floatShape 18s ease-in-out infinite;
}
.fs-1 { width: 300px; height: 300px; top: 5%;   left: -5%;  opacity: 0.06; animation-delay: 0s;  animation-duration: 20s; }
.fs-2 { width: 200px; height: 200px; top: 40%;  right: -3%; opacity: 0.05; animation-delay: 4s;  animation-duration: 18s; }
.fs-3 { width: 150px; height: 150px; top: 70%;  left: 10%;  opacity: 0.07; animation-delay: 8s;  animation-duration: 24s; }
.fs-4 { width: 80px;  height: 80px;  top: 20%;  right: 20%; opacity: 0.08; animation-delay: 12s; animation-duration: 16s; }
.fs-5 { width: 400px; height: 400px; top: 60%;  right: -8%; opacity: 0.04; animation-delay: 6s;  animation-duration: 28s; }

@keyframes floatShape {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); opacity: inherit; }
  50%       { transform: translateY(-30px) scale(1.04) rotate(8deg); }
}

/* Floating icons */
.float-icon {
  position: absolute;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  opacity: 0;
  animation: floatIcon 14s ease-in-out infinite;
  user-select: none;
}
.fi-1 { top: 12%; left:  8%;  opacity: 0.12; animation-delay: 0s;  animation-duration: 14s; }
.fi-2 { top: 35%; right: 8%;  opacity: 0.10; animation-delay: 3s;  animation-duration: 18s; }
.fi-3 { top: 60%; left:  5%;  opacity: 0.09; animation-delay: 6s;  animation-duration: 16s; }
.fi-4 { top: 80%; right: 15%; opacity: 0.11; animation-delay: 9s;  animation-duration: 20s; }
.fi-5 { top: 50%; left:  50%; opacity: 0.08; animation-delay: 12s; animation-duration: 22s; }
.fi-6 { top: 20%; right: 35%; opacity: 0.10; animation-delay: 2s;  animation-duration: 15s; }

@keyframes floatIcon {
  0%, 100% { transform: translateY(0) rotate(-5deg);  opacity: inherit; }
  50%       { transform: translateY(-22px) rotate(5deg); }
}

/* ══════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.scrolled {
  background: rgba(253, 248, 244, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
  gap: 1rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  font-size: 1.6rem;
  color: var(--rose);
  line-height: 1;
  animation: spin 12s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--bark);
  letter-spacing: -0.02em;
}
.logo-tagline {
  font-family: var(--font-body);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.25s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--rose);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--rose); }
.nav-links a:hover::after { width: 100%; }

/* Controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--sand);
  border-radius: 99px;
  background: transparent;
  transition: border-color 0.25s, background 0.25s;
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--rose); background: var(--blush); }
.lang-sep { opacity: 0.4; }
.lang-en.active, .lang-ar.active { color: var(--rose); font-weight: 700; }

/* Nav social icons */
.nav-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: var(--muted);
  border: 1px solid var(--sand);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.nav-social:hover { color: var(--rose); border-color: var(--rose); background: var(--blush); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--bark);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 99px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s, background 0.25s, color 0.25s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--rose);
  color: #fff;
  box-shadow: var(--shadow-rose);
}
.btn-primary:hover { background: var(--rose-dark); box-shadow: 0 12px 40px rgba(200,126,126,0.35); }

.btn-outline {
  background: transparent;
  color: var(--rose);
  border: 1.5px solid var(--rose);
}
.btn-outline:hover { background: var(--rose); color: #fff; box-shadow: var(--shadow-rose); }

.btn-sm { padding: 0.65rem 1.4rem; font-size: 0.75rem; }

/* ══════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

/* ══════════════════════════════════════════════════════
   SECTION COMMON STYLES
   ══════════════════════════════════════════════════════ */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.8rem;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 1.2rem; height: 1px;
  background: var(--rose);
  transform: translateY(-50%);
}

html[dir="rtl"] .section-label {
  padding-left: 0;
  padding-right: 1.8rem;
}
html[dir="rtl"] .section-label::before {
  left: auto; right: 0;
}

.section-header { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-header .section-label { display: inline-block; }
.section-header .section-label::before { display: none; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  color: var(--bark);
  line-height: 1.15;
  font-weight: 400;
  margin-bottom: 1rem;
}
.section-title em {
  font-style: italic;
  color: var(--rose);
}

.section-sub {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ══════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: calc(80px + 3rem) 0 3rem;
  overflow: hidden;
  background: var(--cream);
}

/* Yarn spiral background */
.hero-bg-yarn {
  position: absolute;
  right: -5vw; top: 50%;
  transform: translateY(-50%);
  width: clamp(300px, 50vw, 600px);
  color: var(--rose);
  opacity: 0.15;
  pointer-events: none;
  animation: rotateSlowly 40s linear infinite;
}
@keyframes rotateSlowly {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}
.yarn-spiral { width: 100%; }

/* Hero grid */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Hero content */
.hero-content { display: flex; flex-direction: column; gap: 1.5rem; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  background: var(--blush);
  border: 1px solid var(--rose-light);
  border-radius: 99px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-dark);
  width: fit-content;
}
.hero-badge::before { content: '🧶'; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05;
  color: var(--bark);
  font-weight: 400;
}
.hero-title-brand {
  display: block;
  font-size: 1.15em;
  letter-spacing: -0.02em;
}
.hero-title-phrase {
  display: block;
  color: var(--rose);
  font-style: italic;
  font-size: 0.85em;
  margin-top: 0.2rem;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--muted);
  line-height: 1.8;
  max-width: 440px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--sand);
  border-radius: 99px;
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, color 0.25s, background 0.25s, transform 0.25s;
}
.social-chip:hover {
  border-color: var(--rose);
  color: var(--rose);
  background: var(--blush);
  transform: translateY(-2px);
}

/* Hero visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 420px;
}

/* Logo circle */
.hero-logo-circle {
  width: clamp(240px, 28vw, 340px);
  height: clamp(240px, 28vw, 340px);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 30px 80px rgba(200, 126, 126, 0.35);
  animation: gentlePulse 6s ease-in-out infinite;
}
@keyframes gentlePulse {
  0%, 100% { box-shadow: 0 30px 80px rgba(200,126,126,0.35); transform: scale(1); }
  50%       { box-shadow: 0 40px 100px rgba(200,126,126,0.45); transform: scale(1.02); }
}

.logo-circle-inner {
  text-align: center;
  color: #fff;
  padding: 1.5rem;
}
.logo-hand { font-size: 3rem; margin-bottom: 0.5rem; }
.logo-circle-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.01em;
  line-height: 1;
}
.logo-circle-sub {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 0.5rem;
}

/* Orbit ring */
.orbit-ring {
  position: absolute;
  width: calc(100% + 50px);
  height: calc(100% + 50px);
  border: 1.5px dashed rgba(200, 126, 126, 0.3);
  border-radius: 50%;
  animation: orbit 8s linear infinite;
}
.orbit-dot {
  position: absolute;
  top: -15px; left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
}
@keyframes orbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Hero floating cards */
.hero-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.8rem 1.1rem;
  background: rgba(253,248,244,0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--sand);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  animation: floatCard 5s ease-in-out infinite;
}
.hc-emoji { font-size: 1.5rem; }
.hc-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hc-1 { top: 5%;  left: -10%; animation-delay: 0s; }
.hc-2 { bottom: 10%; left: -5%; animation-delay: 1.5s; }
.hc-3 { top: 15%; right: -10%; animation-delay: 3s; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

/* Scroll nudge */
.scroll-nudge {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--taupe);
  z-index: 2;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--taupe), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.4; transform: scaleY(0.6); }
}

/* ══════════════════════════════════════════════════════
   ABOUT SECTION
   ══════════════════════════════════════════════════════ */
.about {
  background: var(--warm);
  padding: var(--section-pad) 0;
  position: relative;
  z-index: 1;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

/* About visual */
.about-visual { position: relative; }

.about-texture-block {
  width: 100%;
  aspect-ratio: 1;
  max-width: 360px;
  background: var(--blush);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Granny square CSS art */
.granny-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 2rem;
  width: 100%;
}
.gs {
  aspect-ratio: 1;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.gs::before, .gs::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}
.gs-1 {
  background: linear-gradient(135deg, #e8c4b8, #d4a0a0);
}
.gs-1::before { inset: 15%; background: rgba(255,255,255,0.4); }
.gs-1::after  { inset: 30%; background: rgba(200,126,126,0.3); }

.gs-2 {
  background: linear-gradient(135deg, #d4c4e8, #b8a0d4);
}
.gs-2::before { inset: 15%; background: rgba(255,255,255,0.4); }
.gs-2::after  { inset: 30%; background: rgba(184,160,212,0.5); }

.gs-3 {
  background: linear-gradient(135deg, #c4d4c0, #a0b89a);
}
.gs-3::before { inset: 15%; background: rgba(255,255,255,0.4); }
.gs-3::after  { inset: 30%; background: rgba(160,184,154,0.5); }

.gs-4 {
  background: linear-gradient(135deg, #f4d4b8, #e8b890);
}
.gs-4::before { inset: 15%; background: rgba(255,255,255,0.4); }
.gs-4::after  { inset: 30%; background: rgba(232,184,144,0.5); }

/* Badge circle on texture block */
.about-badge-circle {
  position: absolute;
  bottom: -1rem; right: -1rem;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--rose);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-rose);
  animation: floatCard 4s ease-in-out infinite;
}
.about-badge-circle span { font-size: 1.4rem; line-height: 1; }
.about-badge-circle p {
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  margin-top: 0.2rem;
  padding: 0 0.4rem;
}

/* Thread decoration SVG */
.thread-deco {
  position: absolute;
  right: -20px; top: 20px;
  width: 80px; height: 120px;
  color: var(--rose);
  pointer-events: none;
}

/* About text */
.about-content { display: flex; flex-direction: column; gap: 1.2rem; }

.about-text {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text);
  line-height: 1.85;
}

.about-values {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}
.av-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 99px;
  font-size: 0.78rem;
  color: var(--bark);
  letter-spacing: 0.06em;
  transition: border-color 0.25s, transform 0.25s;
}
.av-item:hover { border-color: var(--rose); transform: translateY(-2px); }

/* ══════════════════════════════════════════════════════
   COLLECTION SECTION
   ══════════════════════════════════════════════════════ */
.collection {
  padding: var(--section-pad) 0;
  background: var(--cream);
  position: relative;
  z-index: 1;
}

/* Controls */
.collection-controls {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.search-wrap {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}
.search-icon {
  position: absolute;
  left: 1.1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--taupe);
  pointer-events: none;
}
html[dir="rtl"] .search-icon { left: auto; right: 1.1rem; }

.search-input {
  width: 100%;
  padding: 0.85rem 1.1rem 0.85rem 3rem;
  border: 1.5px solid var(--sand);
  border-radius: 99px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
html[dir="rtl"] .search-input { padding: 0.85rem 3rem 0.85rem 1.1rem; }
.search-input:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(200,126,126,0.15); }
.search-input::placeholder { color: var(--taupe); }

/* Filter tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.ftab {
  padding: 0.5rem 1.2rem;
  border-radius: 99px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1.5px solid var(--sand);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.ftab:hover { border-color: var(--rose-light); color: var(--rose); }
.ftab.active {
  background: var(--rose);
  color: #fff;
  border-color: var(--rose);
  box-shadow: var(--shadow-rose);
}

/* Items grid */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.8rem);
}

/* Item card */
.item-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--sand);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  position: relative;
  cursor: pointer;
}
.item-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.item-img {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.item-emoji { font-size: 4rem; z-index: 1; }
.item-category-tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 0.3rem 0.8rem;
  background: rgba(200,126,126,0.15);
  border: 1px solid rgba(200,126,126,0.3);
  border-radius: 99px;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose-dark);
  backdrop-filter: blur(6px);
}

html[dir="rtl"] .item-category-tag { left: auto; right: 12px; }

.item-body { padding: 1.2rem 1.4rem 1.4rem; }
.item-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bark);
  margin-bottom: 0.4rem;
}
.item-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.item-order-btn {
  padding: 0.5rem 1.1rem;
  background: var(--rose);
  color: #fff;
  border-radius: 99px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  font-family: var(--font-body);
  transition: background 0.25s, transform 0.25s;
}
.item-order-btn:hover { background: var(--rose-dark); transform: translateY(-1px); }

.item-made { font-size: 0.7rem; color: var(--taupe); letter-spacing: 0.06em; }

/* No results */
.no-results {
  text-align: center;
  color: var(--taupe);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  padding: 3rem;
  grid-column: 1 / -1;
}

/* ══════════════════════════════════════════════════════
   CUSTOMIZATION SECTION
   ══════════════════════════════════════════════════════ */
.customize {
  background: var(--blush);
  padding: var(--section-pad) 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.customize::before {
  content: '✿';
  position: absolute;
  top: -2rem; right: 5%;
  font-size: 15rem;
  color: var(--rose);
  opacity: 0.05;
  pointer-events: none;
  animation: floatWord 20s ease-in-out infinite;
}

.customize-inner { position: relative; }

/* Custom grid */
.custom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.8rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.custom-card {
  background: #fff;
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid rgba(200,126,126,0.15);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.custom-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200,126,126,0.35);
}

.cc-cta-card {
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-dark) 100%);
  color: #fff;
  border-color: transparent;
}
.cc-cta-card .cc-title,
.cc-cta-card .cc-text { color: rgba(255,255,255,0.95); }
.cc-cta-card .btn-primary {
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff;
}
.cc-cta-card .btn-primary:hover { background: rgba(255,255,255,0.35); }

.cc-icon { font-size: 2rem; }
.cc-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--bark);
}
.cc-text {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}

/* Letters strip */
.letters-strip {
  text-align: center;
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--cream);
  border-radius: 24px;
  border: 1px solid var(--sand);
}
.ls-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  margin-bottom: 1rem;
}
.cl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 7vw, 64px);
  height: clamp(44px, 7vw, 64px);
  border-radius: 12px;
  background: var(--blush);
  border: 2px solid var(--rose-light);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--rose-dark);
  font-weight: 400;
  transition: transform 0.25s var(--ease-bounce), background 0.25s, box-shadow 0.25s;
  cursor: default;
}
.cl:hover {
  transform: translateY(-6px) scale(1.1);
  background: var(--rose);
  color: #fff;
  box-shadow: var(--shadow-rose);
}

.ls-caption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════
   GALLERY SECTION
   ══════════════════════════════════════════════════════ */
.gallery {
  background: var(--warm);
  padding: var(--section-pad) 0;
  position: relative;
  z-index: 1;
}

/* Masonry-style gallery */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: clamp(0.8rem, 1.8vw, 1.4rem);
  margin-bottom: 3rem;
}
.gm-item { border-radius: 18px; overflow: hidden; }
.gm-tall { grid-row: span 2; }
.gm-wide { grid-column: span 2; }

.gm-inner {
  width: 100%;
  height: 100%;
  min-height: 200px;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
}
.gm-tall .gm-inner { min-height: 420px; }
.gm-wide .gm-inner { min-height: 200px; }

.gm-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: transform 0.6s var(--ease);
}
.gm-placeholder span { font-size: 3rem; }
.gm-placeholder p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(90,61,53,0.7);
}

.gm-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(90,61,53,0.65) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.gm-overlay span {
  font-family: var(--font-serif);
  font-style: italic;
  color: #fff;
  font-size: 1rem;
}

.gm-inner:hover .gm-placeholder { transform: scale(1.05); }
.gm-inner:hover .gm-overlay { opacity: 1; }

.gallery-cta { text-align: center; }

/* ══════════════════════════════════════════════════════
   CONTACT SECTION
   ══════════════════════════════════════════════════════ */
.contact {
  background: var(--cream);
  padding: var(--section-pad) 0;
  position: relative;
  z-index: 1;
}

.contact-inner { }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}

.contact-card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--sand);
  overflow: hidden;
  text-decoration: none;
  display: block;
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.cc-bg {
  height: 8px;
  background: linear-gradient(90deg, var(--rose-light), var(--rose), var(--rose-dark));
}

.cc-content {
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
}

.cc-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--blush);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose);
  margin-bottom: 0.4rem;
}

.cc-content h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--bark);
  font-weight: 600;
}
.cc-content p {
  font-size: 0.82rem;
  color: var(--muted);
}
.cc-link {
  font-size: 0.85rem;
  color: var(--rose);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-top: 0.3rem;
}

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
.site-footer {
  background: var(--bark);
  color: rgba(255,255,255,0.7);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--rose-light);
  display: block;
  margin-bottom: 0.4rem;
}
.footer-brand p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--rose-light); }

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════════════════════════
   BACK TO TOP
   ══════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-rose);
  cursor: pointer;
  border: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--rose-dark); transform: translateY(-2px); }

html[dir="rtl"] .back-to-top { right: auto; left: 2rem; }

/* ══════════════════════════════════════════════════════
   RTL ADJUSTMENTS
   ══════════════════════════════════════════════════════ */
html[dir="rtl"] .nav-links a::after { left: auto; right: 0; }
html[dir="rtl"] .hero-bg-yarn { right: auto; left: -5vw; }
html[dir="rtl"] .logo-circle-inner { direction: rtl; }
html[dir="rtl"] .about-inner { direction: rtl; }
html[dir="rtl"] .thread-deco { right: auto; left: -20px; }
html[dir="rtl"] .about-badge-circle { bottom: -1rem; right: auto; left: -1rem; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .contact-cards { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .gallery-masonry { grid-template-columns: repeat(2, 1fr); }
  .gm-wide { grid-column: span 2; }
  .gm-tall { grid-row: span 1; }
  .gm-tall .gm-inner { min-height: 260px; }
}

@media (max-width: 768px) {
  /* Nav mobile */
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: rgba(253,248,244,0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; }
  .hamburger { display: flex; z-index: 1000; }
  .nav-social { display: none; }

  /* Hero */
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-sub { margin: 0 auto; }
  .hero-ctas { justify-content: center; }
  .hero-socials { justify-content: center; }
  .hero-badge { margin: 0 auto; }

  /* About */
  .about-inner { grid-template-columns: 1fr; }
  .about-texture-block { margin: 0 auto; }
  .thread-deco { display: none; }

  /* Gallery */
  .gallery-masonry { grid-template-columns: 1fr 1fr; }
  .gm-tall { grid-row: span 1; }
  .gm-wide { grid-column: span 2; }

  /* Contact */
  .contact-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .gallery-masonry { grid-template-columns: 1fr; }
  .gm-wide { grid-column: span 1; }
  .custom-grid { grid-template-columns: 1fr; }
  .ls-inner { gap: 0.4rem; }
  .cl { width: 40px; height: 40px; font-size: 1.2rem; }
  .items-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════
   FINE TOUCHES & MICRO-DETAILS
   ══════════════════════════════════════════════════════ */

/* Yarn-stitch texture for specific sections (subtle CSS pattern) */
.about::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23C87E7E' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
.about .about-inner { position: relative; z-index: 1; }

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--rose-light); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--rose); }

/* Focus visible */
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

/* Selection */
::selection { background: var(--rose-light); color: var(--bark); }
