/* 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.5;
  background: #F1F3F7;
  color: #2B3657;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
a {
  color: #314165;
  text-decoration: none;
  transition: color 0.2s;
  outline: none;
}
a:focus, a:hover {
  color: #EF965A;
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
button {
  cursor: pointer;
}

/* BRAND TYPOGRAPHY */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.03em;
  color: #2B3657;
  font-weight: 700;
  text-transform: none;
  line-height: 1.2;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 24px;
  text-align: left;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 600;
}
h4, h5 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.subheadline {
  font-size: 1.2rem;
  color: #314165;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 20px;
}
p, li, ul, ol {
  font-size: 1rem;
  line-height: 1.6;
  color: #2B3657;
}
strong {
  font-weight: 700;
}

/* STRUCTURED GEOMETRIC LAYOUTS */
.container {
  width: 100%;
  max-width: 1130px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* HEADER & NAVIGATION */
header {
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(49, 65, 101, 0.06);
  position: relative;
  z-index: 20;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #314165;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 4px 0;
  position: relative;
  transition: color 0.18s;
}
.main-nav a:after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  background: #EF965A;
  transition: width 0.24s cubic-bezier(.64,.09,.08,.96);
  border-radius: 2px;
  margin-top: 3px;
}
.main-nav a:hover, .main-nav a:focus {
  color: #EF965A;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 100%;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #EF965A;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 11px 32px;
  border-radius: 8px;
  letter-spacing: 0.03em;
  border: none;
  margin-left: 20px;
  transition: background 0.2s, box-shadow 0.22s, transform 0.15s;
  box-shadow: 0 6px 18px -10px #EF965A90, 0 1px 2px rgba(49,65,101,.04);
}
.cta-btn:hover, .cta-btn:focus {
  background: #314165;
  color: #fff;
  box-shadow: 0 6px 24px -10px #31416556, 0 2px 6px rgba(49,65,101,.07);
  transform: scale(1.048);
  text-decoration: none;
}
button.mobile-menu-toggle {
  background: none;
  color: #314165;
  font-size: 2rem;
  display: none;
  padding: 2px 8px;
  margin-left: 18px;
  border-radius: 6px;
  transition: background 0.13s;
  border: 2px solid transparent;
}
button.mobile-menu-toggle:focus, button.mobile-menu-toggle:hover {
  background: #F1F3F7;
  color: #EF965A;
  border-color: #EF965A;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: #2B3657ee;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.64,.09,.08,.96), opacity 0.28s;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2rem;
  color: #fff;
  align-self: flex-end;
  margin: 24px 30px 6px 0px;
  background: none;
  border: none;
  transition: color .18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #EF965A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 36px;
  gap: 22px;
  margin-top: 32px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.035em;
  padding: 6px 0px 6px 10px;
  border-left: 4px solid transparent;
  transition: color 0.2s, border-color 0.16s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #EF965A;
  border-left: 4px solid #EF965A;
  background: rgba(255,255,255,0.07);
  text-decoration: none;
}

/* HERO SECTIONS */
.hero {
  background: #314165;
  color: #fff;
  border-radius: 0 0 36px 36px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
  box-shadow: 0 12px 40px -12px #2B365732;
}
.hero h1 {
  color: #fff;
  font-size: 2.5rem;
  letter-spacing: 0.025em;
  margin-bottom: 12px;
  text-align: left;
}
.hero .subheadline {
  color: #F1F3F7;
  font-size: 1.13rem;
  margin-bottom: 18px;
  max-width: 500px;
}
.hero .cta-btn {
  margin: 0;
}

/* GEOMETRIC & STRUCTURED GRID FEATURES */
/* Support: / feature-grid, services.html/services-list/services-grid etc */
.feature-grid, .services-list, .services-grid, .ebook-list, .event-calendar.event-list.grid, .quick-hacks-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid li, .services-list .service-card, .services-grid .service-card, .ebook-list .ebook-card,
.event-list.grid .event-card, .quick-hacks-grid > div {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px -5px #2B365715;
  padding: 28px 22px 18px 22px;
  min-width: 210px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.21s, transform 0.16s;
  margin-bottom: 20px;
  position: relative;
}
.feature-grid li:hover, .service-card:hover, .ebook-card:hover, .event-card:hover {
  box-shadow: 0 10px 40px -8px #EF965A28;
  transform: translateY(-4px) scale(1.018);
}
.feature-grid li img, .service-card img, .ebook-card img, .event-card img {
  width: 45px;
  height: 45px;
  margin-bottom: 8px;
  margin-right: 0;
}
.feature-grid li h3, .service-card h3, .ebook-card h3, .event-card h3 {
  font-size: 1.13rem;
  color: #314165;
  margin-bottom: 6px;
  margin-top: 6px;
}
.service-price, .ebook-interactive {
  background: #F1F3F7;
  color: #314165;
  padding: 7px 18px;
  border-radius: 18px;
  font-size: 0.96rem;
  font-weight: 600;
  margin-top: 16px;
  letter-spacing: .02em;
}

