/* RESET & BASE ========================================== */
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, main,
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;
}
/*! Normalize */
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { background: #F8FAFB; color: #1E2C38; min-height: 100vh; font-family: 'Roboto', Arial, sans-serif; font-size: 16px; }
article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section {
  display: block;
}
ol, ul {
  list-style: none;
}
a { text-decoration: none; color: inherit; }
img { vertical-align: middle; max-width: 100%; height: auto; border-radius: 8px; }
button, input, select, textarea {
  font-family: inherit; font-size: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}
button { cursor: pointer; transition: background 0.2s, color 0.2s; }
table { border-collapse: collapse; width: 100%; font-size: 16px; background: #fff; border-radius: 8px; overflow: hidden; margin-bottom: 32px; }
th, td { padding: 14px 16px; border-bottom: 1px solid #F0F4F6; text-align: left; font-weight: 400; }
th { background: #F0F4F6; font-weight: 700; }
caption { font-size: 18px; font-weight: 600; padding-bottom: 6px; color: #A68F6B; font-family: 'Lora', serif; }

:root {
  --primary: #1E2C38;
  --secondary: #A68F6B;
  --accent: #F0F4F6;
  --white: #fff;
  --black: #1E2C38;
  --shadow: 0 2px 8px rgba(30,44,56,0.06);
  --radius: 16px;
  --radius-sm: 8px;
  --font-display: 'Lora', serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* TYPOGRAPHY ========================================== */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--black); font-weight: 700; letter-spacing: -0.5px; line-height: 1.1; }
h1 { font-size: 2.6rem; margin-bottom: 18px; }
h2 { font-size: 2.0rem; margin-bottom: 16px; }
h3 { font-size: 1.4rem; margin-bottom: 10px; }
h4 { font-size: 1.2rem; margin-bottom: 8px; }
.subtitle, .subheadline, .caption { font-family: var(--font-body); color: #646E76; font-size: 1.05rem; }
p { line-height: 1.6; margin-bottom: 16px; font-size: 1.05rem; }
strong, b { font-weight: 700; }
small { font-size: 0.93em; color: #646E76; }

/* LAYOUT & CONTAINERS ========================================== */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* HEADER & NAV ========================================== */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0; left: 0; width: 100%;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}
header img[alt="Noble Shadow Academy"] {
  height: 48px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-body);
  color: var(--primary);
  font-weight: 500;
  font-size: 1.08rem;
  padding: 6px 10px;
  transition: color 0.18s;
  border-radius: var(--radius-sm);
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
  background: var(--accent);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  min-width: 144px;
  min-height: 40px;
  padding: 0 28px;
  font-family: var(--font-body);
  font-size: 1.07rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  outline: none;
  border: none;
  box-shadow: none;
  text-align: center;
  transition: background 0.22s, color 0.18s, box-shadow 0.18s;
  margin-left: 12px;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.cta-btn.primary {
  background: var(--primary);
  color: var(--white);
}
.cta-btn.primary:hover, .cta-btn.primary:focus {
  background: #273B49;
  color: var(--secondary);
  box-shadow: 0 6px 24px rgba(30,44,56,0.09);
}
.cta-btn.secondary {
  background: var(--accent);
  color: var(--primary);
  border: 1.5px solid var(--secondary);
}
.cta-btn.secondary:hover, .cta-btn.secondary:focus {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

@media (max-width: 1024px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 8px;
  }
  .main-nav { gap: 12px; }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0 6px;
  }
  .main-nav { display: none; }
  .cta-btn { margin-left: 0; }
}

/* HERO ========================================== */
.hero {
  background: var(--accent);
  border-radius: var(--radius);
  margin-bottom: 44px;
  padding: 60px 0 56px 0;
  box-shadow: 0 6px 28px rgba(30,44,56,0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 340px;
}
.hero .container { align-items: center; }
.hero .content-wrapper {
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}
.hero h1 { font-size: 2.7rem; }
.hero .subheadline {
  font-size: 1.15rem;
  max-width: 500px;
  color: #505D65;
}

/* FLEX SPACING CLASSES ================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  position: relative;
  flex: 1 1 290px;
  min-width: 260px;
  max-width: 370px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.21s, transform 0.18s;
}
.card:hover, .card:focus {
  box-shadow: 0 8px 32px rgba(30,44,56,0.12);
  transform: translateY(-2px) scale(1.012);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  min-width: 290px; max-width: 530px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(30,44,56,0.06);
  margin-bottom: 20px;
  border-left: 5px solid var(--secondary);
  transition: box-shadow 0.15s;
}
.testimonial-card p {
  color: var(--black);
  font-size: 1.12rem;
}
.testimonial-card span {
  font-size: 1.01rem;
  font-family: var(--font-body);
  color: var(--secondary);
  font-style: italic;
}
.testimonial-card img { height: 18px; }
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* FEATURE GRID (INDEX) ========================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 28px 0 16px 0;
}
.feature-grid li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 1.05rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 16px 22px;
  min-width: 220px;
  flex: 1 1 210px;
}
.feature-grid img { height: 26px; flex-shrink: 0; }

@media (max-width: 768px) {
  .feature-grid { flex-direction: column; gap: 18px; }
  .feature-grid li { padding: 15px 16px; min-width: 140px; }
}

/* TEAM BIO (About) ========================== */
.team-bio {
  background: var(--white);
  padding: 22px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  display: flex; flex-direction: column;
  gap: 10px;
}

/* CONTACT INFO (Contact Page) ======================= */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 1.09rem;
}
.contact-info img {
  height: 20px;
  width: 20px;
  margin-right: 10px;
}
.contact-info p {display: flex; align-items: center; gap:10px;}

/* FOOTER ========================================== */
footer {
  background: var(--accent);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -2px 12px rgba(30,44,56,0.08);
  margin-top: 72px;
  padding: 38px 0 0;
}
footer .container {
  align-items: flex-start;
  gap: 0;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 44px 32px;
}
.footer-logo {
  flex: 0 1 80px;
}
.footer-logo img { height: 60px; }
.footer-nav {
  display: flex;
  flex-direction: column;
  flex: 1 1 180px;
  gap: 7px;
}
.footer-nav a {
  color: var(--primary);
  font-size: 1.05rem;
  font-family: var(--font-body);
  padding: 3px 0;
  border-radius: var(--radius-sm);
  transition: background 0.13s, color 0.13s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--secondary);
  background: var(--white);
}
.footer-contact {
  flex: 1 1 200px;
  font-size: 1rem;
  color: #6B726F;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 12px;
}
.footer-social a img {
  height: 24px;
  width: 24px;
  filter: grayscale(30%) opacity(0.85);
  transition: filter 0.17s;
}
.footer-social a:hover img,
.footer-social a:focus img {
  filter: grayscale(0%) opacity(1);
}
.footer-copy {
  flex: 1 1 100%;
  text-align: center;
  margin: 38px 0 0 0;
  color: #8C9389;
}

@media (max-width: 900px) {
  footer .content-wrapper { flex-direction: column; gap: 32px; align-items: center; }
  .footer-logo { margin-bottom: 0; }
}

/* ------------------ MOBILE MENU ------------------ */
.mobile-menu-toggle {
  position: fixed;
  top: 20px; right: 22px;
  z-index: 201;
  height: 44px;
  width: 44px;
  border-radius: 44px;
  background: var(--primary);
  color: var(--white);
  font-size: 1.9rem;
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: var(--shadow);
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(30,44,56,0.93);
  z-index: 210;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.84,-0.09,.65,1.07);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0%);
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.1rem;
  padding: 25px 28px 5px 0;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.14s;
  z-index: 212;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover { color: var(--secondary); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 38px 34px 12px 34px;
  align-items: flex-end;
}
.mobile-nav a {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.32rem;
  padding: 10px 0;
  border-radius: var(--radius-sm);
  min-width: 180px;
  text-align: right;
  transition: color 0.17s, background 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  background: rgba(255,255,255,0.06);
}

@media (max-width: 900px) {
  .mobile-menu-toggle { display: flex; }
  .main-nav { display: none !important; }
  .cta-btn { margin-left: 0; }
}
@media (max-width: 500px) {
  .mobile-menu-close {
    padding: 23px 10px 5px 0;
  }
  .mobile-nav { padding: 26px 10px 12px 10px; min-width: 0; }
}

/* ------------------ COOKIE CONSENT ------------------ */
.cookie-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  background: var(--white);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 18px rgba(30,44,56,0.14);
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: 0px;
  z-index: 1002;
  padding: 18px 32px;
  min-height: 60px;
  max-width: 720px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--black);
  animation: cb-slideup 0.6s cubic-bezier(.28,.6,.51,1.03);
}
@keyframes cb-slideup {
  0% { transform: translateY(80px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
.cookie-banner .cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  min-width: 106px;
  min-height: 38px;
  padding: 0 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s, color 0.17s, border 0.17s;
  border: none;
}
.cookie-btn.accept {
  background: var(--primary);
  color: var(--white);
}
.cookie-btn.accept:hover { background: #273B49; color: var(--secondary); }
.cookie-btn.reject {
  background: transparent;
  color: var(--secondary);
  border: 1.2px solid var(--secondary);
}
.cookie-btn.reject:hover { background: var(--accent); color: var(--primary); }
.cookie-btn.settings {
  background: var(--secondary);
  color: var(--white);
}
.cookie-btn.settings:hover { background: var(--primary); color: var(--secondary); }
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; gap: 18px; padding: 13px 12px 13px 10px; align-items: stretch; max-width: 98vw; }
  .cookie-banner .cookie-actions {
    gap: 10px; flex-wrap: wrap; justify-content: flex-start;
  } 
}

.cookie-modal {
  position: fixed; left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(30,44,56, 0.58);
  z-index: 1005;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0;
  transition: opacity 0.28s;
}
.cookie-modal.open { pointer-events: all; opacity: 1; }
.cookie-modal-dialog {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 340px; max-width: 96vw;
  min-height: 240px;
  padding: 30px 32px 22px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadein-cookie-modal 0.46s cubic-bezier(.48,-0.1,.32,1.09);
  position: relative;
}
@keyframes fadein-cookie-modal {
  0%   { transform: scale(.93) translateY(30px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-dialog h2 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.cookie-modal-dialog ul {
  display: flex; flex-direction: column; gap: 12px;
}
.cookie-toggle-row {
  display: flex; flex-direction: row; align-items: center; gap: 14px;
  font-size: 1.01rem;
  justify-content: space-between;
}
.cookie-toggle {
  position: relative;
  width: 38px; height: 20px;
  display: inline-block;
}
.cookie-toggle input {
  opacity:0; width: 0; height: 0;
}
.cookie-toggle-slider {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: #d5dbe0;
  border-radius: 20px;
  transition: background .24s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--secondary);
}
.cookie-toggle-slider:before {
  position: absolute; content: '';
  height: 15px; width: 15px; left: 3px; top: 2.2px;
  background: var(--white);
  border-radius: 50%;
  transition: transform .26s;
  box-shadow: 0 1px 4px rgba(30,44,56,0.11);
}
.cookie-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(17px);
}
.cookie-modal-close {
  position: absolute;
  top: 10px; right: 13px;
  background: none;
  border: none;
  color: var(--black);
  font-size: 1.45rem;
  cursor: pointer;
  transition: color 0.2s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { color: var(--secondary); }
@media (max-width: 480px) {
  .cookie-modal-dialog { min-width: 0; padding: 16px 5px 16px 7px; }
}

/* DETAILS/FILTERS ---------------------------------- */
details {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  padding: 16px 18px;
  font-size: 1rem;
  color: var(--primary);
}
details[open] summary {
  color: var(--secondary);
}
summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.07rem;
  margin-bottom: 14px;
  outline: none;
}


/* LISTS, LINKS & CONTENT -------------------------- */
ul, ol {
  margin-bottom: 16px;
  padding-left: 20px;
}
li {
  margin-bottom: 8px;
  line-height: 1.6;
}
li:last-child { margin-bottom: 0; }
a {
  color: var(--secondary);
  transition: color 0.17s, text-decoration 0.15s;
}
a:hover, a:focus {
  color: var(--primary);
  text-decoration: underline;
}

/* RESPONSIVE: FLEX DIRECTION SWAPS */
@media (max-width: 768px) {
  .container { padding: 0 6px; }
  .content-wrapper, .section, main { padding-left: 0; padding-right: 0; }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    text-align: left;
  }
  .footer-copy { margin-top: 16px; }
}

/* SPACING ENFORCEMENT */
.card, .testimonial-card, .team-bio {
  margin-bottom: 20px;
}
.section > *:not(:last-child) { margin-bottom: 24px; }

/* MICRO INTERACTIONS & ANIMATIONS ------------------------------- */
.card, .cta-btn, .testimonial-card, .team-bio {
  transition: box-shadow 0.21s, transform 0.14s;
}
.card:hover, .testimonial-card:hover, .team-bio:hover {
  box-shadow: 0 7px 26px rgba(30,44,56,0.15);
  transform: translateY(-3px) scale(1.007);
}
a, button, .cta-btn, .main-nav a, .mobile-nav a, .footer-nav a {
  transition: color 0.15s, background 0.15s, box-shadow 0.15s, border 0.15s;
}

/* SCROLLBAR STYLES */
::-webkit-scrollbar {
  width: 10px;
  background: #F0F4F6;
  border-radius: 12px;
}
::-webkit-scrollbar-thumb {
  background: #d6d8e0;
  border-radius: 8px;
}

/* ACCENT FORMS (when added in the future, for clarity)------------- */
input, textarea, select {
  background: var(--white);
  border: 1.2px solid #D8DFE6;
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-size: 1.04rem;
  margin-bottom: 20px;
  color: var(--black);
  transition: border 0.16s, box-shadow 0.13s;
  min-width: 220px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  box-shadow: 0 2px 10px rgba(166,143,107,0.13);
}
label { font-weight: 500; margin-bottom: 6px; display: inline-block; }

/* ACCESSIBILITY ENFORCEMENTS -------------------------- */
:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 0;
}

/* MISC: UTILITY & OVERRIDE CLASSES---------------------- */
.hide { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* SCANDINAVIAN DECORATIVE ELEMENTS ---------------------- */
.section {
  background: var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

/* BEAUTIFUL NATURAL BUTTON SHADOWS FOR SCANDI VIBE */
.cta-btn, .cta-btn.primary, .cta-btn.secondary {
  box-shadow: 0 1px 12px rgba(30,44,56,0.08);
}

/* =================== END OF CSS ====================== */
