/* --- CSS RESET & BASE STYLES --- */
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: inherit; vertical-align: baseline; box-sizing: border-box;
}
html { box-sizing: border-box; font-size: 100%; }
*, *:before, *:after { box-sizing: inherit; }
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #254B62;
  line-height: 1.6;
  background: #DEE6EA;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a { color: #BF4C00; text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: #E97736; outline: none; }
strong { font-weight: bold; }
em { font-style: italic; }

/* --- ARTISTIC TYPOGRAPHY SCALE & HEADERS --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  color: #254B62;
  margin-bottom: 12px;
  letter-spacing: -.5px;
}
h1 { font-size: 2.625rem; /* 42px */ margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; /* 32px */ }
h3 { font-size: 1.5rem; margin-bottom: 14px; /* 24px */ }
h4 { font-size: 1.125rem; margin-bottom: 12px; /* 18px */ }
h5, h6 { font-size: 1rem; margin-bottom: 8px; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.125rem; }
}

p, ul, ol {
  font-size: 1rem;
  margin-bottom: 16px;
}
ul, ol { padding-left: 24px; }
li { margin-bottom: 12px; }

.subheadline {
  font-size: 1.25rem;
  color: #254B62;
  font-weight: 400;
}

.text-section {
  display: flex; flex-direction: column;
  gap: 16px;
}


/* --- LAYOUT STRUCTURE CLASSES (MANDATORY FLEXBOX) --- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: 30px;
  box-shadow: 0 4px 28px 0 rgba(45, 73, 100, 0.08), 0 0.5px 2px #DEE6EA;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.feature-grid, .habit-grid, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid > div, .habit-grid > div {
  background: #FDF6ED;
  border-radius: 24px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(45, 73, 100, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px 24px 20px;
  transition: box-shadow .25s;
}
.feature-grid > div:hover, .habit-grid > div:hover {
  box-shadow: 0 4px 24px rgba(229, 119, 54, 0.16);
}

@media (max-width: 900px) {
  .feature-grid, .habit-grid, .service-list {
    flex-direction: column;
    gap: 20px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFF;
  border-radius: 24px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 2px 8px rgba(45, 73, 100, 0.08);
  padding: 24px 18px;
  transition: box-shadow .2s;
}
.card:hover {
  box-shadow: 0 6px 28px rgba(229,119,54,0.15);
}
.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: #F9FAFB;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px 0 rgba(37, 75, 98, 0.08);
  flex-direction: column;
  align-items: flex-start;
}
.testimonial-card p {
  font-size: 1.15rem;
  color: #254B62;
  letter-spacing: -0.1px;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-weight: 600;
  color: #E97736;
}
.testimonial-card .stars {
  margin-top: 6px;
  display: flex;
  gap: 4px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.success-metrics {
  background: #FDF6ED;
  border-radius: 20px;
  padding: 24px 20px;
  margin-top: 16px;
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(100deg, #DEE6EA 90%, #FFE3CA 100%);
  padding: 60px 0 40px 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 650px;
  gap: 18px;
}
@media (max-width: 768px) {
  .hero {
    padding: 36px 0 20px 0;
  }
}

/* --- BUTTONS / CTA --- */
.cta, .cta.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 32px;
  font-size: 1.15rem;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: bold;
  letter-spacing: .1em;
  outline: none;
  border: none;
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .2s;
  background: #E97736;
  color: #fff;
  box-shadow: 0 1px 8px rgba(229, 119, 54, 0.10);
  margin-top: 12px;
  text-shadow: 0 1px 2px rgba(37,75,98,0.10);
}
.cta.primary { background: #254B62; color:#fff; box-shadow: 0 2px 24px 0px rgba(37,75,98,0.12); }
.cta:hover, .cta:focus {
  background: #BF4C00;
  color: #fff;
  box-shadow: 0 4px 22px #E9773633;
  transform: translateY(-2px) scale(1.02);
}
/* Artistic cta effect */
.cta:active { transform: scale(.98); }

/* --- NAVIGATION (DESKTOP & MOBILE) --- */
header { background: #fff; box-shadow: 0 4px 18px rgba(37, 75, 98, 0.07); position: relative; z-index: 21; }
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 0;
  flex-wrap: wrap;
}
nav.main-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #254B62;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 4px 10px;
  border-radius: 16px;
  transition: background .18s, color .20s;
}
nav.main-nav a:hover, nav.main-nav a:focus {
  background: #E97736;
  color: #fff;
}
nav.main-nav a.cta.primary {
  margin-left: auto;
  background: #254B62;
  color: #fff;
  box-shadow: 0 0.5px 3px #DEE6EA;
}
nav.main-nav img {
  height: 38px; margin-right: 16px;
}