/***** TESTIMONIALS *****/
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 30px -8px rgba(49, 65, 101, 0.1);
  padding: 28px 28px 19px 28px;
  margin-bottom: 20px;
  position: relative;
  min-width: 270px;
  max-width: 550px;
  border-left: 7px solid #EF965A;
  transition: box-shadow 0.19s, transform 0.13s;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 12px 42px -10px #EF965A22;
  transform: scale(1.04);
}
.testimonial-card p {
  color: #2B3657;
  font-size: 1.03rem;
  font-style: italic;
  margin-bottom: 2px;
}
.testimonial-meta {
  color: #314165;
  font-size: 0.92rem;
  letter-spacing: .01em;
  margin-top: 8px;
  font-weight: 600;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 20px;
}
.testimonial-slider .testimonial-card {
  flex: 1 1 320px;
}

/***** CARDS, GRIDS, AND BLOCKS *****/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px -4px #2B365712;
  padding: 28px;
  min-width: 220px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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;
}
.approach-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.values-list li {
  background: #31416510;
  color: #314165;
  font-weight: 700;
  border-radius: 10px;
  padding: 7px 22px;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10px;
}

/***** OTHER SECTION UTILITIES *****/
.event-calendar.event-list.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.event-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px -5px #31416519;
  padding: 27px 20px 19px 20px;
  margin-bottom: 20px;
  min-width: 235px;
  flex: 1 1 290px;
  display: flex;
  flex-direction: column;
}
.contact-info-block ul, section ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-left: 0;
}
.confirmation-message {
  padding: 29px 24px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 22px;
  box-shadow: 0 2px 16px -6px #2B365710;
}

/****** FOOTER ******/
footer {
  background: #314165;
  color: #fff;
  padding: 0;
  margin-top: 40px;
  border-radius: 36px 36px 0 0;
  min-height: 120px;
}
footer .content-wrapper {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  font-size: 1rem;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
  transition: color 0.15s;
}
.footer-nav a:focus, .footer-nav a:hover {
  color: #EF965A;
}
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a img {
  width: 28px;
  height: 28px;
  transition: opacity 0.17s, filter 0.14s, transform 0.11s;
}
.footer-social a:hover img, .footer-social a:focus img {
  opacity: .8;
  filter: brightness(1.2) drop-shadow(0px 2px 5px #EF965A22);
  transform: scale(1.14);
}
.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-family: 'Open Sans', Arial, sans-serif;
}
.footer-brand img {
  width: 38px;
  height: 38px;
}
.footer-brand p {
  color: #F1F3F7;
  font-size: 0.98rem;
}

/***** COOKIE CONSENT BANNER *****/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2500;
  background: #314165;
  color: #fff;
  padding: 22px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  box-shadow: 0 -2px 18px -8px #2B3657dd;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.06rem;
  animation: fadeInBanner .6s ease;
}
@keyframes fadeInBanner {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btn {
  background: #EF965A;
  color: #fff;
  border-radius: 8px;
  padding: 8px 26px;
  margin: 0 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  transition: background 0.14s, color 0.12s, box-shadow 0.16s;
  border: none;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #fff;
  color: #314165;
}
.cookie-banner .cookie-btn.settings {
  background: transparent;
  color: #EF965A;
  border: 2px solid #EF965A;
  margin-left: 14px;
  margin-right: 0;
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: #EF965A;
  color: #fff;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    font-size: 1rem;
    padding: 14px 10px;
  }
  .cookie-banner .cookie-btn {
    margin-right: 8px;
    padding: 8px 16px;
    font-size: 0.95rem;
  }
}

