/* =============================
   CSS RESET & BASICS (Normalize)
   ============================= */

html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  outline: none;
}
body {
  background: #F7F7F9;
  color: #22356F;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.01em;
  position: relative;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #22356F;
  text-decoration: none;
  transition: color 0.22s cubic-bezier(.7,.3,0,1);
  cursor: pointer;
}
a:hover, a:focus {
  color: #ED9147;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 1em;
  padding-left: 0;
}
li {
  margin-bottom: 8px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Impact, sans-serif;
  font-weight: 900;
  color: #22356F;
  letter-spacing: 1px;
  margin-bottom: 16px;
  text-shadow: 0 1px 0 #f6e6c1;
}
h1 { font-size: 2.5rem; line-height: 1.1; }
h2 { font-size: 2rem; line-height: 1.17; }
h3 { font-size: 1.5rem; line-height: 1.2; }
h4 { font-size: 1.125rem; }
.lead {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.25rem;
  color: #575039;
  margin-bottom: 1.5em;
  font-weight: 400;
  text-shadow: 0 1px 0 #faefd7;
}
strong { font-weight: 700; color: #22356F; }
blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: italic;
  background: #FAF3E3;
  color: #224;
  border-left: 5px solid #EDA43A;
  padding: 12px 24px;
  margin: 0 0 12px 0;
  box-shadow: 2px 3px 8px rgba(42,32,22,0.06);
  border-radius: 7px 20px 7px 7px;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* =============================
   Vintage/Retro Color Palette
   ============================= */
:root {
  --color-primary: #22356F;
  --color-secondary: #F7F7F9;
  --color-accent: #EDA43A;
  --color-cream: #FAF3E3;
  --color-brown: #795548;
  --color-olive: #6F7D5F;
  --shadow: 0 4px 16px rgba(34,53,111,0.07), 0 2px 4px rgba(67,49,11,0.04);
  --border-radius: 15px;
}

/* =============================
   Layout Containers (Spacing)
   ============================= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-cream);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff6de;
  border-radius: 17px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 4px 18px rgba(195,165,110,0.12);
  border: 2px solid #EDCFA6;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 24px;
}
.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;
  align-items: center;
  gap: 20px;
  background: #fcf5e9;
  color: #222035;
  border: 2px solid #EDA43A;
  border-radius: 15px 7px 15px 7px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 3px 12px rgba(68,48,33,0.07);
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =============================
   Header & Navigation Retro Styling
   ============================= */
header {
  background: #FEF5E6 url('data:image/svg+xml;utf8,<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 12"><rect y="10" width="80" height="2" fill="%23EDA43A"/><rect y="0" width="80" height="2" fill="%2322356F"/></svg>') bottom left repeat-x;
  border-bottom: 3px double #EDA43A;
  padding: 0 0 12px 0;
  z-index: 100;
  position: relative;
}
header > a {
  display: inline-block;
  vertical-align: middle;
  margin-top: 16px;
  margin-left: 10px;
}
header img {
  height: 48px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  padding: 20px 20px 0 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
}
.main-nav a {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #22356F;
  border-radius: 18px;
  padding: 8px 18px;
  transition: background 0.2s, color 0.22s;
  border: 2px solid transparent;
}
.main-nav a.cta {
  background: #EDA43A;
  color: #22356F;
  border: 2px solid #EDAE1A;
  font-weight: 800;
  box-shadow: 2px 2px 0 0 #fff3c7;
  text-shadow: 0px 1px 0 #fff;
  transition: background 0.16s, color 0.22s, box-shadow 0.16s;
}
.main-nav a.cta:hover,
.main-nav a.cta:focus {
  background: #22356F;
  color: #fff;
  border: 2px solid #EDA43A;
  text-shadow: 0 1px 0 #EDA43A;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #EDA43A1A;
  color: #EDA43A;
}

/* Hamburger menu toggle */
.mobile-menu-toggle {
  display: none;
  background: #EDA43A;
  border: none;
  color: #22356F;
  padding: 8px 10px;
  font-size: 2rem;
  border-radius: 9px;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 15px;
  z-index: 220;
  transition: background 0.16s, color 0.22s;
  box-shadow: 2px 4px 0 #fff3c7;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #22356F;
  color: #fff;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FEF5E6;
  box-shadow: 0 -2px 24px rgba(34,53,111,0.09);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.75,-0.01,0,1.01);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #22356F;
  font-size: 2.4rem;
  margin: 32px 32px 0 0;
  cursor: pointer;
  align-self: flex-end;
  z-index: 1002;
  transition: color 0.18s;
}
.mobile-menu-close:hover {
  color: #EDA43A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100vw;
  margin-top: 45px;
  padding-left: 32px;
  gap: 20px;
  font-size: 1.3rem;
}
.mobile-nav a {
  padding: 10px 0;
  width: 100%;
  color: #22356F;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  border-radius: 7px;
  border-left: 7px solid transparent;
  transition: color 0.19s, border-color 0.19s, background 0.19s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #EDA43A;
  border-left: 7px solid #EDA43A;
  background: #FAF3E3;
  padding-left: 6px;
}

