/* --- CSS RESET & NORMALIZATION --- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #23272B;
  color: #F9F7F3;
}
img, picture, video {
  max-width: 100%;
  display: block;
  height: auto;
  border: 0;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select {
  font-family: inherit;
  font-size: 100%;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

/* --- ROOT BRAND COLORS AND FONT VARIABLES (with fallbacks) --- */
:root {
  --color-primary: #427991;
  --color-primary-dark: #305369;
  --color-secondary: #F9F7F3;
  --color-accent: #88B985;
  --color-dark-bg: #23272B;
  --color-light-bg: #2f353c;
  --color-metal: #8E939A;
  --color-border: #34393F;
  --color-error: #D84949;
  --color-shadow: rgba(26, 29, 35, 0.16);

  --font-display: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Roboto', 'Arial', sans-serif;
}


/* --- BODY, TYPOGRAPHY, HEADINGS --- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--color-dark-bg);
  color: var(--color-secondary);
  letter-spacing: 0.02em;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-secondary);
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.14;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  line-height: 1.18;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, li {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-metal);
}
strong {
  color: var(--color-secondary);
  font-weight: 600;
}

@media (min-width: 769px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.35rem; }
}

/* --- CONTAINERS & LAYOUTS --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* --- FLEXBOX UTILITY CLASSES --- */
.card-container, .feature-grid, .category-grid, .icon-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card-container { gap: 24px; }
.content-grid  { gap: 20px; justify-content: space-between; }
.icon-grid, .feature-grid, .category-grid {
  gap: 24px;
  justify-content: space-between;
}
@media (max-width: 900px) {
  .card-container, .feature-grid, .category-grid, .icon-grid, .content-grid {
    gap: 16px;
  }
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F1F2F3;
  color: #23272B;
  border-radius: 10px;
  box-shadow: 0 2px 12px 0 rgba(47, 53, 60, 0.12);
  padding: 20px;
  margin-bottom: 20px;
  flex: 1 1 300px;
  min-width: 280px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- HERO SECTION --- */
.hero {
  padding: 60px 0 40px 0;
  background: linear-gradient(105deg, #23272B 65%, var(--color-primary) 110%);
  box-shadow: 0 8px 32px 0 var(--color-shadow);
}
.hero h1 {
  color: var(--color-secondary);
  text-shadow: 1px 2px 8px rgba(26,29,35,0.25);
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--color-metal);
  max-width: 600px;
  opacity: 0.94;
}

/* --- NAVIGATION --- */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-light-bg);
  padding: 0 16px;
  gap: 24px;
  height: 65px;
  box-shadow: 0 2px 4px 0 var(--color-shadow);
  z-index: 20;
  position: relative;
}
.main-nav img {
  height: 42px;
  width: auto;
}
.main-nav ul {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav li {
  margin: 0;
}
.main-nav a {
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-secondary);
  padding: 8px 4px;
  transition: color 0.2s;
  border-radius: 3px;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--color-accent);
  background: rgba(136,185,133,0.09);
}

.cta-primary {
  background: linear-gradient(96deg, var(--color-accent) 65%, #6c8c6d 100%);
  color: #23272B;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px 0 rgba(136,185,133,0.13);
  margin-left: 14px;
  transition: background 0.15s, box-shadow 0.18s, color 0.2s;
  border: none;
  cursor: pointer;
  outline: none;
  display: inline-block;
}
.cta-primary:hover,
.cta-primary:focus {
  background: var(--color-metal);
  color: #fff;
  box-shadow: 0 4px 16px 0 var(--color-accent);
}

@media (max-width: 1024px) {
  .main-nav ul {
    gap: 16px;
  }
  .cta-primary { padding: 10px 18px; margin-left: 8px; }
}

@media (max-width: 900px) {
  .main-nav { gap: 6px; }
  .main-nav ul { gap: 8px; }
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-secondary);
  font-size: 2rem;
  margin-left: auto;
  cursor: pointer;
  z-index: 30;
}
@media (max-width: 820px) {
  .main-nav ul,
  .main-nav .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(35,39,43,0.98);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.66,0,0.34,1);
  z-index: 1010;
  padding: 0 40px 40px 28px;
  overflow-y: auto;
  box-shadow: 0 10px 54px 0 rgba(35,41,51,0.25);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-secondary);
  margin: 28px 12px 38px 0;
  align-self: flex-end;
  cursor: pointer;
  z-index: 2000;
  transition: color 0.22s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}
.mobile-nav a {
  font-size: 1.25rem;
  padding: 14px 4px 12px 4px;
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 5px;
  letter-spacing: 0.03em;
  transition: background 0.2s, color 0.22s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  background: rgba(136,185,133,0.10);
}

