/* 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;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  background: #fff;
  color: #26505C;
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #30616D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #D4A857;
  outline: none;
  text-decoration: underline;
}

ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.5em;
}

/* COLOR VARIABLES (w/ fallbacks) */
:root {
  --color-primary: #30616D;
  --color-primary-dark: #26505C;
  --color-secondary: #F7F3EB;
  --color-bg: #FFFFFF;
  --color-accent: #D4A857;
  --color-accent-dark: #B38A34;
  --color-card-bg: #fff;
  --color-section-bg: #F7F3EB;
  --color-energetic: #17A8E2;
  --color-energetic2: #EF476F;
  --color-energetic3: #43D358;
  --color-contrast: #111;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  color: var(--color-energetic);
  text-shadow: 0 6px 20px #EF476F22;
}
h2 {
  font-size: 2rem;
  color: var(--color-energetic2);
}
h3 {
  font-size: 1.4rem;
  color: var(--color-energetic3);
}
h4, h5, h6 {
  font-size: 1.1rem;
}

p, ul, ol, li, a {
  font-size: 1rem;
}
strong {
  color: var(--color-accent-dark);
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-section-bg);
  border-radius: 18px;
  box-shadow: 0 2px 30px 0 #30616d1a;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 6px;
  }
}

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

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

/* DYNAMIC FLEX LAYOUTS */
.card-container,
.feature-grid,
.card-grid,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card, .feature {
  background: var(--color-card-bg);
  box-shadow: 0 3px 18px 0 #1111;
  border-radius: 16px;
  padding: 26px 20px;
  flex: 1 1 270px;
  margin-bottom: 20px;
  margin-right: 0;
  position: relative;
  min-width: 260px;
  max-width: calc(33.3% - 24px);
  transition: box-shadow 0.22s, transform 0.22s;
  border: 2.5px solid #17A8E212;
}
.card:hover, .feature:hover {
  box-shadow: 0 6px 30px 0 #17A8E240;
  transform: translateY(-6px) scale(1.03) rotate(-0.5deg);
  border: 2.5px solid var(--color-accent);
}

@media (max-width: 1024px) {
  .card, .feature {
    min-width: 220px;
    max-width: 100%;
    flex-basis: 48%;
  }
}
@media (max-width: 700px) {
  .card, .feature {
    flex-basis: 100%;
    min-width: 0;
  }
  .content-grid,.card-container,.feature-grid { flex-direction: column; gap: 20px; }
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 28px;
  margin-bottom: 22px;
  background: #fff;
  box-shadow: 0 4px 24px 0 #30616d20;
  border-radius: 16px;
  border-left: 7px solid var(--color-energetic2);
  max-width: 600px;
  min-width: 240px;
  color: #212121;
}
.testimonial-card p {
  color: #222;
  font-size: 1.13rem;
  font-style: italic;
  margin-bottom: 8px;
  line-height: 1.6;
}
.testimonial-card span {
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.4px;
  font-size: 1rem;
}

/* FEATURED LISTS & OFFERINGS */
.feature-grid {
  gap: 24px;
  flex-wrap: wrap;
  align-items: stretch;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  background: #fff;
  border: 1.5px solid #43D35825;
}
.feature img {
  height: 36px;
  width: 36px;
  margin-bottom: 8px;
}

/* CTA BUTTONS */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(90deg,#EF476F 20%,#17A8E2 100%);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.18rem;
  padding: 14px 38px;
  border-radius: 30px;
  border: none;
  box-shadow: 0 6px 32px 0 #30616d2a;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  margin-top: 8px;
  margin-bottom: 16px;
  outline: none;
  text-decoration: none;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg,#17A8E2 10%,#EF476F 100%);
  box-shadow: 0 8px 32px 0 #17a8e222, 0 1.5px 8px 0 #43d35811;
  transform: scale(1.045) translateY(-2px) rotate(-1deg);
  color: #fff;
  text-decoration: none;
}

