/*
 * Centre Òptic i Auditiu Alcarràs — Stylesheet
 * Colors: #d6e4ea (clar) · #133b3f (fosc) · #507274 (mig)
 */

/* ─── Tipografia (allotjada al servidor: cap petició a Google Fonts) ─── */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/poppins/poppins-latin-ext-300-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/poppins/poppins-latin-300-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins/poppins-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins/poppins-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/poppins/poppins-latin-ext-400-italic.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/poppins/poppins-latin-400-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins/poppins-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins/poppins-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins/poppins-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins/poppins-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/poppins/poppins-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/poppins/poppins-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ─── Variables ─── */
:root {
  --light:  #d6e4ea;
  --dark:   #133b3f;
  --mid:    #507274;
  --cream:  #f9f3e3;
  --white:  #ffffff;
  --font:   'Poppins', Helvetica, Arial, Lucida, sans-serif;
  --max-w:  1080px;
  --r:      10px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { font-family: var(--font); color: #333; line-height: 1.6; overflow-x: hidden; background: #fff; }
img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
p    { margin-bottom: 0; }

/* ─── Layout ─── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.section       { padding: 60px 0; }
.section--cream { background: var(--cream); }
.section--light { background: var(--light); }
.section--dark  { background: var(--dark);  color: var(--white); }

/* 3/5 + 2/5 row */
.split-60-40 {
  display: flex;
  align-items: center;
  gap: 48px;
}
.split-60-40 .col-60 { flex: 0 0 58%; }
.split-60-40 .col-40 { flex: 1; }

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

/* ─── Typography utilities ─── */
.label {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--mid);
  margin-bottom: 8px;
}
.h-big {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #000;
  line-height: 1.2em;
  margin-bottom: 12px;
}
.h-mid {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  color: #000;
  line-height: 1.3em;
  margin-bottom: 16px;
}
.company-name {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--mid);
  line-height: 1.1em;
  margin-bottom: 20px;
}
.italic-quote {
  font-style: italic;
  color: #555;
  margin-top: 12px;
}
.text-white { color: var(--white) !important; }
.text-dark  { color: var(--dark)  !important; }
.text-mid   { color: var(--mid)   !important; }

/* ─── Buttons ─── */
.btn-cita {
  display: inline-block;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 55px;
  transition: background .25s, transform .2s;
  border: none;
  cursor: pointer;
  margin-right: 12px;
}
.btn-cita:hover {
  background: var(--mid);
  transform: translateY(-2px);
}

.btn-serveis {
  display: inline-block;
  background: transparent;
  color: var(--dark);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 55px;
  border: 2px solid var(--dark);
  transition: background .25s, color .25s;
}
.btn-serveis:hover {
  background: var(--dark);
  color: var(--white);
}

.btn-wa {
  display: inline-block;
  background: #25d366;
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 55px;
  transition: background .25s;
}
.btn-wa:hover { background: #1faa50; }

/* "boton" = Més informació text-buttons used in cards */
.boton {
  display: inline-block;
  background: var(--dark);
  color: var(--white) !important;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 6px;
  margin-top: 12px;
  transition: background .25s;
  cursor: pointer;
}
.boton:hover { background: var(--mid); }

/* ─── Header / Navbar ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--light);
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  transition: background .3s, box-shadow .3s;
}

.site-header.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.13);
  backdrop-filter: blur(6px);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
}

.header-logo {
  padding: 12px 28px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo img { height: 84px; width: auto; }

.header-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 12px;
}

.header-nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
}

.header-nav ul li a {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  padding: 8px 12px;
  border-radius: 6px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}

.header-nav ul li a:hover,
.header-nav ul li a.active {
  background: rgba(19,59,63,.1);
}

.header-cta {
  display: flex;
  align-items: center;
  padding: 0 24px 0 12px;
}
.header-cta .btn-cita { white-space: nowrap; }

.header-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
}

.header-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: .3s;
}

.header-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header-toggle.open span:nth-child(2) { opacity: 0; }
.header-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO SECTION ─── */
.hero-section {
  background: linear-gradient(180deg, var(--light) 0%, #fff 100%);
  padding: 60px 0;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-text { flex: 0 0 58%; }
.hero-image { flex: 1; }

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--r);
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
}

.hero-tagline {
  font-size: clamp(.85rem, 1.5vw, 1rem);
  font-weight: 500;
  color: var(--mid);
  line-height: 1.45;
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.1em;
  margin-bottom: 20px;
}

.hero-desc p {
  font-size: .97rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 10px;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ─── SERVICES SECTION ─── */
.services-section {
  background: var(--white);
}

.services-header {
  margin-bottom: 40px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 3px 18px rgba(0,0,0,.07);
  transition: transform .3s, box-shadow .3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(0,0,0,.12);
}

.service-card__img {
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 0;
}

.service-card__img img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform .5s;
}

.service-card:hover .service-card__img img { transform: scale(1.04); }

.service-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4em;
  margin-bottom: 0;
  padding: 20px 20px 0;
}

