/* ============================================================
   Radiant Quest Akademia - LUXURY PREMIUM STYLE CSS
   ------------------------------------------------------------
   Professional, mobile-first, luxury/premium aesthetic with
   gold accents, premium fonts, and strict flexbox-only layouts
   ============================================================ */

/* CSS RESET & BASE STYLES */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #262B35;
  background: #FAFBFE;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
  border: none;
}
a {
  color: #22A0C7;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #FCE94E;
  outline: none;
}
ul, ol {
  padding-left: 22px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 7px;
}

/* GOLD ACCENT & LUXURY COLOR PALETTE */
:root {
  --rq-primary: #1A2233;
  --rq-secondary: #22A0C7;
  --rq-accent-gold: #FCE94E;
  --rq-offwhite: #FAFBFE;
  --rq-dark: #181820;
  --rq-grey: #E4E7EF;
  --rq-card-bg: #fff;
  --rq-footer-bg: #181820;
  --rq-gold-shadow: 0 4px 16px rgba(252,233,78,0.07);
}

/* FONTS: PREMIUM & DISPLAY */
h1, h2, h3, .cta {
  font-family: 'Orbitron', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}
h1 {
  font-size: 2.3rem;
  margin-bottom: 24px;
  color: var(--rq-primary);
  line-height: 1.11;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--rq-primary);
  line-height: 1.2;
}
h3 {
  font-size: 1.24rem;
  margin-bottom: 10px;
  color: var(--rq-primary);
  font-weight: 600;
  line-height: 1.23;
}
.lead {
  font-size: 1.22rem;
  margin-bottom: 16px;
  color: #444968;
  font-weight: 400;
}

/* LINKS & BUTTONS - Luxury Style */
.cta, .cta:visited {
  display: inline-block;
  padding: 0.78em 2.3em;
  background: var(--rq-primary);
  color: var(--rq-accent-gold);
  border-radius: 35px;
  font-family: 'Orbitron', 'Roboto', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  box-shadow: 0 2px 16px rgba(40,40,48,0.04);
  border: 2px solid var(--rq-accent-gold);
  letter-spacing: 0.66px;
  text-transform: uppercase;
  transition: background 0.16s, color 0.16s, box-shadow 0.2s;
  cursor: pointer;
  margin: 7px 0;
  text-align: center;
}
.cta:hover, .cta:focus {
  background: var(--rq-accent-gold);
  color: var(--rq-primary);
  box-shadow: 0 6px 30px rgba(252,233,78,0.15);
  border-color: var(--rq-primary);
  outline: none;
}

button {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  background: none;
  transition: background 0.16s;
}

/* MAIN NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 3px 12px rgba(26,34,51,0.05);
  border-bottom: 1.3px solid #e9ebf5;
  z-index: 1010;
  position: relative;
  min-height: 62px;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  height: 62px;
  font-size: 1rem;
  z-index: 12;
}
nav.main-nav a {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 1em;
  border-radius: 19px;
  color: var(--rq-primary);
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  background: none;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
nav.main-nav a.cta {
  margin-left: auto;
  margin-right: 0;
  font-size: 1rem;
  padding: 0.54em 1.5em;
  background: var(--rq-accent-gold);
  color: var(--rq-primary);
  border: 2px solid var(--rq-accent-gold);
  box-shadow: 0 4px 24px rgba(252,233,78,0.1);
  transition: background 0.15s, color 0.15s;
}
nav.main-nav a.cta:hover, nav.main-nav a.cta:focus {
  background: var(--rq-primary);
  color: var(--rq-accent-gold);
}
nav.main-nav a:hover:not(.cta), nav.main-nav a:focus:not(.cta) {
  background: var(--rq-secondary);
  color: #fff;
}
nav.main-nav a img {
  height: 34px;
  margin-right: 6px;
}

/* MOBILE NAVIGATION: HAMBURGER & OVERLAY */
.mobile-menu-toggle {
  display: none;
  background: var(--rq-primary);
  color: var(--rq-accent-gold);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.8rem;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 16px;
  top: 8px;
  z-index: 1040;
  border: 2px solid var(--rq-accent-gold);
  transition: background 0.18s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--rq-secondary);
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(26,34,51, 0.94);
  z-index: 5000;
  transform: translateX(100%);
  transition: transform 0.37s cubic-bezier(.72,.58,.22,1.25);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 20px 20px 4px auto;
  font-size: 2.2rem;
  color: var(--rq-accent-gold);
  background: none;
  border: none;
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: var(--rq-secondary);
}
nav.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 10px 32px;
  width: 100%;
  margin-top: 14px;
}
nav.mobile-nav a {
  font-size: 1.19rem;
  color: var(--rq-accent-gold);
  border-radius: 20px;
  padding: 13px 0 13px 12px;
  width: 100%;
  transition: background 0.12s, color 0.12s;
  font-weight: 600;
}
nav.mobile-nav a:hover, nav.mobile-nav a:focus {
  background: var(--rq-secondary);
  color: #fff;
}
@media (max-width: 1024px) {
  nav.main-nav {
    gap: 3px;
  }
}
@media (max-width: 900px) {
  nav.main-nav {
    gap: 0px;
  }
}
@media (max-width: 820px) {
  nav.main-nav a:not(:first-child), nav.main-nav a.cta {
    font-size: 0.96rem;
    padding: 0.68em 0.8em;
  }
  nav.main-nav img {
    max-height: 30px;
  }
}
@media (max-width: 768px) {
  nav.main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* CONTAINER, SECTION, CONTENT-WRAPPER */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.section,
main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* SPACING & FLEX LAYOUTS: MANDATORY PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--rq-card-bg);
  border-radius: 16px;
  box-shadow: 0 2.5px 24px rgba(26,34,51,0.06);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 48px 0 rgba(26,34,51,.09);
  border: 1.5px solid var(--rq-accent-gold);
  margin-bottom: 20px;
  flex-direction: column;
  max-width: 600px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.features-grid > div {
  background: var(--rq-card-bg);
  border-radius: 14px;
  box-shadow: 0 2px 20px rgba(252,233,78,0.03);
  padding: 30px 18px 24px 18px;
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.16s;
  border: 1.3px solid #ece4c2;
  margin-bottom: 20px;
}
.features-grid > div:hover {
  box-shadow: 0 8px 36px rgba(252,233,78,0.13);
}
.features-grid img {
  width: 40px;
  margin-bottom: 12px;
}

