/* 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.4;
  font-family: 'Roboto', Arial, sans-serif;
  color: #142126;
  background: linear-gradient(135deg, #F3F9FB 0%, #EEF5F8 100%);
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul,ol {
  margin-left: 24px;
}
address { font-style: normal; color: #19647E; }

/* COLOR VARIABLES */
:root {
  --primary: #19647E;
  --secondary: #EF7C48;
  --accent: #F3F9FB;
  --text-main: #142126;
  --bg-gradient-main: linear-gradient(120deg, #43B0F1 0%, #19647E 100%);
  --bg-gradient-alt: linear-gradient(100deg, #EF7C48 0%, #F3F9FB 100%);
  --shadow-main: 0 4px 16px rgba(25, 100, 126, 0.11);
  --radius-main: 18px;
}

body, html {
  min-height: 100%;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #19647E;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.25rem;
  line-height: 1.1;
}
h2 {
  font-size: 1.5rem;
  line-height: 1.2;
}
h3 {
  font-size: 1.125rem;
  line-height: 1.3;
}
@media (min-width: 580px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.25rem; }
}

p, li, address {
  font-size: 1rem;
  line-height: 1.6;
}
strong {
  color: var(--secondary);
  font-weight: 700;
}
.text-section p:not(:last-child) {
  margin-bottom: 16px;
}
.text-section ul {
  margin-top: 16px;
}


/* GLOBAL LAYOUT */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius-main);
}
@media (max-width: 768px) {
  .section, section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
  .container {
    padding: 0 8px;
  }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

/* HEADER & NAVIGATION */
header {
  background: var(--bg-gradient-main);
  box-shadow: 0 2px 10px rgba(25,100,126,0.10);
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  min-height: 72px;
  gap: 0;
}
.site-logo img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  margin-left: 24px;
}
.main-nav a {
  color: #F3F9FB;
  text-decoration: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--secondary);
}
.main-nav .btn-primary {
  background: #EF7C48;
  color: #fff;
  border-radius: 24px;
  padding: 9px 24px;
  box-shadow: 0 3px 8px rgba(239,124,72,0.07);
  margin-left: 8px;
  transition: background 0.18s;
}
.main-nav .btn-primary:hover,
.main-nav .btn-primary:focus {
  background: #d86527;
  color: #fff;
}

/* Hamburger & Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 8px;
  height: 44px;
  width: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-main);
  margin-left: 12px;
  transition: background 0.2s;
  z-index: 150;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #cc6829;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  box-shadow: 0 8px 36px rgba(25,100,126,0.20);
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  padding: 32px 24px 24px 24px;
  z-index: 2000;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.82,.02,.42,1);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 24px;
  box-shadow: var(--shadow-main);
  transition: background 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #cc6829;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.22rem;
  text-decoration: none;
  padding: 12px 0;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  display: block;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--accent);
  color: var(--secondary);
}
@media (min-width: 980px) {
  .mobile-menu {
    display: none !important;
  }
}

/* HERO SECTION */
.hero {
  background: var(--bg-gradient-main);
  color: #fff;
  border-radius: 0 0 var(--radius-main) var(--radius-main);
  padding-top: 56px;
  padding-bottom: 56px;
  min-height: 340px;
  margin-bottom: 60px;
}
.hero h1 {
  color: #fff;
}
.hero p {
  color: #e2eef6;
  margin-bottom: 24px;
  font-size: 1.19rem;
}
.hero .btn-primary {
  margin-top: 4px;
}
@media (max-width: 768px) {
  .hero {
    padding: 32px 8px;
    min-height: unset;
    margin-bottom: 36px;
  }
}

/* FLEXBOX LAYOUTS (MANDATORY PATTERNS) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  box-shadow: var(--shadow-main);
  border-radius: var(--radius-main);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  min-width: 230px;
  max-width: 340px;
}
.card:hover {
  box-shadow: 0 12px 32px rgba(25,100,126,0.17);
  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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 26px;
  margin-bottom: 20px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(25,100,126,0.11);
  border-radius: var(--radius-main);
  color: var(--text-main);
  min-width: 220px;
  max-width: 540px;
  position: relative;

  /* Good contrast for testimonials */
}
.testimonial-card p {
  color: #142126;
  font-style: italic;
}
.testimonial-card span {
  color: #19647E;
  font-weight: 600;
  font-size: 1rem;
  align-self: flex-end;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* FEATURES & SERVICES BLOCKS */
.features ul,
.programs ul,
.team-values ul,
.about-story ul,
.why-kinetica ul,
.free-resources ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  list-style: none;
  margin: 0;
  margin-top: 12px;
}
.features ul li,
.programs ul li,
.team-values ul li,
.about-story ul li,
.why-kinetica ul li,
.free-resources ul li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.08rem;
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 12px;
  background: #ecf4f8;
  margin-bottom: 0;
  transition: background 0.2s;
}
.features ul li:hover {
  background: #d4e9f1;
}
@media (max-width: 600px) {
  .features ul, .programs ul, .team-values ul,
  .about-story ul, .why-kinetica ul, .free-resources ul {
    flex-direction: column;
    gap: 10px 0;
  }
}