.service-card__desc {
  font-size: .9rem;
  color: #555;
  line-height: 1.75;
  flex: 1;
  margin-bottom: 0;
  padding: 10px 20px;
}

.service-card .boton {
  margin: 4px 20px 20px;
  align-self: flex-start;
}

/* ─── PRODUCTS SECTION ─── */
.products-section { background: var(--light); }

.products-intro { margin-bottom: 32px; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* Each product box has background-image set inline */
.product-box {
  border-radius: var(--r);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  padding: 60px 3% 20px;
  min-height: 220px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.product-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.55) 100%);
}

.product-box h3 {
  position: relative;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white) !important;
  margin-bottom: 6px;
}

.product-box a {
  position: relative;
  color: var(--white) !important;
  font-size: .88rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── CTA SECTION ─── */
.cta-section {
  background: var(--dark);
  padding: 72px 0;
}

.cta-inner { max-width: 700px; }

.cta-section .label { color: rgba(214,228,234,.75); }

.cta-section h3 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.25;
}

.cta-section h4 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--light);
  margin-bottom: 28px;
}

.cta-section .btn-cita {
  background: var(--white);
  color: var(--dark);
}
.cta-section .btn-cita:hover {
  background: var(--light);
  color: var(--dark);
  transform: translateY(-2px);
}

/* ─── QUI SOM SECTION ─── */
.quisom-section { background: var(--white); }

.quisom-section .col-40 img {
  width: 100%;
  border-radius: var(--r);
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
}

.quisom-text p {
  font-size: .95rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 14px;
}

/* ─── FAQ / DUBTES ─── */
.faq-section { background: var(--light); }

.faq-header { margin-bottom: 36px; }

.accordion-item {
  border-bottom: 1px solid rgba(19,59,63,.18);
}
.accordion-item:first-child { border-top: 1px solid rgba(19,59,63,.18); }

.accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 18px 4px;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: color .2s;
}

.accordion-btn:hover { color: var(--mid); }

.accordion-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  color: var(--dark);
  transition: .3s;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

.accordion-item.open .accordion-icon {
  background: var(--dark);
  color: var(--white);
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}

.accordion-item.open .accordion-body { max-height: 500px; }

.accordion-body__inner {
  padding: 4px 4px 20px;
  font-size: .9rem;
  color: #555;
  line-height: 1.8;
}

/* ─── PROMOTIONS SECTION ─── */
.promo-section { background: var(--white); }

.promo-intro { margin-bottom: 32px; }

.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Background-image set inline in each promo box */
.promo-box {
  border-radius: var(--r);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  padding: 200px 20px 24px;
  position: relative;
}

.promo-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,.6) 100%);
}

.promo-box > * { position: relative; }

.promo-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white) !important;
  margin-bottom: 12px;
}

/* ─── BLOG SECTION ─── */
.blog-section { background: var(--white); }

.blog-header { margin-bottom: 28px; }

.blog-article {
  background: var(--white);
  border-radius: var(--r);
  padding: 30px;
}

.blog-article h2 {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
  line-height: 1.4;
}

.blog-article p {
  font-size: .92rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 18px;
}

/* ─── TESTIMONIALS SECTION ─── */
.reviews-section { background: var(--white); }

.reviews-header { margin-bottom: 32px; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: #f4f9fb;
  border-radius: var(--r);
  padding: 24px;
  border-top: 3px solid var(--mid);
  box-shadow: 0 2px 14px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
}

