/* ============================================================
   HIBISCUS – Sorteig Abonaments  |  Styles v1.0
   Paleta: Verde #4BA347 · Blau #1A4D92 · Blau fosc #122E5C
   Font:   Manrope (local)
   ============================================================ */

/* ── FONTS ──────────────────────────────────────────────────── */
@font-face {
  font-family: 'Manrope';
  src: url('../estilos_y_recursos/06-Tipografia corporativa/Manrope/Manrope-ExtraLight.ttf') format('truetype');
  font-weight: 200; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../estilos_y_recursos/06-Tipografia corporativa/Manrope/Manrope-Light.ttf') format('truetype');
  font-weight: 300; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../estilos_y_recursos/06-Tipografia corporativa/Manrope/Manrope-Regular.ttf') format('truetype');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../estilos_y_recursos/06-Tipografia corporativa/Manrope/Manrope-Medium.ttf') format('truetype');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../estilos_y_recursos/06-Tipografia corporativa/Manrope/Manrope-SemiBold.ttf') format('truetype');
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../estilos_y_recursos/06-Tipografia corporativa/Manrope/Manrope-Bold.ttf') format('truetype');
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../estilos_y_recursos/06-Tipografia corporativa/Manrope/Manrope-ExtraBold.ttf') format('truetype');
  font-weight: 800; font-display: swap;
}

/* ── VARIABLES ──────────────────────────────────────────────── */
:root {
  --green:        #4BA347;
  --green-dark:   #3a8036;
  --blue:         #1A4D92;
  --blue-dark:    #122E5C;
  --gray-light:   #DCDCDC;
  --gray-medium:  #BDBEC0;
  --gray-dark:    #555555;
  --white:        #ffffff;
  --bg:           #f2f4f7;

  --font: 'Manrope', 'Aptos', 'Segoe UI', system-ui, sans-serif;

  --r-card:   20px;
  --r-circle: 50%;
  --r-pill:   100px;

  --shadow-sm: 0 2px 12px rgba(18,46,92,.07);
  --shadow-md: 0 6px 32px rgba(18,46,92,.13);
  --shadow-lg: 0 14px 56px rgba(18,46,92,.20);

  --ease: .28s cubic-bezier(.4,0,.2,1);
}

/* ── BASE ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--blue-dark);
  background: var(--white);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  padding: 1.1rem 0;
  position: sticky;
  top: 0;
  z-index: 300;
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  height: 38px;
  width: auto;
  display: block;
}

/* ── BACK BUTTON ────────────────────────────────────────────── */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1.1rem;
  border-radius: var(--r-pill);
  border: 2px solid var(--blue);
  color: var(--blue);
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
  transition: background var(--ease), color var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn-back:hover,
.btn-back:focus-visible {
  background: var(--blue);
  color: var(--white);
  outline: none;
}
.btn-back svg {
  transition: transform var(--ease);
  flex-shrink: 0;
}
.btn-back:hover svg { transform: translateX(-3px); }

/* ── HOME · HERO ─────────────────────────────────────────────── */
.home-hero {
  background: var(--blue-dark);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative circles */
.home-hero::before,
.home-hero::after {
  content: '';
  position: absolute;
  border-radius: var(--r-circle);
  pointer-events: none;
}
.home-hero::before {
  width: 380px; height: 380px;
  background: var(--green);
  opacity: .09;
  top: -140px; right: -90px;
}
.home-hero::after {
  width: 220px; height: 220px;
  background: var(--blue);
  opacity: .22;
  bottom: -90px; left: -50px;
}

.home-hero .container { position: relative; z-index: 1; }

/* "Sorteig Oficial" tag */
.hero-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}
.hero-tag::after {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--green);
  margin: .4rem auto 0;
  border-radius: 2px;
}

.home-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.home-subtitle {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  font-weight: 300;
  color: rgba(255,255,255,.78);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── HOME · PARKING SECTION ─────────────────────────────────── */
.home-parking-section {
  background: var(--bg);
  padding: 3.5rem 0 5rem;
}

/* ── PARKING CARDS (home selection) ─────────────────────────── */
.parking-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.75rem 2rem 2.5rem;
  border-radius: var(--r-card);
  text-decoration: none;
  box-shadow: var(--shadow-md);
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}

/* Decorative bubble inside card */
.parking-card::before {
  content: '';
  position: absolute;
  bottom: -55px; right: -55px;
  width: 170px; height: 170px;
  border-radius: var(--r-circle);
  background: rgba(255,255,255,.12);
  pointer-events: none;
  transition: transform var(--ease);
}

.parking-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.parking-card:hover::before { transform: scale(1.7); }

.parking-card--a { background: var(--green); }
.parking-card--b { background: var(--blue); }

/* Large letter badge */
.parking-card__badge {
  width: 90px; height: 90px;
  border-radius: var(--r-circle);
  border: 3px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.7rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative; z-index: 1;
}

.parking-card__content { position: relative; z-index: 1; }

.parking-card__content h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 .625rem;
  letter-spacing: -.01em;
}

.parking-card__content p {
  font-size: .9rem;
  color: rgba(255,255,255,.82);
  font-weight: 300;
  line-height: 1.65;
  margin: 0 0 1.75rem;
}

.parking-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 2rem;
  border-radius: var(--r-pill);
  border: 2px solid rgba(255,255,255,.65);
  color: var(--white);
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background var(--ease), border-color var(--ease);
}
.parking-card:hover .parking-card__cta {
  background: rgba(255,255,255,.22);
  border-color: var(--white);
}

/* ── PARKING PAGE · HEADER BAND ─────────────────────────────── */
.parking-band {
  padding: 2.75rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.parking-band::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: var(--r-circle);
  background: rgba(255,255,255,.10);
  pointer-events: none;
}