.mobile-menu-toggle, .mobile-menu-close {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #254B62;
  cursor: pointer;
  z-index: 31;
}
.mobile-menu {
  display: none;
}

@media (max-width: 950px) {
  nav.main-nav {
    gap: 12px;
    flex-wrap: wrap;
  }
}

@media (max-width: 800px) {
  nav.main-nav a.cta.primary {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  nav.main-nav { display: none; }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 12px;
    top: 22px;
    z-index: 32;
    width: 38px;
    height: 38px;
    padding: 0;
    background: #E97736;
    color: #fff;
    border-radius: 12px;
    border: none;
    line-height: 1;
    transition: background .18s, color .18s;
  }
  .mobile-menu-toggle:active { background: #BF4C00; }
  .mobile-menu {
    display: flex;
    position: fixed;
    top: 0; right: 0; left: 0; bottom: 0;
    background: rgba(37, 75, 98, 0.94);
    z-index: 60;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.65,.05,.36,1);
    padding-top: 0;
  }
  .mobile-menu.active {
    transform: translateX(0); display: flex;
    animation: slideInMenu .35s cubic-bezier(.11,.5,.58,1);
  }
  @keyframes slideInMenu {
    from { transform: translateX(100%); opacity: 0.3; }
    to { transform: translateX(0); opacity: 1; }
  }
  .mobile-menu-close {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
    background: #E97736;
    color: #fff;
    border-radius: 50%;
    border: none;
    padding: 0 12px;
    font-size: 2rem;
    z-index: 65;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(229, 119, 54, .16);
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 95%;
    margin: 68px auto 0 auto;
    background: #254B62;
    border-radius: 28px;
    padding: 36px 24px 24px 24px;
    box-shadow: 0 8px 24px rgba(37,75,98,0.20);
    z-index: 61;
  }
  .mobile-nav a {
    color: #fff;
    font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
    font-size: 1.18rem;
    font-weight: 600;
    padding: 12px 0;
    border-radius: 10px;
    transition: background .18s, color .15s;
    text-align: left;
    width: 100%;
    display: block;
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    background: #E97736;
    color: #fff;
  }
}

