/* Sundrenched Vault – Scandinavian Clean CSS (Flexbox Only) */

/* ===================================================
   0. CSS Reset & 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: inherit;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section {
  display:block;
}
body {
  line-height: 1.5;
  background: #F4F6F8;
  color: #18406B;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
a {
  color: #18406B;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #FFD064;
  outline: none;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  border: none;
  background: transparent;
}

img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

/* ===================================================
   1. Container & Core Layout
=================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

.main, main {
  min-height: 60vh;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ===================================================
   2. Typography
=================================================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #18406B;
  letter-spacing: 0.015em;
  margin-bottom: 12px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-top: 10px;
}
h2 {
  font-size: 2rem;
  line-height: 1.25;
}
h3 {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
}
h4){
  font-size: 1.1rem;
  font-weight: 600;
}
p, li, span {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #18406B;
  line-height: 1.7;
}
.subheadline {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #47678D;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 14px;
}
strong {
  font-weight: 700;
}

/* Hierarchical spacing for text */
ul, ol {
  margin-bottom: 1.2em;
  padding-left: 28px;
  color: #18406B;
}
ul li {
  margin-bottom: 9px;
}

/* ===================================================
   3. Header & Navigation
=================================================== */
header {
  background: #fff;
  border-bottom: 1px solid #E4E7EB;
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 20px;
  gap: 0;
}
header a img {
  vertical-align: middle;
  max-height: 54px;
  height: 54px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #18406B;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.12s, color 0.12s;
}
header nav a:hover {
  color: #FFD064;
  background: #18406B11;
}
.cta-primary {
  background: #FFD064;
  color: #18406B;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 22px;
  border-radius: 22px;
  border: none;
  outline: none;
  box-shadow: 0 2px 14px rgba(24, 64, 107, 0.07);
  transition: background 0.18s, color 0.13s, box-shadow 0.18s;
}
.cta-primary:hover, .cta-primary:focus {
  background: #18406B;
  color: #fff;
  box-shadow: 0 4px 22px rgba(24, 64, 107, 0.18);
}

/* Hamburger Icon for mobile */
.mobile-menu-toggle {
  display: none;
  background: #FFD064;
  color: #18406B;
  font-size: 2rem;
  border: none;
  border-radius: 10px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 18px;
  transition: background 0.16s;
  z-index: 1002;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #18406B;
  color: #fff;
}

