/* ==== 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;
  background: linear-gradient(135deg, #D9E3DC 0%, #fff 100%);
  color: #234D47;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  letter-spacing: 0.004em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}

*, *:before, *:after {
  box-sizing: inherit;
}

/* ==== BRAND TYPOGRAPHY & BASE ELEMENTS ==== */
:root {
  --primary: #234D47;
  --secondary: #D9E3DC;
  --accent: #FFC857;
  --gradient: linear-gradient(90deg, #72A898 0%, #FFC857 100%);
  --border-radius: 14px;
  --shadow: 0 4px 16px rgba(35, 77, 71, 0.07), 0 1.5px 4px rgba(0,0,0,0.03);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

body, html {
  width: 100%;
  font-size: 16px;
  background-color: #f9fafb;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  margin-bottom: 16px;
  font-weight: 700;
  color: var(--primary);
}
h1 { font-size: 2.4rem; line-height: 1.18; margin-bottom: 24px; }
h2 { font-size: 1.8rem; line-height: 1.22; } 
h3 { font-size: 1.35rem; line-height: 1.27; }
h4 { font-size:1.1rem;  }

p,li,ul,ol,th,td {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #234D47;
  line-height: 1.7;
}

.subheadline {
  font-size: 1.23rem;
  color: #395E57;
  max-width: 630px;
  margin-bottom: 30px;
}
strong { font-weight: 700; }

/* ==== LAYOUT SECTIONS (SPACING & FLEXBOX) ==== */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  padding: 28px;
  border-radius: var(--border-radius);
  background: #fff;
  box-shadow: var(--shadow);
  flex: 1 1 300px;
  min-width: 270px;
  transition: box-shadow 0.25s cubic-bezier(.4,0,.2,1), transform 0.22s cubic-bezier(.4,0,.2,1);
}
.card:hover {
  box-shadow: 0 8px 24px rgba(35,77,71,0.13), 0 2px 8px rgba(0,0,0,0.04);
  transform: translateY(-3px) scale(1.015);
}
.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: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  transition: box-shadow 0.22s, transform 0.22s;
  border-left: 6px solid var(--accent);
  color: #234D47;
  max-width: 670px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px #FFC85722;
  transform: translateY(-3px) scale(1.015);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

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

.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-list article {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
  flex: 1 1 295px;
  min-width: 290px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.blog-list article:hover {
  box-shadow: 0 8px 32px #FFC85733;
  transform: translateY(-3px) scale(1.015);
}

.blog-categories {
  margin-top: 16px;
  font-size: 1rem;
  color: #395E57;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-list > div {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 24px;
  flex: 1 1 270px;
  min-width: 248px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 4px solid var(--accent);
  transition: box-shadow 0.2s;
}
.service-list > div:hover {
  box-shadow: 0 8px 32px #FFC85722;
}

/* ==== MAIN HEADER, NAVIGATION & MOBILE MENU ==== */
header {
  background: linear-gradient(87deg, var(--primary) 82%, var(--secondary) 100%);
  padding: 0;
  box-shadow: 0 2px 10px #234d470d;
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px 0;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
header nav a {
  color: #fff;
  font-family: var(--font-display);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
header nav a:not(.btn-primary):hover, .mobile-nav a:hover {
  background: var(--accent);
  color: var(--primary);
}
.btn-primary {
  background: var(--gradient);
  color: var(--primary);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  outline: none;
  padding: 9px 22px;
  box-shadow: 0 2px 8px #FFC85713;
  margin-left: 8px;
  cursor: pointer;
  transition: background 0.25s, color 0.2s, box-shadow 0.19s;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(87deg, #FFC857 22%, #72A898 100%);
  color: #234D47;
  box-shadow: 0 4px 16px #FFC85733;
}

.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--primary);
  font-size: 2.1rem;
  border-radius: 8px;
  border: none;
  padding: 4px 14px;
  cursor: pointer;
  transition: box-shadow .17s, background .17s;
  margin-left: 14px;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #fffbe5;
  color: var(--primary);
  box-shadow: 0 0 16px #FFC85740;
}

.mobile-menu {
  position: fixed;
  z-index: 1035;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35, 77, 71, .98);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(.77,0,.175,1);
  will-change: transform;
  overflow-y: auto;
  padding-top: 32px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  color: #fff;
  background: none;
  font-size: 2.1rem;
  border: none;
  align-self: flex-end;
  margin-right: 22px;
  margin-bottom: 18px;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 1101;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding-left: 28px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.2rem;
  font-family: var(--font-display);
  padding: 8px 0;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}

@media (max-width: 991px) {
  .header-main nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 991px) {
  body.mobile-menu-open {
    overflow: hidden;
  }
}
@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ==== TABLE STYLE ==== */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-top: 14px;
  margin-bottom: 30px;
  overflow: hidden;
}
th, td {
  padding: 16px 12px;
  border-bottom: 1px solid #e1ece6;
  text-align: left;
}
th {
  font-family: var(--font-display);
  font-size: 1.1rem;
  background: var(--secondary);
  color: var(--primary);
  font-weight: 600;
}
tr:last-child td {
  border-bottom: none;
}
table caption {
  font-size: 1.18rem;
  color: #395E57;
  margin-bottom: 8px;
  font-family: var(--font-display);
}

/* ==== FOOTER ==== */
footer {
  background: linear-gradient(84deg, var(--secondary) 85%, #f9fafb 100%);
  border-top: 2.5px solid var(--primary);
  padding: 0;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
  padding: 32px 0 24px 0;
  font-size: 1rem;
}
.footer-main nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-main nav a {
  color: var(--primary);
  font-size: 1rem;
  transition: color 0.17s;
}
.footer-main nav a:hover { color: var(--accent); }
.footer-main img { max-height: 45px; }

/* ==== FORMS & INPUTS ==== */
input[type="email"], input[type="text"], input[type="password"], textarea  {
  border: 1.4px solid #ABC5B8;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 14px;
  font-family: var(--font-body);
  transition: border-color 0.17s;
  background: #f8fbf7;
}
input[type="email"]:focus, input[type="text"]:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
form button[type="submit"],
form input[type="submit"] {
  margin-top: 4px;
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: linear-gradient(90deg, #fff 30%, #D9E3DC 100%);
  color: #234D47;
  box-shadow: 0 -4px 20px #234d4710;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1202;
  padding: 18px 12px;
  flex-wrap: wrap;
  gap: 14px;
  transition: bottom 0.28s cubic-bezier(.66,.02,.22,1);
  font-size: 1rem;
  font-family: var(--font-body);
  animation: cbanner-in 0.5s ease;
}
@keyframes cbanner-in {
  from { bottom: -120px; opacity: 0; } 
  to   { bottom: 0; opacity: 1; }
}
.cookie-banner p {
  margin-bottom: 0;
  margin-right: 12px;
  flex: 1 1 290px;
}
.cookie-banner .cookie-btn {
  border: none;
  border-radius: 7px;
  padding: 8px 18px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-left: 4px;
  cursor: pointer;
  transition: background 0.19s, color 0.19s, box-shadow 0.16s;
  box-shadow: 0 2px 8px #FFC85713;
}
.cookie-banner .accept {
  background: var(--accent);
  color: var(--primary);
}
.cookie-banner .accept:hover {
  background: #FFD475;
}
.cookie-banner .reject {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--accent);
}
.cookie-banner .reject:hover {
  background: #FFF4DE;
}
.cookie-banner .settings {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 10px #234d471c;
}
.cookie-banner .settings:hover {
  background: #EFF1EF;
}

/* ==== COOKIE PREFERENCES MODAL ==== */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 1205;
  left:0; top:0;
  width:100vw; height:100vh;
  background: rgba(35,77,71,0.64);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cmodal-fade .32s ease;
}
@keyframes cmodal-fade {
 from { background: rgba(35,77,71,.01); opacity: 0;} to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 410px;
  width: 90vw;
  padding: 34px 32px 24px 32px;
  box-shadow: 0 8px 48px #FFC85732;
  color: #234D47;
  font-size: 1rem;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cmodal-in .27s cubic-bezier(.72,0,.18,1);
}
@keyframes cmodal-in {
  from { transform: translateY(80px) scale(.92); opacity: 0; } 
  to   { transform: translateY(0) scale(1); opacity:1; }
}
.cookie-modal h2 {
  font-size: 1.23rem;
  margin-bottom: 10px;
}
.cookie-switches {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 9px 0 18px 0;
}
.cookie-switch {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-switch label {
  flex: 1 1 auto;
  font-size: 1rem;
}
.switcher {
  position: relative;
  width: 44px;
  height: 24px;
  background: #e8ebeb;
  border-radius: 12px;
  transition: background 0.2s;
}
.switcher input[type="checkbox"] {
  opacity: 0;
  width: 44px;
  height: 24px;
  position: absolute;
  left:0; top:0;
  cursor: pointer;
}
.switcher::before {
  content: '';
  display: block;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--secondary);
  position: absolute;
  top: 1.7px;
  left: 1.6px;
  transition: left 0.18s, background 0.2s;
}
.switcher input[type="checkbox"]:checked + .switcher::before {
  left: 21px;
  background: var(--accent);
}
.switcher input[type="checkbox"]:checked ~ .switcher {
  background: var(--accent);
}
.switcher input[type="checkbox"]:disabled + .switcher {
  background: #ddd;
  opacity: 0.7;
}
.cookie-modal-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-modal-buttons button {
  border: none;
  border-radius: 7px;
  padding: 8px 18px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1.5px 10px #234D4715;
  transition: background 0.18s, color 0.18s;
}
.cookie-modal-buttons .accept {
  background: var(--accent);
  color: var(--primary);
}
.cookie-modal-buttons .reject {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--accent);
}
.cookie-modal-buttons .accept:hover {
  background: #FFD475;
}
.cookie-modal-buttons .reject:hover {
  background: #FFF4DE;
}

