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

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

:root {
  --bg: #ffffff;
  --fg: #1e293b;
  --primary: hsl(28, 25%, 65%);
  --primary-fg: #ffffff;
  --muted: #64748b;
  --secondary-bg: #f1f5f9;
  --border: #e2e8f0;
  --card: #ffffff;
  --radius: 0.5rem;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--fg); line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: var(--font-body); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===================== UTILITY ===================== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }
.section-padding { padding: 4rem 1rem; }
@media (min-width: 640px) { .section-padding { padding: 5rem 1.5rem; } }
@media (min-width: 1024px) { .section-padding { padding: 6rem 2rem; } }
.text-center { text-align: center; }

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideDown {
  from { opacity: 0; height: 0; }
  to { opacity: 1; height: auto; }
}

.animate-fade-up { animation: fadeInUp 0.6s ease-out forwards; }
.animate-fade-in { animation: fadeIn 0.4s ease-out forwards; }
.animate-scale-in { animation: scaleIn 0.3s ease-out forwards; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===================== HEADER ===================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
  background: transparent;
}
.header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
@media (min-width: 640px) { .header-inner { height: 80px; } }

.logo {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
  color: var(--fg); background: none; padding: 0;
  letter-spacing: -0.025em;
}
@media (min-width: 640px) { .logo { font-size: 1.5rem; } }

.nav-desktop { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .nav-desktop { display: flex; } }

.nav-link {
  font-size: 0.875rem; font-weight: 500; color: var(--muted);
  background: none; padding: 0; position: relative;
  transition: color 0.3s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 100%; height: 2px; background: var(--primary);
  transform: scaleX(0); transform-origin: right; transition: transform 0.3s;
}
.nav-link:hover { color: var(--fg); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.btn-primary {
  background: var(--primary); color: var(--primary-fg);
  padding: 0.5rem 1.25rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary:active { transform: scale(0.95); }

.btn-outline {
  background: transparent; color: #fff;
  border: 1px solid #fff; padding: 0.75rem 2rem;
  border-radius: var(--radius); font-size: 0.875rem; font-weight: 500;
  transition: all 0.2s;
}
.btn-outline:hover { background: #fff; color: var(--fg); }
.btn-outline:active { transform: scale(0.95); }

.btn-primary-lg {
  background: var(--primary); color: var(--primary-fg);
  padding: 0.75rem 2rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-primary-lg:hover { opacity: 0.9; }
.btn-primary-lg:active { transform: scale(0.95); }

/* Mobile menu */
.mobile-toggle {
  display: flex; background: none; color: var(--fg); padding: 0.5rem;
}
@media (min-width: 768px) { .mobile-toggle { display: none; } }

.mobile-menu {
  display: none; background: var(--bg);
  border-top: 1px solid var(--border); padding: 1rem;
}
.mobile-menu.open { display: flex; flex-direction: column; gap: 0.5rem; animation: slideDown 0.3s ease; }
@media (min-width: 768px) { .mobile-menu { display: none !important; } }

.mobile-link {
  font-size: 0.875rem; font-weight: 500; color: var(--fg);
  background: none; padding: 0.5rem 0; text-align: left;
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--primary); }

/* ===================== HERO ===================== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0; background: rgba(30,41,59,0.45);
}
.hero-content {
  position: relative; z-index: 2; max-width: 640px;
}
.hero h1 {
  font-size: 2.25rem; font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 4.5rem; } }
.hero p {
  color: rgba(255,255,255,0.8); font-size: 1.125rem; margin-bottom: 2rem; max-width: 480px;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ===================== PRODUCT SECTIONS ===================== */
.section-title {
  font-size: 1.875rem; font-weight: 700; text-align: center; margin-bottom: 2.5rem;
}
@media (min-width: 640px) { .section-title { font-size: 2.25rem; } }

.products-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 640px) { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.product-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.1); transform: translateY(-4px); }

.product-image-wrap {
  position: relative; overflow: hidden; aspect-ratio: 3/4;
}
.product-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .product-image-wrap img { transform: scale(1.1); }

.product-image-overlay {
  position: absolute; inset: 0; background: rgba(30,41,59,0);
  transition: background 0.3s;
}
.product-card:hover .product-image-overlay { background: rgba(30,41,59,0.1); }

.view-details-btn {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%) translateY(1rem);
  background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
  color: var(--fg); padding: 0.5rem 1rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500; display: flex; align-items: center; gap: 0.5rem;
  opacity: 0; transition: opacity 0.3s, transform 0.3s;
}
.product-card:hover .view-details-btn { opacity: 1; transform: translateX(-50%) translateY(0); }
.view-details-btn:hover { background: #fff; }
.view-details-btn:active { transform: translateX(-50%) scale(0.95); }

.product-info { padding: 1rem; }
.product-info h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  margin-bottom: 0.25rem;
}
.product-info p { color: var(--muted); font-size: 0.875rem; margin-bottom: 0.75rem; }