/* --- FOOTER --- */
footer {
  background: #DEE6EA;
  padding: 28px 0 18px 0;
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
footer img {
  height: 40px;
  margin-bottom: 6px;
}
.footer-nav {
  display: flex;
  gap: 22px;
}
.footer-nav a {
  font-size: .97rem;
  color: #254B62;
  opacity: .76;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  transition: color .2s, opacity .18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #E97736;
  opacity: 1;
}
footer p {
  font-size: 0.97rem;
  color: #254B62;
  opacity: .58;
  margin-bottom: 0;
}

/* --- FORM ELEMENTS --- */
input, select, textarea {
  font-family: 'Open Sans', Arial, sans-serif;
  border-radius: 8px;
  border: 1.2px solid #DEE6EA;
  padding: 14px 12px;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 16px;
  background: #FFF;
  transition: border .15s;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: #E97736;
}
label {
  font-weight: 600;
  color: #254B62;
}

/* --- MAP SNIPPET --- */
.map-snippet {
  background: #FDF6ED;
  border-radius: 16px;
  padding: 14px 18px;
  color: #254B62;
}

/* --- ARTISTIC ACCENTS & DESIGN ELEMENTS --- */
section, .section {
  position: relative;
}
section:before {
  content: ""; position: absolute; z-index: 0;
  left: 18px; top: 14px;
  width: 62px; height: 62px;
  background: rgba(229,119,54,0.09);
  border-radius: 50%;
  filter: blur(3.5px); pointer-events: none;
  display: block;
}
@media (max-width: 768px) {
  section:before { display: none; }
}
/* Artistic underline for h2 */
h2 {
  position: relative;
  display: inline-block;
}
h2:after {
  content: "";
  display: block;
  height: 4px;
  width: 42px;
  background: #E97736;
  border-radius: 4px;
  margin-top: 4px;
  position: relative;
  left: 0;
}

/* --- SPACING FOR FLEX SECTIONS --- */
.section,
.container, .content-wrapper,
.feature-grid, .habit-grid, .card-container, .card,
.content-grid, .testimonial-card, .feature-item, .text-section, ul, ol {
  margin-bottom: 0; /* handled by parent */
}
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* --- ICONS & ARTISTIC LISTS --- */
ul li img {
  width: 1.2em; height: 1.2em; vertical-align: middle; margin-right: 10px;
}

/* --- RESPONSIVE LAYOUTS (MOBILE FIRST) --- */
@media (max-width: 900px) {
  .content-wrapper, .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 768px) {
  .section {padding:24px 6px; margin-bottom: 38px; }
  .container { padding: 0 6px; }
  .feature-grid,.habit-grid,.card-container,.content-grid { flex-direction: column; gap: 16px; }
  .content-wrapper { gap: 16px; }
  .testimonial-card, .card {
    padding: 16px 10px;
  }
  .text-image-section { flex-direction: column; gap: 18px; }
}

/* --- TRANSITIONS, SHADOWS, EFFECTS --- */
.card, .feature-grid > div, .testimonial-card {
  transition: box-shadow .20s, transform .15s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover {
  box-shadow: 0 6px 28px rgba(229,119,54,0.18);
  transform: translateY(-2.5px) scale(1.016);
}


/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #254B62;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 -3px 24px rgba(37,75,98,0.13);
  z-index: 120;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  animation: bannerIn .5s cubic-bezier(.4,.4,.12,1);
}
@keyframes bannerIn {
  from { transform: translateY(80px); opacity: 0.25; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p { color: #fff; margin: 0; font-size: 1rem; }
.cookie-banner .cookie-btns {
  display: flex;
  gap: 18px;
}
.cookie-banner button {
  padding: 10px 22px;
  border-radius: 24px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  margin-right: 0;
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .18s;
}
.cookie-banner .cookie-accept { background: #E97736; color: #fff;}
.cookie-banner .cookie-accept:hover { background: #BF4C00;}
.cookie-banner .cookie-reject { background: #DEE6EA; color: #254B62;}
.cookie-banner .cookie-reject:hover { background: #FFEEDE;}
.cookie-banner .cookie-settings { background: transparent; color: #fff; border: 1.5px solid #fff;}
.cookie-banner .cookie-settings:hover { background: #fff; color: #254B62;}

@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap:14px; padding: 18px 8px; font-size: .98rem;}
  .cookie-banner .cookie-btns { gap: 10px; }
}

/* --- COOKIE BANNER MODAL --- */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(37,75,98,0.70);
  z-index: 130;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal.active {
  display: flex;
  animation: modalIn .3s cubic-bezier(.5,0,.12,1);
}
@keyframes modalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  color: #254B62;
  border-radius: 24px;
  max-width: 410px;
  width: 94%;
  padding: 34px 20px 22px 20px;
  box-shadow: 0 8px 42px rgba(229,119,54,0.22);
  font-size: 1rem;
  position: relative;
  display: flex; flex-direction: column;
  gap: 18px;
}
.cookie-modal h2 {
  font-size: 1.38rem;
  margin-bottom: 4px;
  color: #E97736;
}
.cookie-modal .category-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 10px 0;
}
.cookie-modal label.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}
.cookie-modal label.switch input {
  opacity: 0; width: 0; height: 0;
}
.cookie-modal .slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #DEE6EA;
  border-radius: 25px;
  transition: .2s;
}
.cookie-modal label.switch input:checked + .slider {
  background: #E97736;
}
.cookie-modal .slider:before {
  position: absolute;
  content: "";
  height: 16px; width: 16px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%; transition: .2s;
}
.cookie-modal label.switch input:checked + .slider:before {
  transform: translateX(16px);
}
.cookie-modal .cookie-modal-actions {
  display: flex; gap: 16px; justify-content: flex-end; margin-top: 10px;
}
.cookie-modal .cookie-save {
  background: #254B62;
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 10px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  transition: background .18s;
  cursor: pointer;
}
.cookie-modal .cookie-save:hover { background: #E97736; }
.cookie-modal .cookie-cancel {
  background: #DEE6EA;
  color: #BF4C00;
  border: none;
  border-radius: 22px;
  padding: 10px 22px;
  font-weight: bold;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background .18s, color .16s;
  cursor: pointer;
}
.cookie-modal .cookie-cancel:hover { background: #FFEEDE; color: #E97736; }
.cookie-modal .close-btn {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: #BF4C00; font-size: 1.5rem; cursor: pointer;
  font-family: inherit;
}


/* --- UNIQUE ARTISTIC ELEMENTS (Brand Personality) --- */
/* playful accent dots (mobile hide) */
@media (min-width: 950px) {
  header:after {
    content: "";
    position: absolute;
    right: 6vw; top: 0;
    width: 38px; height: 38px;
    background: #FFE3CA;
    border-radius: 50%; filter: blur(2.5px);
    z-index: 2;
    opacity: 0.46;
  }
}

/* --- VISUAL HIERARCHY AND SHADOWS --- */
.card, .feature-grid > div, .habit-grid > div, .testimonial-card {
  box-shadow: 0 2px 12px rgba(37,75,98,0.04);
}

/* --- MICRO-INTERACTIONS --- */
.cta, .footer-nav a, .mobile-nav a, .cookie-banner button, .cookie-modal .cookie-save, .cookie-modal .cookie-cancel {
  transition: background .15s, color .12s, transform .14s, box-shadow .18s;
}

.cta:focus, .footer-nav a:focus, .mobile-nav a:focus, .cookie-banner button:focus, .cookie-modal button:focus {
  outline: 2px solid #E97736; outline-offset: 1px;
}

/* --- Z-INDEX LAYERING --- */
header { z-index: 21; }
.mobile-menu { z-index: 60; }
.cookie-banner { z-index: 120; }
.cookie-modal { z-index: 130; }

/* --- ENSURE VISIBILITY/CONTRAST IN TESTIMONIALS --- */
.testimonial-card {
  background: #FFF;
  color: #254B62;
  border: 1.5px solid #DEE6EA;
  box-shadow: 0 6px 22px #DEE6EA44;
}
.testimonial-card p, .testimonial-card span {
  color: #254B62;
}

/* --- FABRICATED ART FONT EFFECT for HERO HEADLINE --- */
.hero h1, main h1 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 2.7rem;
  color: #E97736;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.04;
  text-transform: none;
  text-shadow:
    -1.2px 2.2px 16px #FFE3CA55,
    0 1px 2px #DEE6EAaa;
}
.hero h1 span, main h1 span {
  color: #254B62;
}
@media (max-width: 768px) {
  .hero h1, main h1 { font-size: 2.1rem; }
}


/* --- CUSTOM SCROLLBARS --- */
::-webkit-scrollbar { width: 9px; background: #DEE6EA; }
::-webkit-scrollbar-thumb { background: #E97736; border-radius: 6px; }
::-webkit-scrollbar-track { background: #DEE6EA; }

/* --- OTHERS --- */
hr {
  border: none;
  height: 1.5px;
  background: #DEE6EA;
  margin: 24px 0;
}

/* --- PRINT DEBUG (hide menu/modal on print) --- */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal { display: none !important; }
  header, footer { box-shadow:none; }
}
