/* Design Tokens */
:root {
  --color-primary: #b33876;
  --color-primary-hover: #ff4aa4;
  --color-primary-hover-alt: #ff65b2;
  --color-heading-accent: #922f61;
  --color-footer-bg: #581339;
  --color-accent-blue: #b4e0ff;
  --color-accent-blue-light: #e7f5ff;
  --color-body-text: #444;
  --color-table-header: #af3574;

  --font-body: "Open Sans", sans-serif;
  --font-heading: Raleway, sans-serif;
  --font-hero: Georgia, "Times New Roman", Times, serif;
  --font-footer-heading: Poppins, sans-serif;
  --section-padding: 60px;
  --section-title-bottom: 30px;
  --input-height: 44px;
  --radius-btn: 4px;
  --radius-circle: 50px;
}

/* Base */
body {
  font-family: var(--font-body);
  color: var(--color-body-text);
}
a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  color: var(--color-primary-hover);
  text-decoration: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--color-primary);
  width: var(--input-height);
  height: var(--input-height);
  border-radius: var(--radius-circle);
  transition: all 0.4s;
}
.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}
.back-to-top:hover {
  background: var(--color-primary-hover);
  color: #fff;
}
.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/* Logo */
.logo {
  width: 8rem;
}
.logo img {
  width: 8rem;
}
@media screen and (max-width: 768px) {
  .logo,
  .logo img {
    width: 50%;
  }
}

/* Sections */
section {
  padding: var(--section-padding) 0;
}
.section-title {
  text-align: center;
  padding-bottom: var(--section-title-bottom);
}
.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}
.section-title h2::before {
  content: "";
  position: absolute;
  display: block;
  width: 120px;
  height: 1px;
  background: #ddd;
  bottom: 1px;
  left: calc(50% - 60px);
}
.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-primary);
  bottom: 0;
  left: calc(50% - 20px);
}
.section-title p {
  margin-bottom: 0;
}

/* Loading animation */
@-webkit-keyframes animate-loading {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}
@keyframes animate-loading {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

/* Footer */
#footer {
  background: var(--color-footer-bg);
  color: #fff;
  font-size: 14px;
  text-align: center;
  padding: 30px 0;
}
#footer h3 {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  position: relative;
  font-family: var(--font-footer-heading);
  padding: 0;
  margin: 0 0 15px 0;
}
#footer p {
  font-size: 15px;
  font-style: italic;
  padding: 0;
  margin: 0 0 40px 0;
}
#footer .social-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: 0 0 40px 0;
}
#footer .social-links a {
  font-size: 18px;
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: var(--radius-circle);
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}
#footer .social-links a:hover {
  background: var(--color-primary-hover);
  color: #fff;
  text-decoration: none;
}
#footer .copyright {
  margin: 0 0 5px 0;
}
#footer .credits {
  font-size: 13px;
}
#footer .credits a {
  color: var(--color-primary);
  transition: 0.3s;
}
#footer .credits a:hover {
  color: var(--color-primary-hover-alt);
}

/* Utility */
.overflow-x-hidden {
  overflow-x: hidden;
}

/* Focus visible */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* 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;
  }
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Cookie consent banner */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-footer-bg);
  color: #fff;
  padding: 16px 20px;
  font-size: 14px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}
.cookie-consent.show {
  display: flex;
}
.cookie-consent a {
  color: #fff;
  text-decoration: underline;
}
.cookie-consent a:hover {
  color: var(--color-primary-hover);
}
.cookie-consent .btn-accept {
  background: var(--color-primary-hover);
  color: #fff;
  border: none;
  padding: 8px 24px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-consent .btn-accept:hover {
  background: var(--color-primary);
}
.cookie-consent .btn-reject {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 8px 24px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-consent .btn-reject:hover {
  border-color: #fff;
}

/* Footer legal links */
.footer-legal {
  margin-top: 12px;
  font-size: 13px;
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 8px;
}
.footer-legal a:hover {
  color: #fff;
}
