/* =====================================================
   Crystal Trails Academy – style.css
   Monochrome Sophisticated - Responsive, Flexbox Only
   ===================================================== */

/* --- CSS RESET/BASE & NORMALIZE --- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #232323;
  font-family: 'Open Sans', Arial, sans-serif;
}
img, picture, video, canvas, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}

/* --- ROOT MONOCHROME PALETTE & BRAND COLORS --- */
:root {
  --black: #161616;
  --almost-black: #232323;
  --darker-gray: #31343a;
  --medium-gray: #55585f;
  --light-gray: #dedede;
  --lighter-gray: #f3f3f3;
  --white: #fff;
  --brand-primary: #1B365D;
  --brand-secondary: #34A085;
  --brand-accent: #F3F6FB;
  --accent-transparent: rgba(243,246,251,0.85);
  --shadow: 0 2px 16px 0 rgba(30,30,30,0.10); 
  --shadow-lg: 0 4px 32px 0 rgba(0,0,0,0.12);
  --border-radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 22px;

  /* Typography scale */
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --fs-xxl: 3rem;     /* 48px */
  --fs-xl: 2rem;      /* 32px */
  --fs-lg: 1.5rem;    /* 24px */
  --fs-md: 1.125rem;  /* 18px */
  --fs-base: 1rem;    /* 16px */
  --fs-sm: 0.875rem;  /* 14px */
}

/* --- GENERAL STRUCTURE --- */
body {
  background: var(--white);
  color: var(--almost-black);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  letter-spacing: 0.01em;
  font-weight: 400;
}

main {
  flex: 1 0 auto;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ======================
   TYPOGRAPHY
   ====================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.01em;
}
h1 {
  font-size: var(--fs-xxl);
  line-height: 1.1;
}
h2 {
  font-size: var(--fs-xl);
  line-height: 1.2;
  color: var(--brand-primary);
}
h3 {
  font-size: var(--fs-lg);
  line-height: 1.22;
}
h4 {
  font-size: var(--fs-md);
  font-weight: 600;
}

p, li, dd, dt {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--medium-gray);
  line-height: 1.6;
  margin-bottom: 0.5em;
}
p.larger, .lead {
  font-size: 1.25rem;
  color: var(--darker-gray);
}
strong, b {
  color: var(--black);
  font-weight: bold;
}

@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
}

/* =============================
   HEADER & NAVIGATION
   =============================*/
header {
  width: 100%;
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
  position: relative;
  z-index: 50;
}
header > a img {
  height: 44px;
  width: auto;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
nav a {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--almost-black);
  opacity: 0.92;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
nav a:hover, nav a:focus {
  color: var(--brand-primary);
  background: var(--accent-transparent);
  outline: none;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-lg);
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(30,30,30,0.05);
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.2s;
  margin-left: 24px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--brand-primary);
  color: var(--white);
  transform: translateY(-2px) scale(1.035);
}

/* =====================================
   MOBILE NAVIGATION (BURGER MENU)
   ===================================== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2rem;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  z-index: 100;
  border: none;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px 0 rgba(0,0,0,0.13);
}
.mobile-menu-toggle:active {
  background: var(--brand-primary);
  transform: scale(0.96);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  background: var(--white);
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  box-shadow: 0 4px 48px rgba(0,0,0,0.13);
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(0.4,0,0.2,1);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  margin: 24px 24px 0 auto;
  background: none;
  font-size: 2.5rem;
  color: var(--black);
  border: none;
  cursor: pointer;
  transition: color 0.19s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--brand-primary);
}
.mobile-nav {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 28px;
  gap: 18px;
  padding-left: 38px;
}
.mobile-nav a {
  font-size: 1.17rem;
  font-family: var(--font-display);
  color: var(--black);
  padding: 10px 0;
  border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.18s;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--brand-primary);
  background: var(--accent-transparent);
}
@media (max-width: 1050px) {
  nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1051px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}
/* Ensure no main content behind open mobile menu is scrollable */
body.menu-open {
  overflow: hidden;
}

/* ================== 
 UNIFIED HERO & SECTION
 ===================*/
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--border-radius);
}
.hero {
  background: linear-gradient(94deg, var(--white) 72%, var(--lighter-gray) 100%);
  margin-bottom: 60px;
  padding: 54px 0 44px 0;
  box-shadow: var(--shadow);
}
.hero h1 {
  font-size: var(--fs-xxl);
  color: var(--black);
  margin-bottom: 18px;
}
.hero p {
  font-size: var(--fs-lg);
  color: var(--darker-gray);
  margin-bottom: 34px;
}
.hero .cta-btn {
  margin-top: 18px;
}

@media (max-width: 650px) {
  .hero {
    padding: 36px 0 24px 0;
  }
}

