/* ============================
   KANGEN CATALUNYA – STYLES
   ============================ */

:root {
  --blue-deep:    #0a3d6b;
  --blue-mid:     #1565c0;
  --blue-bright:  #2196f3;
  --blue-light:   #bbdefb;
  --blue-pale:    #e3f2fd;
  --blue-sky:     #f0f8ff;
  --accent:       #00b4d8;
  --accent-glow:  #48cae4;
  --white:        #ffffff;
  --gray-100:     #f8f9fa;
  --gray-200:     #e9ecef;
  --gray-600:     #6c757d;
  --gray-800:     #343a40;
  --text:         #1a2332;
  --text-light:   #4a6274;
  --shadow:       0 4px 24px rgba(21, 101, 192, 0.12);
  --shadow-lg:    0 12px 48px rgba(21, 101, 192, 0.18);
  --radius:       16px;
  --radius-sm:    10px;
  --font-head:    'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- UTILITIES ---- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  margin-bottom: 56px;
}
.section-header.center { text-align: center; }
.section-header p {
  max-width: 600px;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-top: 12px;
}
.section-header.center p { margin: 12px auto 0; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--blue-deep); }
h3 { font-size: 1.3rem; color: var(--blue-deep); }

.tag {
  display: inline-block;
  background: var(--blue-pale);
  color: var(--blue-mid);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.tag.light {
  background: rgba(255,255,255,0.18);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
}

/* ---- LANG BAR ---- */
.lang-bar {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  padding: 8px 0;
  position: relative;
  z-index: 100;
}
.lang-links {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
}
.lang-links span {
  cursor: pointer;
  transition: color .2s;
  padding: 2px 8px;
  border-radius: 4px;
}
.lang-links span:hover { color: white; }
.lang-links .lang-active {
  color: white;
  font-weight: 600;
  background: rgba(255,255,255,0.12);
}

/* ---- HEADER ---- */
#header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--blue-light);
  transition: box-shadow .3s;
}
#header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-drop {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(33,150,243,0.4));
}
.logo-name {
  display: block;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue-deep);
  line-height: 1;
}
.logo-sub {
  display: block;
  font-size: 0.7rem;
  color: var(--blue-bright);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
nav a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all .2s;
}
nav a:hover { color: var(--blue-mid); background: var(--blue-pale); }
nav a.btn-nav {
  background: var(--blue-mid);
  color: white;
  padding: 9px 20px;
  border-radius: 100px;
  font-weight: 600;
  margin-left: 8px;
}
nav a.btn-nav:hover { background: var(--blue-deep); transform: translateY(-1px); box-shadow: var(--shadow); }

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--blue-mid);
  padding: 4px;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--blue-deep) 0%, #0d4f8c 50%, #1565c0 100%);
  color: white;
  padding: 100px 0 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(0,180,216,0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(33,150,243,0.25) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}
/* water ripple decoration */
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -10%;
  width: 120%;
  height: 200px;
  background: radial-gradient(ellipse, rgba(0,180,216,0.15) 0%, transparent 70%);
  animation: ripple 8s ease-in-out infinite;
}
@keyframes ripple {
  0%, 100% { transform: scaleX(1) translateY(0); }
  50% { transform: scaleX(1.05) translateY(-10px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
  animation: fadeUp .7s ease both;
}
h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: white;
  margin-bottom: 24px;
  animation: fadeUp .7s .1s ease both;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 40px;
  max-width: 560px;
  animation: fadeUp .7s .2s ease both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeUp .7s .3s ease both;
}
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 100px;
  text-decoration: none;
  transition: all .25s;
  box-shadow: 0 6px 24px rgba(0,180,216,0.4);
}
.btn-primary:hover { background: var(--accent-glow); transform: translateY(-2px); box-shadow: 0 10px 32px rgba(0,180,216,0.5); }
.btn-ghost {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.55);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 100px;
  text-decoration: none;
  transition: all .25s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: white; }

.hero-stats {
  display: flex;
  gap: 40px;
  animation: fadeUp .7s .4s ease both;
}
.stat {}
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-glow);
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}
.hero-wave {
  position: relative;
  margin-top: 40px;
}
.hero-wave svg { display: block; width: 100%; }

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

