/* --- GLOBAL STYLES & VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600&display=swap');

:root {
  --primary: #0C4A6E;
  --secondary: #38BDF8;
  --accent: #FCD34D;
  --dark: #082F49;
  --light: #E0F2FE;
  --bg: #0A3A5C;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  --radius: 8px;
}

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

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

body {
  background-color: var(--bg);
  color: var(--light);
  font-family: var(--font-body);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

/* --- ACCESSIBILITY --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent);
  color: var(--dark);
  padding: 1rem;
  z-index: 10000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
details > summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- TYPOGRAPHY & LINKS --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--light);
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 { font-size: 3rem; font-weight: 900; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover, a:focus {
  color: var(--accent);
  text-decoration: underline;
}

p {
  margin-bottom: 1rem;
}

ul {
  list-style: none;
  padding-left: 0;
}

/* --- LAYOUT & CONTAINER --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 4rem 0;
}

.text-center {
  text-align: center;
}

.dark-bg {
  background-color: var(--dark);
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.btn--primary {
  background: linear-gradient(45deg, var(--secondary), var(--primary));
  color: var(--light);
}

.btn--primary:hover, .btn--primary:focus {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
  color: var(--light);
  text-decoration: none;
}

.btn--secondary {
  background: linear-gradient(45deg, var(--accent), #ffb700);
  color: var(--dark);
}

.btn--secondary:hover, .btn--secondary:focus {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(252, 211, 77, 0.4);
  color: var(--dark);
  text-decoration: none;
}

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

.btn--outline:hover, .btn--outline:focus {
  background: var(--secondary);
  color: var(--dark);
  text-decoration: none;
}

/* --- HEADER & NAVIGATION --- */
.site-header {
  background: rgba(8, 47, 73, 0.8);
  padding: 1rem 0;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.site-header.sticky {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

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

.logo a {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--light);
  text-decoration: none;
}

.logo a:hover, .logo a:focus {
    color: var(--secondary);
}

.main-nav ul {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--light);
  padding: 0.5rem 0;
  position: relative;
  text-decoration: none;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.main-nav a:hover::after, .main-nav a:focus::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger {
  display: block;
  position: relative;
  width: 25px;
  height: 3px;
  background: var(--light);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 3px;
  background: var(--light);
  border-radius: 3px;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger::before { transform: translateY(-8px); }
.hamburger::after { transform: translateY(8px); }

.menu-close-wrapper {
    display: none;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  padding: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(10, 58, 92, 1) 0%, rgba(8, 47, 73, 0.6) 50%, rgba(10, 58, 92, 1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.hero-floating-cards {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.floating-card {
  background: var(--dark);
  padding: 1rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: float 6s ease-in-out infinite;
}

.floating-card.neon-glow {
  box-shadow: 0 0 5px var(--secondary), 0 0 10px var(--secondary), 0 0 15px var(--secondary);
}

.floating-card:hover {
  transform: translateY(-10px);
}

.floating-card:nth-child(2) { animation-delay: 2s; }
.floating-card:nth-child(3) { animation-delay: 4s; }

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.floating-card img {
  height: 30px;
  width: auto;
}

/* --- PARTNERS SECTION --- */
.partners-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.partner-card-vertical {
  background: var(--dark);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--primary);
}

.partner-card-vertical:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.3);
}

.partner-card-header {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.partner-logo {
  height: 40px;
  max-width: 120px;
  object-fit: contain;
}

.partner-rating {
  background-color: var(--accent);
  color: var(--dark);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
}

.partner-badge {
  position: absolute;
  top: 0;
  right: -1px;
  background: var(--secondary);
  color: var(--dark);
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 0 0 0 var(--radius);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.partner-card-vertical:hover .partner-badge {
    transform: translateY(0);
}

.partner-card-body {
  padding: 1.5rem;
  flex-grow: 1;
}

.partner-card-body h3 {
  color: var(--secondary);
  margin-top: 0;
}

.partner-bonus {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.partner-features {
  padding-left: 1rem;
}

.partner-features li {
  margin-bottom: 0.5rem;
  list-style-type: '✓ ';
  padding-left: 0.5rem;
}

.partner-card-footer {
  padding: 1.5rem;
  background: var(--primary);
  margin-top: auto;
}

.partner-card-footer .btn {
  width: 100%;
}

/* --- REVIEWS SECTION --- */
.reviews-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.review-card {
    background: var(--dark);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary);
}
.review-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--secondary);
    margin-bottom: 1rem;
}
.review-text {
    font-style: italic;
    margin-bottom: 1rem;
}
.review-author {
    font-weight: bold;
    color: var(--accent);
}
.review-rating {
    color: var(--accent);
    font-size: 1.5rem;
}

/* --- FORMS (Review, Contact, Newsletter) --- */
.form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group.full-width {
    grid-column: 1 / -1;
}
.form label {
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.form input,
.form textarea,
.form select {
    width: 100%;
    padding: 0.75rem;
    background: var(--dark);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    color: var(--light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form input:focus,
.form textarea:focus,
.form select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3);
    outline: none;
}
.form button {
    grid-column: 1 / -1;
    justify-self: center;
    width: auto;
    min-width: 200px;
}

.newsletter-section h2 {
    text-align: center;
    margin-bottom: 1rem;
}
.newsletter-section p {
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}
.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
}
.newsletter-form input {
    flex-grow: 1;
}

/* --- RESPONSIBLE PLAY SECTION --- */
.responsible-play {
    background: var(--dark);
    text-align: center;
}
.responsible-play .container {
    position: relative;
}
.age-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--accent);
    color: var(--dark);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    font-family: var(--font-heading);
    border: 3px solid var(--dark);
}
.responsible-play p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.responsible-play .btn {
    margin-top: 1rem;
}