.features, .feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-base);
  color: var(--darker-gray);
}
.features img {
  width: 26px;
  height: 26px;
}

.about ul, .brand-story ul, .team-highlights ul, .why-choose-us ul,
.course-benefits ul, .platform-features ul, .trust-signals ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about ul li, .brand-story ul li, .team-highlights ul li, .why-choose-us ul li,
.course-benefits ul li, .platform-features ul li, .trust-signals ul li {
  display: flex;
  align-items: center;
  font-size: var(--fs-base);
  color: var(--medium-gray);
  gap: 10px;
}
.about ul li:before, .team-highlights ul li:before, .brand-story ul li:before {
  content: '';
  display: inline-block;
  width: 16px; height: 16px;
  background: var(--black);
  border-radius: 50%;
  margin-right: 9px;
  opacity: 0.15;
}

.course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 28px 0 0 0;
}
.course-card {
  background: var(--accent-transparent);
  border: 1px solid var(--light-gray);
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px 28px;
  max-width: 350px;
  min-width: 220px;
  flex: 1 1 288px;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, transform 0.24s;
}
.course-card:hover {
  box-shadow: 0 12px 44px rgba(34,34,38,0.12);
  transform: translateY(-5px) scale(1.018);
}
.course-card h2 {
  font-size: var(--fs-lg);
  margin-bottom: 10px;
  color: var(--brand-primary);
}
.course-card p {
  color: var(--darker-gray);
}

@media (max-width: 900px) {
  .course-list {
    flex-direction: column;
    gap: 20px;
  }
  .course-card {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
}

/* ================================
   FLEXBOX Utility Patterns Per Requirement
   ================================ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px; /* Always 20px gap at bottom */
  flex: 1 1 320px;
}
.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;
}
@media (max-width: 780px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}

/* =====================
   TESTIMONIALS & OMDÖMEN
   ===================== */
.testimonials, .testimonial-section {
  background: var(--lighter-gray);
  border-radius: var(--border-radius);
  margin-bottom: 60px;
  padding: 40px 0;
}
.testimonials h2, .testimonials h1 {
  color: var(--black);
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  margin-bottom: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--light-gray);
  box-shadow: var(--shadow);
  max-width: 510px;
  width: 100%;
  align-self: center;
  transition: box-shadow 0.21s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
}
.testimonial-card p {
  font-size: var(--fs-md);
  color: var(--black);
  font-style: italic;
}
.testimonial-meta {
  font-size: var(--fs-sm);
  color: var(--medium-gray);
  white-space: pre-line;
  text-align: right;
}
.testimonials .cta-btn {
  margin-top: 20px;
  align-self: flex-start;
}
@media (max-width: 700px) {
  .testimonial-card {
    padding: 16px 14px;
    max-width: 100%;
  }
}

/* =============================
   FAQ ACCORDION
   ============================= */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}
.faq-item {
  background: var(--accent-transparent);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  box-shadow: 0 1px 6px 0 rgba(20,21,22,0.04);
  transition: box-shadow 0.18s;
}
.faq-item:hover {
  box-shadow: var(--shadow);
  border-color: var(--medium-gray);
}
.faq-item h3, .faq-item h2 {
  font-size: var(--fs-md);
  color: var(--black);
  margin-bottom: 6px;
}
.faq-item p {
  margin: 0;
}

/* =========================
   CONTACT / FOOTER INFO
   ========================= */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: var(--fs-base);
  color: var(--medium-gray);
}
.contact-info img {
  width: 16px;
  height: 16px;
  margin-right: 7px;
  vertical-align: middle;
  opacity: 0.65;
}
dt {
  font-weight: bold;
  color: var(--brand-primary);
  margin-top: 9px;
}
dd {
  margin-left: 0;
}

/* =====================
   FOOTER
   ===================== */
footer {
  background: var(--almost-black);
  color: var(--white);
  padding: 42px 0 0 0;
  box-shadow: 0 -1px 12px rgba(23,24,29,0.09);
  position: relative;
}
footer .container {
  padding-bottom: 18px;
}

footer .content-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 22px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-nav a {
  color: var(--white);
  opacity: 0.84;
  font-family: var(--font-display);
  transition: color 0.17s, opacity 0.12s;
  font-size: var(--fs-sm);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--brand-secondary);
  opacity: 1;
  text-decoration: underline;
}
footer .contact-info {
  color: var(--white);
}
.footer-legal {
  font-size: var(--fs-sm);
  color: var(--light-gray);
  text-align: center;
  margin-bottom: 12px;
  margin-top: 0px;
  opacity: 0.67;
}
footer img {
  width: 110px;
  opacity: 0.93;
}
@media (max-width: 820px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}

/* =============================
   CARD & MODAL STYLES
   ============================= */
.card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 26px 22px;
  transition: box-shadow 0.19s, transform 0.18s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px) scale(1.018);
}

