/* RESET & BASE STYLES */
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;
  min-height: 100vh;
  background: #FCF7F2;
  color: #2F3851;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ol, ul {
  list-style: none;
}
a {
  background: transparent;
  color: #12325D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #b66416;
  text-decoration: underline;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  outline: none;
}
button {
  cursor: pointer;
}

/* VARIABLE FALLBACKS */
:root {
  --primary: #12325D;
  --secondary: #DFB481;
  --accent: #81C5E5;
  --white: #FFFFFF;
  --bg-light: #FCF7F2;
  --text: #2F3851;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --shadow: 0 4px 16px 0 rgba(44,38,33,0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --gap: 24px;
  --gap-sm: 16px;
  --section-margin: 60px;
  --section-padding: 40px 20px;
}

/* CONTAINER SYSTEM (Flexbox) */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.19;
}
h1 {
  font-size: 2.5rem; /* 40px */
  letter-spacing: -1px;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem; /* 32px */
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem; /* 20px */
  margin-bottom: 12px;
}
p, li, span, ul, ol, .footer-contact, .about p {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}
p, .about p, .testimonial-card p {
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
  color: var(--primary);
}

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

/* HEADER & NAVIGATION */
header {
  background: var(--white);
  border-bottom: 2px solid #f4e6d9;
  padding: 0;
  box-shadow: 0 2px 18px 0 rgba(44,38,33,0.06);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 0;
}
header img[alt="Icy Chamber Academy"] {
  height: 56px;
  width: auto;
  margin-right: 32px;
  border-radius: 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: background 0.16s, color 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--white);
}
.main-nav .cta-primary {
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-display);
  border-radius: var(--radius-sm);
  font-weight: bold;
  margin-left: 8px;
  padding: 12px 22px;
  box-shadow: var(--shadow);
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
}
.main-nav .cta-primary:hover, .main-nav .cta-primary:focus {
  background: #395c96;
  color: #fff8ec;
  box-shadow: 0 6px 20px 0 rgba(18,50,93,0.10);
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  margin-left: 20px;
}

/* MOBILE MENU OVERLAY & ANIMATION */
.mobile-menu {
  position: fixed;
  z-index: 1200;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(252,247,242,0.97);
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(0.69,0.01,0.27,0.99);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 26px 28px 0 24px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  background: var(--white);
  border: none;
  color: var(--primary);
  margin: 0 0 24px auto;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: var(--primary);
  padding: 12px 4px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--white);
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 10px;
  }
}
@media (max-width: 800px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    order: 3;
  }
}