button, .mobile-menu-toggle, .mobile-menu-close {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* HEADER & NAVIGATION */
header {
  padding: 0;
  background: #fff;
  box-shadow: 0 1.5px 14px 0 #30616d18;
  position: sticky; top: 0; z-index: 90;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 7px 12px;
  border-radius: 12px;
  position: relative;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover,header nav a.active {
  background: var(--color-energetic2);
  color: #fff;
  text-decoration: none;
}
header img {
  height: 42px;
}

/* MOBILE BURGER MENU */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  color: var(--color-energetic2);
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
  padding: 6px 12px;
  margin-left: 18px;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: var(--color-energetic);
  background: #eee;
  border-radius: 8px;
}
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(.76,.02,.3,1);
  box-shadow: 0 2px 42px 0 #30616d33;
  z-index: 1400;
  display: flex;
  flex-direction: column;
  padding-top: 26px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 24px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-energetic2);
  cursor: pointer;
  z-index: 1502;
  transition: color 0.2s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--color-energetic);
  background: #f7f3eb;
  border-radius: 8px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0 auto;
  padding: 56px 24px 0 24px;
  width: 94vw;
  max-width: 390px;
  min-height: 70vh;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  padding: 13px 18px;
  border-radius: 10px;
  color: var(--color-primary);
  background: #f7f3eb;
  margin-bottom: 2px;
  font-weight: 700;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-energetic2);
  color: #fff;
  text-decoration: none;
}

/* BACKGROUND COLORS & ENERGETIC SECTIONS */
.main,
section,
.content-section {
  position: relative;
  z-index: 1;
}

section:nth-of-type(odd) {
  background: #fff;
}
section:nth-of-type(even) {
  background: var(--color-section-bg);
}

