/* Dusky Horizon Academy - Scandinavian Clean CSS */

/* 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,
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section {
  display: block;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: #F4F7FB;
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #173D4F;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, ol { padding-left: 1.1em; margin-bottom: 1.2em; }
li { margin-bottom: 0.5em; }
a { color: #173D4F; text-decoration: none; transition: color 0.18s; }
a:hover, a:focus { color: #EC893A; outline: none; }
img { max-width: 100%; display: block; height: auto; border: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', Georgia, 'Times New Roman', Times, serif;
  color: #173D4F;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.7em;
}
h1 { font-size: 2.5rem; margin-bottom: 0.5em; }
h2 { font-size: 2rem; margin-bottom: 0.6em; }
h3 { font-size: 1.3rem; margin-bottom: 0.3em; }
h4 { font-size: 1.12rem; margin-bottom: 0.3em; }
p, .subheadline { margin-bottom: 1.4em; }
p strong, b { font-weight: bold; color: #173D4F; }

/* Utilities */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  width: 100%;
}

/* HEADER */
header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e3eaef;
  box-shadow: 0 3px 8px rgba(23, 61, 79, 0.03);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
}
.logo img {
  height: 38px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #173D4F;
  padding: 6px 2px;
  border-radius: 2px;
  transition: color 0.15s, background 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #EC893A;
  background: rgba(236,137,58,0.08);
}
.btn {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.6em 1.6em;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border 0.16s;
  box-shadow: 0 1px 4px rgba(23, 61, 79, 0.04);
  outline: none;
  margin-left: 12px;
}
.btn-primary {
  background: #173D4F;
  color: #fff;
  border: 1px solid #173D4F;
}
.btn-primary:hover, .btn-primary:focus {
  background: #EC893A;
  color: #fff;
  border-color: #EC893A;
  box-shadow: 0 4px 24px rgba(236,137,58,0.07);
}
.btn-secondary {
  background: #fff;
  color: #173D4F;
  border: 1.5px solid #173D4F;
}
.btn-secondary:hover, .btn-secondary:focus {
  color: #EC893A;
  border-color: #EC893A;
  background: #f9f3ef;
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #173D4F;
  cursor: pointer;
  z-index: 203;
  padding: 0 8px;
  transition: color 0.15s;
}
.mobile-menu-toggle:focus {
  color: #EC893A;
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(244,247,251,0.98);
  box-shadow: 0 5px 24px rgba(23,61,79,0.08);
  z-index: 210;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.55,0,.35,1);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.5rem;
  color: #173D4F;
  padding: 18px 21px 10px 10px;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #EC893A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-family: 'Open Sans', Arial, sans-serif;
  width: 100vw;
  margin-top: 38px;
  padding-left: 32px;
  padding-right: 24px;
}
.mobile-nav a {
  font-size: 1.28rem;
  color: #173D4F;
  font-weight: 600;
  padding: 9px 8px;
  border-radius: 6px;
  transition: background 0.16s, color 0.13s;
  text-align: left;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #EC893A;
  background: rgba(236,137,58,0.07);
}

/* HERO SECTION */
.hero-section {
  background: #F4F7FB;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 40px 0 0 0;
}
.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-section .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 0;
}
.hero-section h1 {
  font-size: 2.3rem;
  font-weight: 700;
  color: #173D4F;
}
.hero-section .subheadline {
  font-size: 1.13rem;
  color: #46677B;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.7;
  margin-bottom: 2.2em;
  margin-top: 0.2em;
}

/* SECTION RULES (MANDATORY) */
.section,
.features-section,
.services-section,
.courses-section,
.cta-section,
.testimonials-section,
.about-section,
.contact-section,
.legal-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 16px rgba(23, 61, 79, 0.03);
}
@media (max-width: 768px) {
  .section,
  .features-section,
  .services-section,
  .courses-section,
  .cta-section,
  .testimonials-section,
  .about-section,
  .contact-section,
  .legal-section {
    padding: 25px 8px;
    margin-bottom: 42px;
    border-radius: 10px;
  }
}

/* FEATURE GRID, CARDS, FLEX MANDATORY RULES */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 30px;
}
.feature-item {
  background: #F4F7FB;
  border-radius: 10px;
  box-shadow: 0 0.5px 6px rgba(23,61,79,0.03);
  padding: 21px 19px 17px 19px;
  min-width: 220px;
  max-width: 320px;
  flex: 1 1 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, background 0.15s;
}
.feature-item img {
  width: 36px; height: 36px; margin-bottom: 7px;
}
.feature-item h3 { font-size: 1.18rem; font-family: 'Roboto Slab', serif; }
.feature-item:hover,
.feature-item:focus-within {
  box-shadow: 0 8px 32px rgba(23, 61, 79, 0.08);
  background: #fffdfc;
}

