/* ================================ */
/*      VINTAGE_RETRO CSS RESET      */
/* ================================ */
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;
}
main, section, article, aside, header, nav, footer {
  display: block;
}
body {
  line-height: 1.6;
  background: #F7F9FA;
  color: #333;
}
ol, ul {
  list-style: none;
  margin-left: 0;
}
a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: color 0.2s;
}
img {
  border: 0;
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ================================ */
/*         VINTAGE_RETRO COLORS      */
/* ================================ */
:root {
  --primary: #204468;
  --primary-dark: #142B43;
  --secondary: #F7F9FA;
  --accent: #E9B35B;
  --accent-dark: #CEA04C;
  --vintage-green: #4B6B4D;
  --vintage-brown: #B0885A;
  --vintage-blue: #355C7D;
  --vintage-orange: #D98C48;
  --text-main: #2A2A20;
  --text-light: #FFF8EF;
  --card-bg: #FFF8EF;
  --shadow: 0 2px 16px rgba(119, 71, 16, 0.08), 0 1.5px 0 #ede3cd inset;
  --border: #e5decf;
}

/* ================================ */
/*        FONT FACE LOAD            */
/* ================================ */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,400italic,700,700italic&display=swap');
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: local('Montserrat'),
       url("https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHkm459WxZ.ttf") format("truetype");
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto'),
       url("https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxK.woff2") format("woff2");
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--text-main);
  background: var(--secondary);
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Narrow', Arial, sans-serif;
  font-weight: 900;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: 1px;
}
h1 { font-size: 2.75rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 12px; }
h3 { font-size: 1.375rem; margin-bottom: 8px; }
h4 { font-size: 1.125rem; }
p, li, ol, ul { font-size: 1rem; }
strong, b { font-weight: 700; }

/* ================================ */
/*            LAYOUT                */
/* ================================ */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.text-section {
  margin-bottom: 24px;
  background: transparent;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 26px 24px 22px 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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  margin-bottom: 20px;
  background: #fff8ef;
  border: 1.5px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow), 0 2px var(--accent) inset;
  position: relative;
  transition: transform 0.18s cubic-bezier(0.59,0.3,0.7,1.13), box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 22px 0 rgba(60,32,14,0.13), 0 2px var(--accent) inset;
  transform: translateY(-4px) scale(1.03) rotate(-0.5deg);
}
.testimonial-card p {
  color: #313130;
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 500;
}
.testimonial-card .author {
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.5px;
  margin-top: 4px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  font-size: 1rem;
}

/* ================================ */
/*             HEADER               */
/* ================================ */
header {
  background: #fff8ef;
  border-bottom: 2.5px dashed #E9B35B;
  padding: 12px 0 0 0;
  position: relative;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 0;
}
header nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
header nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 1rem;
  color: var(--primary);
  padding: 8px 0;
  position: relative;
  transition: color .22s;
}
header nav a:hover,
header nav a:focus {
  color: var(--accent);
}
header .btn-primary {
  margin-left: 18px;
  display: inline-block;
}
header img {
  height: 46px;
}

/* ================================ */
/*         MOBILE NAVIGATION        */
/* ================================ */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 20px;
  z-index: 1002;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff8ef;
  background: var(--accent);
  font-size: 2.1rem;
  box-shadow: 0 2px 8px rgba(146,96,32,0.11);
  transition: background .19s, color .19s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--accent-dark);
  color: #FFF;
}
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.7, 0.2, 0.3, 1);
  position: fixed;
  top: 0;
  right: 0;
  width: 95vw;
  max-width: 340px;
  height: 100vh;
  background: #fff8ef;
  z-index: 2002;
  box-shadow: -6px 0 38px 4px rgba(60,32,14,0.11);
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2em;
  color: var(--primary);
  margin-bottom: 12px;
  padding: 4px 8px;
  background: transparent;
  border-radius: 6px;
  transition: background 0.1s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #fff2dd;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mobile-nav a {
  font-size: 1.22rem;
  font-family: 'Montserrat', sans-serif;
  color: var(--primary);
  padding: 10px 2px;
  border-radius: 4px;
  font-weight: 700;
  transition: background .16s, color .16s;
  margin-right: 12px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--accent);
  background: #fde6ba;
}