/* LUXURY GOLD ACCENT DECORATIVE DETAILS */
hr {
  border: none;
  height: 2px;
  background: var(--rq-accent-gold);
  margin: 34px 0;
  border-radius: 2px;
}

/* TESTIMONIALS: CRITICAL CONTRAST AND SPACING */
.testimonial-card blockquote {
  font-size: 1.18rem;
  line-height: 1.4;
  color: #1A2233;
  font-style: italic;
  margin-bottom: 6px;
  quotes: "\201E" "\201D" "\201A" "\2019";
}
.testimonial-card .stars {
  color: #F8C64D;
  font-size: 1.2rem;
  margin-bottom: 3px;
  letter-spacing: 3px;
  font-family: inherit;
}
.testimonial-card p {
  font-size: 1.02rem;
  color: #444968;
}

/* NEWSLETTER BOX */
.newsletter {
  background: #fff6d6;
  color: var(--rq-primary);
  border-radius: 11px;
  margin: 22px 0 0 0;
  padding: 22px 32px;
  font-size: 1.09rem;
  font-family: 'Roboto', Arial, sans-serif;
  box-shadow: 0 2px 10px rgba(252,233,78,0.08);
}

/* BRANDING */
.brand {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 15px 0 0 0;
}
.brand img {
  height: 45px;
  width: auto;
}

/* FOOTER */
footer {
  background: var(--rq-footer-bg);
  color: #fff;
  padding: 50px 0 0 0;
  font-size: 1rem;
  margin-top: auto;
  box-shadow: 0 -3px 16px rgba(26,34,51,0.08);
}
footer .container {
  flex-direction: column;
  gap: 15px;
  display: flex;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  border-bottom: 1.5px solid #26304B;
  padding-bottom: 25px;
  margin-bottom: 10px;
  font-size: 1rem;
}
.footer-nav a, .footer-nav a:visited {
  color: #fff;
  opacity: 0.95;
  transition: color 0.13s, opacity 0.16s;
  display: flex; align-items: center;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
}
.footer-nav a img {
  width: 22px;
  height: 22px;
  margin-right: 6px;
  display: inline-block;
  filter: brightness(0.92) sepia(1) saturate(2.3) hue-rotate(6deg);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--rq-accent-gold);
  opacity: 1;
}
.footer-nav .social {
  display: flex;
  gap: 13px;
  margin-left: 25px;
  align-items: center;
}
.footer-nav .social a {
  background: #21243c;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.13s;
}
.footer-nav .social a:hover {
  background: var(--rq-accent-gold);
}
.footer-nav .social a img {
  width: 20px;
  height: 20px;
}

/* TEXT SECTIONS */
.text-section {
  background: var(--rq-offwhite);
  border-radius: 10px;
  padding: 28px 18px 16px 22px;
  font-size: 1.08rem;
  box-shadow: 0 1.5px 6px rgba(34,34,34,0.03);
  color: var(--rq-primary);
  margin-bottom: 20px;
}
.text-section h2, .text-section h3 {
  margin-bottom: 10px;
}
.text-section p, .text-section ul, .text-section ol, .text-section details {
  margin-bottom: 13px;
}
details {
  background: #fff4c8;
  padding: 12px 20px;
  border-radius: 9px;
  margin-bottom: 13px;
  box-shadow: 0 2px 10px rgba(252,233,78,0.03);
}
details[open] summary {
  color: var(--rq-secondary);
}
summary {
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  color: var(--rq-primary);
}
summary:focus {
  outline: 2px solid var(--rq-accent-gold);
}

