/* ===================================================================
   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,
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.75;
  background: #F4F7FA;
}
ol, ul {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  border-style: none;
  display: inline-block;
}
a {
  background: transparent;
  color: #124872;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #FDBE34;
}
input, button, textarea, select {
  font: inherit;
  color: inherit;
  outline: none;
}
button, input[type="button"], input[type="submit"] {
  cursor: pointer;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: #124872;
  font-family: 'Montserrat', Georgia, 'Times New Roman', Times, serif;
}
p, li, div, span, ul, ol, a, em, small {
  font-family: 'Open Sans', Georgia, Times, 'Times New Roman', serif;
  color: #27364a;
}

/* ===================================================================
   COLORS & TYPOGRAPHY (Elegant Classic)
   =================================================================== */
:root {
  --brand-primary: #124872;
  --brand-secondary: #F4F7FA;
  --brand-accent: #FDBE34;
  --brand-dark: #27364a;
  --brand-gray: #C3C6CE;
  --brand-border: #E0E3E6;

  --font-display: 'Montserrat', Georgia, 'Times New Roman', Times, serif;
  --font-body: 'Open Sans', Georgia, Times, 'Times New Roman', serif;
}

body {
  font-size: 16px;
  font-family: var(--font-body);
  background: var(--brand-secondary);
  color: var(--brand-dark);
}

h1 {
  font-size: 2.25rem;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 1.625rem;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 16px;
}
p {
  font-size: 1rem;
  margin-bottom: 16px;
}

strong, b {
  font-weight: bold;
  color: #174057;
}
em, i {
  font-style: italic;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px 0 rgba(42, 60, 96, 0.07);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.content-wrapper {
  margin: 0 auto;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Flex Containers */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 320px;
  min-width: 260px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 10px rgba(26, 30, 43, .11);
  padding: 32px 24px 28px 24px;
  transition: box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card:hover {
  box-shadow: 0 6px 30px rgba(26, 30, 43, 0.16);
  z-index: 2;
}
.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;
  padding: 20px;
  background: #F8FAFC;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(22,34,57,0.07);
  border: 1px solid var(--brand-border);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 30px rgba(22,34,57,0.12);
  border-color: #FDBE34;
  background: #fffbe8;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===================================================================
   HEADER & NAVIGATION
   =================================================================== */
header {
  background: #fff;
  border-bottom: 1px solid var(--brand-border);
  box-shadow: 0 2px 10px rgba(18,72,114,.02);
  padding: 0;
  min-height: 70px;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 20px;
}
header .container a img {
  height: 48px;
  width: auto;
  margin-right: 20px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  padding: 8px 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--brand-primary);
  border-radius: 5px;
  transition: background .14s, color .18s;
  position: relative;
}
.main-nav a.cta {
  background: var(--brand-primary);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: 9px 28px;
  margin-left: 8px;
  transition: background .18s, color .18s, box-shadow .16s;
  box-shadow: 0 2px 8px rgba(18,72,114,0.07);
  letter-spacing: 0.01em;
  border: 1.5px solid var(--brand-primary);
}
.main-nav a.cta:hover,
.main-nav a.cta:focus {
  background: var(--brand-accent);
  color: #124872;
  box-shadow: 0 6px 24px rgba(251,178,52,0.12);
  border-color: var(--brand-accent);
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--brand-accent);
  background: #f8f3e8;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  color: var(--brand-primary);
  font-size: 2rem;
  border: none;
  z-index: 102;
  padding: 6px 18px 6px 6px;
  margin-left: 12px;
  border-radius: 50%;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #ecf1f8;
}

/* Mobile Main Nav overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(18, 72, 114, 0.98);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.86,0,.07,1);
}
.mobile-menu.active {
  display: block;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.35rem;
  border: none;
  position: absolute;
  top: 22px; right: 24px;
  z-index: 1300;
  transition: background 0.16s;
  border-radius: 50%;
  padding: 4px 10px;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: rgba(255,255,255,0.08);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin-top: 40px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.3rem;
  padding: 14px 0;
  width: 100%;
  text-align: center;
  font-family: var(--font-display);
  transition: background .18s, color .15s;
  border-radius: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-accent);
  color: var(--brand-primary);
}
.mobile-nav a.cta {
  color: var(--brand-primary);
  background: var(--brand-accent);
  font-weight: bold;
  border-radius: 999px;
  margin-top: 20px;
  box-shadow: 0 2px 16px rgba(251,178,52,0.11);
}

/* ===================================================================
   HERO SECTION & SECTION TYPES
   =================================================================== */
