/* ===== PRCtrip - Modern Travel Website ===== */

/* --- CSS Variables --- */
:root {
  --primary: #c0392b;
  --primary-dark: #96281b;
  --primary-light: #e74c3c;
  --accent: #f39c12;
  --accent-light: #f1c40f;
  --dark: #1a1a2e;
  --dark-light: #16213e;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --bg-warm: #fef9f0;
  --border: #e0e0e0;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s ease;
  --font-main: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --max-width: 1200px;
}

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

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

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--dark);
}

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

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 16px;
  color: var(--dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--dark);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: #e67e22;
  transform: translateY(-2px);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo span {
  color: var(--dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

/* Language Switcher */
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 50px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}

.lang-switcher:hover {
  border-color: var(--primary);
}

.lang-switcher .globe-icon {
  font-size: 1.1rem;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 1001;
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 0.9rem;
  color: var(--text);
  transition: var(--transition);
}

.lang-dropdown a:hover,
.lang-dropdown a.active {
  background: var(--bg-light);
  color: var(--primary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
  background: none;
  border: none;
}

.hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.7) 0%, rgba(26,26,46,0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 36px;
  opacity: 0.95;
  line-height: 1.8;
}

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

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 28px;
}

.card-body h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--dark);
}

.card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.card-link:hover {
  gap: 10px;
  color: var(--primary-dark);
}

.card-link .arrow {
  transition: var(--transition);
}

/* --- Intro Section (Home) --- */
.intro-section {
  background: var(--bg-warm);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro-text h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.intro-text p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 24px;
  line-height: 1.8;
}

.intro-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.intro-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.intro-feature .icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.intro-feature h4 {
  font-family: var(--font-main);
  font-size: 1rem;
  margin-bottom: 4px;
}

.intro-feature p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

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

.intro-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* --- Why China Section --- */
.why-section {
  background: var(--dark);
  color: #fff;
}

.why-section .section-title {
  color: #fff;
}

.why-section .section-subtitle {
  color: rgba(255,255,255,0.7);
}

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

.why-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  transition: var(--transition);
}

.why-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}

.why-card .icon {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.why-card h3 {
  font-family: var(--font-main);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 12px;
}

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

/* --- Destination Cards --- */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.dest-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 420px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

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

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

.dest-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  transition: var(--transition);
}

.dest-card:hover .dest-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 70%);
}

.dest-card-overlay h3 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.dest-card-overlay p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  line-height: 1.6;
}

.dest-card-overlay .card-link {
  color: var(--accent);
  margin-top: 12px;
}

.dest-card-overlay .card-link:hover {
  color: var(--accent-light);
}

/* --- Detail Page --- */
.detail-hero {
  position: relative;
  height: 50vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 72px;
}

.detail-hero .hero-bg {
  background-attachment: scroll; /* Default: avoid mobile repaint perf issue */
}

@media (min-width: 1025px) {
  .detail-hero .hero-bg {
    background-attachment: fixed;
  }
}

.detail-hero .hero-overlay {
  background: linear-gradient(135deg, rgba(26,26,46,0.75) 0%, rgba(26,26,46,0.4) 100%);
}

.detail-hero h1 {
  font-size: 3rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.detail-content {
  padding: 60px 0;
}

.detail-content .container {
  max-width: 900px;
}

.detail-content h2 {
  font-size: 1.8rem;
  margin: 36px 0 16px;
  color: var(--dark);
}

.detail-content h3 {
  font-size: 1.3rem;
  margin: 24px 0 12px;
  color: var(--dark);
}

.detail-content p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 18px;
}

.detail-content ul {
  padding-left: 24px;
  margin-bottom: 18px;
}

.detail-content ul li {
  list-style: disc;
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 8px;
}

.detail-content .info-box {
  background: var(--bg-warm);
  border-left: 4px solid var(--accent);
  padding: 24px 28px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}

.detail-content .info-box h4 {
  font-family: var(--font-main);
  color: var(--dark);
  margin-bottom: 8px;
}

.detail-content .info-box p {
  margin-bottom: 0;
}

.detail-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}

.detail-img-grid img {
  border-radius: var(--radius-sm);
  height: 250px;
  object-fit: cover;
  width: 100%;
}