@media (max-width: 500px) {
  .mobile-menu { padding: 0 12px 12px 12px; }
  .mobile-nav {
    gap: 20px;
  }
  .mobile-nav a {
    font-size: 1.08rem;
    padding: 12px 2px 10px 2px;
  }
}

/* --- CARDS & FEATURE BOXES --- */
.card, .category-grid > div, .feature-grid > div, .icon-grid > li {
  background: var(--color-light-bg);
  border-radius: 10px;
  box-shadow: 0 2px 16px 0 var(--color-shadow);
  border: 1.5px solid var(--color-border);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 225px;
  flex: 1 1 270px;
  transition: border-color 0.17s, box-shadow 0.17s, background 0.21s;
}
.card:hover, .category-grid > div:hover, .feature-grid > div:hover, .icon-grid > li:hover {
  border-color: var(--color-primary);
  box-shadow: 0 6px 32px 0 var(--color-shadow);
  background: #384046;
}
.card img, .category-grid img, .feature-grid img, .icon-grid img {
  height: 44px;
  width: auto;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .card, .category-grid > div, .feature-grid > div, .icon-grid > li {
    min-width: 100%;
  }
}

/* --- LISTS & ICON GRIDS --- */
ul.icon-grid, .icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}
.icon-grid li {
  align-items: center;
  gap: 16px;
  display: flex;
  border-radius: 8px;
  background: rgba(66,121,145,0.10);
  padding: 12px 16px;
  font-size: 1rem;
  color: var(--color-metal);
  min-width: 185px;
  font-weight: 500;
  margin-bottom: 12px;
}
.icon-grid li img {
  height: 34px;
}