.review-stars {
  color: #f5a623;
  font-size: 1rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.review-text {
  font-size: .9rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 14px;
  font-style: italic;
}

.review-name {
  font-size: .85rem;
  font-weight: 700;
  color: var(--dark);
}

.review-source {
  font-size: .78rem;
  color: #888;
}

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  background: linear-gradient(180deg, var(--light) 0%, #edf4f7 100%);
  padding: 80px 0 60px;
  border-bottom: 3px solid var(--mid);
}

.page-hero .label { color: var(--mid); }

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 14px;
}

.page-hero p {
  font-size: 1rem;
  color: #555;
  max-width: 640px;
  line-height: 1.75;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--dark);
  color: var(--white);
  padding-top: 52px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col--logo img {
  width: 50%;
  height: auto;
  margin: 0 auto 20px;
  display: block;
}

.footer-tagline {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  line-height: 1.75;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.15);
  margin: 0 0 0;
}

.footer-col-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: rgba(255,255,255,.45);
  margin-bottom: 16px;
}

.footer-nav ul li {
  margin-bottom: 9px;
}

.footer-nav ul li a {
  font-size: .9rem;
  color: rgba(255,255,255,.8);
  transition: color .2s;
}

.footer-nav ul li a:hover { color: var(--white); }

.footer-copy {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  text-align: center;
  padding: 18px 0;
}

