/* 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,
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;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img, svg {
  max-width: 100%;
  display: block;
  height: auto;
}

/* BRAND PALETTE & FONTS */
:root {
  --primary: #21324A; /* Deep blue */
  --secondary: #A97B50;
  --accent: #F2F2F2;
  --black: #111;
  --white: #fff;
  --gray-100: #F6F6F6;
  --gray-200: #E2E2E2;
  --gray-300: #B8B8B8;
  --gray-400: #888;
  --gray-500: #444;
  --gray-600: #222;
  --shadow-md: 0 4px 24px 0 rgba(30,30,30,0.07), 0 1.5px 6px 0 rgba(30,30,30,0.05);
  --radius: 14px;
  --transition: 0.22s cubic-bezier(.52,.09,.44,.91);
  --focus-ring: 0 0 0 3px #A97B5033;
  /* Typography */
  --font-head: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(33,50,74,0.12);
  transform: translateY(-4px) scale(1.01);
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--gray-100);
  color: var(--black);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px 0 rgba(33,50,74,0.04);
  padding: 32px 24px 24px 24px;
  min-width: 220px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow var(--transition), background var(--transition);
}
.testimonial-card p {
  font-style: italic;
  font-size: 18px;
  font-weight: 500;
  color: var(--primary);
}
.testimonial-card span {
  font-size: 15px;
  color: var(--gray-500);
  font-style: normal;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px 0 rgba(33,50,74,0.11);
  background: var(--accent);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--accent);
  border-radius: var(--radius);
  padding: 18px 22px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
h1 {
  font-size: 42px;
  line-height: 1.18;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
h2 {
  font-size: 28px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 21px;
  letter-spacing: 0;
}
h4 {
  font-size: 19px;
}
p, li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--black);
}
p {
  margin-bottom: 10px;
}
strong, b {
  color: var(--black);
  font-weight: 700;
  font-family: var(--font-head);
}
ul {
  padding-left: 0;
  margin-bottom: 14px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
ul li {
  position: relative;
  padding-left: 34px;
  display: flex;
  align-items: center;
  min-height: 28px;
  gap: 12px;
  color: var(--black);
}
ul li img {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  flex-shrink: 0;
}

/* BUTTONS */
.btn-primary {
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  padding: 13px 34px;
  box-shadow: 0 1px 8px 0 rgba(33,50,74,0.10);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  outline: none;
  margin-top: 12px;
  letter-spacing: 0.02em;
  display: inline-block;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--black);
  box-shadow: 0 6px 24px 0 rgba(33,50,74,0.17);
  transform: translateY(-2px) scale(1.03);
}
.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 11px 26px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  margin-right: 12px;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--accent);
}
.btn-tertiary {
  background: var(--gray-200);
  color: var(--black);
  border: none;
  border-radius: var(--radius);
  padding: 10px 22px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.btn-tertiary:hover, .btn-tertiary:focus {
  background: var(--gray-300);
}


/* HEADER & NAVIGATION */
header {
  background: var(--white);
  box-shadow: 0 2px 12px 0 rgba(33,50,74,0.07);
  position: sticky;
  top: 0;
  z-index: 98;
  width: 100%;
}
header > .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 20px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
}
header nav a {
  font-family: var(--font-head);
  color: var(--primary);
  font-weight: 500;
  padding: 8px 0;
  font-size: 16px;
  transition: color var(--transition);
  position: relative;
}
header nav a:hover, header nav a:focus {
  color: var(--secondary);
}
header nav a.active {
  color: var(--secondary);
  font-weight: 700;
}

header img {
  height: 44px;
  width: auto;
}

.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}

/* FOOTER */
footer {
  background: var(--black);
  color: var(--white);
  padding: 44px 0 20px 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
}
footer nav a {
  color: var(--white);
  transition: color var(--transition);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 16px;
}
footer nav a:hover, footer nav a:focus {
  color: var(--secondary);
}
.footer-contact {
  font-size: 14px;
  color: var(--gray-200);
  small {
    font-size: 13px;
  }
}
footer .footer-contact span {
  font-family: var(--font-head);
  font-weight: 700;
}

/* GENERIC FORM ELEMENTS */
input, select, textarea {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
  outline: none;
}
label {
  margin-bottom: 6px;
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--black);
}

/* ADDRESS MAP */
.address-map {
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: var(--radius);
  padding: 20px 18px;
  font-style: italic;
  font-size: 15px;
  margin-top: 14px;
}

/* MICRO-INTERACTIONS & TRANSITIONS */
*:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}
a {
  transition: color var(--transition), border-color var(--transition);
}

