/* =========================================================
   CAREWARE OG, S.L. — Hoja de estilos corporativa
   Paleta basada en el logotipo (teal/azul #3c9dbd)
   ========================================================= */

:root {
  --primary: #3c9dbd;
  --primary-dark: #2c7690;
  --primary-darker: #1c4e61;
  --navy: #102b36;
  --navy-light: #17404f;
  --primary-tint: #eaf5f8;
  --primary-tint-2: #d5ecf2;
  --text: #253238;
  --text-light: #5b6b72;
  --white: #ffffff;
  --border: #e1edf1;
  --radius: 5px;
  --shadow-sm: 0 2px 10px rgba(16, 43, 54, 0.08);
  --shadow-md: 0 10px 30px rgba(16, 43, 54, 0.12);
  --shadow-lg: 0 20px 50px rgba(16, 43, 54, 0.18);
  --container: 1180px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

input, textarea, select { font-family: inherit; font-size: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

.section-pad { padding: 110px 0; }

@media (max-width: 768px) {
  .section-pad { padding: 70px 0; }
}

/* ---------- Utilities ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-tint);
  padding: 8px 16px;
  border-radius: var(--radius);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
}

.section-head {
  max-width: 680px;
  margin: 0 0 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-light);
  font-size: 1.08rem;
}

.text-primary { color: var(--primary); }

/* Visible by default; JS opts elements into the hidden pre-animation state
   (via .reveal-init) so content never stays invisible if JS fails to run. */
.reveal {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.reveal-init {
  opacity: 0;
  transform: translateY(28px);
}

.reveal.reveal-init.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.98rem;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.55);
}

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

.btn-dark-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border);
}

.btn-dark-outline:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn-block { width: 100%; }

/* ---------- Header ---------- */

.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 9px;
  padding-bottom: 9px;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar-item svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--primary); }

.topbar a:hover { color: var(--primary); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}

/* Background lives on a pseudo-element (not the header itself) so that
   backdrop-filter doesn't turn the header into a containing block for its
   fixed-position mobile nav descendant. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}

.site-header.scrolled::before {
  background: rgba(255, 255, 255, 0.98);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--navy);
  letter-spacing: -0.01em;
  position: relative;
  z-index: 460;
}

.brand img { width: 44px; height: 44px; }

.brand small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--primary-dark);
  text-transform: uppercase;
  margin-top: 1px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--primary);
  transition: width var(--transition);
}

.main-nav a:hover { color: var(--primary-dark); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 22px; position: relative; z-index: 460; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
}

.nav-toggle span {
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform var(--transition), opacity var(--transition);
}

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

@media (max-width: 992px) {
  .main-nav {
    position: fixed;
    top: 84px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 450;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 30px;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a {
    padding: 16px 4px;
    border-bottom: 1px solid var(--border);
  }
  .header-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--navy) url("../images/hero.jpg") center / cover no-repeat;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 43, 54, 0.78);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 100px;
  padding-bottom: 90px;
}

.hero-content { max-width: 720px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-tint);
  background: rgba(60, 157, 189, 0.22);
  border: 1px solid rgba(60, 157, 189, 0.45);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero h1 span { color: var(--primary); }

.hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.15rem;
  max-width: 600px;
  margin-bottom: 38px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 780px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 32px;
}

.hero-stat b {
  display: block;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: var(--white);
  font-weight: 800;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
}

@media (max-width: 768px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}

@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
}

.about-media { position: relative; margin: 30px 20px 0 34px; }

.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: -28px;
  right: -20px;
  background: var(--primary);
  color: var(--white);
  padding: 22px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  text-align: center;
  min-width: 150px;
  z-index: 2;
}

.about-badge b { display: block; font-size: 2.1rem; font-weight: 800; line-height: 1; }
.about-badge span { font-size: 0.78rem; letter-spacing: 0.04em; }

@media (max-width: 480px) {
  .about-badge { right: 0; bottom: -22px; padding: 16px 18px; min-width: auto; }
}

.about-media-sub {
  position: absolute;
  top: -30px;
  left: -34px;
  width: 170px;
  height: 130px;
  border-radius: var(--radius);
  border: 5px solid var(--white);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  z-index: 2;
}

.about-media-sub img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 992px) {
  .about-media-sub { top: -24px; left: 16px; }
}

@media (max-width: 480px) {
  .about-media-sub { display: none; }
}

.about-text .section-head { margin-bottom: 26px; }

.about-text p { color: var(--text-light); margin-bottom: 18px; }

.about-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 30px;
}

.about-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

.about-point svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--primary);
}

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

/* ---------- Services ---------- */

