/* ============================================
   HARIT TEXTILE — haritextile.store
   Unique textile loom machine website UI
   ============================================ */

:root {
  --color-bg: #0f0e0c;
  --color-bg-elevated: #1a1814;
  --color-bg-card: #221f1a;
  --color-surface: #2a2620;
  --color-border: rgba(212, 168, 83, 0.15);
  --color-border-strong: rgba(212, 168, 83, 0.3);

  --color-gold: #d4a853;
  --color-gold-light: #e8c97a;
  --color-gold-dark: #a67c2e;
  --color-copper: #b87333;
  --color-indigo: #2c3e6b;
  --color-indigo-light: #3d5291;
  --color-cream: #f5f0e6;
  --color-cream-muted: #c4bdb0;
  --color-text: #e8e2d6;
  --color-text-muted: #9a9285;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(212, 168, 83, 0.15);

  --header-height: 72px;
  --bottom-nav-height: 0px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--color-gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-gold-light); }
address { font-style: normal; line-height: 1.8; color: var(--color-cream-muted); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Preloader ---- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.6s, visibility 0.6s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-gold);
  letter-spacing: 0.1em;
}

.loom-loader {
  display: flex;
  gap: 6px;
  height: 48px;
  align-items: flex-end;
}

.loom-thread {
  width: 4px;
  background: linear-gradient(to top, var(--color-gold-dark), var(--color-gold));
  border-radius: 2px;
  animation: weave 1.2s ease-in-out infinite;
}

.loom-thread:nth-child(1) { animation-delay: 0s; height: 20px; }
.loom-thread:nth-child(2) { animation-delay: 0.15s; height: 32px; }
.loom-thread:nth-child(3) { animation-delay: 0.3s; height: 48px; }
.loom-thread:nth-child(4) { animation-delay: 0.45s; height: 32px; }
.loom-thread:nth-child(5) { animation-delay: 0.6s; height: 20px; }

@keyframes weave {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: var(--color-bg);
  box-shadow: 0 4px 16px rgba(212, 168, 83, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 168, 83, 0.4);
  color: var(--color-bg);
}

.btn-outline {
  border: 1.5px solid var(--color-gold);
  color: var(--color-gold);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(212, 168, 83, 0.1);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--color-cream-muted);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--color-gold);
  background: rgba(212, 168, 83, 0.08);
}

.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(15, 14, 12, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-cream);
  text-decoration: none;
}

.logo:hover { color: var(--color-cream); }

.logo-icon {
  width: 36px;
  height: 36px;
  color: var(--color-gold);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.logo-text strong {
  color: var(--color-gold);
  font-weight: 700;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  color: var(--color-cream-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-gold);
  background: rgba(212, 168, 83, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-cream);
  border-radius: 1px;
  transition: var(--transition);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: calc(var(--header-height) + 40px) 24px 60px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.weave-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 11px, var(--color-gold) 11px, var(--color-gold) 12px),
    repeating-linear-gradient(90deg, transparent, transparent 11px, var(--color-gold) 11px, var(--color-gold) 12px);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(44, 62, 107, 0.25), transparent),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(212, 168, 83, 0.08), transparent),
    linear-gradient(180deg, var(--color-bg) 0%, #12100e 100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--color-gold);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-cream);
  margin-bottom: 20px;
}

.hero-title em {
  font-style: italic;
  color: var(--color-gold);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--color-cream-muted);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-gold);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

/* Hero Loom Card */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.loom-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.loom-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.loom-status {
  font-size: 0.75rem;
  color: #4ade80;
  letter-spacing: 0.05em;
}

.loom-model {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-gold);
  font-weight: 600;
}

.loom-illustration {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  margin-bottom: 20px;
  overflow: hidden;
}

.loom-frame {
  position: relative;
  height: 120px;
}

.warp-lines {
  display: flex;
  justify-content: space-between;
  height: 100%;
  padding: 0 10px;
}

.warp-lines span {
  display: block;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--color-gold-dark), var(--color-gold), var(--color-gold-dark));
  animation: warpPulse 3s ease-in-out infinite;
}

.warp-lines span:nth-child(odd) { animation-delay: 0.5s; }

@keyframes warpPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.shuttle {
  position: absolute;
  top: 50%;
  left: 0;
  width: 24px;
  height: 8px;
  background: var(--color-copper);
  border-radius: 4px;
  transform: translateY(-50%);
  animation: shuttleMove 2.5s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(184, 115, 51, 0.5);
}

@keyframes shuttleMove {
  0%, 100% { left: 5%; }
  50% { left: 85%; }
}

.fabric-roll {
  position: absolute;
  bottom: 0;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--color-indigo), var(--color-indigo-light), var(--color-indigo));
  border: 3px solid var(--color-gold-dark);
}

.loom-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
}

.loom-specs small {
  display: block;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.loom-specs strong {
  font-size: 1rem;
  color: var(--color-cream);
}

/* ---- Features Strip ---- */
.features-strip {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 40px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 0.95rem;
  color: var(--color-cream);
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* ---- Sections ---- */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-bottom: 12px;
  padding: 4px 14px;
  border: 1px solid var(--color-border);
  border-radius: 100px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--color-cream);
  margin-bottom: 16px;
}

