/* Pàgines públiques (portada i guies). Colors de lib/ui/share/custom_colors.dart */
:root {
  --primary: #1F5C54;
  --primary-light: #5FB3A4;
  --secondary: #BFEAE0;
  --accent: #F0805F;
  --black: #26332F;
  --grey: #5F716C;
  --bg: #EEF7F3;
  --white: #FFFFFF;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--black);
  background: var(--bg);
  line-height: 1.55;
}
h1, h2, h3 { font-family: 'Bricolage Grotesque', 'Manrope', sans-serif; line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 6vw, 52px); }
h2 { font-size: clamp(24px, 4vw, 32px); margin-top: 8px; }
h3 { font-size: 18px; }
a { color: var(--primary); }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.section { padding: 48px 20px; }
.muted { color: var(--grey); margin-top: -4px; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-light { background: var(--white); color: var(--primary); }
.btn-outline { border-color: rgba(255,255,255,.7); color: var(--white); padding: 9px 18px; }

.topbar { background: var(--primary); position: sticky; top: 0; z-index: 10; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand img { display: block; height: 34px; width: auto; }
.topnav { display: flex; align-items: center; gap: 18px; }
.topnav a { color: var(--white); text-decoration: none; font-weight: 600; font-size: 15px; }
.topnav .btn-light { color: var(--primary); padding: 8px 18px; }

.hero {
  color: var(--white);
  background: linear-gradient(rgba(23,52,48,.72), rgba(23,52,48,.82)), url('/img/hero.jpg') center/cover;
  padding: 72px 0 64px;
}
/* Mateix marge esquerre que la resta de seccions; només el text és més estret */
.hero-inner > h1, .hero-inner > .lead { max-width: 760px; }
.lead { font-size: clamp(17px, 2.4vw, 20px); opacity: .92; margin: 0 0 28px; }
.lead.dark { color: var(--black); opacity: 1; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.feature { background: var(--white); border-radius: var(--radius); padding: 22px; }
.feature-icon { font-size: 30px; }
.feature h3 { margin-top: 10px; }
.feature p { margin: 0; color: var(--grey); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 20px 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.steps li { counter-increment: step; background: var(--white); border-radius: var(--radius); padding: 22px 22px 22px 70px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 20px; width: 34px; height: 34px;
  border-radius: 50%; background: var(--secondary); color: var(--primary); font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.steps strong { display: block; }
.steps span { color: var(--grey); }

.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 16px 0 8px; }
.guide-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--black); font-weight: 700; transition: box-shadow .15s, transform .15s; }
.guide-card:hover { box-shadow: 0 10px 24px rgba(31,92,84,.18); transform: translateY(-2px); }
.guide-photo { display: block; width: 100%; height: 140px; object-fit: cover; }
.guide-label { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.guide-emoji { font-size: 24px; }
.guide-name { flex: 1; }
.guide-arrow { color: var(--primary); }

.crumbs { font-size: 14px; color: var(--grey); margin-bottom: 16px; }
.crumbs a { color: var(--grey); }
.note { background: var(--white); border-left: 4px solid var(--primary-light); padding: 12px 16px; border-radius: 8px;
  font-size: 14px; color: var(--grey); }
.guide-hero { min-height: 260px; border-radius: var(--radius); background-size: cover; background-position: center;
  display: flex; align-items: flex-end; padding: 28px; margin-bottom: 20px; }
.guide-hero h1 { color: var(--white); margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin: 24px 0 40px; }
.product { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .15s, transform .15s; }
.product:hover { box-shadow: 0 10px 24px rgba(31,92,84,.16); transform: translateY(-2px); }
.product-visual { display: flex; align-items: center; justify-content: center; height: 150px; text-decoration: none;
  background: radial-gradient(circle at 30% 30%, #FFFFFF 0%, var(--secondary) 70%); }
.product:nth-child(3n+2) .product-visual { background: radial-gradient(circle at 30% 30%, #FFFFFF 0%, #FBD9CC 70%); }
.product:nth-child(3n) .product-visual { background: radial-gradient(circle at 30% 30%, #FFFFFF 0%, #F5E3B8 70%); }
.product-emoji { font-size: 72px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.12)); }
.product-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.product-body h3 { margin: 0; }
.product-body p { margin: 0 0 8px; color: var(--grey); flex: 1; }
.badge { align-self: flex-start; background: var(--bg); color: var(--primary); font-size: 13px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; }
.product-link { align-self: flex-start; }
.credit { font-size: 12px; color: var(--grey); margin-top: 24px; }
.cta-box { background: var(--primary); color: var(--white); border-radius: var(--radius); padding: 28px; margin-bottom: 40px; }
.cta-box p { opacity: .9; }

.footer { background: var(--primary); color: var(--white); padding: 32px 0; margin-top: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--white); text-decoration: none; opacity: .9; }
.disclosure { font-size: 13px; opacity: .75; margin: 18px 0 0; }

@media (max-width: 640px) {
  .topnav { gap: 12px; }
  .topnav a:first-child { display: none; }
  .products { grid-template-columns: 1fr; }
  .product-link { align-self: stretch; text-align: center; }
  .guide-hero { min-height: 180px; padding: 20px; }
  .hero { padding: 48px 0 44px; }
}
