/* ============================================
   Baignoires.be — Design System Premium
   ============================================ */

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

:root {
  /* Palette */
  --primary: #1e40af;
  --primary-light: #3b82f6;
  --primary-dark: #1e3a5f;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --bg: #f8fafc;
  --bg-warm: #fefcf5;
  --text: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --white: #ffffff;
  --green: #10b981;
  --red: #ef4444;

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1100px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,.12), 0 8px 10px -6px rgba(0,0,0,.08);
  --shadow-xl: 0 20px 40px -10px rgba(0,0,0,.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Typography === */
h1 { font-size: 2.25rem; font-weight: 800; line-height: 1.2; color: var(--primary-dark); letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; font-weight: 700; margin: 2.5rem 0 1rem; color: var(--primary-dark); }
h3 { font-size: 1.25rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin-bottom: 1rem; }
ul, ol { margin-bottom: 1.25rem; padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s; }
a:hover { color: var(--primary-light); }
strong { font-weight: 600; color: var(--text); }

/* === Header === */
.site-header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo:hover { color: var(--primary-dark); }

.header-inner nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.header-inner nav a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
}

.header-inner nav a:hover {
  color: var(--primary);
  background: rgba(30,64,175,0.06);
}

/* === Hero === */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #1e40af 100%);
  color: var(--white);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/hero-bath.jpg') center/cover no-repeat;
  opacity: 0.18;
  z-index: 0;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #1a1a1a;
  box-shadow: 0 4px 14px rgba(245,158,11,0.35);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,158,11,0.4);
  color: #1a1a1a;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

/* === Stats Bar === */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.15rem;
}

/* === Main Content === */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* === Section Titles === */
.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-title h2 {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* === Card Grid === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.card-grid-4 {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all 0.3s;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--primary-dark);
}

.card h3 a {
  text-decoration: none;
  color: inherit;
}

.card h3 a:hover { color: var(--primary); }

.card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.55;
}

/* === Section Banner === */
.section-banner {
  height: 240px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.section-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

/* === CTA Box === */
.cta-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  margin: 2.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
}

.cta-box h3 {
  color: var(--white);
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  position: relative;
}

.cta-box p {
  margin-bottom: 1.25rem;
  opacity: 0.9;
  position: relative;
  font-size: 1.05rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #1a1a1a;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.25s;
  position: relative;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.cta-button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  color: #1a1a1a;
}

/* === Breadcrumb === */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text-light);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { font-weight: 600; color: var(--text); }

/* === Article Intro === */
.article-intro {
  font-size: 1.15rem;
  color: var(--text-light);
  border-left: 4px solid var(--primary);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* === Featured Section === */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

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

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.featured-card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.featured-card-body {
  padding: 1.5rem;
}

.featured-card-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.featured-card-body h3 a { text-decoration: none; color: var(--primary-dark); }
.featured-card-body h3 a:hover { color: var(--primary); }

.featured-card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* === Trust Bar === */
.trust-bar {
  background: var(--bg-warm);
  padding: 3rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.trust-item {
  padding: 1.5rem;
}

.trust-item .trust-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.trust-item h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.trust-item p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

/* === Footer === */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  color: var(--white);
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.8rem;
}

/* === Highlight Box === */
.highlight-box {
  background: linear-gradient(135deg, #eff6ff, #fefce8);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
}

.highlight-box strong { color: var(--primary); }

/* === Tip Box === */
.tip-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

/* === Warning Box === */
.warning-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

/* === Page Header (for inner pages) === */
.page-header {
  background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
  padding: 3rem 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
  border-radius: var(--radius);
}

.page-header h1 { margin-bottom: 0.5rem; }
.page-header p { color: var(--text-light); font-size: 1.1rem; max-width: 650px; margin: 0 auto; }

/* === Responsive === */
@media (max-width: 768px) {
  .hero { padding: 3rem 1rem 2.5rem; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1.05rem; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }

  .header-inner {
    flex-direction: column;
    gap: 0.5rem;
  }

  .header-inner nav {
    justify-content: center;
    gap: 0;
  }

  .header-inner nav a {
    font-size: 0.78rem;
    padding: 0.3rem 0.5rem;
  }

  .stats-inner { gap: 1.5rem; }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; }
}