/***** COOKIE SETTINGS MODAL *****/
.cookie-modal {
  position: fixed;
  z-index: 2600;
  background: #fff;
  color: #314165;
  top: 50%; left: 50%;
  transform: translate(-50%, -52%) scale(0.95);
  min-width: 320px;
  width: 94vw;
  max-width: 420px;
  border-radius: 24px;
  box-shadow: 0 10px 56px -14px #2B365733,
              0 2px 8px -2px #EF965A29;
  padding: 36px 24px 24px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s, transform .36s cubic-bezier(.62,.07,.18,1.02);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-52%) scale(1);
}
.cookie-modal-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.37rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}
.cookie-modal-section {
  margin: 8px 0 12px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cookie-category {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
}
.cookie-desc {
  font-size: 0.94rem;
  color: #2B3657CC;
  max-width: 82%;
}
.cookie-toggle {
  width: 44px;
  height: 25px;
  background: #F1F3F7;
  border-radius: 20px;
  position: relative;
  border: 2px solid #EF965A44;
  box-sizing: border-box;
  outline: none;
  transition: background 0.19s;
}
.cookie-toggle input[type="checkbox"] {
  display: none;
}
.cookie-toggle-label {
  position: absolute;
  left: 4px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 5px #2B365720;
  transition: left .22s cubic-bezier(.65,.14,.27,1.11), background 0.13s;
}
.cookie-toggle input:checked + .cookie-toggle-label {
  left: 22px;
  background: #EF965A;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}
.cookie-modal .cookie-btn {
  padding: 10px 18px;
  border-radius: 7px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal .cookie-btn.primary {
  background: #EF965A;
  color: #fff;
}
.cookie-modal .cookie-btn.secondary {
  background: #F1F3F7;
  color: #314165;
  border: 1px solid #F1F3F7;
}
.cookie-modal-close {
  position: absolute;
  right: 24px;
  top: 17px;
  background: none;
  border: none;
  color: #314165;
  font-size: 1.3rem;
  font-weight: bold;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #EF965A;
}

/***** RESPONSIVE: MOBILE-FIRST *****/
@media (max-width: 1100px) {
  .container {
    max-width: 100%;
    padding: 0 13px;
  }
  .footer-brand p {
    font-size: 0.93rem;
  }
}
@media (max-width: 900px) {
  .content-wrapper {
    gap: 16px;
  }
  .hero {
    min-height: 200px;
    padding: 35px 0;
    border-radius: 0 0 26px 26px;
  }
  .section {
    padding: 32px 8px;
    margin-bottom: 38px;
  }
  .footer-brand img {
    width: 28px;
    height: 28px;
  }
  .footer-social a img {
    width: 22px;
    height: 22px;
  }
  .footer-nav {
    font-size: 0.90rem;
  }
}
@media (max-width: 786px) {
  .main-nav, .cta-btn {
    display: none;
  }
  button.mobile-menu-toggle {
    display: block;
  }
  .nav-container {
    gap: 0;
  }
  .footer-nav {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .footer-social {
    gap: 8px;
  }
  .footer-brand {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
  .footer-brand p {
    font-size: 0.89rem;
    max-width: 200px;
  }
  .footer-social {
    order: 3;
  }
  .content-wrapper {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .hero {
    min-height: 128px;
    padding: 22px 0 22px 0;
    border-radius: 0 0 18px 18px;
    margin-bottom: 26px;
    box-shadow: 0 3px 13px -5px #2B36572e;
  }
  h1 {
    font-size: 1.9rem;
    margin-bottom: 13px;
  }
  h2 {
    font-size: 1.3rem;
    margin-bottom: 13px;
  }
  h3 {
    font-size: 1.04rem;
  }
  .section {
    padding: 20px 7px 20px 7px;
    margin-bottom: 23px;
  }
  .feature-grid,
  .services-list,
  .services-grid,
  .ebook-list,
  .event-list.grid,
  .quick-hacks-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid li,
  .service-card,
  .ebook-card,
  .event-card {
    min-width: unset;
    flex: 1 1 80vw;
    padding: 22px 12px 14px 12px;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 12px;
  }
  .testimonial-slider .testimonial-card,
  .testimonial-card {
    min-width: unset;
    max-width: 98vw;
    padding: 18px 8px 13px 14px;
    border-left-width: 4px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .event-calendar.event-list.grid {
    gap: 12px;
  }
}
@media (max-width: 560px) {
  .footer-nav {
    flex-direction: column;
    gap: 6px;
    font-size: 0.91rem;
  }
  .footer-brand img {
    width: 20px;
    height: 20px;
  }
  .footer-social a img {
    width: 17px;
    height: 17px;
  }
}

/* COLOR ACCESSIBILITY: DARK TEXT ON LIGHT BG IN TESTIMONIALS */
.testimonial-card, .testimonial-slider .testimonial-card {
  background: #fff;
  color: #2B3657;
}
.testimonial-card p, .testimonial-slider .testimonial-card p {
  color: #2B3657;
}

/* MISC UTILITIES */
.text-section {
  margin-bottom: 18px;
}
.ebook-features ul {
  gap: 11px;
}
.ebook-features ul li {
  font-size: 1rem;
  background: #F1F3F7;
  color: #314165;
  border-radius: 7px;
  padding: 7px 12px;
  margin-bottom: 7px;
}

/**** CONTACT & FORM ****/
.contact-info-block {
  padding: 18px 12px 7px 18px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px -5px #2B36570d;
  margin-bottom: 12px;
  font-size: 1rem;
}
.contact-info-block ul {
  gap: 7px;
}

/**** TRANSITIONS & MICROINTERACTIONS ****/
.card-container, .feature-grid, .testimonial-slider, .services-list, .services-grid, .ebook-list, .event-calendar {
  transition: gap 0.16s cubic-bezier(.64,.09,.08,1.0);
}
.cta-btn, .service-card, .event-card, .feature-grid li, .ebook-card, .testimonial-card, .cookie-btn {
  transition: box-shadow 0.18s, background 0.21s, color 0.14s, transform 0.13s;
}

/* Hide mobile menu on desktop */
@media (min-width: 787px) {
  .mobile-menu {
    display: none !important;
  }
}
