/* Directius per Servei Manresa — v2 disseny professional */

:root {
  --blue: #009fe3;
  --blue-dark: #0077aa;
  --blue-ink: #0b3a54;
  --ink: #1b1d21;
  --ink-soft: #5a5e65;
  --bg: #ffffff;
  --bg-alt: #f6f8f9;
  --border: #e6e9ec;
  --radius: 14px;
  --max-w: 1160px;
  --shadow: 0 4px 20px rgba(15, 30, 45, .06);
  --shadow-lg: 0 20px 50px rgba(15, 30, 45, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Muli', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-top: 98px;
}

h1, h2, h3, h4 {
  font-family: 'Quicksand', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  color: var(--blue-ink);
  line-height: 1.2;
  margin: 0 0 18px;
  letter-spacing: -.01em;
}

p { margin: 0 0 16px; color: var(--ink-soft); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }

/* ---------- Header ---------- */
header.site-header {
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(180%) blur(8px);
  z-index: 100;
}

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

.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 72px; width: auto; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

nav.main-nav a.active,
nav.main-nav a:hover { color: var(--blue); text-decoration: none; border-bottom-color: var(--blue); }

.header-cta { display: flex; gap: 10px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid var(--blue);
  transition: all .18s ease;
  cursor: pointer;
}

.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(0,159,227,.28); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); text-decoration: none; color: #fff; transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; text-decoration: none; transform: translateY(-1px); }

.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(6,28,45,.88) 0%, rgba(0,90,140,.72) 48%, rgba(0,159,227,.55) 100%),
    url('../images/hero.jpg') center/cover no-repeat;
  color: #fff;
  padding: 130px 0 120px;
  text-align: center;
}

.hero h1 {
  color: #fff;
  font-size: clamp(30px, 4.6vw, 50px);
  max-width: 860px;
  margin: 0 auto 22px;
}

.hero p {
  color: rgba(255,255,255,.92);
  max-width: 700px;
  margin: 0 auto 34px;
  font-size: 18px;
}

.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

/* Stat strip under hero */
.stat-strip { background: var(--blue-ink); }
.stat-strip .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 30px 28px;
}
.stat-strip .stat { text-align: center; color: #fff; }
.stat-strip .stat strong {
  display: block;
  font-family: 'Quicksand', sans-serif;
  font-size: 26px;
  color: #fff;
}
.stat-strip .stat span { font-size: 13.5px; color: rgba(255,255,255,.75); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.alt { background: var(--bg-alt); }
section.tight { padding: 64px 0; }

.section-title { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-title h2 { font-size: clamp(26px, 3.6vw, 34px); }

.eyebrow {
  display: inline-block;
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ---------- Cards / services ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,159,227,.14), rgba(0,159,227,.05));
  color: var(--blue);
  margin-bottom: 20px;
}
.icon-badge svg { width: 28px; height: 28px; }

.card h3 { font-size: 20px; margin-bottom: 12px; }
.card p { font-size: 15px; margin-bottom: 0; }

/* ---------- About / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .img-frame {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.split .img-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(0,159,227,.18), transparent 60%);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue-ink), var(--blue));
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); }
.cta-band .btn-outline { border-color: #fff; color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--blue); }
.cta-band .btn-white { background: #fff; color: var(--blue); border-color: #fff; }
.cta-band .btn-white:hover { background: rgba(255,255,255,.9); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; }
.contact-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; background: #fff; box-shadow: var(--shadow); }
.contact-methods { display: flex; flex-direction: column; gap: 16px; }

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.contact-method:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.contact-method strong { display: block; font-size: 16px; color: var(--ink); }
.contact-method span { color: var(--ink-soft); font-size: 14px; }
.contact-method .icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(0,159,227,.1); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-method .icon svg { width: 26px; height: 26px; }
.contact-method.whatsapp .icon { background: transparent; padding: 0; }
.contact-method.whatsapp .icon img { width: 52px; height: 52px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); }

/* ---------- Legal content ---------- */
.legal-content h2 { font-size: 20px; margin-top: 36px; }
.legal-content p, .legal-content li { color: var(--ink-soft); font-size: 15px; }
.legal-content { max-width: 820px; margin: 0 auto; }
.updated-note { background: var(--bg-alt); border-left: 3px solid var(--blue); border-radius: 8px; padding: 16px 20px; font-size: 14px; color: var(--ink-soft); margin-bottom: 32px; }

/* ---------- Kit Digital band (own section, prominent) ---------- */
.kit-band {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 44px 0;
}
.kit-band .wrap { text-align: center; }
.kit-band .kit-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.kit-band img { max-width: 720px; width: 100%; margin: 0 auto; }

.kit-band.dark { background: #10151c; border-top-color: rgba(255,255,255,.08); border-bottom-color: rgba(255,255,255,.08); }
.kit-band.dark .kit-label { color: #9aa0a8; }
.kit-band .kit-placeholder {
  max-width: 640px;
  margin: 0 auto;
  border: 1.5px dashed rgba(255,255,255,.25);
  border-radius: 10px;
  padding: 20px 24px;
  color: #b7bbc0;
  font-size: 14px;
}

/* ---------- Footer ---------- */
footer.site-footer { background: #10151c; color: #cfd2d6; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
footer .brand-mark { height: 58px; width: auto; margin-bottom: 16px; }
footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
footer p, footer a { color: #b7bbc0; font-size: 14px; }
footer a:hover { color: #fff; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #8a8e94;
}

@media (max-width: 880px) {
  nav.main-nav { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-strip .wrap { grid-template-columns: 1fr; }
  .hero { padding: 90px 0; }
  section { padding: 60px 0; }
  .brand img { height: 56px; }
  body { padding-top: 82px; }
}
