/* =============================================
   AIADE - Asociatia de Ingrijire si Ajutor la Domiciliu Elena
   Main Stylesheet
   ============================================= */

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

:root {
  --primary: #1a5f7a;
  --primary-dark: #134a5f;
  --primary-light: #e8f4f8;
  --secondary: #48a9a6;
  --secondary-light: #e6f5f4;
  --accent: #e8833a;
  --accent-dark: #d06f28;
  --text: #2d3748;
  --text-light: #718096;
  --bg: #f9fafb;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

ul {
  list-style: none;
}

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

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 16px;
  color: var(--text);
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 40px;
  text-align: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

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

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-phone {
  background: var(--secondary);
  color: var(--white);
  font-size: 1.15rem;
}

.btn-phone:hover {
  background: #3d9290;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* --- Sticky Phone Bar --- */
.phone-bar {
  background: var(--primary-dark);
  color: var(--white);
  text-align: center;
  padding: 8px 24px;
  font-size: 0.9rem;
}

.phone-bar a {
  color: var(--white);
  font-weight: 700;
  margin-left: 6px;
}

.phone-bar a:hover {
  color: var(--accent);
}

/* --- Header / Navigation --- */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 2px;
  line-height: 1.1;
}

.logo-tagline {
  font-size: 0.65rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.nav-list {
  display: flex;
  gap: 8px;
}

.nav-list a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, rgba(19, 74, 95, 0.55) 0%, rgba(26, 95, 122, 0.50) 100%),
              url('../images/hero-bg.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

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

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

.hero-motto {
  font-style: italic;
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 16px;
  font-weight: 400;
}

.hero h1 {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Sections --- */
.section {
  padding: 80px 0;
}

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

.section-alt {
  background: var(--primary-light);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

/* --- Service Cards --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.cards-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
  color: var(--primary);
}

.card h3 {
  color: var(--primary-dark);
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- Beneficiari / Audience --- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.audience-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.audience-item:hover {
  border-color: var(--secondary);
  background: var(--secondary-light);
}

.audience-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--secondary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.1rem;
}

.audience-item span {
  font-weight: 500;
  font-size: 0.95rem;
}

/* --- Timeline Steps --- */
.timeline {
  max-width: 650px;
  margin: 0 auto;
  position: relative;
}

.timeline-step {
  display: flex;
  gap: 24px;
  position: relative;
  padding-bottom: 40px;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

/* Vertical line */
.timeline-step:not(:last-child) .timeline-marker::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 60px;
  bottom: -40px;
  width: 3px;
  background: var(--primary-light);
  transform: translateX(-50%);
}

.timeline-marker {
  position: relative;
  flex-shrink: 0;
}

.timeline-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 3px 10px rgba(232, 131, 58, 0.3);
}

.timeline-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  flex: 1;
  transition: all var(--transition);
}

.timeline-content:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
}

/* --- Benefits List (despre-noi) --- */
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 4px solid var(--secondary);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.benefit-row:hover {
  border-left-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateX(4px);
}

.benefit-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.benefit-text h3 {
  margin-bottom: 4px;
  color: var(--primary-dark);
}

.benefit-text p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.timeline-content h3 {
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.timeline-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- Section with image --- */
.section-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.section-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Image Banner (between sections) --- */
.image-banner {
  height: 400px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.image-banner-tall {
  height: 450px;
}

.image-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(19, 74, 95, 0.5) 0%, rgba(72, 169, 166, 0.3) 100%);
}

/* --- CTA Section --- */
.cta-section {
  background: url('../images/cta-bg.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(19, 74, 95, 0.55) 0%, rgba(14, 74, 92, 0.50) 100%);
  pointer-events: none;
}

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

.cta-section h2 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 1.8rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.cta-section .btn-primary {
  background: var(--white);
  color: var(--primary);
  font-weight: 600;
  padding: 14px 36px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-primary:hover {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(232, 131, 58, 0.4);
}

/* --- Services List (servicii.html) --- */
.services-category {
  margin-bottom: 40px;
}

.services-image {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.services-category h3 {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
  margin-bottom: 20px;
}

.service-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.service-item:last-child {
  border-bottom: none;
}

.service-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-content h4 {
  margin-bottom: 4px;
  color: var(--text);
}

.service-content p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* --- Info Box --- */
.info-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 24px 28px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}

.info-box h4 {
  color: var(--primary);
  margin-bottom: 8px;
}

.info-box p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.info-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

/* --- FAQ --- */
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question .arrow {
  transition: transform var(--transition);
  font-size: 0.8rem;
  color: var(--text-light);
}

.faq-item.open .faq-question .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-light);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

/* --- Donate Section --- */
.donate-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  max-width: 550px;
  margin: 0 auto;
}

.iban-code {
  background: var(--primary-light);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Courier New', monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 1px;
  margin: 20px 0;
  user-select: all;
}

/* --- Contact Page --- */
.contact-hero {
  margin-bottom: 40px;
}

.contact-image {
  border-radius: var(--radius);
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.contact-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}

.contact-intro p {
  color: var(--text-light);
  margin-bottom: 0;
}

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

.contact-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
}

