/* CSS Reset and 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;
}
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F7F2EC;
  color: #20405A;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: #20405A;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #E5B24C;
  outline-offset: 2px;
}
a:hover, a:active {
  color: #E5B24C;
}

ul, ol {
  padding-left: 1.25em;
  margin-top: 10px;
  margin-bottom: 10px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #20405A;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
h1 {font-size: 2.25rem; margin-bottom: 24px;}
h2 {font-size: 1.75rem; margin-bottom: 20px;}
h3 {font-size: 1.25rem; margin-bottom: 14px;}
h4 {font-size: 1.15rem; margin-bottom: 10px;}

p {
  font-size: 1rem;
  margin-bottom: 18px;
}
.subtitle {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.125rem;
  color: #9A8665;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

/* Brand Colors as CSS Variables */
:root {
  --cc-primary: #20405A;
  --cc-secondary: #E5B24C;
  --cc-accent: #F7F2EC;
  --cc-light-bg: #FFF9F3;
  --cc-grey-light: #F2E9DC;
  --cc-grey: #d5ccc2;
  --cc-danger: #C73D3D;
  --cc-shadow: 0 6px 24px 0 rgba(225, 185, 115, 0.10), 0 1.5px 4px 0 rgba(32,64,90,0.07);
  --cc-radius: 16px;
  --cc-transition: 0.2s cubic-bezier(0.35,0.86,0.50,1);
}

/* Layout: Container & Spacing Patterns */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--cc-accent);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

/* Navigation Header */
header {
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(32, 64, 90, 0.07);
  padding: 0;
  width: 100%;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--cc-primary);
  padding: 9px 0 9px 0;
  border-radius: 8px;
  transition: background 0.15s, color var(--cc-transition);
}
header nav a:hover, header nav a:focus {
  background: var(--cc-secondary);
  color: #fff;
}
header img {
  height: 44px;
  border-radius: 8px;
}
.cta-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  background: var(--cc-secondary);
  color: #234;
  border: none;
  border-radius: 24px;
  padding: 12px 38px;
  font-size: 1.125rem;
  cursor: pointer;
  margin-left: 28px;
  box-shadow: 0 2px 8px 0 rgba(220, 170, 30, 0.08);
  transition: background var(--cc-transition), color var(--cc-transition), box-shadow var(--cc-transition);
}
.cta-btn:hover, .cta-btn:focus {
  background: #20405A;
  color: #fff;
  box-shadow: 0 6px 16px 0 rgba(32, 64, 90, 0.12);
}

/* MAIN: Page Spacing Rules */
main {
  padding-top: 36px;
  padding-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.section:not(:last-child) {
  margin-bottom: 60px;
}

/* Cards & Card Containers Flex Pattern */
.card-container, .service-cards, .team-grid, .testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
}

.card, .service-card, .team-member, .testimonial-card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  padding: 28px 24px 22px 24px;
  min-width: 260px;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow var(--cc-transition), transform var(--cc-transition);
}
.card:hover, .service-card:hover, .team-member:hover, .testimonial-card:hover {
  box-shadow: 0 12px 26px 0 rgba(229,178,76,.13);
  transform: translateY(-3px) scale(1.012);
}

/* Service Cards Specifics */
.service-card h3 {
  font-size: 1.15rem;
  color: var(--cc-primary);
}
.service-card span {
  font-size: 1rem;
  color: var(--cc-secondary);
  font-weight: 600;
  margin-top: 10px;
}
.service-cards {
  width: 100%;
  justify-content: space-between;
}

/* Features and Lists */
.features-list, .benefit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
}
.features-list li, .benefit-list li {
  background: var(--cc-light-bg);
  border-radius: 13px;
  padding: 18px 22px 18px 20px;
  box-shadow: 0 2px 8px 0 rgba(32,64,90,0.05);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--cc-primary);
  font-weight: 500;
  min-width: 200px;
}
.features-list img, .benefit-list img {
  height: 32px;
  width: 32px;
  background: var(--cc-secondary);
  padding: 5px;
  border-radius: 50%;
  box-shadow: 0 1px 3px 0 rgba(229,178,76,0.07);
}

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

