/* ========== CSS RESET & NORMALIZE ========== */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, a, button, input, textarea, address { margin: 0; padding: 0; font: inherit; color: inherit; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; height: auto; }
button { border: none; background: none; cursor: pointer; font: inherit; }
input, textarea { border: none; outline: none; resize: none; font: inherit; }
:focus { outline: 2px solid #C7A25A; outline-offset: 2px; }
body { min-height: 100vh; background: #F7F4EF; }

/* ===================== BRAND VARS ===================== */
:root {
  --color-primary: #253746;
  --color-secondary: #88A26D;
  --color-accent: #F7F4EF;
  --color-gold: #C7A25A;
  --color-dark: #18232E;
  --color-grey: #ECE8E1;
  --color-border: #dfd8c3;
  --color-white: #fff;
  --color-text: #253746;
  --color-muted: #636b74;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --shadow-soft: 0 2px 16px rgba(25, 27, 29, 0.08), 0 1.5px 4px rgba(199,162,90,0.06);
  --radius-lg: 18px;
  --radius-md: 11px;
  --radius-sm: 6px;
  --transition: 0.26s cubic-bezier(.55,.11,.57,1.51);
  --container-width: 1200px;
}

/* ========== TYPOGRAPHY ========== */
html { font-size: 16px; }
body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-accent);
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.75rem; line-height: 1.1; margin-bottom: 18px; }
h2 { font-size: 2.2rem; line-height: 1.15; margin-bottom: 16px; }
h3 { font-size: 1.6rem; margin-bottom: 12px; }
h4 { font-size: 1.15rem; }
p, ul li, ol li, address { color: var(--color-muted); }
p, ul, ol { margin-bottom: 1.1em; }
strong { font-weight: 600; color: var(--color-primary); }

/* ========== CONTAINER & LAYOUT ========== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 650px) {
  .section { padding: 26px 6px; margin-bottom: 36px; }
}

/* ========== HEADER / NAVIGATION ========== */
header { background: var(--color-white); box-shadow: 0 4px 18px rgba(37,55,70,0.05); position: sticky; top: 0; z-index: 192; }
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
nav {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
}
nav > a img {
  height: 46px;
  min-width: 90px;
  margin-right: 52px;
  filter: brightness(0.9);
}
nav ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
nav ul li {}
nav ul li a {
  padding: 9px 20px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.075rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  color: var(--color-primary);
  position: relative;
}
nav ul li a:not(.cta):hover,
nav ul li a:not(.cta):focus {
  background: var(--color-grey);
  color: var(--color-gold);
  box-shadow: 0 1.5px 9px 0 rgba(199,162,90,0.11);
}
nav ul li a.cta.primary {
  background: var(--color-gold);
  color: var(--color-primary);
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(199,162,90,0.12);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
nav ul li a.cta.primary:hover, nav ul li a.cta.primary:focus {
  background: var(--color-primary);
  color: var(--color-gold);
  box-shadow: 0 6px 24px rgba(37,55,70,0.16);
}
nav ul li a.cta.secondary {
  background: var(--color-accent);
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: background var(--transition), color var(--transition), border var(--transition);
}
nav ul li a.cta.secondary:hover, nav ul li a.cta.secondary:focus {
  background: var(--color-gold);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ======= BURGER MENU (MOBILE) ======= */
.mobile-menu-toggle {
  display: none;
  padding: 11px 16px;
  background: var(--color-accent);
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-gold);
  font-size: 2.1rem;
  color: var(--color-gold);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  z-index: 210;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-gold);
  color: var(--color-primary);
  box-shadow: 0 6px 24px rgba(199,162,90,0.15);
}
@media (max-width: 1020px) {
  nav ul {
    display: none;
  }
  .mobile-menu-toggle { display: block; }
}

.mobile-menu {
  position: fixed;
  inset: 0 0 0 0;
  background: rgba(37,55,70,0.98);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.86,.02,.45,.97);
  z-index: 2400;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  margin: 24px 24px 0 0;
  font-size: 2rem;
  color: var(--color-gold);
  background: none;
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-gold);
  padding: 6px 14px;
  transition: background var(--transition), color var(--transition);
  align-self: flex-end;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-gold);
  color: var(--color-primary);
}
.mobile-nav {
  margin-top: 22vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: var(--color-gold);
  font-size: 1.55rem;
  font-weight: 600;
  padding: 17px 32px;
  border-radius: var(--radius-md);
  background: transparent;
  transition: background var(--transition), color var(--transition);
  min-width: 75vw;
  text-align: center;
  letter-spacing: 0.01em;
  box-shadow: 0 1.5px 7px 0 rgba(199,162,90,0.06);
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-gold);
  color: var(--color-primary);
}

