/* --- 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,
main, 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 {
  height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  min-height: 100%;
  line-height: 1.6;
  background: #FFFFFF;
  font-family: "Roboto", Arial, sans-serif;
  color: #205050;
  /* fallback for variable fonts on very old browsers */
}
img, picture, video {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
button, input, textarea, select {
  font: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}
strong {
  font-weight: bold;
}

/* --- VARIABLES --- */
:root {
  --color-primary: #205050;
  --color-primary-alt: #407F7F;
  --color-secondary: #FFFFFF;
  --color-bg-dark: #E7ECEB;
  --color-accent: #A14F00;
  --color-accent-alt: #C4691B;
  --color-contrast: #11181a;
  --color-grey: #E7ECEB;
  --color-shadow: rgba(32, 80, 80, 0.05);
  --shadow-card: 0 6px 24px 0 rgba(32,80,80,0.10);
  --shadow-hover: 0 8px 28px 0 rgba(161,79,0,0.10);
  --font-display: "Montserrat", Arial, sans-serif;
  --font-body: "Roboto", Arial, sans-serif;
  --radius-xl: 32px;
  --radius-md: 18px;
  --radius-sm: 8px;
  --transition: 0.22s cubic-bezier(.58,.05,.18,1);
}

body {
  background: var(--color-secondary);
}

/* --- CONTAINER --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: var(--color-primary);
}
h1 {
  font-size: 2.8rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p, ul, ol, li, address {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-primary);
}
p {
  margin-bottom: 16px;
}

/* --- HEADER --- */
header {
  background: var(--color-bg-dark);
  box-shadow: 0 2px 8px 0 var(--color-shadow);
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
  margin-bottom: 18px;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px 20px;
}
header img {
  height: 46px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 6px 0;
  border-bottom: 2.5px solid transparent;
  transition: color .18s, border-bottom .16s;
  position: relative;
}
header nav a:hover,
header nav a:focus {
  color: var(--color-accent);
  border-bottom: 2.5px solid var(--color-accent);
}

/* --- CTA BUTTON --- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 34px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.12rem;
  background: var(--color-accent);
  color: var(--color-secondary);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px 0 var(--color-shadow);
  cursor: pointer;
  border: 0;
  letter-spacing: 0.02em;
  margin-left: 18px;
  transition: background var(--transition), color var(--transition), box-shadow 0.18s;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-accent-alt);
  color: var(--color-secondary);
  box-shadow: 0 4px 28px 0 var(--color-shadow);
  transform: translateY(-1px) scale(1.03);
}

/* --- MOBILE NAV --- */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-secondary);
  font-size: 2.2rem;
  width: 48px;
  height: 48px;
  margin-left: 10px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: background .18s;
  z-index: 1050;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-accent-alt);
}

@media (min-width: 991px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: var(--color-bg-dark);
  box-shadow: 0 12px 36px 0 var(--color-shadow);
  padding: 0;
  display: flex;
  flex-direction: column;
  transform: translateX(-105vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(.7,.1,.27,1), opacity 0.22s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 16px 20px 0 0;
  font-size: 2.4rem;
  background: var(--color-accent);
  color: var(--color-secondary);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1010;
  transition: background 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--color-accent-alt);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 36px;
  align-items: flex-start;
  padding: 0 36px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  width: 100%;
  transition: background .13s, color .17s;
  margin-bottom: 4px;
}
.mobile-nav a:active,
.mobile-nav a:focus,
.mobile-nav a:hover {
  color: var(--color-accent);
  background: var(--color-secondary);
}

@media (min-width: 991px) {
  .mobile-menu {
    display: none !important;
  }
}

header nav,
.cta-btn {
  display: none;
}
@media (min-width: 991px) {
  header nav, .cta-btn {
    display: flex;
  }
}