/* TEAM GRID */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
}
.team-member {
  background: #fff;
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  padding: 28px 24px 20px 24px;
  flex: 1 1 224px;
  min-width: 224px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* TESTIMONIALS */
.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
  align-items: stretch;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  color: #234;
  min-width: 240px;
  flex: 1 1 300px;
}
.testimonial-card blockquote {
  font-size: 1.05rem;
  font-style: italic;
  color: #20405A;
  margin-bottom: 0;
  line-height: 1.65;
}
.testimonial-card cite {
  display: block;
  font-style: normal;
  color: var(--cc-secondary);
  font-weight: 600;
  margin-top: 8px;
  letter-spacing: 0.01em;
  font-size: .98rem;
}

/* Section with Text+Image Pattern */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.text-image-section > * {
  flex: 1 1 300px;
}
.text-section {
  background: var(--cc-light-bg);
  border-radius: var(--cc-radius);
  padding: 18px 24px;
  margin: 10px 0 12px 0;
  font-size: 1rem;
  color: #20405A;
  box-shadow: 0 1px 4px 0 rgba(32,64,90,0.04);
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: #fff;
  border-radius: var(--cc-radius);
  overflow: hidden;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
th, td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--cc-grey);
  font-size: 1rem;
}
th {
  background: var(--cc-accent);
  color: var(--cc-primary);
  font-weight: 700;
  text-align: left;
}
tr:last-child td { border-bottom: none; }

/* FOOTER */
footer {
  background: #fff;
  box-shadow: 0 -2px 12px 0 rgba(32, 64, 90, 0.05);
  padding: 0;
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px;
}
footer a img {
  height: 32px;
}
footer nav {
  display: flex;
  gap: 18px;
}
footer nav a {
  font-size: 0.95rem;
  color: #808080;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  transition: color 0.17s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--cc-secondary);
}
.legal-text {
  color: #bababa;
  font-size: .92rem;
  text-align: right;
}

/* MOBILE BURGER MENU */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 6000;
  font-size: 2rem;
  background: var(--cc-secondary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 8px 0 rgba(229,178,76,0.13);
  transition: background 0.15s, color 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--cc-primary);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  z-index: 7000;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(32, 64, 90, 0.96);
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.44,0.13,0.21,1.00);
  padding-top: 25px;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  margin-left: 12px;
  margin-bottom: 28px;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--cc-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  padding-left: 36px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.2rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  margin-bottom: 6px;
  border-radius: 10px;
  padding: 10px 0 10px 4px;
  transition: background 0.2s, color 0.2s;
  min-width: 180px;
  display: inline-block;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--cc-secondary);
  color: #20405A;
}

/* Responsive Breakpoints */
@media (max-width: 1020px) {
  .container {
    max-width: 98vw;
    padding: 0 8vw;
  }
}
@media (max-width: 850px) {
  .service-card, .team-member, .testimonial-card {
    min-width: 180px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 13px;
  }
  .section {
    padding: 32px 7px;
    margin-bottom: 38px;
  }
  .card-container, .service-cards, .team-grid, .testimonials-grid {
    gap: 16px;
  }
  .features-list, .benefit-list {
    gap: 13px;
    flex-direction: column;
  }
  header .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 13px 11px 13px;
  }
  header nav, footer nav {
    gap: 14px;
  }
  .cta-btn {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
  }
  .team-grid, .testimonials-grid, .service-cards {
    flex-direction: column;
    gap: 16px;
  }
  .card, .service-card, .team-member, .testimonial-card {
    min-width: 0;
    width: 100%;
    max-width: 100vw;
    padding: 18px 13px;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header nav {
    display: none;
  }
  .text-image-section {
    flex-direction: column;
    gap: 17px;
    align-items: stretch;
  }
  main {
    gap: 24px;
    padding-bottom: 24px;
    padding-top: 24px;
  }
}