.hero {
  background: linear-gradient(130deg, #f4f7fa 60%, #e8ebf2 100%);
  padding: 56px 0 40px 0;
  text-align: center;
  border-bottom: 1px solid #e0e4eb;
}
.hero h1 {
  font-family: var(--font-display);
  color: var(--brand-primary);
  font-size: 2.7rem;
}
.hero p {
  color: #27364a;
  font-size: 1.1rem;
  margin: 0 auto 26px auto;
}
.hero .cta {
  display: inline-block;
  margin: 10px auto 0 auto;
}

.features {
  background: #fff;
  border-radius: 20px;
  margin: 32px 0;
  box-shadow: 0 3px 16px rgba(21,35,50,0.05);
}
.features ul {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 12px 0 0 0;
}
.features li {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1.04rem;
}
.features li img {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: #F4F7FA;
  padding: 4px;
  box-shadow: 0 1px 6px rgba(18,72,114,.03);
}
.services, .about-section, .team, .team-values, .contact-info, .contact-form-info, .legal, .about-preview, .blog-preview, .blog-listing, .courses, .opinion-form, .thank-you {
  background: #fff;
  border-radius: 20px;
  padding: 40px 20px;
  margin-bottom: 60px;
  box-shadow: 0 4px 24px 0 rgba(42, 60, 96, 0.085);
  display: flex;
  flex-direction: column;
}
.services ul, .team ul, .about-section ul, .courses ul {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.services a.cta, .about-section a.cta, .cta a.cta {
  margin-top: 18px;
}

/* ===================================================================
   CARDS AND TESTIMONIALS
   =================================================================== */
.testimonials {
  margin-bottom: 60px;
}
.testimonials h2 {
  margin-bottom: 20px;
}
.testimonial-card p {
  font-size: 1.08rem;
  margin-bottom: 12px;
  color: #27364a;
  font-style: italic;
}
.testimonial-info {
  color: #555;
  font-size: 0.97rem;
  margin-bottom: 4px;
}
.testimonial-rating {
  font-size: 1.15rem;
  color: #FDBE34;
  font-family: var(--font-display);
  letter-spacing: 2px;
}
.rating-summary {
  margin-top: 12px;
  font-size: 1.05rem;
  font-family: var(--font-display);
  color: var(--brand-primary);
  font-weight: 600;
  text-align: left;
}

/* Blog preview & listing */
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin: 16px 0;
}
.blog-grid > div {
  background: #F8FAFC;
  border-radius: 14px;
  box-shadow: 0 2px 7px rgba(18,72,114,0.04);
  padding: 18px 22px;
  min-width: 230px;
  flex: 1 1 260px;
  margin-bottom: 8px;
  transition: box-shadow 0.14s;
}
.blog-grid > div:hover {
  box-shadow: 0 6px 24px rgba(251,178,52,0.13);
  background: #fffbe9;
}

.blog-categories {
  margin: 20px 0 2px;
  color: #4B5572;
  font-style: italic;
}

/* Newsletter signup block */
.newsletter-signup {
  background: #F8FAFC;
  padding: 20px 22px;
  border-radius: 13px;
  color: #27364a;
  font-size: 1rem;
  margin-top: 18px;
  box-shadow: 0 2px 8px rgba(18,72,114,0.05);
}

.next-steps {
  background: #F4F7FA;
  padding: 17px 20px;
  border-radius: 12px;
  margin-top: 20px;
  color: #27364a;
}

/* ===================================================================
   BUTTONS & LINKS
   =================================================================== */
.cta, a.cta, button.cta, .footer-cta a.cta {
  display: inline-block;
  padding: 12px 38px;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #fff !important;
  font-size: 1.07rem;
  font-family: var(--font-display);
  font-weight: bold;
  border: 1.5px solid var(--brand-primary);
  box-shadow: 0 2px 12px rgba(22,34,57,0.08);
  margin-top: 12px;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
  transition: background 0.18s, color 0.14s, box-shadow 0.18s, border 0.16s;
}
.cta:focus, .cta:hover, a.cta:hover, button.cta:hover, .footer-cta a.cta:hover {
  background: var(--brand-accent);
  color: var(--brand-primary) !important;
  border-color: var(--brand-accent);
  box-shadow: 0 5px 24px rgba(251,178,52,0.14);
}

button, .button {
  padding: 11px 32px;
  border-radius: 7px;
  border: 1.5px solid var(--brand-border);
  background: #fff;
  font-size: 1rem;
  color: var(--brand-primary);
  font-family: var(--font-body);
  font-weight: 600;
  transition: background 0.16s, color 0.16s, border 0.14s;
}
button:hover, .button:hover {
  background: var(--brand-accent);
  color: var(--brand-primary);
  border-color: var(--brand-accent);
}

/* ===================================================================
   FOOTER
   =================================================================== */
footer {
  background: #fff;
  border-top: 1px solid var(--brand-border);
  padding: 36px 0 0 0;
  box-shadow: 0 -2px 20px rgba(18,72,114,0.04);
  margin-top: 48px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.footer-nav a {
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 3px 8px;
  border-radius: 5px;
  transition: background 0.13s, color 0.14s;
}
.footer-nav a:hover {
  background: #fec4583a;
  color: #124872;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: center;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 1rem;
  color: #27364a;
}
.contact-info img {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  margin-bottom: -2px;
}
.footer-hours {
  min-width: 220px;
  color: #1e2842;
  font-size: 0.97rem;
}
.footer-cta {
  min-width: 160px;
}

/* ===================================================================
   COOKIE CONSENT BANNER & MODAL
   =================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 2200;
  background: #fff;
  color: #27364a;
  border-top: 1.5px solid var(--brand-border);
  padding: 26px 20px 22px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -4px 24px rgba(18,72,114,0.11);
  font-family: var(--font-body);
  transition: bottom 0.4s cubic-bezier(.7,0,.2,1);
}
.cookie-banner.closed {
  bottom: -180px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  flex: 2 2 320px;
  font-size: 0.98rem;
  margin: 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.cookie-banner .cookie-btn {
  border-radius: 999px;
  padding: 10px 24px;
  border: 1.5px solid var(--brand-primary);
  background: #fff;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brand-primary);
  margin: 3px 0;
  transition: background 0.16s, color 0.15s, border 0.13s;
}
.cookie-banner .cookie-btn.accept {
  background: var(--brand-primary);
  color: #fff;
}
.cookie-banner .cookie-btn.accept:hover, .cookie-banner .cookie-btn.accept:focus {
  background: var(--brand-accent);
  color: var(--brand-primary);
}
.cookie-banner .cookie-btn.reject {
  border-color: #b9bfc9;
  color: #434960;
  background: #f9f9fa;
}
.cookie-banner .cookie-btn.reject:hover, .cookie-banner .cookie-btn.reject:focus {
  background: #f8f5e8;
  color: var(--brand-primary);
}
.cookie-banner .cookie-btn.settings {
  border-color: var(--brand-accent);
  color: var(--brand-primary);
  background: #fff8ea;
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: #ffeabc;
}

/* Cookie modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(18, 72, 114, 0.35);
  z-index: 2300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.35s cubic-bezier(.5,.1,.45,1);
}
.cookie-modal-overlay.closed {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  width: 100%;
  max-width: 480px;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 6px 32px rgba(18,72,114,0.17);
  padding: 36px 26px 26px 26px;
  margin-bottom: 0;
  font-family: var(--font-body);
  color: var(--brand-dark);
  position: relative;
  animation: slideInUpCookie 0.33s cubic-bezier(.74,0,.23,1);
}
@keyframes slideInUpCookie {
  from { transform: translateY(32px); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-modal h2 {
  color: var(--brand-primary);
  font-size: 1.28rem;
  margin-bottom: 12px;
  font-family: var(--font-display);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.cookie-category label {
  font-weight: 600;
}
.cookie-category input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--brand-accent);
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 18px;
  margin-top: 18px;
}
.cookie-modal .cookie-btn {
  border-radius: 999px;
  padding: 10px 24px;
  border: 1.5px solid var(--brand-primary);
  font-weight: 600;
  color: var(--brand-primary);
  background: #fff;
  font-family: var(--font-display);
}
.cookie-modal .cookie-btn.accept {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}
.cookie-modal .cookie-btn.accept:hover, .cookie-modal .cookie-btn.accept:focus {
  background: var(--brand-accent);
  color: var(--brand-primary);
}
.cookie-modal .cookie-btn.reject {
  border-color: #b9bfc9;
  color: #434960;
  background: #f9f9fa;
}
.cookie-modal .cookie-btn.reject:hover, .cookie-modal .cookie-btn.reject:focus {
  background: #f8f5e8;
  color: var(--brand-primary);
}
.cookie-modal .close-modal {
  position: absolute;
  top: 12px;
  right: 18px;
  border: none;
  background: none;
  font-size: 1.7rem;
  color: #A3AFC8;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.16s;
  padding: 3px 8px;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: #ecf1f8;
}

/* ===================================================================
   RESPONSIVE DESIGN (Mobile First)
   =================================================================== */
@media (max-width: 1020px) {
  .container {
    max-width: 99vw;
    padding: 0 8px;
  }
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}
@media (max-width: 820px) {
  .main-nav {
    gap: 14px;
    font-size: .99rem;
  }
  .footer-contact {
    gap: 16px;
    min-width: 220px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    max-width: 100vw;
    padding: 0 6px;
  }
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .content-wrapper {
    max-width: 99vw;
    gap: 13px;
  }
  .section, .services, .about-section, .team, .team-values, .contact-info, .contact-form-info, .legal, .about-preview, .blog-preview, .blog-listing, .courses, .opinion-form, .thank-you {
    padding: 24px 6px;
    border-radius: 14px;
  }
  .hero {
    padding: 38px 0 28px 0;
    border-radius: 0;
  }
  .hero h1 {
    font-size: 1.65rem;
  }
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.02rem; }
}
@media (max-width: 610px) {
  .card-container {
    flex-direction: column;
    gap: 13px;
  }
  .blog-grid {
    flex-direction: column;
    gap: 10px;
  }
  .footer-contact {
    gap: 15px;
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .container, .content-wrapper {
    padding: 0 2px;
  }
  .section, .services, .about-section, .team, .team-values, .contact-info, .contact-form-info, .legal, .about-preview, .blog-preview, .blog-listing, .courses, .opinion-form, .thank-you {
    padding: 14px 2px;
    border-radius: 10px;
  }
  .card {
    padding: 20px 8px 14px 8px;
    border-radius: 10px;
  }
  .testimonial-card {
    padding: 12px 6px;
    border-radius: 9px;
  }
  .newsletter-signup {
    padding: 12px 7px;
    border-radius: 7px;
  }
  .blog-grid > div {
    padding: 11px 8px;
    border-radius: 8px;
  }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 1.23rem; }
  p, li, .footer-hours, .testimonial-info { font-size: 0.98rem; }
  .cta, a.cta, button.cta, .footer-cta a.cta { font-size: 0.94rem; padding: 10px 16px; }
}

/* ===================================================================
   MISC MICROINTERACTIONS
   =================================================================== */
.cta, a.cta, button.cta, .cookie-btn, .mobile-menu-toggle, .main-nav a, .footer-nav a, .mobile-nav a {
  transition: color 0.14s, background 0.16s, box-shadow 0.15s, border 0.15s;
}
.card, .testimonial-card, .blog-grid > div {
  transition: box-shadow 0.16s, border-color 0.13s, background 0.15s;
}
.section, .card, .blog-grid > div {
  box-shadow: 0 2.5px 20px 0 rgba(62, 76, 97, 0.055);
}

::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-thumb {
  background: #e6ebf2;
  border-radius: 9px;
}
::-webkit-scrollbar-track {
  background: #f4f7fa;
}

/* ===================================================================
   CLASSIC/ELEGANT SIMPLE DECORATIONS
   =================================================================== */
.section, .features, .about-section, .team, .team-values, .contact-info, .contact-form-info, .legal, .about-preview, .blog-preview, .blog-listing, .courses, .opinion-form, .thank-you {
  border: 1.5px solid var(--brand-border);
}

/* ===================================================================
   NO GRID USAGE: ONLY FLEXBOX!
   ALL FLEX CONTAINERS enforced above
   =================================================================== */