section {
  margin-bottom: 60px;
  padding: 40px 0;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  header > .container {
    gap: 12px;
  }
  footer .container {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  footer {
    padding: 30px 0 16px 0;
  }
  header > .container {
    height: auto;
    min-height: 64px;
  }
  footer .container {
    flex-direction: column;
    gap: 12px;
  }
  h1 {
    font-size: 28px;
  }
  h2 {
    font-size: 21px;
  }
  .section, section {
    padding: 26px 0 18px 0;
    margin-bottom: 36px;
  }
  .card, .testimonial-card {
    padding: 20px 14px 16px 14px;
  }
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  section .content-wrapper, .content-wrapper {
    gap: 14px;
  }
  ul {
    gap: 8px;
  }
  .feature-item {
    padding: 12px 10px;
  }
  .address-map {
    padding: 8px 8px;
  }
}
@media (max-width: 540px) {
  .btn-primary, .btn-secondary, .btn-tertiary {
    padding: 12px 7vw;
    font-size: 15px;
  }
  .card, .testimonial-card {
    padding: 14px 7px 10px 7px;
    font-size: 15px;
  }
  h1 {
    font-size: 20px;
  }
}


/***** MOBILE NAVIGATION *****/
.mobile-menu-toggle {
  display: inline-block;
  background: transparent;
  border: none;
  font-size: 32px;
  color: var(--primary);
  cursor: pointer;
  margin-left: 10px;
  z-index: 100;
  transition: color 0.16s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--secondary);
}
@media (max-width: 900px) {
  header nav, header .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--white);
    z-index: 99;
    transform: translateX(-100vw);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.33s cubic-bezier(.65,.01,.39,1.11), opacity 0.24s;
  }
  .mobile-menu.open {
    transform: translateX(0vw);
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 9px 48px 0 rgba(33,50,74,0.23);
  }
  .mobile-menu-close {
    display: inline-block;
    align-self: flex-end;
    margin: 18px 16px 4px 0;
    background: transparent;
    color: var(--primary);
    border: none;
    font-size: 32px;
    cursor: pointer;
    z-index: 120;
    transition: color 0.17s;
  }
  .mobile-menu-close:hover, .mobile-menu-close:focus {
    color: var(--secondary);
    outline: 2px solid var(--secondary);
  }
  .mobile-nav {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    margin: 50px 0 0 36px;
  }
  .mobile-nav a {
    font-size: 22px;
    color: var(--primary);
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 4px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
    min-width: 54vw;
    min-height: 34px;
    transition: color var(--transition), border-color var(--transition);
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    color: var(--secondary);
    border-bottom: 2px solid var(--secondary);
  }
}

/* Show main nav on desktop only */
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle, .mobile-menu-close {
    display: none !important;
  }
}

/******** COOKIE CONSENT BANNER ********/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 24px 16px 20px 16px;
  background: var(--white);
  color: var(--black);
  box-shadow: 0 -4px 32px 0 rgba(33,50,74,0.09);
  z-index: 9999;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  transition: transform 0.22s, opacity 0.22s;
  font-size: 15px;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-message {
  flex: 1 1 0;
  padding-right: 20px;
}
.cookie-banner-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-banner .btn-primary, .cookie-banner .btn-secondary, .cookie-banner .btn-tertiary {
  margin: 0;
}

/****** COOKIE PREFERENCE MODAL ******/
.cookie-modal__overlay {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(33,50,74,0.14);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal__overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius);
  padding: 38px 32px 28px 32px;
  min-width: 90vw;
  max-width: 442px;
  min-height: 180px;
  box-shadow: 0px 9px 38px 0 rgba(33,50,74,0.13);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 10;
  animation: fadeInCookieModal 0.27s;
}
@keyframes fadeInCookieModal {
  from { transform: translateY(32px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal__close {
  position: absolute;
  top: 13px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 21px;
  color: var(--primary);
  cursor: pointer;
  z-index: 11;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  color: var(--secondary);
}
.cookie-modal__title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  padding-left: 4px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  margin-right: 5px;
}
.cookie-category.cookie-essential label {
  color: var(--primary);
  font-weight: 700;
}
.cookie-modal__actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  justify-content: flex-end;
}
@media (max-width: 500px) {
  .cookie-modal {
    min-width: 94vw;
    padding: 18px 6vw 18px 6vw;
  }
}

/**********************************************************
   Z-Index Reference:
   - Base: 1
   - Header: 98
   - Mobile Menu: 99
   - Cookie Banner: 9999
   - Cookie Modal: 99999
**********************************************************/
