/* ============================================================
   FC Volpelleres – Stylesheet
   Colors from logo: primary red #C1392B, dark #1C1C1E
   ============================================================ */

/* --- Custom Properties ------------------------------------ */
:root {
  --red:          #C1392B;
  --red-dark:     #922B21;
  --red-light:    #E74C3C;
  --dark:         #1C1C1E;
  --dark-2:       #2C2C2E;
  --mid:          #6C6C6E;
  --light:        #F2F2F7;
  --white:        #FFFFFF;
  --border:       #E5E5EA;
  --radius:       8px;
  --radius-lg:    16px;
  --shadow:       0 2px 12px rgba(0,0,0,.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.16);
  --transition:   .25s ease;
  --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --max-w:        1200px;
  --header-h:     72px;
}

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

/* Anchor scroll offset for sticky header – wider Safari support */
section[id], div[id] {
  scroll-margin-top: var(--header-h);
}

body {
  font-family: var(--font);
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color var(--transition); -webkit-tap-highlight-color: transparent; }
a:hover { color: var(--red-dark); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; -webkit-tap-highlight-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* --- Typography ------------------------------------------- */
h1,h2,h3,h4 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--mid);
  max-width: 640px;
}

/* --- Layout helpers --------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grid-3 { grid-template-columns: 1fr; } }

/* --- Skip link (accessibility) --------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--red);
  color: var(--white);
  padding: .5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 9999;
  font-weight: 700;
}
.skip-link:focus { top: 0; }

/* --- Header ---------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--dark);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-name {
  font-size: .85rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.logo-sub {
  font-size: .7rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .06em;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.site-nav a {
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  font-weight: 600;
  padding: .4rem .65rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
  letter-spacing: .02em;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,.1);
}

.site-nav a.nav-news {
  color: var(--red-light);
}
.site-nav a.nav-news:hover {
  background: rgba(193,57,43,.2);
  color: #ff6b5b;
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: .25rem;
  background: rgba(255,255,255,.08);
  border-radius: 20px;
  padding: .25rem .4rem;
  flex-shrink: 0;
}

.lang-switch a {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: .2rem .5rem;
  border-radius: 14px;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: all var(--transition);
}

.lang-switch a.active,
.lang-switch a:hover {
  background: var(--red);
  color: var(--white);
}

/* Mobile menu button */
.menu-toggle {
  -webkit-appearance: none;
  appearance: none;
  display: none;
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius);
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}
.menu-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  -webkit-transition: -webkit-transform .25s ease, background .25s ease;
  transition: transform .25s ease, background .25s ease;
}
.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  -webkit-transition: -webkit-transform .25s ease;
  transition: transform .25s ease;
}
.menu-icon::before { top: -7px; }
.menu-icon::after  { top:  7px; }

.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before {
  -webkit-transform: translateY(7px) rotate(45deg);
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-icon::after {
  -webkit-transform: translateY(-7px) rotate(-45deg);
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 820px) {
  .logo-text { display: none; }
  .menu-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--dark-2);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: .125rem;
    -webkit-transform: translateY(-110%);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    -webkit-transition: -webkit-transform .3s ease, opacity .3s ease;
    transition: transform .3s ease, opacity .3s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
    will-change: transform;
  }
  .site-nav.open {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav a {
    width: 100%;
    padding: .65rem 1rem;
    font-size: .95rem;
  }
}

/* --- Hero ------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(600px, 75vh);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: .45;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28,28,30,.9) 0%, rgba(193,57,43,.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(193,57,43,.25);
  border: 1px solid rgba(193,57,43,.5);
  color: #ff8a7a;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .8rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: .75rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.hero-title span { color: var(--red-light); }

.hero-lead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,.75);
  max-width: 560px;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(193,57,43,.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
  color: var(--white);
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.15);
  flex-wrap: wrap;
}
.hero-stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--white);
}
.hero-stat-label {
  font-size: .75rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* --- Sections common -------------------------------------- */
.section {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.section-white   { background: var(--white); }
.section-light   { background: var(--light); }
.section-dark    { background: var(--dark); color: var(--white); }
.section-red     { background: var(--red); color: var(--white); }

.section-header {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-header.centered { text-align: center; }
.section-header.centered .section-lead { margin-inline: auto; }

.section-dark .section-title,
.section-red .section-title { color: var(--white); }
.section-dark .section-label { color: rgba(255,255,255,.5); }
.section-dark .section-lead { color: rgba(255,255,255,.7); }

/* --- Historia / History ----------------------------------- */
.historia-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.historia-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.historia-img-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 20%;
}

.historia-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  padding: .5rem 1rem;
  border-radius: var(--radius);
}