@media (max-width: 600px) {
  .container {
    padding: 0 7px;
  }
  h1 {
    font-size: 1.7rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  .section {
    padding: 18px 0 16px;
    margin-bottom: 32px;
  }
}

footer {
  background: #111822;
  color: #fff;
  padding: 36px 0 20px 0;
  margin-top: 34px;
  box-shadow: 0 -2px 22px 0 #30616d15;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
footer nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
footer nav a {
  color: var(--color-energetic);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  transition: color 0.18s;
}
footer nav a:hover,footer nav a:focus {
  color: var(--color-accent);
  text-decoration: underline;
}
footer img {
  height: 38px;
}
footer p {
  font-size: 0.97rem;
  color: #b1c5c9;
}

/* COOKIE CONSENT BANNER & MODAL */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20000;
  background: rgba(17,39,59,0.98);
  color: #fff;
  padding: 16px 24px;
  box-shadow: 0 -2px 30px #30616d33;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  border-radius: 18px 18px 0 0;
  animation: cookie-slide-up 0.55s cubic-bezier(.76,.02,.3,1);
  font-size: 1.06rem;
  max-width: 600px;
  margin: 0 auto;
  left: 0; right: 0;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 9px;
    font-size: 0.99rem;
    max-width: 100vw;
  }
}
@keyframes cookie-slide-up {
  0% { transform: translateY(140%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner button {
  min-width: 106px;
  padding: 8px 15px;
  border-radius: 16px;
  margin-right: 6px;
  font-family: inherit;
  font-weight: 700;
  border: none;
  background: var(--color-energetic);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.cookie-banner button.accept {
  background: var(--color-energetic2);
}
.cookie-banner button.reject {
  background: #222831;
  color: #fff;
}
.cookie-banner button.settings {
  background: var(--color-accent);
  color: #333;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  filter: brightness(1.1);
  outline: none;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(17,31,41,0.72);
  z-index: 20001;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fade-in-cookie-modal 0.23s;
}
@keyframes fade-in-cookie-modal {
  from { opacity:0; } to { opacity:1; }
}
.cookie-modal-content {
  background: #fff;
  color: #1B3C44;
  border-radius: 18px;
  padding: 32px 28px 24px 28px;
  width: 95vw;
  max-width: 430px;
  box-shadow: 0 4px 34px 0 #30616d55;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-content h3 {
  color: var(--color-accent-dark);
  text-align: left;
  margin-bottom: 8px;
  font-size: 1.25rem;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}
.cookie-modal-category input[type="checkbox"]:disabled {
  accent-color: var(--color-accent-dark);
  opacity: 0.5;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--color-primary-dark);
  cursor: pointer;
}
.cookie-modal-close:hover,.cookie-modal-close:focus {
  color: var(--color-accent-dark);
}

/* FORMS, CONTACT, MESSAGES */
input[type="text"], input[type="email"], textarea {
  font-family: 'Lato', Arial, sans-serif;
  padding: 12px 11px;
  border-radius: 12px;
  border: 1.5px solid var(--color-primary);
  font-size: 1rem;
  margin-bottom: 16px;
  width: 100%;
  outline: none;
  background: #f9fafb;
  transition: border 0.19s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: var(--color-accent);
}
label {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  margin-bottom: 7px;
  display: inline-block;
}

/* LISTS AND ICONS */
ul {
  padding-left: 24px;
  margin-bottom: 18px;
}
ol {
  padding-left: 26px;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 8px;
  line-height: 1.7;
}
li strong {
  color: var(--color-accent);
}

/* MISCELLANEOUS SPACING ENFORCEMENT */
.card-container > * { margin-bottom: 20px; }
.content-grid > * { margin-bottom: 20px; }
.section > * { margin-bottom: 20px; }

/* NO GRID SYSTEMS */
/* All layout uses flex - NO display:grid or columns */

/* RESPONSIVENESS */
@media (max-width: 768px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.13rem; }
  .feature-grid, .card-grid, .card-container, .content-grid { flex-direction: column; gap: 20px; }
  .content-wrapper, .text-section { padding-left: 0; padding-right: 0; }
  .card, .feature { min-width: 0; }
  .testimonial-card { padding: 14px 10px; }
}

/* ENERGETIC STYLE ACCENTS & MICRO-ANIMATIONS */
h1, h2, h3, h4, h5, h6 {
  position: relative;
}
h2::after {
  content: '';
  display: block;
  width: 54px;
  height: 5px;
  background: linear-gradient(90deg,#EF476F 10%,#17A8E2 100%);
  border-radius: 3px;
  margin-top: 7px;
  margin-bottom: 4px;
}
.cta-button::after {
  content: '\27A1';
  margin-left: 8px;
  font-size: 1.1em;
  transition: transform 0.2s;
}
.cta-button:hover::after {
  transform: translateX(5px);
}

/* Decorative absolute elements permitted only */
.section::before {
  content: '';
  position: absolute;
  top: 20px; left: -36px;
  width: 48px; height: 48px;
  background: linear-gradient(135deg,#17A8E2 70%,#EF476F 100%);
  opacity: 0.13;
  border-radius: 60% 70% 60% 90%;
  z-index: 0;
  pointer-events: none;
  display: none;
}
.section:nth-child(even)::before {
  background: linear-gradient(135deg,#EF476F 30%,#43D358 100%);
}
@media (min-width: 900px) {
  .section::before { display: block; }
}

/* Animate cards in */
.card, .feature, .testimonial-card {
  animation: card-pop-in 0.64s cubic-bezier(.72,.01,.31,1) both;
}
@keyframes card-pop-in {
  0% { opacity: 0; transform: translateY(24px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Focus highlight */
:focus-visible {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 2px;
}

/* HIDE JS-ONLY BANNERS INITIALLY */
.cookie-banner, .cookie-modal { display: none; }
.show-cookie-banner .cookie-banner { display: flex !important; }
.show-cookie-modal .cookie-modal { display: flex !important; }

/* SCROLLBAR THEMING */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: #EF476F44;
  border-radius: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-section-bg);
}

/* Hide visually-only, but keep accessible */
.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; white-space: nowrap;
}

/* ENERGIZE LINKS IN CONTENT */
.main a, .text-section a, .content-wrapper a:not(.cta-button) {
  color: var(--color-energetic2);
  text-decoration: underline;
  transition: color 0.19s;
}
.main a:hover, .text-section a:hover, .content-wrapper a:not(.cta-button):hover {
  color: var(--color-energetic);
}

/* Prevent overlapping */
* { min-width: 0; min-height: 0; }

/* Utility and final spacing corrections */
[hidden] { display: none !important; }

/* END Vibrant & Energetic Style CSS */
