/* SCANDINAVIAN CLEAN DESIGN SYSTEM FOR SHIMMERING ENGINE LANGUAGE SCHOOL */

/* RESET & BASE TYPOGRAPHY
–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
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, menu, 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;
}
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  background: #F4F1ED;
  color: #25272a;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

:root {
  --primary: #164083;
  --secondary: #C1196B;
  --accent: #F4F1ED;
  --neutral: #ffffff;
  --light-grey: #eef0f2;
  --medium-grey: #b7bec7;
  --dark-grey: #25272a;
  --shadow: 0 4px 20px rgba(22, 64, 131, 0.08);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
h1 { font-size: 2.25rem; margin-bottom: 18px; line-height: 1.1; }
h2 { font-size: 1.5rem; margin-bottom: 14px; }
h3 { font-size: 1.2rem; margin-bottom: 12px; }
@media (min-width:800px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.25rem; }
}
p, ul, ol, dl, address {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  color: var(--dark-grey);
  font-size: 1rem;
  margin-bottom: 16px;
}
strong { font-weight: 700; }
subheadline, .subheadline {
  color: var(--secondary);
  font-size: 1.13rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 16px;
  display: block;
}

/* LAYOUT PATTERNS
–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper, .text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: var(--neutral);
  margin-bottom: 20px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px 24px;
  position: relative;
  transition: box-shadow 0.25s, transform 0.22s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(22,64,131,0.13);
  transform: translateY(-4px) scale(1.015);
}

.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: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}

.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  background: var(--accent);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 1px 10px rgba(22,64,131,0.07);
  min-width: 240px;
  max-width: 360px;
  flex: 1 1 240px;
}
.testimonial-card p {
  color: var(--dark-grey);
  font-style: italic;
  font-size: 1.05rem;
}
.testimonial-stars {
  color: var(--secondary);
  font-size: 1.2rem;
}
.testimonial-name {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.98rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.features-list, .features-benefits, .plans-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.features-list li, .features-benefits li, .plans-list li {
  padding-left: 32px;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 24px 24px;
  min-height: 28px;
  display: flex;
  align-items: center;
}
.features-list li img, .features-benefits li img {
  margin-right: 10px;
  width: 24px;
  height: 24px;
  display: inline-block;
}

@media (min-width: 800px) {
  .testimonials { flex-direction: row; }
}
@media (max-width: 799px) {
  .testimonials { flex-direction: column; }
}

/* TABLE STYLE (Pricing Table)
–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: var(--neutral);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(22,64,131,0.05);
}
.pricing-table th, .pricing-table td {
  padding: 16px 12px;
  text-align: left;
  font-size: 1rem;
}
.pricing-table th {
  background: var(--light-grey);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-bottom: 2px solid var(--primary);
}
.pricing-table tr:nth-child(even) td {
  background: #FAF9F8;
}
.pricing-table tr:hover td {
  background: #F9F1F5;
}

/* BUTTONS
–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
.btn-primary {
  background: var(--primary);
  color: var(--neutral);
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 1.08rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(22,64,131,0.07);
  transition: background 0.18s, box-shadow 0.18s, transform 0.17s;
  display: inline-block;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.btn-primary:hover, .btn-primary:active, .btn-primary:focus {
  background: var(--secondary);
  color: var(--neutral);
  box-shadow: 0 4px 18px rgba(193,25,107,0.17);
  transform: translateY(-2px) scale(1.025);
}

/* Links */
a {
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: var(--secondary);
}
.footer-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  text-decoration: none;
  margin-right: 20px;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.18s;
}
.footer-nav a:last-child { margin-right: 0; }
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
  text-decoration: underline;
}

/* MAIN NAVIGATION (Desktop & Mobile)
–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
header {
  background: var(--neutral);
  box-shadow: 0 2px 14px rgba(22,64,131,0.03);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 18px 14px;
}
.logo img {
  height: 42px;
  width: auto;
  display: block;
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  align-items: center;
  margin-left: 24px;
}
.main-nav ul li a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 9px;
  transition: background 0.13s, color 0.13s;
  text-decoration: none;
}
.main-nav ul li a:hover, .main-nav ul li a:focus {
  background: var(--light-grey);
  color: var(--secondary);
}

@media (max-width: 999px) {
  .main-nav ul {
    display: none;
  }
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--neutral);
  font-size: 2rem;
  border: none;
  border-radius: 10px;
  width: 46px;
  height: 46px;
  cursor: pointer;
  margin-left: 8px;
  transition: background 0.15s, transform 0.18s;
  z-index: 1002;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
  transform: scale(1.06);
}

@media (min-width: 1000px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 88vw;
  max-width: 375px;
  height: 100vh;
  background: var(--neutral);
  box-shadow: -5px 0 24px rgba(22,64,131,0.19);
  transform: translateX(110%);
  transition: transform 0.34s cubic-bezier(.66,.04,.16,.98);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 24px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 2.2em;
  cursor: pointer;
  margin-bottom: 24px;
  background: var(--light-grey);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--neutral);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 19px;
  width: 100%;
}
.mobile-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
  font-weight: 600;
  padding: 14px 3px 10px 0;
  border-bottom: 1px solid var(--light-grey);
  text-decoration: none;
  transition: color 0.13s, background 0.13s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
}

@media (min-width:1000px) {
  .mobile-menu {
    display: none;
  }
}

/* Hide burger on desktop nav, hide desktop nav on mobile */
@media (max-width: 999px) {
  .main-nav ul {
    display: none;
  }
  .main-nav .btn-primary {
    display: none;
  }
}
@media (min-width: 1000px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* MAIN & GENERAL SECTIONS
–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
main {
  background: var(--accent);
  padding-top: 0;
}
section {
  margin-bottom: 60px;
  padding: 40px 0;
  position: relative;
  width: 100%;
}
@media (max-width: 767px) {
  section {
    margin-bottom: 40px;
    padding: 30px 0;
  }
}

/* FORM/CONTACT (CONTACT PAGE SAMPLE FIELDS) */
.text-section p span {
  color: var(--secondary);
  font-weight: 600;
  margin-left: 8px;
}
.text-section .disclaimer {
  color: var(--medium-grey);
  font-size: 0.95rem;
  margin-top: 11px;
}

/* LISTS, DL */
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 8px;
}
ul li:last-child, ol li:last-child {
  margin-bottom: 0;
}
dt {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: var(--primary);
  margin-top: 18px;
}
dd {
  margin-left: 9px;
  margin-bottom: 12px;
  color: var(--dark-grey);
}