.btn-order {
  width: 100%; background: var(--primary); color: var(--primary-fg);
  padding: 0.625rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-order:hover { opacity: 0.9; }
.btn-order:active { transform: scale(0.98); }

/* ===================== MODAL ===================== */
.modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 200;
  align-items: center; justify-content: center; padding: 1rem;
  background: rgba(30,41,59,0.5); backdrop-filter: blur(4px);
}
.modal-backdrop.open { display: flex; animation: fadeIn 0.3s ease; }

.modal-content {
  background: var(--bg); border-radius: var(--radius);
  max-width: 32rem; width: 100%; overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  animation: scaleIn 0.3s ease;
}
.modal-image { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.modal-body { padding: 1.5rem; }
.modal-body h2 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.modal-body .modal-cat { color: var(--muted); font-size: 0.875rem; text-transform: capitalize; margin-bottom: 0.25rem; }
.modal-body .modal-desc { color: rgba(30,41,59,0.8); margin-bottom: 1.5rem; }
.modal-close {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 10;
  background: rgba(255,255,255,0.8); backdrop-filter: blur(4px);
  border-radius: 50%; width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--fg); transition: background 0.2s;
}
.modal-close:hover { background: #fff; }
.modal-content { position: relative; }

/* ===================== TRUST ===================== */
.trust-section { background: var(--secondary-bg); }
.trust-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }

.trust-card {
  background: var(--bg); border-radius: var(--radius); padding: 2rem; text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
}
.trust-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.08); transform: translateY(-4px); }

.trust-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: hsla(28, 25%, 65%, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.trust-icon svg { width: 28px; height: 28px; color: var(--primary); stroke: var(--primary); fill: none; }

.trust-card h3 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.trust-card p { color: var(--muted); font-size: 0.875rem; }

/* ===================== CONTACT ===================== */
.contact-form {
  max-width: 32rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem;
}
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.75rem 1rem; font-family: var(--font-body); font-size: 0.875rem;
  color: var(--fg); background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(28, 25%, 65%, 0.2);
}
.contact-form textarea { resize: none; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted); }

.contact-subtitle { color: var(--muted); text-align: center; margin-bottom: 2.5rem; }

/* ===================== FOOTER ===================== */
.footer { background: var(--fg); color: rgba(255,255,255,0.8); padding: 4rem 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

.footer h3 { color: #fff; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.footer h4 { color: #fff; font-family: var(--font-display); font-weight: 600; margin-bottom: 0.75rem; }
.footer p, .footer li { font-size: 0.875rem; color: rgba(255,255,255,0.6); line-height: 1.8; }
.footer a { transition: color 0.2s; }
.footer a:hover { color: #fff; }

.footer-links { display: flex; flex-direction: column; gap: 0.25rem; }
.footer-link { font-size: 0.875rem; color: rgba(255,255,255,0.6); background: none; padding: 0; text-align: left; transition: color 0.2s; }
.footer-link:hover { color: #fff; }

.social-icons { display: flex; gap: 0.75rem; margin-bottom: 1.25rem; }
.social-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.social-icon:hover { background: var(--primary); }
.social-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem; padding: 1.5rem 0;
  text-align: center; font-size: 0.75rem; color: rgba(255,255,255,0.4);
}

/* ===================== RIPPLE ===================== */
.ripple { position: relative; overflow: hidden; }
.ripple-effect {
  position: absolute; border-radius: 50%; background: rgba(255,255,255,0.3);
  transform: scale(0); animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}
