/* 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,
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 {
  line-height: 1.15;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #fff;
  min-height: 100%;
}
body {
  min-height: 100vh;
  background: #fff;
  color: #232323;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.01em;
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ol, ul {
  list-style: none;
}
a {
  color: #273746;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #9E6000;
}

/* COLOR PALETTE as CSS VARS */
:root {
  --primary: #273746;
  --secondary: #FFFFFF;
  --offwhite: #F8F8F8;
  --gray: #D6CFC7;
  --accent: #9E6000;
  --lightgray: #EAEAEA;
  --darkgray: #181A1E;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.03em;
}
h1 {
  font-size: 2.7rem;
  margin-bottom: 28px;
  line-height: 1.14;
}
h2 {
  font-size: 2rem;
  margin-bottom: 22px;
  line-height: 1.18;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 13px;
  line-height: 1.25;
}
h4 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.section h1, .section h2, .section h3 {
  margin-top: 0;
}
p, li, dd {
  font-size: 1rem;
  color: #232323;
}
strong {
  font-weight: 600;
  color: var(--primary);
}

/* BASE LAYOUT */
.container {
  width: 100%;
  max-width: 1160px;
  padding: 0 20px;
  margin: 0 auto;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 0;
  background: var(--offwhite);
  box-shadow: 0 2px 24px 0 rgba(25,24,32,0.03);
  border-radius: 20px;
  margin-bottom: 36px;
}
.text-section {
  background: var(--secondary);
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(30,30,35,0.03);
  padding: 32px 16px;
}

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

/* FLEX LAYOUTS */
.flex-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--secondary);
  box-shadow: 0 3px 14px rgba(40,40,40,0.06);
  border-radius: 15px;
  margin-bottom: 20px;
  padding: 20px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1px solid var(--gray);
}
.card:hover, .card:focus-within {
  box-shadow: 0 5px 24px rgba(0,0,0,0.13);
  transform: translateY(-4px) scale(1.01);
  z-index: 1;
}
.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;
  padding: 20px;
  background: var(--gray);
  color: var(--primary);
  border-radius: 13px;
  box-shadow: 0 3px 12px 0 rgba(40,40,40,0.08);
  font-style: italic;
  margin-bottom: 20px;
  margin-top: 18px;
  border-left: 5px solid var(--primary);
  transition: box-shadow 0.25s;
}
.testimonial-card strong {
  color: #181A1E;
  font-size: 1em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
}
.feature-grid > div,
.service-list > div {
  min-width: 230px;
  max-width: 310px;
  background: var(--secondary);
  border-radius: 13px;
  box-shadow: 0 3px 12px 0 rgba(40,40,40,0.04);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  border: 1px solid var(--gray);
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-grid > div:hover, .service-list > div:hover {
  box-shadow: 0 8px 24px 0 rgba(30,30,30,0.13);
  transform: translateY(-3px) scale(1.01);
}
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.filters {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 22px 0;
}
.filters ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* HEADER NAVIGATION */
header {
  background: var(--offwhite);
  box-shadow: 0 1px 14px 0 rgba(32,32,32,0.04);
  border-bottom: 1px solid #E5E5E5;
  position: relative;
  z-index: 30;
}
header .container {
  align-items: center;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--primary);
  padding: 6px 6px 6px 2px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
header nav a:hover, header nav a:focus {
  color: var(--accent);
  background: #ececec;
}
header a.button.primary {
  margin-left: 22px;
}

/* MAIN BUTTONS */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 32px;
  padding: 13px 32px;
  border: none;
  cursor: pointer;
  background: var(--gray);
  color: var(--primary);
  box-shadow: 0 3px 8px 0 rgba(40,40,40,0.06);
  margin-top: 18px;
  margin-bottom: 6px;
  text-decoration: none;
  transition: background 0.16s, color 0.16s, box-shadow 0.16s, transform 0.16s;
}
.button.primary {
  background: var(--primary);
  color: var(--secondary);
}
.button.accent {
  background: var(--accent);
  color: var(--secondary);
}
.button:focus, .button:hover {
  filter: brightness(0.95);
  box-shadow: 0 7px 16px 0 rgba(50,42,18,0.11);
  transform: translateY(-2px) scale(1.016);
}
.button:active {
  filter: brightness(0.90);
}