.historia-text p + p { margin-top: 1.25rem; }

@media (max-width: 820px) {
  .historia-layout { grid-template-columns: 1fr; }
  .historia-img-wrap { order: -1; }
  .historia-img-wrap img { height: 300px; }
}

/* --- Finalitat / Filosofia -------------------------------- */
.principis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.principi-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--transition), background var(--transition);
}

.principi-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.12);
}

.section-light .principi-card {
  background: var(--white);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.principi-card:hover { transform: translateY(-3px); }

.principi-icon {
  font-size: 1.75rem;
  margin-bottom: .75rem;
  display: block;
}

.principi-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: inherit;
}

/* --- Objectius / Objetivos -------------------------------- */
.objectius-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.objectius-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--red);
}

.objectius-block h3 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--dark);
}

.objectius-block ul { display: flex; flex-direction: column; gap: .6rem; }

.objectius-block li {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  font-size: .93rem;
  color: var(--dark-2);
}

.objectius-block li::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  margin-top: .55em;
}

@media (max-width: 680px) { .objectius-layout { grid-template-columns: 1fr; } }

/* --- Valors / Valores ------------------------------------- */
.valors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.valor-card {
  background: var(--dark-2);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  border: 1px solid rgba(255,255,255,.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.valor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
}

.valor-card-icon {
  width: 56px;
  height: 56px;
  background: rgba(193,57,43,.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.valor-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: .75rem;
}

.valor-card ul { display: flex; flex-direction: column; gap: .5rem; }

.valor-card li {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  font-size: .88rem;
  color: rgba(255,255,255,.65);
}

.valor-card li::before {
  content: '–';
  color: var(--red-light);
  flex-shrink: 0;
}

@media (max-width: 900px) { .valors-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .valors-grid { grid-template-columns: 1fr; } }

/* --- News preview ----------------------------------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .news-grid { grid-template-columns: 1fr; } }

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--light);
}

.news-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,.5);
}

.news-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-date {
  font-size: .75rem;
  color: var(--mid);
  margin-bottom: .5rem;
  letter-spacing: .04em;
}

.news-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .5rem;
  line-height: 1.35;
  flex: 1;
}

.news-card-excerpt {
  font-size: .875rem;
  color: var(--mid);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.news-card-link {
  font-size: .85rem;
  font-weight: 700;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: .3rem;
}

.news-card-link::after { content: '→'; }
.news-card-link:hover { color: var(--red-dark); }

/* News detail page */
.news-detail {
  max-width: 800px;
  margin-inline: auto;
  padding-block: 3rem;
}

.news-detail-header { margin-bottom: 2rem; }
.news-detail-title { font-size: clamp(1.5rem, 4vw, 2.25rem); margin-bottom: .75rem; }
.news-detail-meta { font-size: .875rem; color: var(--mid); }
.news-detail-img { border-radius: var(--radius-lg); margin-bottom: 2rem; width: 100%; max-height: 480px; object-fit: cover; }

.news-detail-body { font-size: 1.05rem; line-height: 1.8; }
.news-detail-body p { margin-bottom: 1.25rem; }
.news-detail-body h2 { font-size: 1.4rem; margin: 2rem 0 .75rem; }
.news-detail-body h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }

/* News list page */
.page-hero {
  background: var(--dark);
  padding-block: 3rem;
  text-align: center;
  color: var(--white);
}
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--white); margin-bottom: .5rem; }
.page-hero p { color: rgba(255,255,255,.65); }

.pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 .75rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.pagination a:hover { background: var(--light); color: var(--dark); border-color: var(--mid); }
.pagination .current { background: var(--red); color: var(--white); border-color: var(--red); }

/* No news placeholder */
.no-news {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--mid);
}
.no-news .no-news-icon { font-size: 3rem; margin-bottom: 1rem; }

/* --- Contacte / Contacto --------------------------------- */
.contacte-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 820px) { .contacte-layout { grid-template-columns: 1fr; } }

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  background: rgba(193,57,43,.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.contact-info-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--mid);
  margin-bottom: .2rem;
}
.contact-info-value { font-size: .95rem; }

/* Contact form */
.contact-form {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--dark);
}

.form-control {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: .95rem;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  color: var(--dark);
}
.form-control:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(193,57,43,.15);
}
.form-control::placeholder { color: var(--mid); }

textarea.form-control { resize: vertical; min-height: 120px; }