/* Hide 'main-nav' and show burger on mobile */
@media (max-width: 950px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 951px) {
  .mobile-menu { display: none !important; }
}

/* =============================
   Hero Section: Vintage Patterns
   ============================= */
.hero {
  background: #F7E2B7 url('data:image/svg+xml;utf8,<svg width="100%" height="96" viewBox="0 0 360 96" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="100%" height="96" fill="%23F7E2B7"/><ellipse cx="180" cy="96" rx="190" ry="30" fill="%23EDA43A" fill-opacity="0.15"/></svg>') bottom repeat-x;
  min-height: 260px;
  display: flex;
  align-items: center;
  position: relative;
  box-shadow: 0 10px 40px rgba(201,150,60,0.09);
  border-bottom: 4px dashed #EDA43A;
}
.hero .container {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.hero h1 {
  color: #22356F;
  text-shadow: 2px 2px 0 #fff1cf;
}
.hero .lead {
  color: #53350C;
}

/* =============================
   CTA Button Styling
   ============================= */
.cta-button,
button.cta-button {
  display: inline-block;
  background: #EDA43A;
  color: #22356F;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  padding: 15px 33px;
  border-radius: 30px 14px 29px 18px;
  border: none;
  box-shadow: 0 2px 12px rgba(237,164,58,0.15), 2px 5px 0 #fff8e4 inset;
  transition: background 0.18s, color 0.16s, transform 0.18s, box-shadow 0.16s;
  margin-top: 18px;
  margin-bottom: 10px;
  text-shadow: 0 1px 0 #fffbe3;
  cursor: pointer;
}
.cta-button:hover, .cta-button:focus,
button.cta-button:hover, button.cta-button:focus {
  background: #22356F;
  color: #EDA43A;
  text-shadow: 0 1px 0 #22356F44;
  transform: translateY(-2px) scale(1.03) rotate(-2deg);
  box-shadow: 2px 13px 24px rgba(34,53,111,0.07);
}

/* =============================
   Cards, Courses, Features, Lists
   ============================= */
.service-list,
.team-list,
.blog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}
.service-list li {
  background: #FFF6DE;
  border-radius: 12px 24px 12px 12px;
  border-left: 5px solid #EDA43A;
  padding: 18px 20px 14px 26px;
  font-size: 1.14rem;
  color: #363024;
  box-shadow: 1px 1px 11px rgba(237,164,58,0.07); 
  margin-right: 10px;
}
.service-list li span {
  background: #EDA43A;
  color: #22356F;
  font-weight: 800;
  padding: 2px 12px;
  border-radius: 10px;
  margin-left: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  box-shadow: 1px 1px 0 #fff4d2;
}
.team-list > div {
  display: flex;
  align-items: center;
  background: #FCF3E3;
  padding: 12px 18px;
  border-radius: 10px;
  margin-bottom: 12px;
  color: #52491C;
  border-left: 5px solid #DEE554;
  font-weight: 500;
}
.blog-list li {
  background: #faf4e1;
  border-radius: 14px 8px 14px 8px;
  border-left: 5px solid #A7A488;
  box-shadow: 1px 2px 9px rgba(34,53,111,0.06);
  padding: 16px 14px 14px 22px;
  margin-bottom: 14px;
  font-size: 1.1rem;
  color: #423611;
}
.blog-filters {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.07rem;
  margin-top: 10px;
}
.blog-filters span {
  background: #EDD08D;
  color: #22356F;
  font-weight: 700;
  border-radius: 7px;
  padding: 3px 11px;
  margin-right: 7px;
  margin-top:4px;
  display: inline-block;
}

