/* Custom styles — Tailwind handles the bulk, this file covers what Tailwind can't */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --brand-dark:   #2B2B2B;
  --brand-mid:    #6E6E6E;
  --brand-light:  #F5F4F2;
  --brand-border: #E0DCDA;
  --brand-white:  #FFFFFF;
}

* {
  scroll-behavior: smooth;
}

html {
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--brand-dark);
  background: var(--brand-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

/* ── Navbar ─────────────────────────────────────────── */
#navbar {
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
#navbar.scrolled {
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

/* ── Hero gradient background ──────────────────────── */
.hero-bg {
  background: linear-gradient(135deg, #F5F4F2 0%, #EDECEA 60%, #E4E0DC 100%);
}

/* ── Glass card ─────────────────────────────────────── */
.glass-card {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.5);
}

/* ── Product card hover ─────────────────────────────── */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(43,43,43,0.12);
}
.product-card .card-img {
  overflow: hidden;
}
.product-card .card-img img {
  transition: transform 0.5s ease;
}
.product-card:hover .card-img img {
  transform: scale(1.05);
}

/* ── Section divider ─────────────────────────────────── */
.section-label {
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-mid);
}

/* ── Button primary ──────────────────────────────────── */
.btn-primary {
  background: var(--brand-dark);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}
.btn-primary:hover {
  background: #404040;
  transform: translateY(-1px);
}

/* ── Button outline ──────────────────────────────────── */
.btn-outline {
  background: transparent;
  color: var(--brand-dark);
  border: 1.5px solid var(--brand-dark);
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Stat card ───────────────────────────────────────── */
.stat-card {
  background: var(--brand-white);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 24px rgba(43,43,43,0.06);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(43,43,43,0.1);
}

/* ── Contact form ────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--brand-border);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--brand-dark);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.form-input:focus {
  border-color: var(--brand-dark);
  box-shadow: 0 0 0 3px rgba(43,43,43,0.07);
}
.form-input::placeholder {
  color: #B0ABA7;
}

/* ── Hero image float animation ──────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0px);   }
  50%       { transform: translateY(-12px); }
}
.hero-float {
  animation: float 6s ease-in-out infinite;
}

/* ── Gradient text ───────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #2B2B2B 0%, #6E6E6E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Decorative dot grid ─────────────────────────────── */
.dot-grid {
  background-image: radial-gradient(circle, #C8C4C0 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ── Noise texture overlay ───────────────────────────── */
.noise-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

/* ── Nav mega-menu ───────────────────────────────────── */
.nav-cat-item {
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.nav-cat-item:hover {
  box-shadow: 0 4px 16px rgba(43,43,43,0.12);
  transform: translateY(-2px);
}
.nav-cat-img {
  transition: transform 0.35s ease;
  display: block;
}
.nav-cat-item:hover .nav-cat-img {
  transform: scale(1.06);
}

/* ── Footer ──────────────────────────────────────────── */
footer a {
  transition: color 0.2s ease;
}
footer a:hover {
  color: #D0CBCA;
}

/* ── AOS override for reduced motion ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