.form-status {
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  margin-top: 1rem;
  display: none;
}
.form-status.success { background: #d4edda; color: #155724; display: block; }
.form-status.error   { background: #f8d7da; color: #721c24; display: block; }

/* --- Footer ---------------------------------------------- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding-block: 3rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer-brand { display: flex; align-items: flex-start; gap: .75rem; }
.footer-brand img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.footer-brand-text .footer-name { color: var(--white); font-weight: 800; font-size: 1rem; line-height: 1.2; }
.footer-brand-text .footer-location { font-size: .8rem; margin-top: .2rem; }

.footer-desc { font-size: .875rem; line-height: 1.6; margin-top: 1rem; max-width: 280px; }

.footer-heading {
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}

.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { font-size: .875rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .8rem;
}

.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--white); }

/* Social icons */
.social-links { display: flex; gap: .5rem; margin-top: 1rem; }
.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  transition: all var(--transition);
  text-decoration: none;
}
.social-link:hover { background: var(--red); color: var(--white); }

/* --- CTA Banner ------------------------------------------ */
.cta-banner {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  padding-block: 3rem;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); color: var(--white); margin-bottom: .75rem; }
.cta-banner p { color: rgba(255,255,255,.8); margin-bottom: 1.75rem; }
.btn-white {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}
.btn-white:hover { background: var(--light); color: var(--red-dark); border-color: var(--light); transform: translateY(-1px); }

/* --- Admin panel ------------------------------------------ */
.admin-layout {
  min-height: 100vh;
  background: #f0f2f5;
  display: flex;
  flex-direction: column;
}

.admin-header {
  background: var(--dark);
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
}
.admin-header-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.admin-header-brand img { width: 36px; height: 36px; border-radius: 50%; }
.admin-header-title { color: var(--white); font-size: .9rem; font-weight: 700; }
.admin-header-sub { color: rgba(255,255,255,.5); font-size: .75rem; }
.admin-header-actions { display: flex; align-items: center; gap: 1rem; }
.admin-header-user { color: rgba(255,255,255,.7); font-size: .85rem; }

.admin-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.admin-sidebar {
  width: 220px;
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 1.25rem 0;
  flex-shrink: 0;
}

.admin-sidebar-title {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--mid);
  padding: 0 1.25rem;
  margin-bottom: .5rem;
  margin-top: 1rem;
}
.admin-sidebar-title:first-child { margin-top: 0; }

.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem 1.25rem;
  font-size: .875rem;
  color: var(--dark-2);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.admin-sidebar a:hover { background: var(--light); color: var(--dark); }
.admin-sidebar a.active { background: rgba(193,57,43,.1); color: var(--red); font-weight: 600; }
.admin-sidebar a .icon { font-size: 1rem; }

.admin-main {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.admin-page-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  overflow: hidden;
}

.admin-card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: .875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.admin-table th {
  text-align: left;
  padding: .75rem 1.5rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--mid);
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: .85rem 1.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--light); }

.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge-green  { background: #d4edda; color: #155724; }
.badge-grey   { background: var(--light); color: var(--mid); }
.badge-red    { background: #f8d7da; color: #721c24; }
.badge-blue   { background: #cce5ff; color: #004085; }

.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.admin-form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .admin-form-grid { grid-template-columns: 1fr; } }

.btn-sm { padding: .35rem .75rem; font-size: .8rem; border-radius: 6px; }
.btn-danger { background: #dc3545; color: var(--white); border-color: #dc3545; }
.btn-danger:hover { background: #b02a37; border-color: #b02a37; color: var(--white); }
.btn-success { background: #198754; color: var(--white); border-color: #198754; }
.btn-success:hover { background: #146c43; border-color: #146c43; color: var(--white); }

/* Admin login page */
.login-page {
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}
.login-logo {
  text-align: center;
  margin-bottom: 1.75rem;
}
.login-logo img { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto .75rem; }
.login-logo h1 { font-size: 1.1rem; }
.login-logo p { font-size: .85rem; color: var(--mid); }
.alert {
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  margin-bottom: 1.25rem;
}
.alert-danger { background: #f8d7da; color: #721c24; }
.alert-success { background: #d4edda; color: #155724; }

/* Responsive admin */
@media (max-width: 680px) {
  .admin-body { flex-direction: column; }
  .admin-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: .25rem; padding: .5rem; }
  .admin-sidebar a { padding: .4rem .75rem; font-size: .8rem; }
  .admin-sidebar-title { display: none; }
  .admin-main { padding: 1rem; }
}

/* --- Utilities -------------------------------------------- */
.text-center { text-align: center; }
.text-red    { color: var(--red); }
.mt-1  { margin-top: .5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mb-4  { margin-bottom: 2rem; }
.gap-1 { gap: .5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

/* Print */
@media print {
  .site-header, .site-footer, .no-print { display: none; }
  body { font-size: 12pt; }
  a { text-decoration: underline; }
}