/* --- About Page --- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-intro-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-intro-text p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.value-card {
  text-align: center;
  padding: 40px 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.value-card .icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.value-card h3 {
  font-family: var(--font-main);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

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

/* --- Contact Section --- */
.contact-section {
  background: var(--bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.8;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.contact-item .icon {
  font-size: 1.3rem;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item div h4 {
  font-family: var(--font-main);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

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

.contact-form {
  background: #fff;
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-main);
  transition: var(--transition);
  background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
  background: #fff;
}

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

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

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

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 14px;
}

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

.footer-col h4 {
  font-family: var(--font-main);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  padding: 5px 0;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
  padding-left: 4px;
}

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

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 8px;
  color: var(--text-muted);
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
}

.cta-section .btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .about-intro {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 100px 30px 40px;
    gap: 20px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1001;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .hero {
    height: 70vh;
    min-height: 400px;
  }

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

  .hero-content p {
    font-size: 1rem;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

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

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

  .dest-card {
    height: 320px;
  }

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

  .about-values {
    grid-template-columns: 1fr;
  }

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

  .detail-hero {
    height: 40vh;
    min-height: 280px;
  }

  .detail-hero h1 {
    font-size: 2rem;
  }

  .detail-img-grid {
    grid-template-columns: 1fr;
  }

  .intro-features {
    grid-template-columns: 1fr;
  }

  .lang-switcher {
    font-size: 0.8rem;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .container {
    padding: 0 16px;
  }

  .card-body {
    padding: 20px;
  }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.pagination-btn {
  display: inline-block;
  padding: 10px 18px;
  border: 2px solid var(--primary);
  color: var(--primary);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s;
}
.pagination-btn:hover,
.pagination-btn.active {
  background: var(--primary);
  color: #fff;
}
.pagination-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* --- Admin Pagination --- */
.admin-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 16px 0;
  flex-wrap: wrap;
}
.admin-pagination-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-right: 8px;
}
.admin-pagination-btn {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}
.admin-pagination-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.admin-pagination-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  pointer-events: none;
}

/* --- Accessibility: Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Accessibility: Focus Indicators --- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Remove default focus outline for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
.btn:focus:not(:focus-visible) {
  outline: none;
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Staggered animation delays */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-delay-6 { animation-delay: 0.6s; }

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* --- Selection --- */
::selection {
  background: var(--primary);
  color: #fff;
}

/* === Custom Page Components === */

/* Rich text block — comfortable reading width */
.rich-text-block {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}
.rich-text-block p { margin-bottom: 1em; }
.rich-text-block h2 { font-size: 1.5rem; margin: 1.5em 0 0.5em; }
.rich-text-block h3 { font-size: 1.25rem; margin: 1.2em 0 0.4em; }
.rich-text-block ul,
.rich-text-block ol { margin: 0.5em 0 1em; padding-left: 1.5em; }
.rich-text-block img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 1em 0; }

/* FAQ accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}
.faq-item[open] {
  border-color: var(--primary);
}
.faq-item summary {
  padding: 16px 20px;
  font-weight: 500;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-light);
}
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 300;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer {
  padding: 12px 20px 20px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Embedded page wrapper */
.embedded-page {
  margin: 24px 0;
}

/* --- Custom Page Column Layout --- */
.cp-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
  padding: 0 var(--container-padding, 20px);
}

.cp-col {
  flex: 0 1 auto;
}

.cp-col--1-2 { flex-basis: calc(50% - 12px); max-width: calc(50% - 12px); }
.cp-col--1-3 { flex-basis: calc(33.333% - 16px); max-width: calc(33.333% - 16px); }
.cp-col--2-3 { flex-basis: calc(66.667% - 8px); max-width: calc(66.667% - 8px); }

/* Column sections: remove extra padding since row provides container */
.cp-col .section,
.cp-col .cta-section {
  padding-top: 20px;
  padding-bottom: 20px;
}

.cp-col .section > .container,
.cp-col .cta-section > .container {
  padding: 0; /* row already handles padding */
  max-width: none;
}

/* Stack on mobile */
@media (max-width: 767px) {
  .cp-row {
    flex-direction: column;
    gap: 0;
  }
  .cp-col--1-2,
  .cp-col--1-3,
  .cp-col--2-3 {
    flex-basis: 100%;
    max-width: 100%;
  }
}

/* === GDPR Cookie Consent Banner === */
#cookie-consent-banner {
  position: fixed;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: #fff;
  border-top: 2px solid var(--primary, #d43f3f);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.ccb-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.ccb-text {
  flex: 1 1 400px;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.6;
  margin: 0;
}
.ccb-text a {
  color: var(--primary, #d43f3f);
  text-decoration: underline;
  font-weight: 500;
}
.ccb-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ccb-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.ccb-btn-accept {
  background: var(--primary, #d43f3f);
  color: #fff;
}
.ccb-btn-accept:hover {
  background: var(--primary-dark, #b53535);
}
.ccb-btn-essential {
  background: #e9ecef;
  color: #333;
  border: 1px solid #ccc;
}
.ccb-btn-essential:hover {
  background: #dde1e5;
}
.ccb-btn-settings {
  background: transparent;
  color: #666;
  border: 1px solid #ccc;
}
.ccb-btn-settings:hover {
  background: #f5f5f5;
}
.ccb-settings {
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ccb-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #555;
  cursor: pointer;
}
.ccb-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary, #d43f3f);
}
.ccb-checkbox input[type="checkbox"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
#ccb-save-prefs {
  align-self: flex-start;
  margin-top: 4px;
}

/* System font fallback when no consent for Google Fonts */
html.cb-no-consent body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
html.cb-no-consent h1,
html.cb-no-consent h2,
html.cb-no-consent h3,
html.cb-no-consent h4,
html.cb-no-consent h5,
html.cb-no-consent h6,
html.cb-no-consent .nav-logo {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* === Skip-to-content link (accessibility) === */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary, #d43f3f);
  color: #fff;
  padding: 10px 20px;
  z-index: 10001;
  border-radius: 0 0 6px 6px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
  font-size: 0.9rem;
}
.skip-to-content:focus {
  top: 0;
  outline: 3px solid var(--primary-dark, #b53535);
  outline-offset: 2px;
}

/* === GDPR Form Consent Checkbox === */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  font-size: 0.88rem;
  color: #555;
  line-height: 1.5;
}
.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary, #d43f3f);
}
.form-consent a {
  color: var(--primary, #d43f3f);
  text-decoration: underline;
  font-weight: 500;
}

/* === Data Request Page === */
.data-request-form {
  max-width: 600px;
  margin: 0 auto;
}
.data-request-form .form-group {
  margin-bottom: 20px;
}
.data-request-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
.data-request-form input,
.data-request-form select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border, #ddd);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
}
.data-request-result {
  margin-top: 20px;
  padding: 16px;
  border-radius: 8px;
  display: none;
}
.data-request-result.show {
  display: block;
}
.data-request-result.success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}
.data-request-result.error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}