/* --- FOOTER --- */
.site-footer {
  background-color: var(--dark);
  padding: 3rem 0;
  border-top: 3px solid var(--primary);
}

.footer-logos {
    text-align: center;
    margin-bottom: 3rem;
}
.footer-logos h3 {
    margin-bottom: 1.5rem;
}
.logo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.logo-grid a img {
    height: 40px;
    filter: grayscale(100%) contrast(0%) brightness(2);
    transition: filter 0.3s ease;
}
.logo-grid a:hover img, .logo-grid a:focus img {
    filter: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--secondary);
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--light);
}

.footer-col a:hover, .footer-col a:focus {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--primary);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer-bottom .disclaimer {
    color: #a0aec0;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(8, 47, 73, 0.9);
  backdrop-filter: blur(5px);
  color: var(--light);
  z-index: 2000;
  padding: 1rem;
  transition: transform 0.5s ease-in-out;
}

.cookie-banner.hidden {
  transform: translateY(100%);
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1rem;
}

.cookie-content p a { font-weight: bold; }

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

/* --- MODALS --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal__content {
  background: var(--dark);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.active .modal__content {
  transform: scale(1);
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--dark);
  font-size: 2.5rem;
  line-height: 60px;
  margin: 0 auto 1rem;
  font-weight: bold;
}

/* --- STATIC PAGES (About, Contact, Policies, etc.) --- */
.page-header {
    background: var(--dark);
    padding: 3rem 0;
    text-align: center;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--secondary);
    max-width: 600px;
    margin: 0 auto;
}

.content-section {
    padding: 4rem 0;
}

.text-content.container {
    max-width: 800px;
}

.text-content h2 {
    color: var(--secondary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.text-content ul {
    list-style: disc;
    padding-left: 2rem;
}
.text-content ul li {
    margin-bottom: 0.5rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.content-grid.reverse {
    grid-template-columns: 1fr 1fr;
}
.content-grid.reverse .content-text { grid-column: 2 / 3; }
.content-grid.reverse .content-image { grid-column: 1 / 2; grid-row: 1; }
.content-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    text-align: center;
}
.value-card {
    padding: 2rem;
}
.value-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    border-radius: 50%;
}

.support-orgs {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}
.org-card {
    background: var(--dark);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
}
.org-card h3 { color: var(--accent); }

/* --- FAQ PAGE --- */
.accordion details {
    background: var(--dark);
    margin-bottom: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--primary);
}
.accordion summary {
    padding: 1rem;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accordion summary::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.accordion details[open] summary::after {
    transform: rotate(45deg);
}
.accordion .accordion-content {
    padding: 0 1rem 1rem;
    border-top: 1px solid var(--primary);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    .hero h1 { font-size: 3rem; }
    .hero-floating-cards { display: none; }
    .content-grid, .content-grid.reverse {
        grid-template-columns: 1fr;
    }
    .content-grid.reverse .content-text { grid-column: 1 / 2; grid-row: auto; }
    .content-grid.reverse .content-image { grid-column: 1 / 2; grid-row: auto; }
    .content-image { margin-top: 2rem; }
    .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
    .main-nav ul {
        position: fixed;
        top: 0;
        display: none;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }
    .main-nav ul.active {
        right: 0;
        display: flex;
    }
    .menu-close-wrapper {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: auto;
    }
    .menu-close {
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        color: var(--light);
        font-size: 2rem;
        line-height: 1;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s ease;
    }
    .menu-close:hover,
    .menu-close:focus {
        background: var(--primary);
        color: var(--accent);
        transform: rotate(90deg);
    }
    .close-icon {
        font-size: 2.5rem;
        font-weight: 300;
        line-height: 1;
    }
    .nav-toggle {
        display: block;
    }
    .nav-toggle[aria-expanded='true'] .hamburger {
        background: transparent;
    }
    .nav-toggle[aria-expanded='true'] .hamburger::before {
        transform: translateY(0) rotate(45deg);
        top: 0;
    }
    .nav-toggle[aria-expanded='true'] .hamburger::after {
        transform: translateY(0) rotate(-45deg);
        top: 0;
    }

    .hero { height: 70vh; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }

    .form {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: 1 / 2;
    }
    .form button {
        grid-column: 1 / 2;
    }
    .newsletter-form { flex-direction: column; }

    .cookie-content { flex-direction: column; text-align: center; }

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

    .age-badge { display: none; }
}

@media (max-width: 480px) {
    html { font-size: 15px; }
    .partner-grid { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}