/* SERVICES LIST */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.service-card {
  background: #fff;
  box-shadow: var(--shadow-main);
  border-radius: var(--radius-main);
  padding: 26px 22px;
  min-width: 225px;
  max-width: 345px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  margin-bottom: 20px;
  border-left: 8px solid var(--secondary);
  transition: box-shadow 0.17s;
}
.service-card h3 {
  color: var(--primary);
}
.service-card span {
  color: var(--secondary);
  font-weight: 700;
  font-size: 1.03rem;
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(25,100,126,0.13);
  border-left-color: #19647E;
}

@media (max-width: 900px) {
  .service-list {
    flex-direction: column;
    gap: 20px;
  }
  .service-card {
    max-width: 100%;
    width: 100%;
  }
}

/* BUTTONS */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.17s, box-shadow 0.17s, color 0.17s, transform 0.22s;
  font-size: 1.1rem;
  padding: 12px 32px;
  margin-top: 12px;
  box-shadow: 0 2px 6px rgba(25,100,126,0.11);
  text-decoration: none;
}
.btn-primary {
  background: var(--secondary);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #db621b;
  box-shadow: 0 4px 18px rgba(239,124,72,0.13);
  transform: translateY(-2px) scale(1.02);
  color: #fff;
}
.btn-secondary {
  background: var(--primary);
  color: #fff;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: #12495C;
  color: #fff;
  box-shadow: 0 4px 18px rgba(25,100,126,0.12);
  transform: translateY(-2px) scale(1.02);
}

/* CALL OUT */
.callout {
  margin-top: 16px;
}

/* ARTICLE LIST */
.article-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.article-list li {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-main);
  padding: 22px 18px;
  min-width: 220px;
  max-width: 370px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  position: relative;
}
.article-list h3 {
  color: #19647E;
  font-size: 1.16rem;
  margin-bottom: 2px;
}
.article-list p {
  color: #447487;
}

@media (max-width: 780px) {
  .article-list {
    flex-direction: column;
    gap: 14px;
  }
  .article-list li {
    max-width: 100%;
    width: 100%;
  }
}

/* FORM / ADDRESS STYLES */
.contact-info address, .contact-preview address {
  margin: 12px 0 0 0;
  background: #f3f9fb;
  border-left: 8px solid var(--primary);
  color: var(--primary);
  padding: 18px 18px;
  border-radius: 12px;
  font-size: 1.11rem;
}
.contact-info a {
  color: var(--secondary);
  text-decoration: underline;
  font-weight: 500;
}
.contact-info a:hover {
  color: var(--primary);
}

/* THANK YOU PAGE */
.thank-you {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 320px;
  background: var(--bg-gradient-alt);
  color: var(--primary);
  border-radius: var(--radius-main);
}
.thank-you h1 {
  color: var(--primary);
}