@media (max-width: 990px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .btn-primary {
    display: none;
  }
}

/* ================================ */
/*            HERO SECTION          */
/* ================================ */
.hero {
  background: repeating-linear-gradient(-33deg, #FFF8EF 0 36px, #ffeede 36px 38px), var(--accent);
  border-bottom: 3px double var(--primary);
  padding: 56px 0 48px 0;
  margin-bottom: 50px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero .content-wrapper {
  gap: 18px;
  max-width: 640px;
  align-items: center;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.4rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.hero p {
  font-size: 1.18rem;
  color: #4B4B30;
  font-family: 'Roboto', Arial, sans-serif;
}
.hero .btn-primary {
  margin-top: 18px;
}

/* ================================ */
/*           BUTTONS                */
/* ================================ */
.btn-primary, .btn-secondary, .btn-link {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.13rem;
  display: inline-block;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(33, 48, 9, 0.07);
  border: none;
  padding: 13px 34px 12px 34px;
  margin-top: 4px;
  line-height: 1.22;
  cursor: pointer;
  transition: background 0.22s, color 0.15s, transform 0.12s;
  letter-spacing: 0.6px;
  text-align: center;
}
.btn-primary {
  background-color: var(--primary);
  color: #fff8ef;
  border: 1.5px solid var(--primary);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
  transform: translateY(-3px) scale(1.03);
}
.btn-secondary {
  background-color: var(--accent);
  color: var(--primary);
  border: 1.5px solid var(--accent);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--primary);
  color: #fff8ef;
  border-color: var(--primary);
}
.btn-link {
  background: transparent;
  color: var(--accent);
  box-shadow: none;
  border: none;
  padding: 0;
  font-size: 1rem;
  letter-spacing: 0.3px;
}
.btn-link:hover, .btn-link:focus {
  text-decoration: underline;
  color: var(--primary);
}

/* ================================ */
/*           FEATURES LIST          */
/* ================================ */
.features .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12px;
}
.features ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 1.09rem;
  padding-left: 0;
}
.features li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(233, 179, 91, 0.065);
  border-radius: 10px;
  padding: 10px 20px 10px 12px;
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  box-shadow: 0 1px 2.5px 0 #cbb78725;
}
.features li img {
  height: 25px;
}

/* ================================ */
/*      SERVICES & BLOG CARDS       */
/* ================================ */
.services-preview .content-wrapper,
.services-overview .content-wrapper,
.course-list .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  flex-direction: row;
}
.service-card, .blog-card {
  background: #fff8ef;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 2px 14px 0 #d9b68f1f, 0 2px 0 #F3ECC2 inset;
  padding: 28px 22px 22px 22px;
  min-width: 260px;
  max-width: 360px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow .15s, transform .18s;
}
.service-card:hover, .blog-card:hover {
  box-shadow: 0 4px 22px #b0885a26, 0 2px 0 #E9B35B inset;
  transform: translateY(-3px) scale(1.027) rotate(-0.5deg);
}
.service-card h3, .blog-card h3 {
  font-size: 1.29rem;
  color: var(--vintage-blue);
  margin-bottom: 7px;
}
.service-card strong {
  font-size: 1.11rem;
  color: var(--vintage-brown);
}
.blog-card p {
  margin-bottom: 9px;
}
.blog-preview .content-wrapper, .blog-list .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  flex-direction: row;
}

/* ================================ */
/*          CTA SECTIONS            */
/* ================================ */
.final-cta {
  background: repeating-linear-gradient(28deg,#fff2dd 0 16px,#ede3cd 16px 28px);
  border-top: 2.5px dashed var(--primary);
  border-bottom: 2.5px dashed var(--primary);
  padding: 54px 0;
  text-align: center;
}
.final-cta .content-wrapper {
  gap: 16px;
}

/* ================================ */
/*           FOOTER                 */
/* ================================ */
footer {
  background: #FFF8EF;
  border-top: 2.5px solid var(--accent);
  color: var(--primary);
  padding: 24px 0 14px 0;
  margin-top: 66px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 19px;
}
footer nav a {
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  border-bottom: 1px dotted var(--accent);
  padding-bottom: 2px;
  letter-spacing: 0.4px;
  transition: color 0.19s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--accent);
  border-bottom-style: solid;
}
footer img {
  width: 46px;
}
footer .text-section {
  font-size: 1rem;
  color: #867d64;
}