/* Price Highlight */
.price {
  color: var(--accent);
  font-weight: 600;
  font-size: 16px;
  margin-left: 6px;
}

/* FOOTER */
footer {
  background: var(--primary);
  color: var(--secondary);
  padding: 40px 0 23px 0;
  border-top: 1.5px solid var(--gray);
}
footer .container {
  display: flex;
}
footer .content-wrapper {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
footer nav a {
  color: var(--secondary);
  opacity: 0.86;
  font-size: 15px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  transition: color 0.18s, opacity 0.14s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--accent);
  opacity: 1;
}
.footer-contact p, .footer-contact a {
  color: var(--secondary);
  font-size: 15px;
  margin-bottom: 3px;
}
.footer-contact a {
  text-decoration: underline;
  transition: color 0.18s;
}
.footer-contact a:hover {
  color: var(--accent);
}

/* DETAILS / FAQ */
dl {
  margin-bottom: 24px;
}
dt {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 10px;
  margin-bottom: 3px;
}
dd {
  margin-left: 24px;
  margin-bottom: 12px;
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: var(--secondary);
  border: none;
  font-size: 2.3rem;
  border-radius: 8px;
  padding: 7px 18px;
  cursor: pointer;
  margin-left: auto;
  margin-right: 10px;
  transition: background 0.15s, color 0.15s;
  z-index: 102;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--accent);
  color: var(--secondary);
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: rgba(32,29,28,0.89);
  box-shadow: 0 9px 24px 4px rgba(32,32,35,0.20);
  z-index: 101;
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(.9,.03,.37,1.33), opacity 0.21s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: var(--secondary);
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 24px 22px 30px 0;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 110;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--accent);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 0 28px;
}
.mobile-nav a {
  color: var(--secondary);
  font-size: 1.4rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 10px 0;
  transition: color 0.15s, background 0.18s;
  border-radius: 4px;
  min-width: 130px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--accent);
  background: rgba(255,255,255, 0.08);
}

@media (max-width: 1024px) {
  .flex-header {
    gap: 16px;
  }
  .feature-grid {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
  }
}
@media (max-width: 820px) {
  .feature-grid > div, .service-list > div {
    min-width: 60vw;
    max-width: 95vw;
  }
}
@media (max-width: 768px) {
  .flex-header nav, .flex-header a.button.primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .flex-header {
    min-height: 50px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .feature-grid, .service-list {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 0 8px;
  }
  .hero {
    padding: 18px 0;
    border-radius: 10px;
  }
  .text-section {
    padding: 18px 7px;
    border-radius: 8px;
  }
  .feature-grid > div, .service-list > div {
    min-width: 96vw;
    max-width: 99vw;
    padding: 14px 7px;
  }
  .card {
    border-radius: 8px;
    padding: 13px 7px;
  }
}
@media (max-width: 768px) {
  .content-grid, .card-container, .testimonial-card, .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .section {
    padding: 32px 7px;
    margin-bottom: 36px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 200;
  background: #1B1C20;
  color: var(--secondary);
  padding: 20px 18px 18px 18px;
  box-shadow: 0 -4px 32px 0 rgba(10,10,10,0.23);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  transition: transform 0.23s, opacity 0.23s;
  font-size: 16px;
}
.cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(99px);
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 18px;
  margin-left: auto;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 9px 18px;
  border-radius: 22px;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  margin: 0;
  transition: background 0.13s, color 0.13s, box-shadow 0.16s, filter 0.12s;
}
.cookie-banner .accept {
  background: var(--accent);
  color: var(--secondary);
}
.cookie-banner .reject {
  background: var(--primary);
  color: var(--secondary);
}
.cookie-banner .settings {
  background: var(--gray);
  color: var(--primary);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  filter: brightness(0.94);
  box-shadow: 0 3px 8px 0 rgba(40,40,40,0.15);
}
.cookie-banner a {
  color: #FADC95;
  text-decoration: underline;
}

@media (max-width: 550px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 7px 14px 7px;
    font-size: 15px;
  }
  .cookie-banner .cookie-buttons {
    margin-left: 0;
    gap: 10px;
    flex-wrap: wrap;
  }
}