/* ========== MAIN PAGE LAYOUTS ========== */
main {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 18px;
}
/* For each feature item */
.feature-grid li {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 30px 24px;
  flex: 1 1 280px;
  min-width: 240px;
  max-width: 335px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  border: 1.5px solid var(--color-border);
  transition: box-shadow var(--transition), border var(--transition), transform var(--transition);
  position: relative;
}
.feature-grid li:hover,
.feature-grid li:focus-within {
  box-shadow: 0 7px 32px 0 rgba(199,162,90,0.15);
  border-color: var(--color-gold);
  transform: translateY(-2px) scale(1.02);
}
.feature-grid li img {
  width: 42px;
  height: 42px;
  margin-bottom: 6px;
  filter: brightness(0.98) sepia(0.11) drop-shadow(0 0 6px #f7f5ef18);
}
.feature-grid li strong {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.15rem;
}

/* Section with image + text alignment pattern */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.text-image-section img {
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  flex: none;
  max-width: 390px;
}
.text-image-section .content {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Cards: use for client stories, testimonials, etc. */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  border: 1.5px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow var(--transition), border var(--transition);
  min-width: 240px;
  flex: 1 1 330px;
}
.card:hover,
.card:focus-within {
  border-color: var(--color-gold);
  box-shadow: 0 7px 32px 0 rgba(199,162,90,0.13);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 30px 22px 24px 24px;
  gap: 12px;
}

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

.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 32px 24px 26px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border-left: 7px solid var(--color-gold);
  margin-bottom: 20px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card p {
  color: var(--color-dark);
  font-family: var(--font-body);
  font-size: 1.18rem;
  font-style: italic;
  flex: 1 1 0%;
  margin-right: 12px;
}
.testimonial-card strong {
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-size: 1.025rem;
}
.testimonial-card:hover {
  box-shadow: 0 7px 34px 0 rgba(199,162,90,0.16);
  border-left: 7px solid var(--color-primary);
}

/* ========== BUTTONS & CTAs ========== */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.13rem;
  line-height: 1.2;
  min-width: 152px;
  padding: 12px 28px;
  border-radius: var(--radius-lg);
  border: none;
  background: var(--color-gold);
  color: var(--color-primary);
  box-shadow: var(--shadow-soft);
  letter-spacing: 0.01em;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border var(--transition), transform var(--transition);
  cursor: pointer;
  position: relative;
  margin-bottom: 12px;
}
.cta.primary {
  background: var(--color-gold);
  color: var(--color-primary);
  border: 1.5px solid var(--color-gold);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--color-primary);
  color: var(--color-gold);
  box-shadow: 0 10px 38px 0 rgba(37,55,70,0.13);
  border-color: var(--color-gold);
  transform: translateY(-1.5px) scale(1.04);
}
.cta.secondary {
  background: var(--color-accent);
  color: var(--color-gold);
  border: 1.5px solid var(--color-gold);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--color-gold);
  color: var(--color-primary);
}

/* ========== FORMS (Contact etc.) ========== */
input, textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: var(--color-grey);
  border: 1.5px solid var(--color-border);
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  transition: border var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 2px 12px 0 rgba(199,162,90,0.11);
}
label { font-family: var(--font-display); color: var(--color-primary); font-weight: 500; margin-bottom: 6px; display: block; }

/* ========== FOOTER ========== */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 0;
  margin-top: 80px;
}
footer section {
  padding: 34px 0 18px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}
