/* ================================================== 
   CSS RESET & NORMALIZATION
================================================== */
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F3EFE8;
  color: #204D63;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  background: none;
  color: #204D63;
  text-decoration: none;
  transition: color 0.2s;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  border: none;
}
button {
  background: none;
  cursor: pointer;
}
ul, ol {
  list-style: none;
}
strong, b {
  font-weight: 700;
}

/* ================================================== 
   COLOR VARIABLES & BRAND
================================================== */
:root {
  --primary: #204D63;
  --secondary: #F3EFE8;
  --secondary-alt: #FFFFFF;
  --accent: #A3792A;
  --accent-light: #C7A154;
  --text: #204D63;
  --text-light: #50647b;
  --text-dark: #162534;
  --border: #DFE3E8;
  --shadow-dark: rgba(32, 77, 99, 0.10);
  --shadow-light: rgba(60, 80, 100, 0.06);
}

/* ================================================== 
   TYPOGRAPHY
================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500;700&display=swap');
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
}
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  line-height: 1.1;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 15px;
}
h4, .h4 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--text-dark);
}
p, ul, ol {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}
.subtitle {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 20px;
}

/* Typography scaling for heading on mobile */
@media (max-width: 600px) {
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.375rem; }
  h3, .h3 { font-size: 1.125rem; }
  .subtitle { font-size: 1rem; }
}

/* ================================================== 
   STRUCTURED LAYOUT
================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  padding: 0;
  margin: 0 auto;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 30px;
    padding: 28px 10px;
  }
}

/* ===================
   HEADER & NAV
=================== */
header {
  background: var(--secondary-alt);
  box-shadow: 0 2px 8px var(--shadow-light);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 30px;
}
header a img {
  height: 44px;
  width: auto;
  display: block;
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: color 0.15s;
  padding: 4px 8px;
  border-radius: 4px;
}
nav a:hover, nav a:focus {
  background: var(--secondary);
  color: var(--accent);
}
.cta-primary {
  background: var(--primary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 11px 28px;
  border-radius: 32px;
  box-shadow: 0 2px 8px var(--shadow-dark);
  border: 2px solid var(--primary);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  margin-left: 16px;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--accent);
  color: var(--secondary-alt);
  border-color: var(--accent); 
  box-shadow: 0 4px 18px var(--shadow-dark);
}

@media (max-width: 1024px) {
  header .container {
    flex-wrap: wrap;
    gap: 18px;
  }
  nav {
    flex-wrap: wrap;
    gap: 18px;
  }
}

/* ===================
   MOBILE NAVIGATION
=================== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 102;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--accent);
}

@media (max-width: 900px) {
  nav, .cta-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--secondary-alt);
  box-shadow: 0 0 20px var(--shadow-dark);
  z-index: 200;
  transform: translateX(-100vw);
  transition: transform 0.4s cubic-bezier(.86,0,.07,1);
  padding: 38px 24px 24px 24px;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  font-size: 2rem;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  margin-bottom: 36px;
  border: none;
  transition: background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 18px;
}
.mobile-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 11px 0 11px 6px;
  border-radius: 6px;
  transition: background 0.18s, color 0.12s;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--accent);
}

/* Prevent body scroll when mobile menu open */
body.mobile-menu-open {
  overflow: hidden;
}

/* ===================
   MAIN & SECTION LAYOUTS
=================== */
main {
  min-height: 60vh;
  width: 100%;
  background: var(--secondary);
  padding-top: 0;
  padding-bottom: 0;
}

.text-section {
  margin-bottom: 24px;
}
@media (min-width: 900px) {
  .text-section {
    max-width: 700px;
  }
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.service-list > div {
  background: #fff;
  border-radius: 14px;
  padding: 28px 28px 24px 28px;
  flex: 1 1 270px;
  min-width: 270px;
  box-shadow: 0 3px 14px var(--shadow-light);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.16s, border-color 0.18s;
}
.service-list > div:hover {
  box-shadow: 0 6px 24px var(--shadow-dark);
  border-color: var(--accent);
}
.service-list h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.service-list span {
  margin-top: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 1.05rem;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--shadow-light);
  border: 1px solid var(--border);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, border-color 0.18s;
}
.card:hover {
  box-shadow: 0 6px 24px var(--shadow-dark);
  border-color: var(--accent);
}

.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;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===================
   TESTIMONIALS
=================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 14px var(--shadow-light);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: var(--text-dark);
  max-width: 700px;
  transition: box-shadow 0.13s, border-color 0.18s;
  position: relative;
}
.testimonial-card p {
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-card span {
  color: var(--accent);
  font-weight: 600;
  margin-left: 8px;
  font-size: 0.98rem;
}
.testimonial-card strong {
  color: var(--primary);
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px var(--shadow-dark);
  border-color: var(--accent);
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    font-size: 1rem;
  }
}

/* ===================
   FOOTER
=================== */
footer {
  background: var(--primary);
  color: #fff;
  padding: 36px 0 32px 0;
}
footer .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #fff;
  opacity: 0.92;
  font-size: 0.98rem;
  font-weight: 500;
  transition: opacity 0.18s, color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent-light);
  opacity: 1;
}
.footer-brand img {
  height: 38px;
  width: auto;
}
@media (max-width: 700px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-nav {
    gap: 16px;
  }
}