/* =============================
   Text and Info Sections
   ============================= */
.text-section {
  margin-bottom: 18px;
  padding: 15px 0;
}
.location-map {
  background: #FFEAC4;
  color: #4C4531;
  border-radius: 10px;
  box-shadow: 0 1px 8px #EED7A2;
  padding: 16px;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

/* =============================
   Testimonials Cards / Quotes
   ============================= */
.testimonial-card {
  background: #FCF3E3;
  color: #222035;
  border: 2px solid #EDA43A;
  border-radius: 15px 7px 15px 7px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 3px 12px rgba(68,48,33,0.07);
  min-width: 0;
  transition: box-shadow 0.2s, border-color 0.18s;
}
.testimonial-card:hover {
  border-color: #22356F;
  box-shadow: 0 7px 23px rgba(34,53,111,0.12);
}
.testimonial-card blockquote {
  font-size: 1.08rem;
  font-style: italic;
  background: none;
  border: none;
  color: #222035;
  margin: 0 0 6px 0;
  padding: 0;
  text-shadow: 0 1px 0 #fff6e5;
}
.testimonial-card strong {
  color: #795548;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* =============================
   Footer – Retro Pattern
   ============================= */
footer {
  background: #22356F;
  color: #fff6e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 40px 10px 25px 10px;
  border-top: 5px double #EDA43A;
  position: relative;
  font-family: 'Montserrat', Arial, sans-serif;
}
.footer-brand img {
  height: 42px;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #EDA43A;
  font-weight: 600;
  transition: color 0.15s;
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #fff6e0;
}
footer small {
  color: #ffefc2;
  font-size: 0.91rem;
  opacity: 0.85;
}

/* =============================
   Cookie Consent Banner
   ============================= */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 11000;
  background: #FAF3E3;
  border-top: 3px solid #EDA43A;
  box-shadow: 0 -5px 20px rgba(34,53,111,0.11);
  padding: 18px 7vw 18px 25px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 1.05rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #22356F;
}
.cookie-consent-banner .cookie-btn {
  margin-left: 16px;
  padding: 9px 22px;
  border-radius: 18px 7px 14px 12px;
  border: none;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.14s, color 0.17s;
}
.cookie-consent-banner .cookie-btn.accept {
  background: #EDA43A;
  color: #22356F;
}
.cookie-consent-banner .cookie-btn.accept:hover {
  background: #22356F;
  color: #EDA43A;
}
.cookie-consent-banner .cookie-btn.reject {
  background: #fff6de;
  color: #795548;
  border: 2px solid #EDA43A;
}
.cookie-consent-banner .cookie-btn.reject:hover {
  background: #EEE4CA;
}
.cookie-consent-banner .cookie-btn.settings {
  background: #22356F;
  color: #EDA43A;
}
.cookie-consent-banner .cookie-btn.settings:hover {
  background: #EDA43A;
  color: #22356F;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  right:0;
  bottom:0;
  background: rgba(34,53,111,0.28);
  z-index: 11101;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadein 0.2s;
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal .cookie-modal-content {
  background: #fff7e6;
  border-radius: 21px;
  box-shadow: 0 10px 34px rgba(34,53,111,0.18);
  padding: 38px 25px 32px 25px;
  min-width: 320px;
  max-width: 90vw;
  color: #22356F;
  font-family: 'Montserrat', sans-serif;
  position: relative;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  color: #22356F;
  font-size: 2.2rem;
  cursor: pointer;
  transition: color 0.19s;
}
.cookie-modal .close-cookie-modal:hover {
  color: #EDA43A;
}
.cookie-modal h2 {
  margin-top: 0;
  font-size: 1.29rem;
  color: #EDA43A;
  margin-bottom: 11px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0;
  font-size: 1.06rem;
}
.cookie-modal .cookie-toggle {
  appearance: none;
  width: 36px;
  height: 19px;
  background: #EDA43A;
  border-radius: 16px;
  position: relative;
  outline: none;
  cursor: pointer;
  border: 2px solid #EDA43A;
  transition: background .16s;
}
.cookie-modal .cookie-toggle:checked {
  background: #22356F;
  border-color: #22356F;
}
.cookie-modal .cookie-toggle::after {
  content: '';
  width: 16px;
  height: 16px;
  position: absolute;
  left: 1px;
  top: 1px;
  background: #fffbe3;
  border-radius: 50%;
  transition: transform .20s;
  box-shadow: 0 0 2px #DCB97C;
}
.cookie-modal .cookie-toggle:checked::after {
  transform: translateX(17px);
  background: #EDA43A;
}
.cookie-modal .cookie-category label {
  font-weight: 700;
  color: #22356F;
}
@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =============================
   Responsive Flexbox (Mobile-First)
   ============================= */
@media (max-width: 768px) {
  .container, .content-wrapper {
    padding-left: 8px;
    padding-right: 8px;
  }
  .card-container, .content-grid, .team-list, .service-list, .blog-list {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 8px 12px 8px;
  }
  .main-nav {
    display: none !important;
  }
  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
  }
  .hero {
    min-height: 114px;
    padding: 10px 0;
    background-size: cover;
  }
  .cookie-consent-banner {
    flex-direction: column;
    padding: 18px 5vw 18px 10px;
    align-items: flex-start;
    gap: 10px;
  }
  .cookie-modal .cookie-modal-content {
    min-width: 0;
    width: 94vw;
    padding: 22px 10px 21px 14px;
  }
}

@media (max-width: 520px) {
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.17rem; }
  .lead { font-size: 1.04rem; }
  .container, .content-wrapper {
    padding-left: 2px;
    padding-right: 2px;
  }
  .service-list li, .blog-list li {
    padding: 10px 6px 7px 10px;
    font-size: 1rem;
  }
}