/* ================= Mobile Menu Overlay =============== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #fff;
  box-shadow: 0 12px 32px rgba(24, 64, 107, 0.10);
  z-index: 1001;
  transform: translateX(100vw);
  transition: transform 0.35s cubic-bezier(.82,.12,.33,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 30px 30px 30px;
  gap: 32px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #FFD064;
  color: #18406B;
  font-size: 2rem;
  border-radius: 10px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  position: absolute;
  top: 24px;
  right: 24px;
  cursor: pointer;
  z-index: 1003;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #18406B;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: "Open Sans", sans-serif;
  font-size: 1.15rem;
  color: #18406B;
  padding: 10px 0;
  border-radius: 9px;
  font-weight: 600;
  width: 100%;
  transition: background 0.13s, color 0.11s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #FFD064;
  background: #18406B10;
}

/* ================ Responsive Nav ================ */
@media (max-width: 1024px) {
  header nav {
    gap: 14px;
  }
  .cta-primary {
    padding: 7px 15px;
    font-size: 0.96rem;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 850px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* ===================================================
   4. Section Spacing & Page Structure
=================================================== */
section {
  width: 100%;
  background: none;
  border-radius: 22px;
  box-shadow: none;
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Card containers */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid > div {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 18px rgba(24, 64, 107, 0.09);
  padding: 32px 26px 30px 26px;
  flex: 1 1 270px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  min-width: 220px;
  max-width: 355px;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, transform 0.16s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 28px rgba(24, 64, 107, 0.22);
  transform: translateY(-6px);
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Testimonials */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(24, 64, 107, 0.08);
  padding: 20px 24px;
  margin-bottom: 20px;
  margin-top: 16px;
  min-width: 220px;
  max-width: 570px;
  width: 100%;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.testimonial-card p {
  color: #18406B;
  font-size: 1.09rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-style: italic;
  line-height: 1.6;
}
.testimonial-card span {
  font-size: 1rem;
  color: #47678D;
  font-weight: 600;
  align-self: flex-end;
}
.star-rating {
  color: #FFD064;
  font-size: 1.3rem;
  margin-top: 6px;
}

/* Course Benefit Badge */
.course-benefit {
  display: inline-block;
  background: #FFD06422;
  color: #18406B;
  font-weight: 600;
  font-size: 0.96rem;
  border-radius: 8px;
  padding: 6px 14px 5px 14px;
  margin-top: 6px;
  letter-spacing: 0.01em;
}


/* Card content patterns */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* ===================================================
   5. Tables
=================================================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  margin-top: 10px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(24, 64, 107, 0.05);
}
th, td {
  padding: 14px 18px;
  text-align: left;
  color: #18406B;
  font-size: 1rem;
}
th {
  background: #F4F6F8;
  font-weight: 700;
  letter-spacing: 0.02em;
}
tr:not(:last-child) {
  border-bottom: 1px solid #E4E7EB;
}

/* ===================================================
   6. Footer
=================================================== */
footer {
  background: #fff;
  border-top: 1px solid #E4E7EB;
  padding: 40px 0 18px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
footer nav a {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #18406B;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.13s;
}
footer nav a:hover {
  color: #FFD064;
}
.contact-info {
  font-size: 0.98rem;
  color: #47678D;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-info img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 7px;
}
.social-links {
  display: flex;
  gap: 16px;
  margin-bottom: 15px;
  align-items: center;
}
.social-links a img {
  width: 26px;
  height: 26px;
  opacity: 0.92;
  transition: opacity 0.17s, filter 0.15s;
  filter: grayscale(35%);
}
.social-links a:hover img {
  opacity: 1;
  filter: none;
}
.branding {
  width: 100%;
  color: #A9B4BF;
  font-size: 0.96rem;
  text-align: center;
  margin-top: 10px;
}

/* ===================================================
   7. Cookie Consent Banner (Fixed)
=================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2001;
  background: #fff;
  color: #18406B;
  box-shadow: 0 -2px 24px rgba(24, 64, 107, 0.07);
  padding: 20px 18px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 24px;
  transition: transform 0.32s;
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-banner.hide {
  transform: translateY(100%);
}
.cookie-banner__text {
  max-width: 430px;
  font-size: 1rem;
  line-height: 1.6;
}
.cookie-banner__buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 16px;
  padding: 9px 22px;
  border: none;
  background: #FFD064;
  color: #18406B;
  box-shadow: 0 2px 9px rgba(24, 64, 107, 0.06);
  cursor: pointer;
  transition: background 0.15s, color 0.13s;
}
.cookie-btn.settings {
  background: #18406B;
  color: #fff;
}
.cookie-btn.reject {
  background: #ECECEC;
  color: #47678D;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #18406B;
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #FFD06444;
  color: #18406B;
}

/* Cookie preferences modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 98vw;
  max-width: 380px;
  transform: translate(-50%, -50%) scale(0.97);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 38px rgba(24,64,107,0.23);
  z-index: 2200;
  padding: 36px 24px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.30s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.30rem;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 13px 0;
}
.cookie-modal .cookie-category label {
  font-weight: 600;
  font-size: 1rem;
  color: #18406B;
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  background: #ECECEC;
  border-radius: 15px;
  position: relative;
  transition: background 0.15s;
  margin-left: 10px;
  cursor: pointer;
}
.cookie-toggle input[type="checkbox"] {
  display: none;
}
.cookie-toggle .slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFD064;
  transition: left 0.2s;
}
.cookie-toggle input[type="checkbox"]:checked ~ .slider {
  left: 18px;
  background: #18406B;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 16px;
  right: 14px;
  background: #FFD064;
  color: #18406B;
  border-radius: 11px;
  border: none;
  width: 32px;
  height: 32px;
  font-size: 1.45rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  background: #18406B;
  color: #fff;
}

/* ===================================================
   8. Forms (if any)
=================================================== */
input, select, textarea {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #18406B;
  border: 1px solid #DBE2EA;
  border-radius: 9px;
  padding: 12px 14px;
  margin-bottom: 22px;
  background: #F4F6F8;
  box-sizing: border-box;
}
input:focus, select:focus, textarea:focus {
  border-color: #FFD064;
  outline: none;
}
label {
  margin-bottom: 5px;
  color: #18406B;
  font-weight: 600;
}

/* ===================================================
   9. Utilities & Microinteractions
=================================================== */
::-webkit-scrollbar {
  width: 10px;
  background: #E4E7EB;
  border-radius: 7px;
}
::-webkit-scrollbar-thumb {
  background: #FFD06477;
  border-radius: 7px;
}

/* Box shadow for card components */
.card,
.feature-grid > div,
.testimonial-card {
  box-shadow: 0 2px 16px rgba(24, 64, 107, 0.08);
}

/* Subtle elevation on hover */
.card:hover,
.feature-grid > div:hover,
.testimonial-card:hover {
  box-shadow: 0 7px 32px rgba(24, 64, 107, 0.14);
}

.transition {
  transition: all 0.19s;
}

/* ===================================================
   10. Responsive Breakpoints
=================================================== */
@media (max-width: 1280px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 1050px) {
  .feature-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
}
@media (max-width: 900px) {
  section, .section {
    padding: 28px 5px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.35rem;
  }
  .feature-grid > div {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
  .testimonial-card {
    padding: 16px 9px;
    max-width: 100%;
  }
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}
@media (max-width: 680px) {
  h1 {
    font-size: 1.35rem;
  }
  h2 {
    font-size: 1.14rem;
  }
  p, li, span {
    font-size: 0.99rem;
  }
  section, .section {
    padding: 19px 4px;
    margin-bottom: 32px;
  }
  .feature-grid {
    gap: 20px;
  }
  .testimonial-card {
    padding: 12px 3px;
    font-size: 0.99rem;
  }
}
@media (max-width: 768px) {
  .content-wrapper, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .testimonial-card {
    min-width: 0;
    max-width: 100%;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    padding: 19px 9px;
  }
}
@media (max-width:440px){
  .cookie-banner__text {
    max-width: 210px;
    font-size: 0.96rem;
  }
  .cookie-modal {
    max-width: 95vw;
    padding: 17px 6px 16px 6px;
  }
  .mobile-menu {
    padding: 12px 3px 14px 9px;
  }
}

/* ===================================================
  11. Miscellaneous
=================================================== */
hr {
  border: none;
  border-top: 1px solid #E4E7EB;
  margin: 32px 0;
}

/* If cards or grid used elsewhere */
.card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 22px;
  box-shadow: 0 2px 16px rgba(24, 64, 107, 0.08);
  transition: box-shadow 0.17s, transform 0.16s;
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 500px;
}
.card:hover {
  box-shadow: 0 9px 36px rgba(24, 64, 107, 0.12);
  transform: translateY(-6px);
}

/* Button interactions */
button, .cta-primary, .cookie-btn {
  transition: background 0.15s, color 0.12s, box-shadow 0.18s;
}
button:active, .cta-primary:active, .cookie-btn:active {
  transform: scale(0.97);
}

/* Accessibility focus */
a:focus, button:focus, .cta-primary:focus, .cookie-btn:focus {
  outline: 2px solid #FFD064;
  outline-offset: 1px;
}

/* Extra: hide visually (for cookie modal, etc.) */
.visually-hidden {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* End of CSS */