/* --- MAIN CONTENT --- */
main {
  min-height: calc(100vh - 140px);
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-grey);
  border-radius: var(--radius-xl);
  box-shadow: 0 3px 16px rgba(32,80,80,0.06);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 991px) {
  .section {
    margin-bottom: 36px;
    padding: 28px 8px;
    border-radius: var(--radius-md);
  }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --- SPACING PATTERNS ---*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-secondary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 26px 24px;
  transition: transform .20s, box-shadow .18s;
}
.card:hover {
  box-shadow: 0 10px 32px 0 var(--color-shadow);
  transform: translateY(-2px) scale(1.02);
}
.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: var(--color-secondary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  min-width: 260px;
  margin-bottom: 20px;
  transition: box-shadow .16s, transform .16s;
}
.testimonial-card p {
  font-weight: 500;
  color: var(--color-contrast);
  font-size: 1.04rem;
  font-family: var(--font-body);
}
.testimonial-card strong {
  font-family: var(--font-display);
  color: var(--color-primary);
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px 0 var(--color-shadow);
  transform: scale(1.01);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-secondary);
  border-radius: var(--radius-sm);
  padding: 24px 16px;
  margin-bottom: 20px;
  box-shadow: 0 1px 6px 0 var(--color-shadow);
}

/* --- FLEX AND RESPONSIVE ---*/
@media (max-width: 991px) {
  .content-grid,
  .card-container,
  .text-image-section {
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 28px;
    padding: 18px 4px;
  }
  .content-wrapper {
    gap: 20px;
  }
  .testimonial-card,
  .feature-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 6px;
  }
}

/* --- ICONS and IMAGES in Features/Lists --- */
ul li, ol li {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 1.01rem;
  font-weight: 500;
}
ul li img {
  width: 32px;
  height: 32px;
}

/* --- BUTTONS --- */
button, .cta-btn {
  cursor: pointer;
  user-select: none;
}
button:focus-visible, .cta-btn:focus-visible {
  outline: 2px solid var(--color-primary-alt);
  outline-offset: 2px;
}

/* --- LINKS --- */
a {
  color: var(--color-primary-alt);
  transition: color .18s;
}
a:hover, a:focus {
  color: var(--color-accent-alt);
}

/* --- FOOTER --- */
footer {
  background: var(--color-bg-dark);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  box-shadow: 0 -2px 18px 0 var(--color-shadow);
  margin-top: 62px;
  padding: 26px 0 0 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  transition: color .16s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-accent);
}
footer address {
  font-style: normal;
  font-family: var(--font-body);
  color: #386060;
  font-size: .95rem;
  margin-top: 8px;
  line-height: 1.6;
}
footer img {
  width: 55px;
  height: auto;
  margin-bottom: 8px;
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 0 10px;
  }
  footer nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 20px;
  }
}

/* --- GEOMETRIC/DECORATIVE ELEMENTS --- */
/* Decorative geometric shape for accent sections */
.section::before {
  content: "";
  display: block;
  position: absolute;
  z-index: 0;
  width: 88px;
  height: 88px;
  border-radius: 28% 72% 69% 31%/55% 40% 60% 45%;
  background: var(--color-accent-alt);
  opacity: 0.085;
  top: 18px; left: 8px;
  pointer-events: none;
}
.section {
  position: relative;
  z-index: 1;
}

/* --- FORMS (if present) --- */
input, textarea, select {
  border: 2px solid var(--color-primary-alt);
  border-radius: var(--radius-sm);
  background: var(--color-secondary);
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 1rem;
  color: var(--color-primary);
  box-shadow: 0 1px 5px 0 var(--color-shadow);
  transition: border-color .18s, box-shadow .18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent-alt);
  box-shadow: 0 4px 14px 0 var(--color-shadow);
}

/* --- ANIMATIONS & MICRO-INTERACTIONS --- */
.cta-btn,
.card,
.testimonial-card,
.feature-item {
  transition: box-shadow .21s, transform .15s, background .18s, color .18s;
}
.cta-btn:active {
  transform: scale(.98);
}