/* Reveal nav on desktop */
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none !important;
  }
  .mobile-menu {
    display: none !important;
  }
  header nav {
    display: flex !important;
  }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: #20405A;
  box-shadow: 0 -4px 24px 0 rgba(32, 64, 90, 0.07);
  z-index: 10000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 30px;
  font-size: 1rem;
  border-radius: 18px 18px 0 0;
  transition: transform 0.35s cubic-bezier(0.44,0.13,0.21,1.00);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner-msg {
  flex: 2;
  min-width: 140px;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.cookie-btn, .cookie-btn-settings {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 16px;
  padding: 10px 24px;
  margin: 2px 0;
  cursor: pointer;
  transition: background var(--cc-transition), color var(--cc-transition);
  box-shadow: 0 2px 8px 0 rgba(229,178,76,0.10);
}
.cookie-btn {
  background: var(--cc-secondary);
  color: #234;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #20405A;
  color: #fff;
}
.cookie-btn.reject {
  background: #EFE4DD;
  color: #20405A;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #ddd0c4;
}
.cookie-btn-settings {
  background: #fff;
  color: var(--cc-primary);
  border: 1.5px solid var(--cc-secondary);
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: var(--cc-accent);
  color: #20405A;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 50%;
  bottom: 55px;
  transform: translate(-50%, 180%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 48px 0 rgba(32,64,90,0.14);
  min-width: 290px;
  max-width: 95vw;
  padding: 26px 30px 26px 30px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  opacity: 0;
  transition: transform 0.34s cubic-bezier(0.57,0.11,0.21,1.00), opacity 0.23s;
}
.cookie-modal.open {
  transform: translate(-50%, 0);
  opacity: 1;
}
.cookie-modal-close {
  position: absolute;
  right: 22px;
  top: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #9A8665;
  cursor: pointer;
  z-index: 101;
  transition: color 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--cc-danger);
}
.cookie-modal-title {
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: var(--cc-primary);
  margin-bottom: 6px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 10px;
  width: 100%;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  background: var(--cc-light-bg);
  padding: 7px 13px;
  border-radius: 10px;
  width: 100%;
}
.cookie-category label {
  font-weight: 600;
  font-size: 1rem;
  color: #20405A;
  flex: 1 1 60px;
}
.cookie-category input[type="checkbox"], .cookie-category input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--cc-secondary);
  border-radius: 50%;
  margin-right: 3px;
}
.cookie-category-desc {
  font-size: 0.98rem;
  color: #89837F;
  margin-left: 12px;
}
.cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 19px;
  width: 100%;
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .cookie-banner {
    flex-direction: column;
    padding: 18px 11px;
    gap: 14px;
    font-size: 0.97rem;
  }
  .cookie-banner-actions {
    justify-content: flex-end;
    width: 100%;
    gap: 11px;
  }
  .cookie-modal {
    padding: 19px 11px 13px 11px;
    min-width: 0;
  }
}

/* Animations */
.cta-btn, button, .service-card, .testimonial-card, .card {
  transition: box-shadow var(--cc-transition), background var(--cc-transition), color var(--cc-transition), transform var(--cc-transition);
}
.cta-btn:active {
  transform: scale(0.97);
}

/* Miscellaneous */
div:empty {
  display: none;
}
small {
  color: #999;
  font-size: 0.9rem;
}
strong {
  font-weight: 700;
}

::-webkit-input-placeholder { color: #b3b3b3; }
::-moz-placeholder { color: #b3b3b3; }
:-ms-input-placeholder { color: #b3b3b3; }
::placeholder { color: #b3b3b3; }

/* Remove tap highlight on mobile */
* {
  -webkit-tap-highlight-color: rgba(0,0,0,0.04);
}

/* Selection */
::selection {
  background: var(--cc-secondary);
  color: #fff;
}

/* Hide outline on mouse only input but show on keyboard/tab navigation */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--cc-secondary);
}