ul {
  margin-top: 8px;
}
ul li {
  padding-left: 0.4em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
ul li img {
  height: 26px;
  width: auto;
  margin-right: 6px;
}
ol li {
  margin-left: 1.2em;
  margin-bottom: 10px;
  font-size: 1rem;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  background: #F9F7F3;
  color: #23272B;
  border: 1.3px solid var(--color-metali, #E2E3E5);
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 12px 0 rgba(47,53,60,0.08);
  padding: 20px;
  flex: 1 1 250px;
  font-size: 1.08rem;
  min-width: 210px;
  transition: box-shadow 0.15s;
}
.testimonial-card strong {
  font-size: 1rem;
  color: #1A1C22;
  margin-left: 12px;
  font-family: var(--font-display);
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px 0 rgba(192,212,206,0.13);
}


/* --- FOOTER --- */
footer {
  background: var(--color-light-bg);
  color: var(--color-secondary);
  padding: 42px 0 10px 0;
  font-size: 1.06rem;
  border-top: 2px solid var(--color-primary-dark);
}
footer .content-wrapper {
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
footer nav a {
  color: var(--color-secondary);
  margin: 0 10px 0 0;
  font-family: var(--font-body);
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.23s;
}
footer nav a:hover,
footer nav a:focus {
  color: var(--color-accent);
}
footer .social-links {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
footer .social-links a img {
  height: 32px;
  width: auto;
  filter: grayscale(30%) brightness(1.1); 
  transition: filter 0.18s;
}
footer .social-links a:hover img {
  filter: none;
}
footer p {
  color: var(--color-metal);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
footer img[alt*="logo"] {
  margin-bottom: 8px;
  height: 38px;
}

/* --- FORMS --- */
input[type="text"], input[type="email"], input[type="password"], textarea {
  background: #23272B;
  border: 1.5px solid var(--color-border);
  border-radius: 6px;
  padding: 12px;
  color: var(--color-secondary);
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 12px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.12s, box-shadow 0.12s;
}
input:focus, textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-dark);
}
label {
  color: var(--color-metal);
  font-weight: 500;
  margin-bottom: 6px;
}

/* --- BUTTONS --- */
button, .button, .btn {
  display: inline-block;
  font-family: var(--font-display);
  padding: 10px 24px;
  border-radius: 5px;
  background: var(--color-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 2px 10px 0 rgba(66,121,145,0.16);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.12s;
  border: none;
  outline: none;
}
button:hover, button:focus,
.button:hover, .button:focus, .btn:hover, .btn:focus {
  background: var(--color-accent);
  color: #23272B;
  box-shadow: 0 4px 16px 0 var(--color-shadow);
}


/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100%;
  background: #23272B;
  color: #F9F7F3;
  border-top: 2px solid var(--color-primary);
  box-shadow: 0 -4px 32px 0 var(--color-shadow);
  z-index: 6000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 14px 18px 14px;
  font-size: 1.03rem;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s, transform 0.32s;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.cookie-banner button {
  padding: 8px 18px;
  font-size: 1rem;
  border-radius: 4px;
  font-weight: 700;
  background: var(--color-primary);
  color: #fff;
  outline: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cookie-banner button.cookie-accept {
  background: var(--color-accent);
  color: #23272B;
}
.cookie-banner button.cookie-reject {
  background: #384046;
  color: #fff;
}
.cookie-banner button.cookie-settings {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--color-primary-dark);
  color: #fff;
}
.cookie-banner button.cookie-settings:hover, .cookie-banner button.cookie-settings:focus {
  background: var(--color-accent);
  color: #23272B;
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 10099;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(35,39,43,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.36s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #F9F7F3;
  color: #23272B;
  border-radius: 14px;
  padding: 34px 30px 24px 30px;
  min-width: 330px;
  max-width: 95vw;
  box-shadow: 0 8px 40px 0 rgba(66,121,145,0.22);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal h2 {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category label {
  margin: 0 0 0 0;
  font-size: 1rem;
  color: #23272B;
  font-weight: 600;
}
.cookie-modal input[type=checkbox] {
  accent-color: var(--color-primary);
  height: 18px; width: 18px;
}
.cookie-modal .category-desc {
  color: #6B6B74;
  font-size: 0.97rem;
  margin-left: 38px;
}
.cookie-modal .cookie-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 1.9rem;
  color: var(--color-primary);
  cursor: pointer;
  transition: color 0.1s;
}
.cookie-modal .cookie-close:hover {
  color: var(--color-error);
}
.cookie-modal .cookie-modal-btns {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  justify-content: flex-end;
}
.cookie-modal button {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  outline: none;
  cursor: pointer;
  background: var(--color-primary);
  color: #fff;
  transition: background 0.16s, color 0.16s;
}
.cookie-modal button.cookie-save {
  background: var(--color-accent);
  color: #23272B;
}
.cookie-modal button.cookie-cancel {
  background: #384046;
  color: #fff;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: var(--color-primary-dark);
  color: #fff;
}
.cookie-modal button.cookie-save:hover, .cookie-modal button.cookie-save:focus {
  background: var(--color-accent);
  color: #23272B;
}

@media (max-width: 520px) {
  .cookie-modal {
    min-width: 90vw;
    padding: 18px 8px 14px 12px;
  }
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .container { padding: 0 10px; }
  .content-wrapper { gap: 16px; }
  .section { margin-bottom: 40px; padding: 28px 6px; }
}
@media (max-width: 640px) {
  .container { padding: 0 2vw; }
  .hero { padding: 40px 0 24px 0; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  footer { font-size: 0.98rem; }
}

/* --- ANIMATIONS & INTERACTIONS --- */
.cta-primary, button, .button, .btn {
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
}
.card, .category-grid > div, .feature-grid > div, .icon-grid > li, .testimonial-card {
  transition: box-shadow 0.15s, border-color 0.13s, background 0.1s;
}
.testimonial-card {
  transition: box-shadow 0.15s, background 0.1s;
}
.card:hover, .category-grid > div:hover, .feature-grid > div:hover, .icon-grid > li:hover, .testimonial-card:hover {
  box-shadow: 0 2px 40px 0 var(--color-shadow);
}
.mobile-menu,
.mobile-menu.open,
.cookie-banner,
.cookie-banner.visible,
.cookie-modal-overlay,
.cookie-modal-overlay.open {
  will-change: transform, opacity;
}

/* --- SCROLLBAR STYLE (vertical) --- */
::-webkit-scrollbar {
  width: 10px;
  background: #23272B;
}
::-webkit-scrollbar-thumb {
  background: #323942;
  border-radius: 20px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-dark);
}

/* --- ACCESSIBILITY/CONTRAST FOR TESTIMONIALS --- */
.testimonial-card p,
.testimonial-card strong {
  color: #23272B !important;
  font-weight: 500;
}

/* --- Z-INDEX layers for overlays/navigation --- */
header { z-index: 30; position: relative; }

/* --- MINIMUM SPACING FOR ALL CARDS --- */
.card, .category-grid > div, .feature-grid > div, .icon-grid > li, .testimonial-card {
  margin-bottom: 20px!important;
}

/* --- FORCE NO ABSOLUTE/FLOAT FOR CONTENT --- */
.card, .category-grid > div, .feature-grid > div, .icon-grid > li, .testimonial-card {
  position: relative !important;
}

/* --- CUSTOM STYLES FOR BRAND METAL ACCENT --- */
.metallic {
  color: var(--color-metal);
  letter-spacing: 0.02em;
}

/* --- VISUAL HIERARCHY AND WHITE SPACE --- */
section {
  margin-bottom: 60px;
  background: transparent;
}

/* --- END OF CSS --- */