/* ─── Responsive ─── */
@media (max-width: 980px) {
  .header-cta { display: none; }
  .header-nav ul { gap: 2px; }
  .header-nav ul li a { font-size: 14px; padding: 6px 10px; }
  .split-60-40 { gap: 28px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .header-nav  { display: none; }
  .header-cta  { display: none; }
  .header-toggle { display: flex; margin-left: auto; }
  .header-logo { padding: 10px 16px; }
  .header-logo img { height: 64px; }

  .header-nav.open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    padding: 12px 20px 20px;
    z-index: 999;
  }

  .header-nav.open ul { flex-direction: column; gap: 4px; }
  .header-nav.open ul li a { display: block; font-size: 1rem; padding: 12px 16px; }

  .hero-inner { flex-direction: column; }
  .hero-image { display: none; }
  .hero-text  { flex: unset; width: 100%; }

  .split-60-40 { flex-direction: column; }
  .split-60-40 .col-60,
  .split-60-40 .col-40 { flex: unset; width: 100%; }

  .grid-3 { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .promo-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-nav-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .products-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-cita, .btn-serveis { text-align: center; margin-right: 0; }
}

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* ─── Compatibility aliases (inner pages) ─── */
.section--white { background: var(--white); }
.section--light { background: var(--light); }
.section--gray  { background: #f5f7f8; }
.section--cream { background: var(--cream); }
.section--dark  { background: var(--dark); color: var(--white); }

.section-label  { display: block; font-size: 17px; font-weight: 600; color: var(--mid); margin-bottom: 8px; }
.section-title  { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; color: #000; line-height: 1.3em; margin-bottom: 16px; }
.section-sub    { font-size: .95rem; color: #555; line-height: 1.75; }

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

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* btn-* aliases used by inner pages */
.btn { display: inline-block; font-family: var(--font); font-size: 16px; font-weight: 600; padding: 12px 28px; border-radius: 55px; transition: background .25s, color .25s; border: none; cursor: pointer; }
.btn-primary        { background: var(--dark); color: var(--white); }
.btn-primary:hover  { background: var(--mid);  color: var(--white); }
.btn-outline        { background: transparent; border: 2px solid var(--dark); color: var(--dark); }
.btn-outline:hover  { background: var(--dark); color: var(--white); }
.btn-outline-white        { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline-white:hover  { background: rgba(255,255,255,.15); }

/* page-hero: hide leftover full-bleed img from old markup */
.page-hero__bg      { display: none; }
.page-hero__content { }

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 0;
}

/* ─── CONTACT PAGE ─── */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-intro {
  font-size: .97rem;
  color: #444;
  line-height: 1.85;
  margin-bottom: 36px;
}

.contact-data {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-data__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: .95rem;
  color: #444;
  line-height: 1.5;
}

.contact-data__row i {
  color: var(--mid);
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

.contact-data__row a {
  color: var(--dark);
  font-weight: 600;
  transition: color .2s;
}

.contact-data__row a:hover { color: var(--mid); }

/* ─── FORM ─── */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: .87rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  font-family: var(--font);
  font-size: .95rem;
  color: #333;
  background: #f7fbfc;
  border: 1.5px solid #c8dce4;
  border-radius: 8px;
  padding: 12px 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--mid);
  box-shadow: 0 0 0 3px rgba(80,114,116,.12);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

/* Informació bàsica de protecció de dades (primera capa) */
.form-privacy-info {
  font-size: .8rem;
  line-height: 1.6;
  color: #555;
  background: #f7fbfc;
  border: 1px solid #c8dce4;
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 18px;
}

.form-privacy-info strong { color: var(--dark); }
.form-privacy-info a { color: var(--mid); text-decoration: underline; text-underline-offset: 2px; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: .85rem;
  line-height: 1.5;
  color: #444;
}

.form-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--dark);
  cursor: pointer;
}

.form-check input:focus-visible { outline: 2px solid var(--mid); outline-offset: 2px; }
.form-check a { color: var(--mid); text-decoration: underline; text-underline-offset: 2px; }

.form-hint {
  display: block;
  font-size: .78rem;
  color: #5f6b6d;
  margin-top: 6px;
}

/* Camp parany per a robots: fora de pantalla, no visible ni focusable */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-submit { width: 100%; text-align: center; margin-top: 10px; }

.contact-submit { width: 100%; text-align: center; }

.form-msg {
  display: none;
  padding: 13px 17px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.form-msg.show   { display: block; }
.form-msg.success { background: #e6f7ee; color: #1a7a40; border: 1px solid #b3e6c8; }
.form-msg.error   { background: #fdecea; color: #c0392b; border: 1px solid #f5b7b1; }

@media (max-width: 767px) {
  .contact-split { grid-template-columns: 1fr; gap: 36px; }
}

/* ─── SERVICES PAGE GRID ─── */
.services-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.service-item {
  background: var(--white);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 3px 18px rgba(0,0,0,.07);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(0,0,0,.12);
}

.service-item__img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform .5s;
}

.service-item:hover .service-item__img img { transform: scale(1.04); }

.service-item__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-item__cat {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 6px;
}

.service-item__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.35;
}

.service-item__desc {
  font-size: .88rem;
  color: #555;
  line-height: 1.75;
  flex: 1;
  margin-bottom: 16px;
}

.service-item .boton { align-self: flex-start; }

/* ─── INDIVIDUAL SERVICE PAGE ─── */
.servei-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  border-radius: var(--r);
  padding: 18px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.feature-item i {
  color: var(--mid);
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.feature-item p {
  font-size: .9rem;
  color: #444;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 767px) {
  .services-full-grid { grid-template-columns: 1fr; }
  .servei-features { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .services-full-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── LEGAL PAGES ─── */
.legal-content h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--light);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p,
.legal-content li {
  font-size: .93rem;
  color: #555;
  line-height: 1.85;
  margin-bottom: 12px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 16px;
}

.legal-content a {
  color: var(--mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover { color: var(--dark); }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: .88rem;
}

.legal-table th {
  background: var(--dark);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}

.legal-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--light);
  color: #555;
  vertical-align: top;
}

.legal-table tr:nth-child(even) td { background: #f5f7f8; }

.legal-table code {
  font-family: monospace;
  font-size: .85rem;
  background: var(--light);
  padding: 2px 6px;
  border-radius: 4px;
}

.legal-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0 24px;
}

.legal-table-wrap .legal-table { margin: 0; min-width: 560px; }

.legal-pending {
  background: #fff3cd;
  color: #664d03;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: .85em;
}

.legal-content h3 {
  font-size: .98rem;
  font-weight: 600;
  color: var(--dark);
  margin: 22px 0 8px;
}

.legal-updated {
  margin-top: 40px;
  font-size: .82rem;
  color: #6c757d;
  font-style: italic;
}

/* ─── ABOUT SPLIT (Qui som — història) ─── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-split__img img {
  width: 100%;
  border-radius: var(--r);
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
}

.about-split__text p {
  font-size: .95rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 14px;
}

.about-split__text .italic-quote {
  font-style: italic;
  color: var(--mid);
  border-left: 3px solid var(--mid);
  padding-left: 16px;
  margin-bottom: 20px;
}

/* ─── TEAM (Qui som — equip) ─── */
.team-group__label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mid);
  border-bottom: 2px solid rgba(80,114,116,.25);
  padding-bottom: 12px;
  margin-bottom: 4px;
}

.team-member {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid rgba(19,59,63,.08);
}

.team-member:last-child { border-bottom: none; }

.team-member__photo img {
  width: 220px;
  height: 260px;
  object-fit: cover;
  border-radius: var(--r);
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

.team-member__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 3px;
}

.team-member__role {
  font-size: .85rem;
  font-weight: 600;
  color: var(--mid);
  margin-bottom: 14px;
}

.team-member__creds {
  list-style: none;
  padding: 0;
  margin: 0;
}

.team-member__creds li {
  font-size: .9rem;
  color: #555;
  line-height: 1.65;
  padding: 3px 0 3px 18px;
  position: relative;
}

.team-member__creds li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--mid);
  font-size: .8rem;
}

