/* ============================================
   Pierrefort — Apple-inspired Design System
   ============================================ */

:root {
  --white: #fff;
  --black: #1d1d1f;
  --gray-50: #f5f5f7;
  --gray-100: #e8e8ed;
  --gray-200: #d2d2d7;
  --gray-300: #aeaeb2;
  --gray-400: #8e8e93;
  --gray-500: #636366;
  --gray-600: #48484a;
  --gray-700: #363639;
  --gray-800: #2c2c2e;
  --gray-900: #1c1c1e;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-light: #e8f0fe;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Container */
.section {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 18px;
  color: var(--gray-400);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
  border: none;
  gap: 8px;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

.btn-secondary {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--gray-100);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-mark {
  width: 28px;
  height: 28px;
  background: var(--black);
  color: var(--white);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--black);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-link:hover {
  color: var(--black);
  background: var(--gray-50);
}

/* Nav Toggle (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  background: var(--gray-50);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, #e8f0fe 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 80%, #f0e8ff 0%, transparent 50%),
    radial-gradient(ellipse 30% 30% at 20% 70%, #ffe8e8 0%, transparent 50%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0,113,227,0.08);
  color: var(--accent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--black);
  margin-bottom: 20px;
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 36px;
}

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

/* Hero visual elements */
.hero-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-visual-ring {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.04);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-visual-ring-2 {
  width: 900px;
  height: 900px;
}

.hero-visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ============================================
   Stats
   ============================================ */
.stats {
  padding: 60px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}

.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat {
  flex: 1;
  text-align: center;
  padding: 20px;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--gray-400);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--gray-100);
}

/* ============================================
   Products
   ============================================ */
.products {
  padding: 100px 24px 120px;
  max-width: 1200px;
  margin: 0 auto;
}

.filter-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-chip {
  padding: 8px 20px;
  border: 1px solid var(--gray-100);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-chip:hover {
  border-color: var(--gray-300);
  color: var(--black);
}

.filter-chip.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease);
  opacity: 0;
  transform: translateY(20px);
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card-image {
  position: relative;
  width: 100%;
  height: 240px;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.02));
}

.product-card-image .placeholder {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  color: var(--gray-200);
  letter-spacing: -0.03em;
}

.product-card-brand-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: var(--white);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.product-card-body {
  padding: 24px;
}

.product-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.product-card-sub {
  font-size: 14px;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.product-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 16px;
}

.product-spec {
  text-align: center;
}

.product-spec-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.product-spec-value {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
}

.product-desc {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 16px;
}

.product-actions {
  display: flex;
  gap: 8px;
}

.product-actions .btn {
  flex: 1;
  padding: 10px 16px;
  font-size: 13px;
}

/* ============================================
   Brands
   ============================================ */
.brands {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.brand-card {
  padding: 32px 24px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  opacity: 0;
  transform: translateY(20px);
}

.brand-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.brand-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.brand-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--gray-600);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.brand-desc {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.5;
}

.brand-count {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

/* ============================================
   Location
   ============================================ */
.location {
  padding: 100px 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.location-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.location-details {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.location-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.location-icon {
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.location-detail h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.location-detail p {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
}

.location-map {
  min-height: 320px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-fallback {
  text-align: center;
  color: var(--gray-300);
}

.map-fallback p {
  margin-top: 12px;
  font-size: 14px;
}

/* ============================================
   Newsletter
   ============================================ */
.newsletter {
  padding: 100px 24px;
  background: var(--gray-50);
}

.newsletter-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.newsletter-desc {
  font-size: 16px;
  color: var(--gray-400);
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  background: var(--white);
  transition: border-color 0.2s;
}

.newsletter-input::placeholder { color: var(--gray-300); }
.newsletter-input:focus { border-color: var(--accent); }

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 60px 24px 24px;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.footer-brand p {
  font-size: 14px;
  color: var(--gray-400);
  margin-top: 12px;
  line-height: 1.6;
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-200);
  margin-bottom: 16px;
}

.footer-col a,
.footer-col span {
  display: block;
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-400);
  transition: all 0.2s;
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--gray-500);
}

/* ============================================
   WhatsApp Button
   ============================================ */
.wa-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  width: 52px;
  height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
  transition: all 0.3s var(--ease);
}

.wa-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.6s var(--ease) forwards;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .stats-inner { gap: 0; }
  .location-card { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 12px 24px 24px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
    border-bottom: 1px solid var(--gray-100);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
  }

  .nav-toggle { display: flex; }

  .product-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .hide-mobile { display: none; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .stats-inner { flex-wrap: wrap; }
  .stat { flex: 1 1 45%; padding: 16px; }
  .stat-divider { display: none; }
}

@media (max-width: 480px) {
  .hero { min-height: 90vh; padding: 100px 20px 60px; }
  .brand-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .product-actions { flex-direction: column; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}