.services { background: var(--primary-tint); }

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

@media (max-width: 992px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

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

.service-media { position: relative; height: 210px; overflow: hidden; }

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-media img { transform: scale(1.08); }

.service-icon {
  position: absolute;
  left: 22px;
  bottom: -26px;
  width: 58px;
  height: 58px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.service-icon svg { width: 28px; height: 28px; color: var(--white); }

.service-body { padding: 44px 28px 30px; flex: 1; display: flex; flex-direction: column; }

.service-body h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-body p { color: var(--text-light); margin-bottom: 20px; }

.service-list { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
}

.service-list svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }

/* ---------- Process ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  counter-reset: step;
}

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

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

.process-step { position: relative; padding-top: 6px; }

.process-num {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 22px;
}

.process-step h3 { font-size: 1.12rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.process-step p { color: var(--text-light); font-size: 0.95rem; }

/* ---------- Why us ---------- */

.why-us { background: var(--navy); color: var(--white); }

.why-us .section-head h2 { color: var(--white); }
.why-us .section-head p { color: rgba(255, 255, 255, 0.68); }

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

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

@media (max-width: 620px) {
  .why-grid { grid-template-columns: 1fr; }
}

.why-card {
  background: var(--navy-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform var(--transition), background var(--transition);
}

.why-card:hover { transform: translateY(-6px); background: var(--primary-darker); }

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: rgba(60, 157, 189, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.why-icon svg { width: 26px; height: 26px; color: var(--primary); }

.why-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 10px; }
.why-card p { color: rgba(255, 255, 255, 0.66); font-size: 0.94rem; }

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 18px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-item.wide { grid-column: span 2; grid-row: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 43, 54, 0);
  transition: background var(--transition);
}

.gallery-item:hover::after { background: rgba(16, 43, 54, 0.35); }

.gallery-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 1;
}

.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

@media (max-width: 992px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 2; grid-row: span 1; height: 100%; }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-item.wide { grid-column: span 1; }
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(16, 43, 54, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition);
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 26px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close svg { width: 22px; height: 22px; }

.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }

/* ---------- CTA banner ---------- */

.cta-banner {
  position: relative;
  background: var(--navy) url("../images/cta-bg.jpg") center / cover no-repeat;
  padding: 100px 0;
  text-align: center;
  isolation: isolate;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 43, 54, 0.86);
  z-index: 0;
}

.cta-banner .container { position: relative; z-index: 1; }

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  max-width: 640px;
  margin: 0 auto 18px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  margin: 0 auto 34px;
}

.cta-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: flex-start;
}

@media (max-width: 992px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px 34px;
}

.contact-info h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 14px; }
.contact-info > p { color: rgba(255, 255, 255, 0.7); margin-bottom: 30px; }

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-item .ic {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: rgba(60, 157, 189, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item .ic svg { width: 20px; height: 20px; color: var(--primary); }

.contact-item h4 { font-size: 0.98rem; font-weight: 700; margin-bottom: 4px; }
.contact-item p, .contact-item a { color: rgba(255, 255, 255, 0.7); font-size: 0.94rem; }
.contact-item a:hover { color: var(--primary); }

.contact-map {
  margin-top: 30px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-map iframe { width: 100%; height: 220px; border: 0; display: block; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 560px) {
  .contact-form, .contact-info { padding: 28px 22px; }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 620px) {
  .form-row { grid-template-columns: 1fr; }
}

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(60, 157, 189, 0.16);
}

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

.field-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-light);
}

.field-consent input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--primary); }

/* honeypot field, hidden from real users */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-msg {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
}

.form-msg.is-success {
  display: block;
  background: #e4f5ea;
  color: #1c7a41;
  border: 1px solid #bfe6cd;
}

.form-msg.is-error {
  display: block;
  background: #fdeceb;
  color: #b3261e;
  border: 1px solid #f6c6c2;
}

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.72); padding-top: 80px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.footer-brand .brand { color: var(--white); margin-bottom: 18px; }
.footer-brand p { font-size: 0.92rem; line-height: 1.7; max-width: 300px; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 12px; font-size: 0.94rem; }
.footer-col a:hover { color: var(--primary); }
.footer-col li { display: flex; gap: 8px; align-items: flex-start; }
.footer-col svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; margin-top: 3px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Back to top ---------- */

.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  z-index: 400;
}

.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); }
.back-to-top svg { width: 20px; height: 20px; }