.contact-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.4rem;
  margin: 0 auto 16px;
}

.contact-card h4 {
  margin-bottom: 6px;
}

.contact-card p {
  color: var(--text-light);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Second row of contact cards */
.contact-cards-trio {
  margin-top: 24px;
}

.contact-icon-whatsapp {
  background: #e6f9f0 !important;
  color: #25d366 !important;
}

.contact-card-whatsapp h4 {
  color: #25d366;
}

.contact-card-whatsapp a {
  color: #25d366;
  font-weight: 600;
}

.whatsapp-note {
  margin-top: 6px !important;
  font-size: 0.85rem !important;
  font-style: italic;
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 32px;
  box-shadow: var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
}

/* --- Page Header (inner pages) --- */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.page-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 0;
}

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

.team-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.team-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
  color: var(--primary);
}

.team-card h3 {
  margin-bottom: 6px;
}

.team-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* --- Footer --- */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 0;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* --- Responsive --- */

/* Tablets / Laptop mic */
@media (max-width: 968px) {
  .nav-toggle {
    display: flex;
    order: 2;
    margin-left: auto;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
    gap: 4px;
  }

  .nav-list.open {
    display: flex;
  }

  .header .container {
    position: relative;
  }

  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.7rem; }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero {
    padding: 60px 0;
  }

  .section {
    padding: 60px 0;
  }

  .section-with-image {
    grid-template-columns: 1fr;
  }

  .section-image {
    max-height: 350px;
  }

  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .image-banner {
    height: 300px;
  }

  .image-banner-tall {
    height: 350px;
  }
}

/* Tablet mic / telefon mare */
@media (max-width: 768px) {
  .cards-grid-2 {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .audience-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

/* Telefon */
@media (max-width: 640px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }

  .section {
    padding: 50px 0;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero {
    padding: 50px 0;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .logo-img {
    height: 40px;
  }

  .timeline-step {
    gap: 16px;
  }

  .timeline-number {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .timeline-content {
    padding: 16px 18px;
  }

  .card {
    padding: 24px 20px;
  }

  .section-image {
    max-height: 250px;
  }

  .image-banner {
    height: 220px;
  }

  .image-banner-tall {
    height: 260px;
  }

  .services-image {
    height: 200px;
  }

  .contact-image {
    height: 200px;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-cards-trio {
    max-width: 100%;
  }

  .map-container iframe {
    height: 250px;
  }

  .donate-card {
    padding: 28px 20px;
  }

  .iban-code {
    font-size: 0.9rem;
    word-break: break-all;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cookie-table {
    font-size: 0.8rem;
  }

  .cookie-table th,
  .cookie-table td {
    padding: 8px 10px;
  }

  .legal-content ul {
    padding-left: 16px;
  }

  .cookie-btn {
    min-height: 44px;
  }

  .audience-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
  }

  .audience-item {
    padding: 16px 8px;
  }

  .benefit-row {
    padding: 20px 16px;
  }
}

/* Telefon mic */
@media (max-width: 400px) {
  .container {
    padding: 0 16px;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }

  .hero h1 {
    font-size: 1.4rem;
  }

  .logo-img {
    height: 36px;
  }

  .phone-bar {
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  .timeline-step {
    gap: 12px;
  }

  .timeline-number {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .audience-item span {
    font-size: 0.8rem;
  }

  .image-banner {
    height: 180px;
  }

  .services-image {
    height: 160px;
  }

  .cookie-inner {
    padding: 16px 12px;
  }

  .cookie-text p {
    font-size: 0.8rem;
  }
}

/* --- Legal Pages --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 36px;
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.legal-content h3 {
  margin-top: 20px;
  font-size: 1.05rem;
  color: var(--text);
}

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

.legal-content ul li {
  margin-bottom: 6px;
  color: var(--text);
  line-height: 1.7;
}

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

.cookie-table th,
.cookie-table td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--border);
}

.cookie-table th {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

.cookie-table td {
  background: var(--white);
}

/* --- Cookie Consent Banner --- */
#cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.9);
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.4s ease;
}

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.cookie-text {
  flex: 1;
}

.cookie-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.6;
}

.cookie-text a {
  color: var(--white);
  text-decoration: underline;
}

.cookie-text a:hover {
  color: var(--accent);
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.cookie-btn-accept {
  background: var(--accent);
  color: var(--white);
}

.cookie-btn-accept:hover {
  background: var(--accent-dark);
}

.cookie-btn-reject {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

@media (max-width: 640px) {
  .cookie-inner {
    flex-direction: column;
    gap: 16px;
  }

  .cookie-buttons {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}

/* --- Footer Legal Links --- */
.footer-legal {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.75);
}

.footer-legal span {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
