:root {
  /* Brand Colors - Inferred from Logo */
  --brand-blue-dark: #2b4e8c;
  --brand-blue-med: #5ba3d9;
  --brand-blue-light: #f0f7ff;
  --brand-accent: #f9b115; /* Rich cream/butter yellow */
  
  /* Palette */
  --wf-bg: #fafafa;
  --wf-surface: #ffffff;
  --wf-text-main: #2d3436;
  --wf-text-muted: #636e72;
  --wf-border: #e2e8f0;
  
  /* Spacing */
  --wf-space-xs: 4px;
  --wf-space-sm: 8px;
  --wf-space-md: 16px;
  --wf-space-lg: 24px;
  --wf-space-xl: 48px;
  --wf-space-2xl: 80px;
  
  /* Typography */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--wf-text-main);
  background-color: var(--wf-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--brand-blue-dark);
  line-height: 1.2;
}

h1 { font-weight: 900; }

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 4rem);
}

section {
  margin-top: var(--wf-space-2xl);
  padding: var(--wf-space-xl) 0;
}

main > :first-child {
  margin-top: 0;
}

/* Navigation */
.nav {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.nav-brand {
  height: 60px;
}

.nav-brand img {
  height: 100%;
  width: auto;
}

.nav-links {
  display: flex;
  gap: var(--wf-space-lg);
  align-items: center;
}

.nav-link {
  font-weight: 600;
  color: var(--brand-blue-dark);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.nav-link:hover {
  color: var(--brand-blue-med);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--brand-blue-dark);
  color: white;
}

.btn-primary:hover {
  background: var(--brand-blue-med);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 74, 141, 0.2);
}

.btn-outline {
  border: 2px solid var(--brand-blue-dark);
  color: var(--brand-blue-dark);
  background: transparent;
}

.btn-outline:hover {
  background: var(--brand-blue-light);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
  padding: var(--wf-space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: var(--wf-space-2xl);
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: var(--wf-space-md);
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--wf-text-muted);
  margin-bottom: var(--wf-space-lg);
  max-width: 500px;
}

.hero-badge {
  display: inline-block;
  background: rgba(44, 74, 141, 0.1);
  color: var(--brand-blue-dark);
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: var(--wf-space-md);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-image-wrapper {
  position: relative;
}

.hero-main-img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 20px 20px 60px rgba(0,0,0,0.1);
}

/* Category Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--wf-space-lg);
}

.category-card {
  background: white;
  padding: var(--wf-space-xl) var(--wf-space-lg);
  border-radius: 24px;
  text-align: center;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.category-card:hover {
  transform: translateY(-10px);
  border-color: var(--brand-blue-light);
  box-shadow: 0 20px 40px rgba(43, 78, 140, 0.08);
}

.category-card:hover {
  transform: translateY(-10px);
  border-color: var(--brand-blue-med);
}

.category-icon-box {
  width: 80px;
  height: 80px;
  background: var(--brand-blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--wf-space-md);
  color: var(--brand-blue-dark);
}

/* Product Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--wf-space-lg);
}

.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--wf-border);
  transition: box-shadow 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.product-img-box {
  height: 240px;
  background: #f1f5f9;
  position: relative;
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--brand-accent);
  color: var(--brand-blue-dark);
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.75rem;
}

.product-info {
  padding: var(--wf-space-lg);
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--wf-space-md);
}

.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-blue-dark);
}

/* Placeholders */
.placeholder-image {
  width: 100%;
  height: 100%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.placeholder-image::after {
  content: attr(data-label);
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.9rem;
}

.placeholder-image.square { aspect-ratio: 1/1; }
.placeholder-image.portrait { aspect-ratio: 3/4; }

/* Features */
.features-section {
  background: var(--brand-blue-dark);
  color: white;
  border-radius: 40px;
  margin: var(--wf-space-2xl) auto;
  padding: var(--wf-space-2xl) 0;
}

.features-section h2 {
  color: white;
  text-align: center;
  margin-bottom: var(--wf-space-2xl);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--wf-space-2xl);
}

.feature-item {
  text-align: center;
}

.feature-item h3 {
  color: white;
  margin-top: var(--wf-space-md);
}

.feature-item p {
  opacity: 0.8;
}

/* Footer */
footer {
  margin-top: var(--wf-space-2xl);
  background: white;
  border-top: 1px solid var(--wf-border);
  padding: var(--wf-space-2xl) 0 var(--wf-space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--wf-space-2xl);
}

.footer-logo {
  height: 80px;
  margin-bottom: var(--wf-space-md);
}

.footer-title {
  font-weight: 800;
  margin-bottom: var(--wf-space-lg);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--wf-space-sm);
}

.footer-links a:hover {
  color: var(--brand-blue-med);
  padding-left: 5px;
}

.newsletter-form {
  display: flex;
  gap: var(--wf-space-sm);
  margin-top: var(--wf-space-md);
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--wf-border);
  border-radius: 8px;
  font-family: inherit;
}

/* Utils */
.text-center { text-align: center; }
.mb-lg { margin-bottom: var(--wf-space-lg); }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; gap: var(--wf-space-xl); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