footer address, footer a {
  color: var(--color-accent);
  font-style: normal;
  font-size: 1rem;
  letter-spacing: 0.015em;
}
footer img {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin: 0 5px -4px 2px;
  filter: brightness(1.6) sepia(1) hue-rotate(-30deg) saturate(2);
}
footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
footer nav ul li a {
  color: var(--color-gold);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
footer nav ul li a:hover, footer nav ul li a:focus {
  background: var(--color-gold);
  color: var(--color-primary);
}

/* ========== RESPONSIVENESS ========== */
@media (max-width: 1020px) {
  nav > a img { margin-right: 20px; height: 37px; }
  .container { padding: 0 8px; }
}
@media (max-width: 830px) {
  .feature-grid { gap: 18px; }
  .feature-grid li { max-width: 100%; flex: 1 1 320px; padding: 23px 12px; }
  .testimonial-card { flex-direction: column; align-items: flex-start; padding: 18px 12px; }
}
@media (max-width: 768px) {
  header .container { height: 61px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.36rem; }
  .card-container, .feature-grid, .content-grid { flex-direction: column; gap: 20px; }
  .text-image-section { flex-direction: column; gap: 18px; align-items: flex-start; }
  .testimonial-card { padding: 13px 7px; }
  .card { padding: 0; }
}
@media (max-width: 550px) {
  h1 { font-size: 1.32rem; }
  h2, h3 { font-size: 1rem; }
  .card-content, .testimonial-card { padding: 11px 5px; }
}

/* ========== COOKIE CONSENT BANNER ========== */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--color-primary);
  color: var(--color-accent);
  z-index: 5500;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4vw 22px 4vw;
  box-shadow: 0 -8px 40px rgba(37,55,70,0.09);
  font-size: 1rem;
  transition: transform 0.35s cubic-bezier(.66,-0.13,.52,1.15), opacity 0.32s;
}
#cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
#cookie-banner-msg {
  flex: 2 1 0%;
}
#cookie-banner-buttons {
  flex: none;
  display: flex;
  gap: 18px;
}
.cookie-btn {
  padding: 11px 24px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  background: var(--color-accent);
  border: 1.5px solid var(--color-gold);
  color: var(--color-primary);
  transition: background var(--transition), color var(--transition), border var(--transition), box-shadow var(--transition);
  margin-right: 4px;
}
.cookie-btn.accept {
  background: var(--color-gold);
  color: var(--color-primary);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-primary);
  color: var(--color-gold);
}
.cookie-btn.reject {
  background: transparent;
  color: var(--color-gold);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--color-gold);
  color: var(--color-primary);
}
.cookie-btn.settings {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-gold);
}
@media (max-width: 650px) {
  #cookie-banner { flex-direction: column; align-items: flex-start; gap: 11px; padding: 20px 10px 21px 10px; }
  #cookie-banner-buttons { gap: 12px; flex-wrap: wrap; }
}

/* ========== COOKIE PREFERENCES MODAL ========== */
#cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 5510;
  inset: 0 0 0 0;
  background: rgba(37,55,70,0.6);
  align-items: center;
  justify-content: center;
  transition: opacity 0.28s;
}
#cookie-modal-overlay.show {
  display: flex;
  opacity: 1;
}
#cookie-modal {
  background: var(--color-white);
  padding: 38px 24px 32px 24px;
  border-radius: var(--radius-lg);
  max-width: 450px;
  width: 93vw;
  box-shadow: 0 9px 60px rgba(37,55,70,0.23);
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 1.125rem;
  color: var(--color-primary);
  position: relative;
  z-index: 20;
}
#cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--color-gold);
}
#cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  justify-content: space-between;
  margin-bottom: 5px;
}
.cookie-category label {
  font-family: var(--font-display);
  font-size: 1.075rem;
  color: var(--color-primary);
  font-weight: 500;
}
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-grey);
  border-radius: 28px;
  cursor: pointer;
  transition: background 0.22s;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--color-gold);
}
.cookie-slider:before {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-white);
  transition: transform 0.21s;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(22px);
}
.cookie-category[data-essential] .cookie-switch { opacity: 0.55; pointer-events: none; }
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 15px;
  z-index: 22;
  font-size: 1.5rem;
  color: var(--color-gold);
  background: none;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-gold);
  padding: 2px 11px;
  transition: background var(--transition), color var(--transition);
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-gold);
  color: var(--color-primary);
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 10px;
}

/* ========== ACCESSIBILITY / TRANSITIONS ========== */
html { scroll-behavior: smooth; }
:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 2px; }

/* ========== MISC / DECORATIVE ========== */
hr {
  border: none;
  border-bottom: 1.5px solid var(--color-border);
  margin: 30px 0 30px 0;
}

/* ========== PRINT SAFE ========== */
@media print {
  header, footer, #cookie-banner, #cookie-modal-overlay, .mobile-menu { display: none !important; }
}