/* ===================
   BUTTONS & INTERACTIONS
=================== */
button, .button, .cta-primary {
  cursor: pointer;
  outline: none;
  transition: background 0.18s, color 0.12s, box-shadow 0.13s;
}
button:focus, .cta-primary:focus, .button:focus {
  box-shadow: 0 0 0 3px var(--accent-light), 0 6px 24px var(--shadow-dark);
}
a:focus {
  outline: 2px solid var(--accent-light);
}

/* ===================
   CUSTOM SPACING
=================== */
ul, ol {
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 10px;
  padding-left: 1.4em;
  position: relative;
}
ul li::before {
  content: '\2022';
  color: var(--accent);
  font-weight: bold;
  display: inline-block; 
  width: 1em;
  margin-left: -1.4em;
  font-size: 1.2em;
}

/* ===================
   COOKIE CONSENT BANNER & MODAL
=================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  color: var(--text-dark);
  box-shadow: 0 -2px 22px var(--shadow-dark);
  z-index: 300;
  padding: 22px 24px;
  gap: 18px;
  transition: transform 0.22s;
}
.cookie-banner {
  transform: translateY(0);
}
.cookie-banner.hidden {
  transform: translateY(120%);
}
.cookie-banner-text {
  flex: 1 1 300px;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 0;
}
.cookie-banner-buttons {
  display: flex;
  gap: 12px;
}
.cookie-btn, .cookie-settings-btn {
  background: var(--primary);
  color: #fff;
  padding: 8px 20px;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  transition: background 0.18s, color 0.11s;
  margin-left: 0;
  font-weight: 500;
  min-width: 108px;
}
.cookie-btn.reject {
  background: var(--text-light);
  color: var(--primary);
}
.cookie-btn:hover, .cookie-settings-btn:hover {
  background: var(--accent);
  color: #fff;
}
.cookie-settings-btn {
  background: var(--accent-light);
  color: var(--primary);
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 400;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(32, 77, 99, 0.48);
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  display: flex;
  animation: fadeIn .28s cubic-bezier(.86,0,.07,1);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  padding: 38px 28px 28px 28px;
  border-radius: 18px;
  max-width: 430px;
  min-width: 270px;
  box-shadow: 0 12px 36px var(--shadow-dark);
  color: var(--text-dark);
  font-family: 'Roboto', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: modalScale .18s cubic-bezier(.86,0,.07,1);
}
@keyframes modalScale {
  from { transform: scale(0.81); opacity: 0.8; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 600;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.3rem;
  border: none;
  transition: background 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--accent);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-toggle {
  appearance: none;
  width: 36px; height: 20px;
  background: #e6ecf2;
  border-radius: 12px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.21s;
  margin-right: 6px;
}
.cookie-toggle:checked {
  background: var(--primary);
}
.cookie-toggle:disabled {
  background: #b8bfd1;
  cursor: not-allowed;
}
.cookie-toggle::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 6px rgba(32,77,99,0.12);
  position: absolute;
  left: 0;
  top: 1px;
  transition: transform 0.18s;
}
.cookie-toggle:checked::-webkit-slider-thumb {
  transform: translateX(16px);
}
.cookie-toggle::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 0;
}
.cookie-toggle:checked::-moz-range-thumb {
  background: #fff;
}
/* Fallback for older browsers: visually represent checked state with box shadow */
.cookie-toggle:checked {
  box-shadow: 0 0 0 2px var(--accent-light);
}
.cookie-category label {
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}

/* ===================
   RESPONSIVE UTILITIES
=================== */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
    padding: 0 14px;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 28px;
    padding: 18px 5px;
  }
  .container {
    padding: 0 5px;
    max-width: 100vw;
  }
}
@media (max-width: 600px) {
  .service-list {
    flex-direction: column;
    gap: 14px;
  }
}

/* ================================================== 
   MICRO-INTERACTIONS
================================================== */
.card:hover, .service-list > div:hover, .testimonial-card:hover {
  transform: translateY(-5px) scale(1.02);
  transition: transform 0.19s cubic-bezier(.86,0,.07,1), box-shadow 0.16s;
}
.cta-primary {
  box-shadow: 0 1px 12px var(--shadow-dark);
}
.cta-primary:active {
  transform: scale(0.97);
}
.mobile-menu-toggle:active {
  transform: scale(0.97);
}

/* ===== Scrollbars ===== */
::-webkit-scrollbar {
  width: 8px;
  background: var(--secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

/* ===== Miscellaneous ===== */
dt, dd {
  margin-bottom: 4px;
}
blockquote {
  border-left: 4px solid var(--accent-light);
  padding-left: 18px;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 24px;
}

/* ================================================== 
   HIDE ELEMENTS FROM SCREEN READERS/VIEW WHEN NEEDED
================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ================================================== 
   PRINT STYLES
================================================== */
@media print {
  header, footer, .cookie-banner, .mobile-menu, .mobile-menu-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  main, .container, .content-wrapper { padding: 0 !important; margin: 0 !important; }
}