.card-container, .service-cards, .card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card,
.service-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1.2px 9px rgba(23, 61, 79, 0.07);
  margin-bottom: 20px;
  padding: 29px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 250px;
  flex: 1 1 220px;
  transition: box-shadow 0.18s, border 0.14s;
  border: 1.5px solid #e3eaef;
}
.card:hover,
.service-card:hover {
  border-color: #EC893A;
  box-shadow: 0 6px 28px rgba(236,137,58,0.12);
}
.service-card h3 { font-size: 1.14rem; margin-bottom: 0.6em; }
.service-card .price, .service-card p strong { color: #173D4F; font-weight: 700; font-size: 1.03rem; }

/* TESTIMONIALS */
.testimonials-section h2,
.testimonials-section h3 { text-align: center; }
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px 18px 25px;
  background: #F4F7FB;
  border-radius: 13px;
  box-shadow: 0 6px 20px rgba(23,61,79,0.07);
  margin-bottom: 20px;
  border-left: 4px solid #EC893A;
  color: #173D4F;
  max-width: 720px;
  font-size: 1.05rem;
  font-family: 'Open Sans', Arial, sans-serif;
}
.testimonial-card blockquote {
  font-style: italic;
  margin-bottom: 0.3em;
  font-size: 1.08rem;
}
.testimonial-card p {
  margin-bottom: 0;
  font-size: 0.98rem;
  color: #173D4F;
}
@media (max-width: 768px) {
  .feature-grid, .card-container, .service-cards, .card-grid, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-item, .service-card, .card {
    min-width: 0;
    max-width: 100%;
  }
  .testimonial-card {
    flex-direction: column;
    padding: 17px 12px;
    gap: 8px;
  }
}

