/* =========================================================
   CSS RESET & NORMALIZE (MOBILE-FIRST)
========================================================= */
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;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.55;
  background: #f6f8fa;
  color: #263238;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: #18596a;
  text-decoration: none;
  transition: color 0.18s ease-in;
}
a:hover, a:focus {
  color: #92722a;
  outline: 0;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 8px;
}

/* ================================================
   COLORS (Brand palette)
================================================== */
:root {
  --color-primary: #18596a;
  --color-secondary: #f2e8d5;
  --color-accent: #92722a;
  --color-bg: #f6f8fa;
  --color-white: #fff;
  --color-dark: #263238;
  --color-gray: #5c6c7b;
  --color-shadow: rgba(24,89,106, 0.08);
  --color-card-bg: #ffffff;
  --color-footer-bg: #153a49;
  --color-footer-text: #e2e5ed;
  --color-input-bg: #edf2f7;
}

/* ================================================
   TYPOGRAPHY
================================================== */
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: var(--color-dark);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  line-height: 1.18;
}
h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.05rem;
  font-weight: 500;
}
p, ul, ol, blockquote {
  color: var(--color-gray);
  font-size: 1rem;
}
strong {
  font-weight: 700;
  color: var(--color-dark);
}
blockquote {
  font-style: italic;
  color: var(--color-primary);
  background: #eaf4f7;
  border-left: 5px solid var(--color-accent);
  padding: 16px 24px;
  margin-bottom: 8px;
  border-radius: 8px;
}

/* ================================================
   CONTAINER AND LAYOUT STRUCTURE
================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* =====================
   SECTIONS
===================== */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.hero-section {
  background: linear-gradient(135deg, #f2e8d5 65%, #eaf4f7 100%);
  border-radius: 0 0 36px 36px;
  min-height: 270px;
  position: relative;
  margin-bottom: 48px;
  box-shadow: 0 2px 20px 0 var(--color-shadow);
}
.hero-section .content-wrapper {
  align-items: flex-start;
  min-height: 180px;
}
.hero-section h1 {
  color: var(--color-primary);
}

/* Features grid (Index) */
.feature-grid, .service-grid, .team-member-list, .article-list, .event-calendar {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.feature-item, .service-item, .team-member, .event-item, .article-list article {
  background: var(--color-card-bg);
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 var(--color-shadow);
  padding: 28px 24px;
  flex: 1 1 280px;
  min-width: 250px;
  max-width: 375px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  transition: box-shadow 0.2s;
  border: 1px solid #e5e9ef;
}
.feature-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 5px;
}
.feature-item:hover, .service-item:hover, .team-member:hover, .event-item:hover, .article-list article:hover {
  box-shadow: 0 6px 24px 0 var(--color-shadow);
  border-color: var(--color-accent);
}

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

/* =====================
   BUTTONS & CTA
======================= */
.cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 32px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.10rem;
  font-weight: 600;
  border-radius: 32px;
  border: none;
  box-shadow: 0 2px 12px 0 var(--color-shadow);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.14s;
  outline: none;
  margin-top: 8px;
  letter-spacing: 0.01em;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 20px 0 var(--color-shadow);
}

/* ============
   MAIN NAV
============== */
header {
  background: var(--color-white);
  box-shadow: 0 2px 12px 0 rgba(24,89,106,0.06);
  padding: 0;
  position: relative;
  z-index: 1001;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 16px;
}
.logo img {
  height: 56px;
}
.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
  position: relative;
  transition: color 0.16s;
  padding: 4px 8px;
  border-radius: 4px;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 20px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 10px;
  }
}