/* ================================ */
/*            POLICY PAGES           */
/* ================================ */
.policy .container {
  max-width: 780px;
}
.policy .content-wrapper {
  gap: 16px;
}
.policy .text-section {
  background: #fff8ef;
  border-radius: 16px;
  padding: 32px;
  border: 1.5px solid #f0e8d2;
  font-size: 1.07rem;
  box-shadow: 0 0.5px 3px #b0885a29;
}
.policy h1 {
  color: var(--primary);
  font-size: 2.05rem;
  margin-bottom: 14px;
}

/* ================================ */
/*        FORM & CONTACT            */
/* ================================ */
.contact-details .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 10px;
}
.contact-details .text-section p img {
  vertical-align: bottom;
  width: 24px;
  height: 24px;
  display: inline;
  margin-right: 6px;
}
.contact-details .text-section p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ================================ */
/*           ANIMATIONS             */
/* ================================ */
@media (prefers-reduced-motion: no-preference) {
  .btn-primary, .btn-secondary, .btn-link, .service-card, .blog-card, .testimonial-card {
    transition: box-shadow 0.19s, background 0.19s, color 0.12s, transform 0.13s;
  }
  .mobile-menu, .mobile-menu-toggle {
    transition: background 0.22s, color 0.18s, transform 0.26s, box-shadow 0.22s;
  }
  .cookie-banner, .cookie-modal {
    transition: transform 0.32s cubic-bezier(0.67, 0.3, 0.65, 1.11), opacity 0.22s;
  }
}