/* Banner/Section Styles */
.section {
  margin-bottom: var(--section-margin);
  padding: var(--section-padding);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero {
  background: linear-gradient(95deg,#FDD89F 70%,#81C5E5 100%);
  padding: 64px 0 48px 0;
  margin-bottom: var(--section-margin);
  border-radius: 0 0 var(--radius) var(--radius);
}
.hero .container {
  justify-content: center;
  align-items: center;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 24px;
}
.hero h1 {
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 12px;
}
.hero p {
  color: #433105;
  font-size: 1.18rem;
  margin-bottom: 20px;
}
.hero .cta-primary {
  margin-top: 8px;
}

/* Features/Services Cards Flex Layout */
.features, .services {
  background: var(--bg-light);
  padding: 0;
  margin-bottom: var(--section-margin);
}
.features .content-wrapper, .services .content-wrapper {
  gap: 28px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
  justify-content: flex-start;
}
.feature {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 14px 0 rgba(44,38,33,0.07);
  padding: 28px 20px 24px 20px;
  min-width: 260px;
  flex: 1 1 260px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.18s;
  position: relative;
}
.feature h3 {
  margin-bottom: 5px;
  color: var(--primary);
  font-size: 1.18rem;
  font-weight: 700;
}
.feature img {
  height: 40px;
  width: 40px;
  margin-bottom: 10px;
  background: #FFF;
  border-radius: 50%;
  box-shadow: 0 1px 4px 0 rgba(44,38,33,0.09);
}
.feature p {
  font-size: 1rem;
  margin-bottom: 4px;
}
.feature a {
  color: var(--primary);
  font-weight: bold;
  text-decoration: underline;
  font-size: 1rem;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 8px 28px 0 rgba(18,50,93,0.10);
  transform: translateY(-3px) scale(1.02);
}

@media (max-width: 900px) {
  .feature-grid {
    gap: 16px;
  }
  .feature {
    min-width: 180px;
    flex: 1 1 47%;
    padding: 20px 12px 18px 12px;
  }
}
@media (max-width: 600px) {
  .feature-grid {
    flex-direction: column;
    gap: 14px;
  }
  .feature {
    min-width: unset;
    flex: 1 1 100%;
    width: 100%;
    border-radius: 14px;
  }
}

/* ABOUT & GENERAL CONTENT */
.about {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: var(--section-margin);
  padding: var(--section-padding);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about h2, .about h3 {
  color: var(--primary);
}
.about ul, .about ol {
  margin-left: 16px;
  margin-bottom: 12px;
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1.7;
}
.about li {
  margin-bottom: 10px;
}

/* TESTIMONIALS */
.testimonials {
  background: var(--bg-light);
  margin-bottom: var(--section-margin);
  padding: 0;
}
.testimonial-card {
  background: #FFF7E3;
  border-radius: var(--radius);
  box-shadow: 0 3px 14px 0 rgba(18,50,93,0.10);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 32px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.14s;
  font-size: 1.06rem;
}
.testimonial-card p {
  color: #5C4000;
  font-style: italic;
  font-size: 1.06rem;
  margin: 0 0 8px 0;
}
.testimonial-card span {
  color: #956b1a;
  font-weight: 600;
  font-size: 0.97rem;
  margin-left: auto;
}
.testimonial-card:hover {
  box-shadow: 0 8px 26px rgba(156,112,25,0.13);
  transform: translateY(-2px) scale(1.01);
}

@media (max-width: 700px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 12px;
  }
}

/* CTA SECTIONS */
.cta {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: var(--section-margin);
  padding: 36px 20px;
}
.cta .content-wrapper {
  gap: 16px;
  align-items: center;
  text-align: center;
}
.cta h2 {
  color: var(--white);
}
.cta p {
  color: #eae9e5;
}

/***** BUTTONS & INTERACTIVE *****/
.cta-primary, .cta-secondary, button, .mobile-nav .cta-primary {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 28px;
  margin: 8px 0 0 0;
  display: inline-block;
  box-shadow: 0 4px 18px 0 rgba(18,50,93,0.07);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.13s;
}
.cta-primary {
  background: var(--primary);
  color: var(--white);
}
.cta-primary:hover, .cta-primary:focus {
  background: #81C5E5;
  color: var(--primary);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 8px 32px 0 rgba(18,50,93,0.15);
  text-decoration: none;
}
.cta-secondary {
  background: var(--secondary);
  color: var(--primary);
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #fdd89f;
  color: var(--primary);
}

button:active, .cta-primary:active, .cta-secondary:active {
  transform: scale(0.97);
}

/* CARDS & FLEX CONTAINERS (MANDATORY CLASSES) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 30px rgba(18,50,93,0.11);
}
.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-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/***** FOOTER *****/
footer {
  background: var(--primary);
  color: var(--white);
  padding: 36px 0 18px 0;
  margin-top: auto;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
}
footer img[alt="Icy Chamber Academy"], footer img[alt="Icy Chamber Academy"] {
  height: 48px;
  width: auto;
  margin-bottom: 10px;
  border-radius: 0;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #FDEECB;
  font-size: 0.98rem;
}
.footer-contact img {
  height: 18px;
  width: 18px;
  margin-right: 7px;
  display: inline-flex;
  vertical-align: middle;
  border-radius: 0;
}
.footer-main-nav, .footer-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-main-nav a, .footer-links a {
  color: #FFEFCC;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.15s;
  margin-bottom: 1px;
}
.footer-main-nav a:hover, .footer-links a:hover {
  color: #FFE294;
  text-decoration: underline;
}
.social-links {
  display: flex;
  gap: 17px;
  margin-top: 10px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(129,197,229,0.11);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  transition: background 0.16s;
}
.social-links a:hover {
  background: var(--accent);
}
.social-links img {
  height: 22px;
  width: 22px;
  border-radius: 0;
}

@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 30px;
  }
}