/* FOOTER */
footer {
  background: var(--primary);
  color: #F3F9FB;
  padding: 12px 0 0 0;
  box-shadow: 0 -2px 8px rgba(25,100,126,0.07);
  border-radius: var(--radius-main) var(--radius-main) 0 0;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #F3F9FB;
  text-decoration: underline;
  opacity: 0.82;
  font-size: 1rem;
  transition: opacity 0.17s;
}
.footer-nav a:hover {
  opacity: 1;
  color: var(--secondary);
}
.branding {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.branding img {
  height: 34px;
}
.branding span {
  font-size: 1rem;
  color: #fff;
}
@media (max-width: 700px) {
  .footer-nav {
    flex-direction: column;
    gap: 11px;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: var(--primary);
  border-top: 4px solid var(--secondary);
  box-shadow: 0 -3px 18px rgba(25,100,126,0.17);
  z-index: 4000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  gap: 22px;
  transition: transform 0.3s cubic-bezier(.7,.07,.41,1);
  transform: translateY(112%);
}
.cookie-banner.show {
  transform: translateY(0);
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  transition: background 0.19s, color 0.19s;
  box-shadow: var(--shadow-main);
}
.cookie-banner .accept-cookies {
  background: var(--secondary);
  color: #fff;
}
.cookie-banner .accept-cookies:hover {
  background: #c1642e;
  color: #fff;
}
.cookie-banner .reject-cookies {
  background: var(--primary);
  color: #fff;
}
.cookie-banner .reject-cookies:hover {
  background: #15384b;
  color: #fff;
}
.cookie-banner .settings-cookies {
  background: #f3f9fb;
  color: var(--primary);
  border: 1.2px solid #ecf4f8;
}
.cookie-banner .settings-cookies:hover {
  background: #e6eff4;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 9px;
    font-size: 0.99rem;
  }
  .cookie-banner .cookie-buttons {
    justify-content: flex-end;
    width: 100%;
    gap: 10px;
  }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 4100;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(25, 100, 126, 0.19);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.show {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  min-width: 312px;
  max-width: 98vw;
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(25,100,126,0.17);
  padding: 28px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  color: var(--primary);
  animation: modal-slidein 0.32s cubic-bezier(.74,.09,.42,.97) 1;
}
@keyframes modal-slidein {
  from { transform: translateY(48px) scale(0.97); opacity: 0.3; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  margin-bottom: 7px;
  font-size: 1.27rem;
  color: var(--primary);
}
.cookie-modal .close {
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 1.9rem;
  border: none;
  background: transparent;
  color: #cc6829;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal .close:hover {
  color: var(--primary);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 13px;
}
.cookie-modal label {
  font-weight: 500;
}
.cookie-modal input[type=checkbox] {
  width: 22px; height: 22px;
  accent-color: var(--secondary);
}
.cookie-modal .cookie-category.essential label {
  color: #96abbb;
}
.cookie-modal .save-cookies {
  background: var(--secondary);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  padding: 10px 24px;
  border-radius: 18px;
  border: none;
  font-weight: 700;
  margin-top: 10px;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-modal .save-cookies:hover {
  background: #bb5928;
}

@media (max-width: 568px) {
  .cookie-modal { padding: 13px 8px 16px 8px; }
}

/* UTILITY & MICRO-INTERACTIONS */
a {
  color: var(--secondary);
  transition: color 0.17s;
}
a:hover,a:focus {
  color: #19647E;
  text-decoration: underline;
}

/* SPACING - UNIVERSAL FOR NO OVERLAP */
.section:not(:last-child),
section:not(:last-child) {
  margin-bottom: 60px;
}
.card:not(:last-child), .service-card:not(:last-child), .article-list li:not(:last-child), .testimonial-card:not(:last-child) {
  margin-bottom: 20px;
}
.content-wrapper > *:not(:last-child) {
  margin-bottom: 20px;
}

/* PASSION STATEMENT */
.passion-statement {
  padding: 18px 22px;
  background: var(--bg-gradient-alt);
  border-radius: 14px;
  color: var(--primary);
  font-family: 'Montserrat',sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(25,100,126,0.09);
  margin-top: 24px;
}

/* ICONS IN FEATURES */
.why-kinetica ul li img,
.why-kinetica ul li svg {
  height: 22px;
  width: 22px;
  margin-right: 8px;
  vertical-align: middle;
}

/* TRANSITIONS */
.btn-primary, .btn-secondary, .cookie-banner button {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border 0.15s;
}
section, .section, .card, .testimonial-card, .service-card {
  transition: box-shadow 0.14s, transform 0.20s;
}

/* HIDE MOBILE-NAV ON DESKTOP TO PREVENT OVERLAP (redundant, but strict) */
@media (min-width: 980px) {
  .mobile-menu {
    display: none !important;
  }
}

/* RESPONSIVE DESIGN RULES */
@media (max-width: 900px) {
  .container {
    padding: 0 8px;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
}

/* ENSURE NO OVERLAP, ONLY FLEX LAYOUTS, ADEQUATE SPACING */
/* NO absolute position for content cards, only for decorative or close/modal elements as above */

/* FONTS IMPORT (Include in HTML or use these fallback rules) */
@font-face {
  font-family: 'Montserrat';
  src: local('Montserrat'), url('https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700&display=swap');
}
@font-face {
  font-family: 'Roboto';
  src: local('Roboto'), url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
}