/* CTA SECTION */
.cta-section {
  background: #173D4F;
  color: #fff;
  box-shadow: 0 8px 48px rgba(23, 61, 79, 0.13);
  border-radius: 20px;
  margin-bottom: 60px;
  text-align: center;
}
.cta-section h2 { color: #000; font-size: 2rem; margin-bottom: 0.38em; }
.cta-section p { color: #000; margin-bottom: 2em; }
.cta-section .btn-primary {
  background: #EC893A;
  color: #fff;
  border-color: #EC893A;
  margin-left: 0;
}
.cta-section .btn-primary:hover, .cta-section .btn-primary:focus {
  background: #173D4F;
  border-color: #173D4F;
  color: #fff;
}

/* ABOUT PAGE & LISTS */
.about-section ul,
.features-section ul,
.legal-section ul,
.legal-section ol,
.courses-section ul {
  margin: 0 0 1.1em 0;
  padding-left: 1.2em;
}
.about-section li,
.features-section li,
.legal-section li,
.courses-section li {
  margin-bottom: 0.46em;
  line-height: 1.6;
}

/* CONTACT PAGE */
.contact-details ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 1.2em;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #46677B;
  font-size: 1.07rem;
}
.contact-details img {
  width: 20px;
}

/* FOOTER */
footer {
  background: #ffffff;
  padding: 0 0 38px 0;
  width: 100%;
  border-top: 1.5px solid #e3eaef;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 36px;
  padding-bottom: 12px;
}
.footer-brand {
  flex: 1 1 240px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  font-size: 1rem;
}
.footer-brand img {
  height: 32px;
  margin-bottom: 8px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}
.footer-nav a {
  color: #173D4F;
  font-size: 1em;
  margin-bottom: 2px;
  transition: color 0.14s;
}
.footer-nav a:hover,
.footer-nav a:focus { color: #EC893A; }
.footer-contact {
  font-size: 0.97em;
  color: #46677B;
  flex: 1 1 210px;
  min-width: 180px;
  margin-bottom: 6px;
  line-height: 1.7;
}
.footer-contact img {
  width: 18px;
  vertical-align: middle;
  margin-right: 4px;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 17px;
  margin-top: 6px;
}
.footer-social a img {
  width: 26px;
  filter: grayscale(20%) brightness(0.88) contrast(1.3);
  transition: filter 0.17s;
}
.footer-social a:hover img,
.footer-social a:focus img {
  filter: none;
}
.footer-legal {
  width: 100%;
  text-align: left;
  font-size: 0.95em;
  color: #46677B;
  padding-top: 16px;
}
.footer-legal a {
  color: #173D4F;
  font-size: 0.96em;
  margin-right: 8px;
  transition: color 0.14s;
}
.footer-legal a:hover, .footer-legal a:focus { color: #EC893A; }
@media (max-width: 900px) {
  .footer-content { flex-direction: column; gap: 14px; align-items: flex-start; }
  .footer-brand, .footer-contact, .footer-nav, .footer-social { min-width: 0; }
}

/* LEGAL/INFO SECTIONS */
.legal-section h1, .legal-section h2 { color: #173D4F; }
.legal-section ul, .legal-section ol {
  margin: 0 0 1.12em 0;
  padding-left: 1.19em;
}
.legal-section li { margin-bottom: 0.47em; }
.legal-section p { margin-bottom: 1.17em; }

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: #173D4F;
  color: #fff;
  box-shadow: 0 -4px 20px rgba(23, 61, 79, 0.11);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 18px 8px 18px 34px;
  font-size: 1.05rem;
  transition: transform 0.34s cubic-bezier(.62,0,.38,1);
}
.cookie-banner.hide {
  transform: translateY(110%);
  pointer-events: none;
  opacity: 0;
}
.cookie-message {
  flex: 2 1 320px;
  margin-right: 24px;
  color: #fff;
}
.cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-banner .btn {
  padding: 0.55em 1.3em;
  font-size: 0.97rem;
  border-radius: 7px;
}
.cookie-banner .btn-primary {
  background: #EC893A;
  color: #fff;
  border: none;
}
.cookie-banner .btn-secondary {
  background: #fff;
  border: none;
  color: #173D4F;
}
.cookie-banner .btn-secondary:hover, .cookie-banner .btn-secondary:focus {
  background: #EC893A;
  color: #fff;
}
.cookie-banner .btn-settings {
  background: transparent;
  color: #EC893A;
  border: 1.3px solid #EC893A;
  padding: 0.55em 1.1em;
}
.cookie-banner .btn-settings:hover, .cookie-banner .btn-settings:focus {
  background: #EC893A;
  color: #fff;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(0.98);
  background: #fff;
  color: #173D4F;
  border-radius: 17px;
  box-shadow: 0 9px 50px rgba(23,61,79,0.19);
  z-index: 1203;
  min-width: 330px;
  max-width: 97vw;
  padding: 33px 30px 25px 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(.53,0,.47,1), transform 0.27s cubic-bezier(.53,0,.47,1);
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h2 {
  font-size: 1.21rem;
  margin-bottom: 0.8em;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category label {
  font-size: 1.02rem;
  cursor: pointer;
}
.cookie-category input[type=checkbox] {
  accent-color: #EC893A;
  width: 1em; height: 1em;
}
.cookie-category.essential {
  opacity: 0.7;
  pointer-events: none;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
  justify-content: flex-end;
}
.cookie-modal .btn {
  padding: 0.55em 1.3em;
}
.cookie-modal .btn-close {
  position: absolute;
  right: 18px; top: 19px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #46677B;
  cursor: pointer;
  z-index: 99;
  transition: color 0.16s;
}
.cookie-modal .btn-close:hover,
.cookie-modal .btn-close:focus {
  color: #EC893A;
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
.hero-section .content-wrapper, .section, .features-section, .services-section, .cta-section, .about-section, .contact-section, .testimonials-section, .legal-section {
  animation: fadeInUp 0.44s cubic-bezier(.31,0,.43,1) 0.12s both;
}

/* RESPONSIVE LAYOUT RULES */
@media (max-width: 1100px) {
  .container { max-width: 96vw; padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 900px) {
  header .container { flex-wrap: wrap; gap: 9px; }
}
@media (max-width: 800px) {
  .main-nav { gap: 16px; }
}
@media (max-width: 768px) {
  header .container { flex-wrap: nowrap; }
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: block; }
  .btn-primary { margin-left: 0; }
  .footer-social { margin-top: 12px; }
}

@media (max-width: 580px) {
  .container {
    max-width: 100vw;
    padding-left: 3vw;
    padding-right: 3vw;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 8px;
    gap: 13px;
  }
  .cookie-message { margin-right: 0; }
}

/* TYPING SCALE (FOR ACCESSIBILITY) */
@media (max-width: 430px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.14rem; }
  h3 { font-size: 1.05rem; }
  .footer-content { padding-top: 15px; }
}

/* ACCESSIBLE FOCUS VISIBLE */
a:focus-visible, .btn:focus-visible, button:focus-visible, .cookie-modal .btn-close:focus-visible {
  outline: 2px solid #EC893A !important;
  outline-offset: 1.3px;
  background: rgba(236,137,58,0.07);
  color: #EC893A;
}

/* SCROLLBAR (SCANDINAVIAN FEEL) */
*::-webkit-scrollbar {
  width: 8px;
  background: #F4F7FB;
}
*::-webkit-scrollbar-thumb {
  background: #e3eaef;
  border-radius: 12px;
}

/* HIDE SCROLL ON BODY WHEN MODALS OPEN */
body.modal-open, body.mobile-nav-open {
  overflow: hidden !important;
}

/* CUSTOM SCANDINAVIAN EFFECTS */
.section, .features-section, .services-section, .courses-section, .about-section, .cta-section, .testimonials-section, .contact-section, .legal-section {
  background: #fff;
}
.card, .feature-item, .testimonial-card, .service-card {
  border-radius: 14px;
  box-shadow: 0 2px 18px rgba(23,61,79,0.065);
}

/* SUBTLE SHADOW MICRO-INTERACTION FOR CARDS */
.card:hover, .service-card:hover, .feature-item:hover {
  box-shadow: 0 7px 36px rgba(236,137,58,0.10);
  border-color: #EC893A;
}

/* FONT LOAD (FALLBACKS) */
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto Slab'), local('RobotoSlab-Regular');
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: local('Open Sans'), local('OpenSans-Regular');
  font-display: swap;
}

/* END */