@media (max-width: 700px) {
  footer {
    padding: 28px 0 10px 0;
  }
  .footer-contact {
    font-size: 0.94rem;
    gap: 1px;
  }
}

/***** RESPONSIVE FLEX LAYOUTS *****/
@media (max-width: 900px) {
  .container {
    padding: 0 10px;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .hero, .section, .about, .features, .services, .cta {
    padding: 28px 8px;
  }
  .content-wrapper, .features .content-wrapper, .services .content-wrapper {
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
}

/***** COOKIE CONSENT BANNER *****/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 4000;
  width: 100%;
  background: #FFE7B0;
  color: #4e3500;
  box-shadow: 0 -2px 18px rgba(44,38,33,0.11);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 10px 16px 10px;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 1rem;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: transform 0.28s cubic-bezier(.69,.04,.24,1);
}
.cookie-banner.hide {
  transform: translateY(150%);
}
.cookie-banner .cookie-text {
  flex: 1 1 200px;
  margin-right: 16px;
  font-size: 1rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  margin-top: 0;
  font-size: 1rem;
  box-shadow: 0 1px 8px rgba(18,50,93,0.09);
  transition: background 0.15s, color 0.15s, box-shadow 0.13s;
}
.cookie-btn.cookie-settings {
  background: #fff8e2;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(156,112,25,0.12);
}

/***** COOKIE MODAL *****/
.cookie-modal {
  position: fixed;
  z-index: 4100;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20, 22, 34, 0.26);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.23s, visibility 0.23s;
}
.cookie-modal.active {
  visibility: visible;
  opacity: 1;
}
.cookie-modal-dialog {
  width: 97%;
  max-width: 425px;
  background: #FFF7E3;
  color: var(--text);
  border-radius: var(--radius);
  padding: 34px 28px 22px 28px;
  box-shadow: 0 5px 36px 0 rgba(18,50,93,0.13);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: modalAppear 0.21s cubic-bezier(.57,1.13,.33,1.07);
}
@keyframes modalAppear {
  from { transform: translateY(44px) scale(.92); opacity: 0.6; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-dialog h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 4px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.08rem;
  color: #664b08;
  font-family: var(--font-body);
}
.cookie-modal-close {
  position: absolute;
  top: 11px;
  right: 13px;
  background: transparent;
  border: none;
  font-size: 1.3rem;
  color: var(--primary);
  border-radius: var(--radius-sm);
  transition: background 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #fde5b5;
  color: #b66416;
}

.cookie-category input[type="checkbox"]:not(:disabled) {
  accent-color: var(--secondary);
  width: 20px;
  height: 20px;
}
.cookie-category input[type="checkbox"][disabled] {
  accent-color: #BBB;
}

.cookie-modal-footer {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 10px;
}

@media (max-width:550px) {
  .cookie-modal-dialog {
    padding: 20px 7px 18px 14px;
  }
  .cookie-modal-footer {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
}

/* UTILITIES */
.hide { display:none !important; }

/***** EXTRAS: FORMS, TABLES, ETC. (fallback styles) *****/
input, select, textarea {
  border: 1px solid #e5e2d6;
  background: #FFF;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 1rem;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--secondary);
  outline: 1.5px solid var(--secondary);
}
label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
}

/***** SCROLLBAR CUSTOMIZATION *****/
::-webkit-scrollbar { width:10px; background:#f6efeb; }
::-webkit-scrollbar-thumb { background: #ffe3ba; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #f7c480; }

/***** PRINT STYLES *****/
@media print {
  header, footer, .cookie-banner, .cookie-modal { display: none !important; }
  body, main { background: #FFF !important; color: #222 !important; }
}