/* ================================ */
/*          RESPONSIVE FLEX         */
/* ================================ */
@media (max-width: 1200px) {
  .container { max-width: 960px; }
}
@media (max-width: 900px) {
  .container { max-width: 100%; }
  .card-container, .content-grid, .services-preview .content-wrapper, .services-overview .content-wrapper, .blog-preview .content-wrapper, .blog-list .content-wrapper, .course-list .content-wrapper {
    gap: 20px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.44rem; }
  .container {
    max-width: 100vw;
    padding: 0 8px;
  }
  .section, .hero, .final-cta {
    padding: 25px 5px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .card {
    min-width: unset;
    padding: 22px 11px 12px 11px;
  }
  .testimonial-card {
    padding: 16px 10px 16px 14px;
  }
  .service-card, .blog-card {
    padding: 18px 10px 15px 10px;
    min-width: unset;
    max-width: unset;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 1.34rem; }
  .hero p { font-size: 1rem; }
  footer .container, header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
/* Responsive text-image-section layouts */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* ================================ */
/*       VINTAGE DECORATIVE LINES   */
/* ================================ */
.section, .hero, .final-cta, .policy, footer, header {
  box-sizing: border-box;
}
.section:not(:last-child) {
  border-bottom: 1.5px dotted #e9b35b45;
}

/* ================================ */
/*        VINTAGE NOSTALGIA TOUCHES */
/* ================================ */
h1, h2, .btn-primary, .testimonial-card, .final-cta {
  text-shadow: 0.5px 1.5px 0 #fff2dd, 0 2px 8px #e9b35b17;
}
.card, .service-card, .testimonial-card, .blog-card {
  border: 1.5px solid var(--border);
  background: #fff8ef url('data:image/svg+xml,%3Csvg width="80" height="80" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Ccircle cx="4.5" cy="4.5" r="1.5" fill="%23e9b35b22"/%3E%3C/svg%3E') repeat;
  background-blend-mode: lighten;
}

/* ================================ */
/*         COOKIE CONSENT BANNER    */
/* ================================ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fffbe7;
  color: #2A2A20;
  box-shadow: 0 -2px 18px #b0885a10 inset;
  padding: 18px 14px 20px 14px;
  z-index: 8888;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  justify-content: center;
  font-size: 1rem;
  border-top: 2.5px solid var(--accent);
  animation: banner-in .42s cubic-bezier(.78,.01,.44,1.13);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 10px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  padding: 9px 22px;
  margin-left: 6px;
  margin-right: 6px;
  line-height: 1.15;
  border: none;
  box-shadow: 0 1px 6px #e9b35b11;
}
.cookie-banner .accept {
  background: var(--accent);
  color: var(--primary);
}
.cookie-banner .accept:hover {
  background: var(--primary);
  color: #FFFBE7;
}
.cookie-banner .reject {
  background: #ead39b;
  color: var(--primary);
}
.cookie-banner .reject:hover {
  background: #e9b35b;
  color: var(--primary-dark);
}
.cookie-banner .settings {
  background: transparent;
  color: var(--primary);
  border: 1.2px solid var(--accent);
}
.cookie-banner .settings:hover {
  background: #fde6ba;
}
@keyframes banner-in {
  from { transform: translateY(70px); opacity: 0.24; }
  to   { transform: translateY(0); opacity: 1; }
}

/* --- Cookie Modal --- */
.cookie-modal {
  position: fixed;
  left: 0; right: 0;
  top: 0; bottom: 0;
  background: rgba(32,35,56,0.45);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.97);
  transition: opacity .23s, transform .22s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
}
.cookie-modal-content {
  background: #fff8ef;
  border-radius: 18px;
  box-shadow: 0 2px 18px #64320022, 0 0 0 3px #e9b35b15 inset;
  max-width: 420px;
  padding: 34px 28px 38px 34px;
  position: relative;
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: modal-in .33s cubic-bezier(0.75,0.01,0.34,1.12);
}
@keyframes modal-in {
  from { transform: scale(.82); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal-content h2 {
  font-size: 1.33rem;
  margin-bottom: 10px;
  color: var(--primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--accent);
  width: 22px; height: 22px;
}
.cookie-category .essential {
  opacity: 0.65;
  font-style: italic;
}
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-modal-content button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  padding: 9px 22px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  margin-left: 9px;
  transition: background .15s, color .12s;
}
.cookie-modal-content .close-modal {
  position: absolute;
  right: 18px;
  top: 14px;
  font-size: 1.3em;
  background: transparent;
  color: #333;
}
.cookie-modal-content .close-modal:hover {
  color: var(--accent);
}

/* --- Responsive cookie banner --- */
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    font-size: 0.98rem;
    padding: 13px 6px 15px 8px;
  }
  .cookie-modal-content {
    max-width: 99vw;
    padding: 18px 8vw 24px 8vw;
  }
}

/* ================================ */
/*      VINTAGE RETRO EXTRAS        */
/* ================================ */
hr {
  border: none;
  border-top: 1.5px dotted #e9b35b99;
  margin: 24px 0 24px 0;
}
blockquote {
  border-left: 5px solid var(--accent);
  background: #FFF8E4;
  padding: 13px 26px;
  font-family: 'Montserrat', serif;
  font-style: italic;
  font-size: 1.13rem;
  color: var(--vintage-brown);
  border-radius: 8px;
  margin-bottom: 24px;
}

/* ================================ */
/*    FOCUS & ACCESSIBILITY         */
/* ================================ */
a:focus, .btn-primary:focus, .btn-secondary:focus, .btn-link:focus {
  outline: 2.5px dashed var(--accent-dark);
  outline-offset: 2.5px;
  background: #fde6ba40;
}
button:focus {
  outline: 2px solid var(--primary);
  background: #fde6ba40;
}

/* ================================ */
/*     PRINT FRIENDLY OVERRIDES     */
/* ================================ */
@media print {
  html,body { background: #FFF; color: #222; }
  header,footer,.hero,.cookie-banner,.mobile-menu { display: none !important; }
  .container { max-width: 100vw; margin:0; padding:0; }
  .card,.section,.final-cta { box-shadow: none !important; background: #fff !important; border: 1px solid #ccc !important; }
}