.section-desc {
  color: var(--color-cream-muted);
  font-size: 1rem;
}

/* ---- Products ---- */
.products {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-elevated) 50%, var(--color-bg) 100%);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.product-card:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.product-img {
  position: relative;
  height: 240px;
  background: var(--color-surface);
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.product-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 14, 12, 0.5) 0%, transparent 50%);
  pointer-events: none;
}

.product-card:hover .product-img img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: rgba(212, 168, 83, 0.9);
  color: var(--color-bg);
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-badge.hot {
  background: rgba(239, 68, 68, 0.9);
  color: white;
}

.product-body {
  padding: 24px;
}

.product-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-cream);
  margin-bottom: 8px;
}

.product-body > p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.product-specs {
  list-style: none;
  margin-bottom: 20px;
}

.product-specs li {
  font-size: 0.82rem;
  color: var(--color-cream-muted);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.product-specs li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-size: 0.5rem;
  top: 8px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gold);
}

/* ---- Fabrics ---- */
.fabrics {
  background: var(--color-bg-elevated);
}

.fabrics-showcase {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.fabric-swatch {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition);
  background: var(--color-surface);
}

.fabric-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.fabric-swatch:hover {
  transform: scale(1.05);
}

.fabric-swatch:hover img {
  transform: scale(1.08);
}

.swatch-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  color: white;
  z-index: 1;
  letter-spacing: 0.03em;
}

.fabrics-cta {
  text-align: center;
  padding: 40px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.fabrics-cta p {
  color: var(--color-cream-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-content p {
  color: var(--color-cream-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.highlight-icon { font-size: 1.5rem; }

.highlight strong {
  display: block;
  color: var(--color-cream);
  font-size: 0.95rem;
}

.highlight span {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.about-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.about-card-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  opacity: 0.06;
  background: repeating-conic-gradient(var(--color-gold) 0% 25%, transparent 0% 50%) 0 0 / 20px 20px;
}

.about-card blockquote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-cream);
  line-height: 1.6;
  margin-bottom: 16px;
  position: relative;
}

.about-card cite {
  font-size: 0.85rem;
  color: var(--color-gold);
  font-style: normal;
}

.about-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.timeline-item:last-child { border-bottom: none; }

.timeline-item span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-gold);
  min-width: 50px;
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--color-cream-muted);
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.contact-icon { font-size: 1.5rem; flex-shrink: 0; }

.contact-card h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-bottom: 6px;
}

.contact-card p,
.contact-card a {
  font-size: 0.92rem;
  color: var(--color-cream-muted);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.contact-map {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder {
  text-align: center;
  padding: 40px;
}

.map-pin {
  color: var(--color-gold);
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.map-placeholder p {
  color: var(--color-cream-muted);
  margin-bottom: 8px;
}

.map-placeholder strong {
  color: var(--color-cream);
  font-size: 1.1rem;
}

/* ---- Footer ---- */
.footer {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 280px;
}

.footer-links h5,
.footer-contact h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  color: var(--color-cream-muted);
  font-size: 0.9rem;
  padding: 4px 0;
  text-decoration: none;
}

.footer-links a:hover { color: var(--color-gold); }

.footer-contact p {
  font-size: 0.88rem;
  color: var(--color-cream-muted);
  line-height: 1.8;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 20px 24px;
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ---- Modals ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  border-radius: 50%;
  transition: all var(--transition);
  z-index: 1;
}

.modal-close:hover {
  background: rgba(212, 168, 83, 0.1);
  color: var(--color-gold);
}

.modal-header {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  padding-right: 36px;
}

.modal-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.order-icon {
  background: rgba(212, 168, 83, 0.15);
  color: var(--color-gold);
}

.query-icon {
  background: rgba(44, 62, 107, 0.3);
  color: var(--color-indigo-light);
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-cream);
  margin-bottom: 4px;
}

.modal-header p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* ---- Forms ---- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-cream-muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-cream);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a9285' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-group select option {
  background: var(--color-bg-card);
}

/* ---- Modal Success ---- */
.modal-success {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: white;
  font-size: 2rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: successPop 0.5s ease;
}

@keyframes successPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.modal-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-cream);
  margin-bottom: 8px;
}

.modal-success p {
  color: var(--color-cream-muted);
  margin-bottom: 24px;
}

/* ---- FAB ---- */
.fab-group {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}

.fab-order {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: var(--color-bg);
}

.fab-query {
  background: var(--color-indigo);
  color: var(--color-cream);
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

/* ---- Animations ---- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: calc(var(--header-height) + 60px);
  }

  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .loom-card { max-width: 340px; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .fabrics-showcase { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(15, 14, 12, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-toggle { display: flex; }

  .nav-actions .btn-ghost,
  .nav-actions .btn-primary:not(.nav-toggle) {
    display: none;
  }

  .products-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .fabrics-showcase { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 40px; height: 1px; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .modal { padding: 24px 20px; }
}