/* COOKIE SETTINGS MODAL */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  background: var(--secondary);
  color: var(--primary);
  border-radius: 16px;
  z-index: 500;
  box-shadow: 0 5px 36px 0 rgba(0,0,0,0.15);
  max-width: 92vw;
  min-width: 260px;
  max-height: 96vh;
  display: flex;
  flex-direction: column;
  padding: 38px 30px 24px 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s, transform 0.23s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal h2 {
  margin-bottom: 9px;
  font-size: 1.45rem;
  color: var(--primary);
}
.cookie-modal ul {
  margin-bottom: 13px;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.cookie-modal label {
  cursor: pointer;
  font-size: 1rem;
}
.cookie-modal .cookie-modal-buttons {
  margin-top: 18px;
  display: flex;
  gap: 14px;
}
.cookie-modal button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 7px 22px;
  border-radius: 19px;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  margin-right: 0;
  cursor: pointer;
  background: var(--gray);
  color: var(--primary);
  transition: filter 0.14s, box-shadow 0.14s;
}
.cookie-modal .accept {
  background: var(--accent);
  color: var(--secondary);
}
.cookie-modal .reject {
  background: var(--primary);
  color: var(--secondary);
}
.cookie-modal button:hover, .cookie-modal button:focus {
  filter: brightness(0.93);
  box-shadow: 0 3px 13px 0 rgba(40,40,40,0.11);
}

/* FORM ELEMENTS (for modals, inputs) */
input[type="checkbox"] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}

/* VISUAL HIERARCHY & MICROINTERACTIONS */
.card, .feature-grid > div, .service-list > div, .testimonial-card, .button,
.cookie-banner button, .cookie-modal button {
  transition: box-shadow 0.2s cubic-bezier(.38,.15,.39,1.23), transform 0.18s, background 0.18s;
}

/* ACCESSIBILITY & FOCUS STYLE */
a:focus-visible, button:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
}

/* ========== FORMS (used in contact, email links) ========== */
input, textarea, select {
  font-family: inherit;
  border-radius: 8px;
  border: 1px solid var(--gray);
  padding: 10px 13px;
  margin-bottom: 20px;
  background: #fff;
  color: var(--primary);
  font-size: 1rem;
  transition: border-color 0.14s, box-shadow 0.13s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 2px 14px 0 rgba(154,110,23,0.13);
}

/* SECTION + CONTAINER SPACING (CRITICAL) */
.section, .content-wrapper, .feature-grid, .card-container, .card,
.content-grid, .testimonial-card, .footer-contact, .service-list {
  margin-bottom: 20px;
}

/* VISUAL MONOCHROME DRAMATIC EFFECTS */
.hero {
  box-shadow: 0 4px 28px 0 rgba(32,32,36,0.12);
}
.card, .feature-grid > div, .service-list > div {
  background: linear-gradient(140deg, #fff 93%, #edece8 100%);
  border: 1px solid #e3e1dd;
}
.text-section {
  background: #fcfbfa;
}

/* QUOTES & BLOCKS */
blockquote {
  font-style: italic;
  color: var(--primary);
  background: var(--gray);
  padding: 18px 24px;
  border-radius: 11px;
  border-left: 5px solid var(--primary);
  margin-bottom: 20px;
  margin-top: 18px;
}

/* MISC */
@media (max-width: 500px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.24rem;
  }
  .container {
    padding: 0 4px;
  }
}

/* Utility classes for hiding */
.hidden { display: none !important; }

/* Hide visually but keep accessible */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