/* ===========================
   BUTTONS & INTERACTIVES
   =========================== */
button, .cta-btn {
  cursor: pointer;
  outline: none;
  border: none;
  transition: background 0.16s, color 0.16s, transform 0.14s;
}
button:focus-visible {
  outline: 2px solid var(--brand-primary);
}

/* link underline for micro-interaction */
a:not(.cta-btn):hover {
  text-decoration: underline;
  color: var(--brand-secondary);
}

/* ==================
   RESPONSIVENESS
   ================== */
@media (max-width: 650px) {
  html {
    font-size: 97%;
  }
  .section, section {
    padding: 26px 7px;
    margin-bottom: 34px;
    border-radius: var(--radius-sm);
  }
  .container {
    padding: 0 7px;
  }
}

@media (max-width: 500px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.05rem; }
  .faq-item, .testimonial-card, .card, .course-card {
    padding: 13px 6px;
    border-radius: var(--radius-sm);
  }
}

/* =====================================
   COOKIE CONSENT BANNER & MODAL
   ===================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1150;
  background: var(--accent-transparent);
  border-top: 2px solid var(--brand-primary);
  box-shadow: 0 -2px 22px rgba(24,23,25,0.09);
  padding: 22px 18px 18px 18px;
  gap: 16px;
  width: 100vw;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  transition: transform 0.35s cubic-bezier(0.42,0,0.42,1), opacity 0.25s;
}
.cookie-banner.hidden {
  transform: translateY(105%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 8px;
}
.cookie-banner button {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-weight: 600;
  border: none;
  transition: background 0.18s, color 0.19s;
  font-size: 1rem;
}
.cookie-banner .settings-btn {
  background: var(--brand-primary);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--brand-secondary);
}

/* COOKIE MODAL DIALOG */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20,20,22, 0.50);
  z-index: 1201;
  align-items: center;
  justify-content: center;
  display: none;
  transition: opacity 0.24s;
}
.cookie-modal-overlay.open {
  display: flex;
  animation: fadeIn 0.38s cubic-bezier(0.23,0.8,0.31,1.12);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--white);
  padding: 38px 24px 30px 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 40px rgba(0,0,0,0.17);
  max-width: 430px;
  width: 98vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 1250;
}
.cookie-modal h2 {
  color: var(--black);
  font-size: 1.32rem;
  margin-bottom: 13px;
  font-family: var(--font-display);
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 14px;
}
.cookie-category label {
  font-weight: 500;
  color: var(--almost-black);
  margin-right: 6px;
}
.cookie-switch {
  width: 42px; height: 22px;
  border-radius: 20px;
  background: var(--light-gray);
  position: relative;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.cookie-switch .slider {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: var(--medium-gray);
  border-radius: 50%;
  transition: 0.18s;
}
.cookie-switch input:checked + .slider {
  background: var(--brand-primary);
  left: 22px;
}
.cookie-category.essential label {
  color: var(--brand-primary);
}
.cookie-category.essential .cookie-switch {
  opacity: 0.6;
  pointer-events: none;
}
.cookie-modal .close-btn {
  align-self: flex-end;
  background: none;
  font-size: 1.6rem;
  color: var(--medium-gray);
  border: none;
  margin-bottom: 3px;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal .close-btn:hover,
.cookie-modal .close-btn:focus {
  color: var(--brand-primary);
}
.cookie-modal .cookie-actions {
  margin-top: 19px;
  display: flex;
  gap: 10px;
}
.cookie-modal .cookie-actions button {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 8px 13px;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.16s;
}
.cookie-modal .cookie-actions .save-btn {
  background: var(--brand-primary);
}
.cookie-modal .cookie-actions button:hover, .cookie-modal .cookie-actions button:focus {
  background: var(--brand-secondary);
}

/* =============================
   UTILITY CLASSES & MICRO FX
   ============================= */
.gap-8  { gap: 8px !important;  }
.gap-16 { gap: 16px !important; }
.gap-24 { gap: 24px !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.italic { font-style: italic; }
.bold { font-weight: 700; }

/* ===============================
   MISCELLANEOUS AND EDGE CASES
   =============================== */
a[aria-current="page"] {
  color: var(--brand-primary) !important;
  font-weight: bold;
}

/* Cards visual depth */
.card, .testimonial-card, .faq-item, .course-card {
  transition: box-shadow 0.18s, transform 0.17s;
}
.card:focus-within, .testimonial-card:focus-within, .faq-item:focus-within, .course-card:focus-within {
  box-shadow: 0 0 0 3px var(--brand-secondary), var(--shadow);
}
/* Highlighted links */
.lead a, .larger a {
  text-decoration: underline;
  color: var(--brand-primary);
}

/* --- Hide visually but keep for accessibility --- */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
}

/* End of CSS */