/* ADDRESS & INFO */
address {
  font-style: normal;
  color: var(--medium-grey);
  font-size: 0.97rem;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
address img {
  height: 18px;
  width: auto;
  margin-right: 7px;
  vertical-align: baseline;
  display: inline-block;
}
address div {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* FOOTER
–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
footer {
  background: var(--neutral);
  border-top: 1.5px solid var(--light-grey);
  padding: 34px 0 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer-logo img {
  height: 39px;
  width: auto;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
footer small {
  color: var(--medium-grey);
  font-size: 0.96rem;
  margin-top: 4px;
}

/* SPACING HELPERS
–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-20 { gap: 20px; }

/* RESPONSIVENESS
–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
@media (max-width: 768px) {
  .container {
    max-width: 99vw;
    padding: 0 9px;
  }
  .card-container, .content-grid, .testimonials {
    flex-direction: column;
    gap: 18px;
  }
  .card, .testimonial-card {
    min-width: 0;
    max-width: 100%;
    padding: 20px 12px;
  }
}

/* SHADOWS & ROUNDED CORNERS */
.card, .testimonial-card, .pricing-table {
  box-shadow: 0 2px 12px rgba(22,64,131,0.09);
  border-radius: 16px;
}

/* MICRO-INTERACTIONS & TRANSITIONS */
.card, .testimonials .testimonial-card, .btn-primary,
.mobile-menu, .mobile-menu-close {
  transition: box-shadow 0.23s, transform 0.21s, background 0.18s, color 0.2s;
}

/* COOKIE CONSENT BANNER & MODAL (Accessible, Scandinavian)
–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--neutral);
  border-top: 2px solid var(--primary);
  box-shadow: 0 -4px 24px rgba(22,64,131,0.08);
  padding: 22px 18px 22px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  z-index: 5000;
  gap: 28px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.32s, transform 0.32s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(60px);
}
.cookie-banner-message {
  color: var(--primary);
  font-size: 1.01rem;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.cookie-btn {
  padding: 8px 22px;
  border-radius: 25px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  margin-right: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.18s;
}
.cookie-btn-accept {
  background: var(--primary);
  color: var(--neutral);
}
.cookie-btn-accept:hover,
.cookie-btn-accept:focus {
  background: var(--secondary);
  color: var(--neutral);
}
.cookie-btn-decline {
  background: var(--light-grey);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cookie-btn-decline:hover, .cookie-btn-decline:focus {
  background: var(--secondary);
  color: var(--neutral);
  border-color: var(--secondary);
}
.cookie-btn-settings {
  background: var(--neutral);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: var(--accent);
  color: var(--secondary);
  border-color: var(--secondary);
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 10px 18px 12px;
  }
  .cookie-banner-actions {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }
}

/* COOKIE SETTINGS MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: rgba(36,43,51,0.23);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.32s;
  pointer-events: auto;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-inner {
  background: var(--neutral);
  border-radius: 18px;
  box-shadow: 0 3px 28px rgba(22,64,131,0.15);
  max-width: 360px;
  width: 96vw;
  padding: 38px 25px 28px 25px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  animation: modalEnter 0.43s cubic-bezier(0.8,0,0.22,1);
  position: relative;
}
@keyframes modalEnter {
  0% { opacity: 0; transform: translateY(72px) scale(0.92); }
  65% { opacity: 1; transform: translateY(-5px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--secondary);
  cursor: pointer;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  transition: background .13s, color .13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--accent);
  color: var(--primary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.01rem;
}
.cookie-category input[type=checkbox]:not(:disabled) {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  margin-right: 6px;
}
.cookie-category input[type=checkbox][disabled] {
  accent-color: var(--medium-grey);
}
.cookie-category-label {
  color: var(--primary);
  font-weight: 600;
}
.cookie-save-btn {
  margin-top: 18px;
  background: var(--primary);
  color: var(--neutral);
  border: none;
  padding: 8px 28px;
  border-radius: 25px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.01rem;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-end;
  transition: background 0.15s;
}
.cookie-save-btn:hover, .cookie-save-btn:focus {
  background: var(--secondary);
  color: var(--neutral);
}

/* ACCESSIBILITY AND SELECTION */
::selection {
  background: var(--secondary);
  color: var(--neutral);
}

/* MISC */
hr {
  border: none;
  border-top: 1px solid var(--light-grey);
  margin: 32px 0;
}

/* SCANDINAVIAN CLEAN FINAL TOUCHES */
.card, .testimonial-card, .pricing-table {
  border: 1.5px solid #ececec;
}

/* Hide elements visually (for accessibility, JS) */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Prevent content overlap and ensure minimum spacing between cards */
.card + .card, .testimonial-card + .testimonial-card, .section + .section {
  margin-top: 24px !important;
}
.content-wrapper + .content-wrapper {
  margin-top: 22px !important;
}

/* END OF CSS */