/* ─── GALLERY GRID (Qui som — instal·lacions) ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-grid__item {
  border-radius: var(--r);
  overflow: hidden;
  height: 220px;
}

.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.gallery-grid__item:hover img { transform: scale(1.04); }

.gallery-grid--2 { grid-template-columns: repeat(2, 1fr); }
.gallery-grid--2 .gallery-grid__item { height: 340px; }

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 767px) {
  .about-split { grid-template-columns: 1fr; gap: 32px; }
  .team-member { grid-template-columns: 120px 1fr; gap: 18px; }
  .team-member__photo img { width: 120px; height: 150px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid--2 .gallery-grid__item { height: 240px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .legal-table { font-size: .8rem; }
  .legal-table th, .legal-table td { padding: 7px 10px; }
}

/* ─── Filtres de llum blava / ritme circadià ─── */
.circadian-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.circadian-card {
  position: relative;
  border-radius: var(--r);
  padding: 26px 22px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border-top: 5px solid;
}

.circadian-card--groc    { background: #fdf6e0; border-top-color: #f2c44d; }
.circadian-card--taronja { background: #fdeede; border-top-color: #ef8b3c; }
.circadian-card--vermell { background: #fbe6e4; border-top-color: #d94a3d; }

.circadian-card__badge {
  position: absolute;
  top: -12px;
  left: 22px;
  background: #ef8b3c;
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 55px;
}

.circadian-card__kicker {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 4px;
}

.circadian-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

.circadian-card__sub {
  font-size: .9rem;
  color: #555;
  margin-bottom: 18px;
}

.circadian-card__list dt {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dark);
  margin-top: 14px;
}

.circadian-card__list dd {
  font-size: .92rem;
  color: #555;
  line-height: 1.6;
  margin: 2px 0 0;
}

.circadian-tips {
  max-width: 760px;
  margin: 40px auto 0;
  background: var(--light);
  border-radius: var(--r);
  padding: 28px 32px;
  text-align: center;
}

.circadian-tips h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 14px;
}

.circadian-tip {
  font-size: .95rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 6px;
}

.circadian-tip--yes strong { color: #2e7d4f; }
.circadian-tip--no  strong { color: #c0392b; }

.circadian-quote {
  margin-top: 18px;
  font-style: italic;
  font-weight: 600;
  color: var(--dark);
}

@media (max-width: 980px) {
  .circadian-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}

@media (max-width: 767px) {
  .circadian-tips { padding: 24px 20px; }
}

/* ─── Botons flotants: Instagram, Facebook i WhatsApp ─── */
.social-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.social-float-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transition: transform .2s, box-shadow .2s;
}
.social-float-btn:hover,
.social-float-btn:focus-visible { transform: scale(1.08); box-shadow: 0 6px 18px rgba(0,0,0,.3); color: #fff; }
.social-float-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-float-facebook { background: #1877f2; }

.whatsapp-float {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

@media (max-width: 767px) {
  .social-float { right: 14px; bottom: 14px; gap: 10px; }
  .social-float-btn { width: 44px; height: 44px; font-size: 22px; }
  .whatsapp-float { width: 52px; height: 52px; font-size: 28px; }
}