.parking-band--a { background: var(--green); }
.parking-band--b { background: var(--blue); }

.parking-band .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative; z-index: 1;
}

.parking-band__letter {
  width: 76px; height: 76px; min-width: 76px;
  border-radius: var(--r-circle);
  background: rgba(255,255,255,.20);
  border: 3px solid rgba(255,255,255,.50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}

.parking-band__title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 .375rem;
  letter-spacing: -.015em;
}

.parking-band__subtitle {
  font-size: .9rem;
  color: rgba(255,255,255,.82);
  font-weight: 300;
  margin: 0;
  line-height: 1.55;
}

/* ── ABONAMENTS SECTION ──────────────────────────────────────── */
.abonaments-section {
  background: var(--bg);
  padding: 2.75rem 0 4.5rem;
}

/* ── ABONAMENT CARDS ─────────────────────────────────────────── */
.abonament-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.625rem;
  background: var(--white);
  border-radius: var(--r-card);
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--blue-dark);
  height: 100%;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.parking-page--a .abonament-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--green);
}
.parking-page--b .abonament-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}

/* Numbered circle */
.abonament-card__number {
  width: 52px; height: 52px; min-width: 52px;
  border-radius: var(--r-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}
.parking-page--a .abonament-card__number { background: var(--green); }
.parking-page--b .abonament-card__number { background: var(--blue); }

.abonament-card__body { flex: 1; min-width: 0; }

.abonament-card__title {
  font-size: 1.025rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 0 0 .3rem;
  line-height: 1.3;
}

.abonament-card__desc {
  font-size: .85rem;
  color: var(--gray-dark);
  font-weight: 300;
  margin: 0;
  line-height: 1.55;
}

.abonament-card__arrow {
  color: var(--gray-medium);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color var(--ease), transform var(--ease);
}

.parking-page--a .abonament-card:hover .abonament-card__arrow {
  color: var(--green);
  transform: translateX(5px);
}
.parking-page--b .abonament-card:hover .abonament-card__arrow {
  color: var(--blue);
  transform: translateX(5px);
}

/* ── HEADER: DOBLE LOGO ──────────────────────────────────────── */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ajunt-logo {
  max-height: 44px;
  width: auto;
  display: block;
}

/* ── HOME · INTRO TEXT ───────────────────────────────────────── */
.home-intro {
  max-width: 680px;
  margin: 1.25rem auto 0;
  font-size: clamp(.875rem, 1.8vw, 1rem);
  font-weight: 300;
  color: rgba(255,255,255,.82);
  line-height: 1.75;
  text-align: left;
}
.home-intro p { margin-bottom: .75rem; }
.home-intro p:last-child { margin-bottom: 0; }
.home-intro a { color: var(--green); text-underline-offset: 3px; }
.home-intro a:hover { color: #7ed97a; }

/* ── HOME · PARKING SELECT LABEL ────────────────────────────── */
.parking-select-label {
  font-size: .95rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 1.75rem;
  text-align: center;
}

/* ── HOME · DISCLAIMER ───────────────────────────────────────── */
.home-disclaimer {
  max-width: 780px;
  margin: 2rem auto 0;
  padding: 1rem 1.25rem;
  background: rgba(26, 77, 146, .06);
  border-left: 3px solid var(--blue);
  border-radius: 0 10px 10px 0;
  font-size: .82rem;
  color: var(--gray-dark);
  line-height: 1.65;
}
.home-disclaimer a { color: var(--blue); text-underline-offset: 2px; }

/* ── PARKING PAGE · CATEGORY INSTRUCTION ────────────────────── */
.category-instruction {
  background: rgba(75, 163, 71, .07);
  border-left: 3px solid var(--green);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  font-size: .875rem;
  color: var(--blue-dark);
  line-height: 1.65;
}
.category-instruction p { margin: 0; }
.category-instruction p + p { margin-top: .5rem; }

/* ── BADGE LL (2 caràcters) ──────────────────────────────────── */
.parking-card__badge--ll {
  font-size: 2rem;
  letter-spacing: -.04em;
}
.parking-band__letter--ll {
  font-size: 1.7rem;
  letter-spacing: -.04em;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--blue-dark);
  padding: 3rem 0 1.5rem;
  color: rgba(255,255,255,.52);
  font-size: .82rem;
  font-weight: 300;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
  margin-bottom: 1.5rem;
}

.footer-org-name {
  font-size: .875rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  margin-bottom: .35rem;
}
.footer-org-sub {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  font-style: italic;
  margin-bottom: .75rem;
}

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
  color: rgba(255,255,255,.6);
  font-size: .8rem;
  line-height: 2;
}
.footer-contact a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
}
.footer-contact a:hover { color: rgba(255,255,255,.9); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: .75rem;
  color: rgba(255,255,255,.38);
  text-align: center;
}
.footer-bottom a {
  color: rgba(255,255,255,.55);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-bottom a:hover { color: rgba(255,255,255,.85); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 575.98px) {
  .home-hero { padding: 3rem 0 2.5rem; }

  .parking-card { padding: 2.25rem 1.5rem 2rem; }
  .parking-card__badge { width: 72px; height: 72px; font-size: 2.1rem; }

  .parking-band .container { gap: 1rem; }
  .parking-band__letter { width: 60px; height: 60px; min-width: 60px; font-size: 1.75rem; }

  .footer-grid { flex-direction: column; gap: 1.5rem; }
  .home-intro { text-align: center; }

  .abonament-card { padding: 1.25rem; gap: .875rem; }
  .abonament-card__number { width: 44px; height: 44px; min-width: 44px; font-size: 1.05rem; }
}