/* ==== RESPONSIVE DESIGN & MOBILE-FIRST LAYOUTS ==== */
@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.28rem; }
  h3 { font-size: 1.07rem; }
  header .container {
    padding: 0 10px;
  }
  .section, section {
    padding: 32px 8px;
    margin-bottom: 36px;
  }
  .footer-main {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 24px 0 14px 0;
  }
  .card-container, .content-grid, .blog-list, .service-list {
    flex-direction: column !important;
    gap: 18px;
  }
  .testimonial-card, .card, .service-list > div, .blog-list article {
    min-width: 0;
    padding: 18px;
  }
  .content-wrapper, .text-section {
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 18px;
  }
}

/* ==== MISCELLANEOUS (LISTS, BLOCKQUOTES, ETC) ==== */
ul, ol {
  padding-left: 28px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 8px;
  position: relative;
}
ul li:before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 12px;
  position: relative;
  top: -2px;
}

ol li:before {
  display: none;
}

blockquote {
  border-left: 5px solid var(--accent);
  background: #fffbe9;
  color: #395E57;
  padding: 15px 20px;
  font-size: 1.15rem;
  margin-bottom: 24px;
  font-family: var(--font-display);
  border-radius: 8px;
}

/* ==== ACCESSIBILITY ==== */
:focus {
  outline: 2px solid var(--accent) !important;
  outline-offset: 1.5px;
}
::-webkit-input-placeholder { color: #818E88; opacity:1; }
::-moz-placeholder { color: #818E88; opacity:1; }
:-ms-input-placeholder { color: #818E88; opacity:1; }
::placeholder { color: #818E88; opacity:1; }

/* ==== Z-INDEX STACKING ==== */
header { z-index: 1000; position: relative; }
.mobile-menu { z-index: 1035; }
.cookie-banner { z-index: 1202; }
.cookie-modal-backdrop { z-index: 1205; }

/* ==== MICRO-INTERACTIONS & TRANSITIONS ==== */
a, .btn-primary, .card, .service-list > div, .testimonial-card, .blog-list article, input, button {
  transition: all 0.18s cubic-bezier(.4,0,.2,1);
}

/* ==== UTILITIES ==== */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ==== PRINTING ==== */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  .section, section, .container { box-shadow: none !important; background: #fff !important; }
}