/* =============================
   Animations, Shadows, Microinteractions
   ============================= */
.card, .content-wrapper, .testimonial-card, .service-list li, .team-list > div, .blog-list li {
  transition: box-shadow 0.17s, border-color 0.17s, transform 0.13s;
}
.card:hover, .content-wrapper:hover, .testimonial-card:hover, .service-list li:hover, .team-list > div:hover, .blog-list li:hover {
  transform:translateY(-1.5px) scale(1.018) rotate(-.5deg);
  box-shadow: 0 7px 23px rgba(34,53,111,0.12);
  border-color: #22356F;
}

/* =============================
   Miscellaneous Styling (Retro Touch)
   ============================= */
.section-title {
  font-family: 'Montserrat', Arial, sans-serif;
  text-transform: uppercase;
  color: #EDA43A;
  letter-spacing: 0.1em;
  font-size: 1.19rem;
  margin-bottom: 5px;
}
hr {
  border: none;
  border-top: 3px dashed #EDCFA6;
  margin: 24px 0;
}
::-webkit-scrollbar {
  width: 8px;
  background: #FFEAC4;
}
::-webkit-scrollbar-thumb {
  background: #EDA43A;
  border-radius: 8px;
}
::selection {
  background: #EDA43A99;
  color: #22356F;
}

/* =============================
   Accessibility
   ============================= */
:focus {
  outline: 2px solid #EDA43A;
  outline-offset: 2px;
}

/* =============================
   Utilities
   ============================= */
.d-none { display: none !important; }
/* End of CSS */