/* Subtle fade-in on scroll (used via .fade-in class) */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .38s cubic-bezier(.7,.1,.27,1), transform .35s cubic-bezier(.7,.1,.27,1);
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* --- COOKIE BANNER STYLES --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--color-primary-alt);
  color: var(--color-secondary);
  z-index: 3200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 22px 16px;
  box-shadow: 0 -4px 24px 0 var(--color-shadow);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  animation: cookieBannerIn 0.5s cubic-bezier(.7,.1,.27,1);
}
@keyframes cookieBannerIn {
  from { transform: translateY(150%); opacity: 0; }
  to {   transform: none; opacity: 1; }
}
.cookie-banner p {
  color: var(--color-secondary);
  font-size: 1.06rem;
  text-align: center;
  margin-bottom: 8px;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner .cookie-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  background: var(--color-accent);
  color: var(--color-secondary);
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 24px;
  margin: 0;
  box-shadow: 0 2px 8px 0 var(--color-shadow);
  cursor: pointer;
  transition: background .16s;
}
.cookie-banner .cookie-btn.settings {
  background: var(--color-secondary);
  color: var(--color-accent-alt);
  border: 2px solid var(--color-accent-alt);
  box-shadow: none;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--color-accent-alt);
  color: var(--color-secondary);
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: var(--color-accent-alt);
  color: var(--color-secondary);
}
@media (max-width: 650px) {
  .cookie-banner {
    padding: 13px 3px;
    gap: 12px;
  }
  .cookie-banner .cookie-buttons {
    gap: 8px;
  }
  .cookie-banner .cookie-btn {
    padding: 8px 14px;
    font-size: .96rem;
  }
}

/* --- COOKIE MODAL POPUP --- */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(33,76,83, 0.28);
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalFade 0.21s;
}
@keyframes cookieModalFade {
  from { opacity: 0; }
  to {opacity: 1; }
}
.cookie-modal {
  background: var(--color-secondary);
  color: var(--color-primary);
  padding: 34px 30px 22px 30px;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 48px 0 var(--color-shadow);
  min-width: 320px;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 3600;
  animation: cookieModalIn 0.34s cubic-bezier(.7,.1,.27,1);
}
@keyframes cookieModalIn {
  0% { transform: scale(.94); opacity: 0; } 
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.5rem;
  font-family: var(--font-display);
  margin-bottom: 10px;
  color: var(--color-accent-alt);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 9px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-category label {
  font-size: 1.06rem;
  font-family: var(--font-body);
  color: var(--color-primary);
  font-weight: 500;
}
.cookie-category input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--color-primary-alt);
  background: var(--color-grey);
  margin-right: 3px;
  position: relative;
  transition: border-color .21s, background .14s;
}
.cookie-category input[type="checkbox"]:checked {
  background: var(--color-accent-alt);
  border-color: var(--color-accent-alt);
}
.cookie-category input[type="checkbox"]:checked::after {
  content: "";
  display: block;
  position: absolute;
  left: 6px; top: 4.7px;
  width: 6px; height: 11px;
  border: solid var(--color-secondary);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.cookie-category input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 9px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.cookie-modal .cookie-btn {
  font-size: 1rem;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 14px; right: 18px;
  font-size: 2.3rem;
  line-height: 1;
  background: var(--color-accent);
  color: var(--color-secondary);
  border-radius: 50%;
  border: 0;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-modal .close-modal:focus, .cookie-modal .close-modal:hover {
  background: var(--color-accent-alt);
}
@media (max-width: 520px) {
  .cookie-modal {
    padding: 16px 4vw 14px 4vw;
    border-radius: var(--radius-md);
    min-width: 0;
  }
  .cookie-modal h2 {
    font-size: 1.1rem;
  }
}

/* --- UTILITIES --- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mb-2 { margin-bottom: 16px !important; }

/* --- HIGH CONTRAST/BOLD --- */
h2, h3, h4, h5, h6 {
  color: var(--color-accent-alt);
}
a.cta-btn {
  box-shadow: 0 2px 14px 0 var(--color-shadow);
}

/* --- ACCESSIBILITY HIDDEN --- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --- END --- */