/* Cookie Consent Banner - Luxury Style */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fffbe4;
  color: var(--rq-primary);
  border-top: 2.5px solid var(--rq-accent-gold);
  box-shadow: 0 -4px 24px rgba(252,233,78,0.15);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  z-index: 9999;
  padding: 20px 22px 20px 22px;
  font-size: 1rem;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(.42,1.01,.25,1);
}
#cookie-banner.closed {
  transform: translateY(110%);
}
.cookie-actions {
  display: flex;
  gap: 16px;
}
#cookie-banner button {
  font-family: 'Orbitron', 'Roboto', Arial, sans-serif;
  border-radius: 27px;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid var(--rq-accent-gold);
  background: var(--rq-secondary);
  color: #fff;
  margin-left: 0;
  transition: background 0.10s, color 0.14s;
}
#cookie-banner button.accept {
  background: var(--rq-accent-gold);
  color: var(--rq-primary);
  border-color: var(--rq-accent-gold);
}
#cookie-banner button.reject {
  background: #e8e6c7;
  color: var(--rq-primary);
  border-color: #ddd19b;
}
#cookie-banner button.settings {
  background: transparent;
  color: var(--rq-secondary);
  border-color: var(--rq-secondary);
}
#cookie-banner button:hover, #cookie-banner button:focus {
  background: var(--rq-primary);
  color: var(--rq-accent-gold);
}

/* Cookie Modal Popup */
#cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(26,34,51,0.85);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s;
}
#cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fffbe4;
  padding: 28px 24px 24px 24px;
  border-radius: 22px;
  box-shadow: 0 8px 36px rgba(252,233,78,0.24);
  min-width: 310px;
  max-width: 95vw;
  font-size: 1.07rem;
  color: var(--rq-primary);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}
.cookie-modal-content h3 {
  font-size: 1.23rem;
  margin-bottom: 10px;
}
.cookie-modal-content label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
}
.cookie-modal-content input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--rq-accent-gold);
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal-close {
  position: absolute;
  right: 18px; top: 18px;
  background: none;
  color: var(--rq-secondary);
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
  z-index: 11;
}
.cookie-modal-close:hover {
  color: var(--rq-accent-gold);
}

/* =============== RESPONSIVE DESIGN ================ */
@media (max-width: 1280px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 1024px) {
  .container {
    padding: 0 13px;
  }
  .features-grid > div {
    max-width: 96vw;
    min-width: unset;
  }
}
@media (max-width: 900px) {
  .features-grid {
    gap: 14px;
  }
  .features-grid > div {
    max-width: 370px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.42rem; }
  h2 { font-size: 1.12rem; }
  .section, main > section {
    padding: 24px 7px;
    margin-bottom: 40px;
  }
  .card, .testimonial-card {
    padding: 18px 10px 16px 10px;
    border-radius: 9px;
  }
  .features-grid {
    flex-direction: column;
    gap: 24px;
  }
  .features-grid > div {
    max-width: 98vw;
    width: 100%;
  }
  .text-image-section,
  .content-grid {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  .testimonial-card {
    max-width: 99vw;
    font-size: 1rem;
  }
  .newsletter {
    padding: 18px 10px 18px 12px;
    font-size: 1rem;
  }
  .footer-nav {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  .brand {
    justify-content: flex-start;
    padding-left: 0;
    margin-top: 10px;
  }
  #cookie-banner {
    flex-direction: column;
    gap: 11px;
    padding: 13px 7px;
    font-size: 0.97rem;
  }
  .cookie-actions {
    gap: 9px;
    flex-wrap: wrap;
  }
}

@media (max-width: 540px) {
  h1 { font-size: 1.17rem; }
  .brand img {
    height: 33px;
  }
}

/* TRANSITIONS, HOVERS, MICRO-INTERACTIONS */
.card, .testimonial-card, .features-grid > div, .cookie-modal-content {
  transition: box-shadow 0.21s, border 0.15s, background 0.21s;
}
.cta, nav.main-nav a.cta, nav.mobile-nav a, #cookie-banner button {
  transition: background 0.19s, color 0.18s, border-color 0.18s;
}
#cookie-banner {
  animation: fadeInUp 0.55s cubic-bezier(0.58,0.1,0.31,1.04);
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: none; }
}
.mobile-menu {
  animation: slideInRight 0.45s cubic-bezier(.62,1.17,.38,1);
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

/* =============== END LUXURY PREMIUM CSS =============== */