/* Hide nav, show burger on mobile */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 18px;
  z-index: 1501;
  width: 46px;
  height: 46px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  font-size: 1.65rem;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 var(--color-shadow);
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-accent);
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24,89,106,0.95);
  z-index: 1600;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.7,.2,.4,1.2);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: var(--color-white);
  font-size: 2.1rem;
  margin: 24px 0 14px 24px;
  cursor: pointer;
  align-self: flex-start;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 40px;
  margin-left: 10px;
}
.mobile-nav a {
  color: var(--color-white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  padding: 12px 6px;
  transition: color .17s, background .14s;
  border-radius: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  background: rgba(255,255,255,0.07);
}

/* =====================
   CARD/FLEX CONTAINERS
===================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-card-bg);
  box-shadow: 0 2px 12px 0 var(--color-shadow);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid #e5e9ef;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 30px 0 var(--color-shadow);
  border-color: var(--color-accent);
}

/* Content grids & FAQ/Article lists */
.content-grid, .article-list, .downloadable-guides ul, .faq {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.article-list article {
  background: var(--color-card-bg);
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 var(--color-shadow);
  padding: 22px;
  flex: 1 1 260px;
  min-width: 230px;
  max-width: 350px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, border-color 0.2s;
  border: 1px solid #e5e9ef;
}
.faq {
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.faq-item {
  background: #f1f6fa;
  border-left: 4px solid var(--color-primary);
  border-radius: 6px;
  padding: 14px 18px;
}

/* ========================
  TESTIMONIALS
========================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 6px 16px 0 var(--color-shadow);
  margin-bottom: 28px;
  border-left: 5px solid var(--color-primary);
  color: var(--color-dark);
  font-size: 1.1rem;
  transition: box-shadow 0.22s;
}
.testimonial-card blockquote {
  background: none;
  padding: 0 18px 0 0;
  border-left: none;
  margin-bottom: 0;
  color: var(--color-primary);
  font-size: 1.11rem;
}
.testimonial-card span {
  font-style: normal;
  color: var(--color-accent);
  font-weight: 500;
  font-size: 0.97rem;
}
.testimonial-card:hover {
  box-shadow: 0 12px 36px 0 var(--color-shadow);
}

/* =====================
   TEAM SECTION
===================== */
.team-member-list {
  gap: 24px;
}
.team-member {
  min-width: 250px;
  max-width: 375px;
}

/* ===========================
   SECTION/CONTENT SPACING
============================= */
.section, section, .content-wrapper {
  margin-bottom: 60px;
}
.card-container, .content-grid, .feature-grid, .service-grid, .team-member-list, .article-list, .event-calendar {
  gap: 24px;
}
.card, .feature-item, .service-item, .team-member, .event-item, .article-list article {
  margin-bottom: 20px;
}
.text-image-section {
  gap: 30px;
}
.testimonial-card {
  gap: 20px;
  padding: 20px;
}
.feature-item {
  gap: 15px;
}

/* =====================
   ADDRESS & CONTACT BLOCKS
======================== */
.address-block, .email-block, .phone-hours-block {
  margin-bottom: 20px;
  background: #f9fafb;
  padding: 16px 18px;
  border-radius: 10px;
  border-left: 4px solid var(--color-primary);
  box-shadow: 0 1px 7px 0 rgba(24,89,106,0.04);
}
.address-block strong, .email-block strong, .phone-hours-block strong {
  color: var(--color-primary);
  margin-bottom: 7px;
  display: block;
}

/* ===========================
   FOOTER
=========================== */
footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 32px 0 18px 0;
  box-shadow: 0 -2px 16px 0 var(--color-shadow);
  font-size: 0.97rem;
}
footer .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
.logo-footer img {
  height: 38px;
  margin-right: 22px;
}
.footer-nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
.footer-nav a {
  color: var(--color-footer-text);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
}
.footer-contact p {
  color: var(--color-footer-text);
  margin-bottom: 4px;
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

/* =====================
   DOWNLOADABLE GUIDES
======================= */
.downloadable-guides ul {
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10px;
  margin-left: 0;
}
.downloadable-guides li {
  margin-bottom: 8px;
  list-style: none;
}
.downloadable-guides a {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: underline;
}
.downloadable-guides a:hover, .downloadable-guides a:focus {
  color: var(--color-accent);
  text-decoration: none;
}

/* ==================
   FORM ELEMENTS (if appears)
=================== */
input, textarea, select, button {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  border-radius: 7px;
  border: 1px solid #c8d3dc;
  padding: 10px 14px;
  background: var(--color-input-bg);
  color: var(--color-dark);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-primary);
}

/* =====================
   ANIMATIONS & EFFECTS
======================= */
.card, .feature-item, .service-item, .team-member, .event-item, .article-list article {
  transition: box-shadow 0.19s, transform 0.12s;
}
.card:hover, .feature-item:hover, .service-item:hover, .team-member:hover, .event-item:hover, .article-list article:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 10px 30px 0 var(--color-shadow);
}

/* ==========================
   COOKIE CONSENT BANNER
============================ */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 3100;
  background: var(--color-card-bg);
  box-shadow: 0 -2px 14px 0 var(--color-shadow);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  border-top: 3px solid var(--color-accent);
  transition: transform 0.36s cubic-bezier(.37,.81,.46,1.17), opacity 0.22s;
  opacity: 1;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-text {
  font-size: 1.06rem;
  color: var(--color-dark);
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.cookie-banner button, .cookie-banner .settings-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border-radius: 30px;
  padding: 10px 26px;
  border: none;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 1rem;
  transition: background 0.19s, color 0.16s;
}
.cookie-banner .cookie-btns .reject {
  background: var(--color-accent);
  color: var(--color-white);
}
.cookie-banner .settings-btn {
  background: #ecf2f7;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.cookie-banner button:hover, .cookie-banner button:focus, .cookie-banner .settings-btn:hover, .cookie-banner .settings-btn:focus {
  background: var(--color-accent);
  color: var(--color-white);
}

/* =====================
   COOKIE SETTINGS MODAL
======================= */
.cookie-modal {
  position: fixed;
  z-index: 3210;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(24,89,106, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s;
}
.cookie-modal.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-inner {
  background: var(--color-card-bg);
  border-radius: 12px;
  padding: 38px 28px 28px 28px;
  min-width: 370px;
  box-shadow: 0 8px 42px 0 var(--color-shadow);
  color: var(--color-dark);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal-inner h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.14rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.cookie-modal-close {
  position: absolute;
  top: 20px;
  right: 22px;
  background: transparent;
  border: none;
  font-size: 1.7rem;
  color: var(--color-primary);
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: var(--color-accent);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category label {
  font-weight: 500;
  color: var(--color-primary);
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
  margin-right: 2px;
}
.cookie-category input[disabled] {
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 12px;
}
.cookie-modal-actions button {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 10px 24px;
  border-radius: 22px;
  border: none;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-primary);
  transition: background 0.18s;
  cursor: pointer;
}
.cookie-modal-actions button.secondary {
  background: var(--color-accent);
}
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus {
  background: var(--color-accent);
}

/* =====================================
   RESPONSIVE ADJUSTMENTS (Mobile first)
======================================= */
@media (max-width: 1150px) {
  .feature-grid, .service-grid, .team-member-list, .event-calendar, .card-container, .article-list {
    gap: 16px;
  }
  .feature-item, .service-item, .team-member, .event-item, .article-list article {
    min-width: 47%;
    max-width: 100%;
  }
}
@media (max-width: 920px) {
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  h1 {
    font-size: 1.75rem;
    margin-bottom: 13px;
  }
  h2 {
    font-size: 1.18rem;
  }
  .hero-section, section, .section {
    padding: 28px 0 0 0;
    margin-bottom: 34px;
    border-radius: 0 0 22px 22px;
  }
  .feature-grid, .service-grid, .team-member-list, .event-calendar, .card-container, .article-list {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .feature-item, .service-item, .team-member, .event-item, .article-list article {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 7px;
    align-items: flex-start;
  }
  .footer-contact p {
    font-size: 15px;
    margin-bottom: 3px;
  }
  .hero-section .content-wrapper {
    min-height: 100px;
    gap: 12px;
  }
  .cookie-modal-inner {
    min-width: 88vw;
    max-width: 97vw;
    padding: 22px 9vw 18px 9vw;
  }
}
@media (max-width: 530px) {
  .container {
    padding: 0 2vw;
  }
  .cookie-modal-inner {
    min-width: unset;
    padding: 18px 2vw 12px 2vw;
  }
}

/* =====================
   MISC
==================== */
::-webkit-input-placeholder {color: #a8b3bb;}
::-moz-placeholder {color: #a8b3bb;}
:-ms-input-placeholder {color: #a8b3bb;}
::placeholder {color: #a8b3bb;}

[tabindex]:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}


/* ================
   Z-INDEX CONTROL
================= */
header {z-index:1001;}
.mobile-menu {z-index:1600;}
.cookie-modal {z-index:3210;}
.cookie-banner {z-index:3100;}

/* End CSS */
