/* CSS RESET & BASE TYPOGRAPHY */
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F6F2EA;
  color: #2F4858;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #2F4858;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover, a:focus {
  color: #B34700;
  outline: none;
}

/* VARIABLE FALLBACKS */
:root {
  --primary: #2F4858;
  --secondary: #F6F2EA;
  --accent: #B34700;
  --accent-light: #D97742;
  --white: #fff;
  --gray-light: #F6F2EA;
  --gray: #E7E9EC;
  --shadow: 0 4px 16px 0 rgba(47,72,88,0.07), 0 1.5px 4px 0 rgba(47,72,88,0.06);
  --radius: 12px;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* HEADER */
header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(47,72,88,0.06);
  position: sticky;
  top: 0;
  z-index: 1002;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 28px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  font-family: 'Raleway', Arial, Helvetica, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary);
  font-size: 16px;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background 0.18s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--gray);
  color: var(--accent);
}
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  font-family: 'Raleway', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 17px;
  border-radius: var(--radius);
  border:none;
  padding: 12px 30px;
  margin-left: 24px;
  box-shadow: 0 3px 16px rgba(47,72,88,0.06);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
  letter-spacing: 0.03em;
  text-align: center;
}
.cta-button:hover, .cta-button:focus {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(47,72,88,0.11);
  transform: translateY(-2px) scale(1.035);
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  margin-left: 18px;
  transition: color 0.2s;
  z-index: 1102;
}
.mobile-menu-toggle:focus {
  color: var(--accent);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(47,72,88,0.97);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.37s cubic-bezier(.60,.10,0,1.00);
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: flex-start;
  padding-top: 45px;
  width: 100vw;
  min-height: 100vh;
}
.mobile-menu.active {
  transform: translateX(0);
  box-shadow: 0 2px 16px rgba(47,72,88,0.15);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--white);
  align-self: flex-end;
  margin-right: 20px;
  margin-top: 12px;
  line-height: 1;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 32px 28px;
  width: 100vw;
  margin-top: 10px;
}
.mobile-nav a {
  font-family: 'Raleway', Arial, Helvetica, sans-serif;
  font-size: 19px;
  color: var(--white);
  padding: 10px 0 10px 8px;
  width: 100%;
  border-radius: 7px;
  font-weight: 600;
  letter-spacing: 0.015em;
  transition: background 0.16s, color 0.16s;
  display: flex;
  align-items: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--white);
}
@media (max-width: 1024px) {
  .main-nav, .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* MAIN & SECTIONS */
main {
  width: 100%;
  min-height: 60vh;
  background: var(--secondary);
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.text-section {
  max-width: 690px;
  align-self: flex-start;
  margin-bottom: 12px;
}

/* TYPOGRAPHY SCALE & HIERARCHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}
h1 { font-size: 2.55rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.33rem; }
h4 { font-size: 1.12rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: .97rem; }
@media (max-width: 600px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.36rem; }
  h3 { font-size: 1.11rem; }
}
p, ul, ol {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  margin-bottom: 14px;
  color: var(--primary);
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--primary);
}
strong, b {
  font-weight: 700;
}

/* FEATURE GRID & FLEX LISTS */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.feature-grid > div {
  flex: 1 1 260px;
  min-width: 200px;
  max-width: 340px;
  background: var(--gray-light);
  border-radius: var(--radius);
  box-shadow: 0 2.5px 6px rgba(47,72,88,0.046);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 9px 32px rgba(47,72,88,0.11);
  transform: translateY(-2px) scale(1.012);
}
.feature-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 5px;
  object-fit: contain;
}
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.service-list > div {
  background: var(--gray-light);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(47,72,88,0.045);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1 1 270px;
  margin-bottom: 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 9px 32px rgba(47,72,88,0.13);
  transform: translateY(-2px) scale(1.015);
}
.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;
}