/* ---- SECTIONS ---- */
.section-light {
  background: var(--blue-sky);
  padding: 96px 0;
}
.section-blue {
  background: linear-gradient(135deg, var(--blue-deep) 0%, #0d5fa3 100%);
  color: white;
  padding: 96px 0;
}
.section-blue h2 { color: white; }
.section-blue p { color: rgba(255,255,255,0.8); }
.section-dark {
  background: var(--blue-deep);
  color: white;
  padding: 96px 0;
}
.section-dark h2 { color: white; }
.section-dark p { color: rgba(255,255,255,0.75); }

/* ---- QUÈ ÉS ---- */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.section-grid.reverse { direction: rtl; }
.section-grid.reverse > * { direction: ltr; }

.text-block h2 { margin-bottom: 20px; }
.text-block p { color: var(--text-light); margin-bottom: 16px; }

.check-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-list li {
  padding-left: 28px;
  position: relative;
  color: var(--text-light);
  font-size: 0.95rem;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.water-card {
  background: white;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.water-icon { font-size: 3rem; margin-bottom: 16px; }
.water-card h3 { margin-bottom: 24px; }
.compare {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.compare-item {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  text-align: left;
  flex: 1;
  min-width: 140px;
}
.compare-item strong { display: block; margin-bottom: 4px; font-size: 0.95rem; }
.compare-item span { font-size: 0.82rem; color: var(--text-light); }
.compare-item.bad { background: #ffeef0; border: 1px solid #ffc1c8; }
.compare-item.good { background: var(--blue-pale); border: 1px solid var(--blue-light); }
.compare-arrow { font-size: 1.5rem; color: var(--blue-mid); font-weight: 700; }

/* ---- BENEFITS ---- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.benefit-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all .25s;
}
.benefit-card:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.benefit-icon { font-size: 2.4rem; margin-bottom: 16px; }
.benefit-card h3 { color: white; margin-bottom: 10px; font-size: 1.15rem; }
.benefit-card p { font-size: 0.92rem; color: rgba(255,255,255,0.75); }

/* ---- PH TABLE ---- */
.ph-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.ph-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 28px;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  transition: background .2s;
}
.ph-row:last-child { border-bottom: none; }
.ph-row:hover { background: var(--blue-sky); }
.ph-row.highlight { background: var(--blue-pale); }
.ph-row.highlight:hover { background: #d6eeff; }
.ph-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: 8px 12px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.88rem;
  text-align: center;
}
.ph-info strong { display: block; color: var(--blue-deep); margin-bottom: 4px; font-size: 1rem; }
.ph-info p { font-size: 0.85rem; color: var(--text-light); margin: 0; }
.ph-use {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-pale);
  color: var(--blue-mid);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ---- ATHLETES ---- */
.athletes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.athlete-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all .25s;
}
.athlete-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-4px);
}
.athlete-card.featured {
  border-color: var(--accent);
  background: rgba(0,180,216,0.12);
}
.athlete-emoji { font-size: 3rem; margin-bottom: 14px; }
.athlete-card h3 { color: white; font-size: 1.1rem; margin-bottom: 6px; }
.athlete-sport { font-size: 0.78rem; color: var(--accent-glow); font-weight: 600; display: block; margin-bottom: 12px; letter-spacing: 0.05em; }
.athlete-card p { font-size: 0.88rem; color: rgba(255,255,255,0.7); }

.athlete-note {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 24px 32px;
  text-align: center;
}
.athlete-note p { font-size: 1.05rem; color: rgba(255,255,255,0.85); margin: 0; }

/* ---- ARTICLES ---- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.article-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: all .25s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-icon { font-size: 2rem; }
.article-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-bright);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.article-card h3 {
  font-size: 1.1rem;
  color: var(--blue-deep);
  line-height: 1.3;
}
.article-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  flex: 1;
}
.read-more {
  font-size: 0.85rem;
  color: var(--blue-bright);
  font-weight: 600;
  cursor: pointer;
  transition: color .2s;
}
.read-more:hover { color: var(--blue-mid); }

/* ---- TESTIMONIALS ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 32px;
}
.stars { color: #ffd700; font-size: 1.2rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}
.testimonial-author strong { color: white; display: block; font-size: 0.95rem; }
.testimonial-author span { font-size: 0.82rem; color: var(--accent-glow); }

/* ---- CONTACT ---- */
.section-contact {
  background: var(--white);
  padding: 96px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.contact-text h2 { margin-bottom: 20px; }
.contact-text p { color: var(--text-light); margin-bottom: 32px; font-size: 1.05rem; }
.contact-benefits { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.contact-benefit {
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-light);
  align-items: flex-start;
}
.contact-email {
  display: inline-block;
  color: var(--blue-mid);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 0;
  border-bottom: 2px solid var(--blue-light);
  transition: all .2s;
}
.contact-email:hover { color: var(--blue-deep); border-color: var(--blue-mid); }

.contact-form-wrap {
  background: var(--blue-sky);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--blue-light);
}
.contact-form h3 {
  font-size: 1.4rem;
  color: var(--blue-deep);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--blue-light);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--blue-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: white;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(33,150,243,0.12);
}
.form-group textarea { resize: vertical; }

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--blue-mid), var(--accent));
  color: white;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 16px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all .25s;
  box-shadow: 0 6px 20px rgba(21,101,192,0.35);
  margin-top: 8px;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(21,101,192,0.45); }

.form-note {
  font-size: 0.78rem;
  color: var(--gray-600);
  text-align: center;
  margin-top: 12px;
}

/* ---- FOOTER ---- */
#footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.7);
  padding-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.6); margin: 16px 0; max-width: 280px; }
.footer-email { color: var(--accent-glow); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.footer-email:hover { color: white; }

.footer-links h4 { color: white; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer-links a {
  display: block;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 10px;
  transition: color .2s;
}
.footer-links a:hover { color: white; }

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.45); margin-bottom: 6px; }
.footer-bottom a { color: var(--accent-glow); }
.footer-disclaimer { max-width: 600px; margin: 0 auto; }

/* Logo in footer */
#footer .logo-name { color: white; }
#footer .logo-sub { color: var(--accent-glow); }

/* ---- RESPONSIVE ---- */
@media (max-width: 980px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .athletes-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .section-grid { grid-template-columns: 1fr; gap: 40px; }
  .section-grid.reverse { direction: ltr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .ph-row { grid-template-columns: 80px 1fr; }
  .ph-use { display: none; }
}

@media (max-width: 768px) {
  nav { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: white; flex-direction: column; align-items: center; justify-content: center; gap: 12px; z-index: 200; }
  nav.open { display: flex; }
  nav a { font-size: 1.2rem; padding: 12px 24px; }
  .hamburger { display: block; z-index: 300; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .athletes-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 40px; }
  .section-light, .section-blue, .section-dark, .section-contact { padding: 64px 0; }
  h2 { font-size: 1.8rem; }
  .contact-form-wrap { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { text-align: center; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .compare { flex-direction: column; }
  .compare-arrow { transform: rotate(90deg); }
  .ph-row { grid-template-columns: 1fr; gap: 10px; }
  .ph-badge { width: fit-content; }
}

/* ---- SCROLL ANIMATION ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