@media (max-width: 768px) {
  .feature-grid,
  .service-list,
  .card-container,
  .content-grid,
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .feature-grid > div,
  .service-list > div {
    max-width: 100%;
    min-width: 0;
  }
  section, .section {
    padding: 24px 7px;
  }
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--gray);
  color: #22283B;
  margin-bottom: 20px;
  box-shadow: 0 1.5px 7px rgba(47,72,88,0.065);
  font-size: 1.08rem;
  transition: box-shadow 0.16s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 22px rgba(47,72,88,0.08);
}
.testimonial-card p {
  margin-bottom: 0!important;
  color: #22283B;
  flex: 1 1 auto;
  font-style: italic;
}
.testimonial-card > div {
  font-size: 1rem;
  color: #185081;
  font-weight: bold;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* FOOTER */
footer {
  background: var(--primary);
  color: var(--white);
  margin-top: 32px;
  padding-top: 36px;
  padding-bottom: 24px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
footer a {
  color: var(--accent-light);
  font-weight: 600;
  font-family: 'Raleway', Arial, Helvetica, sans-serif;
  font-size: 15px;
  margin-right: 18px;
  transition: color 0.17s;
}
footer a:hover, footer a:focus {
  color: var(--white);
}
.footer-contact {
  font-size: 0.98rem;
  color: var(--gray);
  margin-top: 0;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.footer-contact img {
  width: 16px;
  height: 16px;
  margin: 0 3px -3px 0;
  display: inline-block;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    padding: 0 8px;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--primary);
  color: var(--white);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  gap: 26px;
  z-index: 2002;
  font-size: 1rem;
  box-shadow: 0 -2px 18px rgba(47,72,88,0.15);
  transition: transform 0.36s;
  transform: translateY(100%);
}
.cookie-banner.active {
  transform: translateY(0);
}
.cookie-banner-message {
  flex: 1 1 auto;
  max-width: 480px;
  color: var(--white);
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-banner-buttons button {
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius);
  border: none;
  padding: 9px 24px;
  font-family: 'Raleway', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, box-shadow 0.14s;
  box-shadow: 0 1px 8px rgba(47,72,88,0.05);
}
.cookie-banner-buttons button:hover, .cookie-banner-buttons button:focus {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 18px rgba(179,71,0,0.16);
}
.cookie-banner-buttons .cookie-settings {
  background: none;
  color: var(--accent-light);
  border: 2px solid var(--accent-light);
  font-weight: 600;
  padding: 9px 18px;
  transition: background 0.15s, color 0.14s;
}
.cookie-banner-buttons .cookie-settings:hover, .cookie-banner-buttons .cookie-settings:focus {
  background: var(--accent-light);
  color: var(--white);
  border-color: var(--accent-light);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .cookie-banner-message {
    max-width: 100%;
    font-size: 0.98rem;
  }
  .cookie-banner-buttons {
    flex-direction: column;
    gap: 9px;
  }
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(47,72,88,0.38);
  z-index: 3002;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.active { opacity: 1; pointer-events: auto; }
.cookie-modal {
  background: var(--white);
  color: var(--primary);
  padding: 38px 28px 28px 28px;
  border-radius: var(--radius);
  box-shadow: 0 8px 38px rgba(47,72,88,0.15);
  max-width: 400px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
  animation: cookieModalPop 0.3s cubic-bezier(.7,.08,0,1.08);
}
@keyframes cookieModalPop {
  from { transform: scale(0.85) translateY(20px); opacity: 0; }
  to   { transform: scale(1.0) translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.65rem;
  color: var(--accent);
  cursor: pointer;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--gray-light);
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.cookie-switch {
  display: inline-block;
  width: 38px;
  height: 22px;
  position: relative;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  background: #ced3dc;
  border-radius: 21px;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: background 0.2s;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--accent);
}
.cookie-slider:before {
  content: '';
  position: absolute;
  left: 2.5px; top: 2.5px;
  width: 17px; height: 17px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.18s cubic-bezier(.7,0,0,1);
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(15px);
}
.cookie-category .locked {
  color: #5c7080;
  font-size: 1.1em;
  margin-left: 7px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 6px;
}
.cookie-modal-actions button {
  padding: 9px 22px;
  border-radius: var(--radius);
  font-family: 'Raleway', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: var(--white);
  transition: background 0.14s, color 0.13s, box-shadow 0.15s;
  box-shadow: 0 1px 8px rgba(47,72,88,0.06);
}
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 15px rgba(47,72,88,0.19);
}
@media (max-width: 500px) {
  .cookie-modal {
    padding: 26px 8px 20px 8px;
    min-width: 0;
    max-width: 97vw;
  }
}

/* BUTTONS - GENERAL */
button, .button {
  font-family: 'Raleway', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: background 0.18s, box-shadow 0.13s, color 0.15s, transform 0.15s;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  padding: 10px 28px;
}
button:focus, .button:focus {
  outline: 2px solid var(--primary);
}
.button-secondary {
  background: var(--gray-light);
  color: var(--primary);
  border: 1.5px solid var(--accent-light);
}
.button-secondary:hover, .button-secondary:focus {
  background: var(--accent-light);
  color: var(--white);
}

/* FORM STYLES */
input, textarea, select {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border-radius: var(--radius);
  border: 1.2px solid var(--gray);
  padding: 10px 14px;
  background: var(--gray-light);
  color: var(--primary);
  transition: border 0.16s, box-shadow 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 1.5px 8px rgba(179,71,0,0.12);
}
label {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 0.99rem;
  color: var(--primary);
  margin-bottom: 5px;
}

/* UTILITY CLASSES FOR SPACING */
.mt-20 { margin-top: 20px !important; } 
.mb-20 { margin-bottom: 20px !important; }
.mt-12 { margin-top: 12px !important; } 
.mb-12 { margin-bottom: 12px !important; }
.mb-32 { margin-bottom: 32px !important; }
.gap-20 { gap: 20px !important; }

/* ANIMATIONS & MICRO-INTERACTIONS */
section, .card, .feature-grid > div, .service-list > div, .testimonial-card {
  will-change: box-shadow, transform;
}

/* FLEXBOX LAYOUTS - CRITICAL CLASSES */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* RESPONSIVE FIXES */
@media (max-width: 950px) {
  .container {
    padding: 0 6px;
  }
}
@media (max-width: 700px) {
  h1 { font-size: 1.39rem; }
  h2 { font-size: 1.22rem; }
  .container {
    padding: 0 4px;
  }
}

/* Hide outline if focus-visible is not supported */
:focus:not(:focus-visible) {
  outline: none;
}

/* SUPPORT FOR FONTS */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Raleway:wght@700;800&display=swap');
