/* -------------------------------------------------- */
/* 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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #1a1a1a;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
img {
  border: 0;
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  outline: none;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/* -------------------------------------------------- */
/* VARIABLES                                         */
/* -------------------------------------------------- */
:root {
  --color-primary: #191B1D;           /* near-black for headers and strong contrast */
  --color-secondary: #F5F7FA;         /* light gray backgrounds */
  --color-white: #fff;
  --color-black: #000;
  --color-darkgray: #34373B;
  --color-mediumgray: #767676;
  --color-lightgray: #E9EAEC;
  --color-border: #D2D4D8;
  --color-accent: #FDB813;            /* brand accent, use sparingly in monochrome */

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

  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 6px 32px 0 rgba(30, 30, 30, 0.08);
  --shadow-hover: 0 12px 40px 0 rgba(10,10,15,0.10);
  --transition: .2s cubic-bezier(.5,.2,.2,1);
}

/* -------------------------------------------------- */
/* TYPOGRAPHY                                        */
/* -------------------------------------------------- */
body {
  font-family: var(--font-body);
  color: var(--color-darkgray);
  background: var(--color-secondary);
  font-size: 16px; /* base size */
  min-height: 100vh;
  letter-spacing: 0.01em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
h1 { font-size: 2.4rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 14px; }
h4 { font-size: 1.05rem; margin-bottom: 12px; }
h5, h6 { font-size: 1rem; margin-bottom: 8px; }

p, ul, ol {
  font-size: 1rem;
  color: var(--color-darkgray);
  margin-bottom: 16px;
  line-height: 1.7;
}
strong, b { color: var(--color-black); font-weight: 700; }

.text-section {
  font-size: 1.1rem;
  color: var(--color-darkgray);
}


/* -------------------------------------------------- */
/* LAYOUT & SPACING                                  */
/* -------------------------------------------------- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-hover);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 24px;
}

.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: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--color-secondary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  font-size: 1rem;
  color: var(--color-primary);
  transition: box-shadow var(--transition), transform .18s;
}
.testimonial-card p {
  color: var(--color-primary);
  font-style: italic;
  font-size: 1.12rem;
  margin-bottom: 8px;
}
.testimonial-card span {
  color: var(--color-mediumgray);
  font-size: 0.98rem;
  font-family: var(--font-body);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.014);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  background: var(--color-white);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
}

/* Features block (ul>li inside section) */
section ul>li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  padding: 24px 20px 18px 20px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform .18s;
}
section ul>li img {
  width: 36px;
  height: 36px;
  margin-bottom: 4px;
}
section ul>li:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.013);
}

/* Lists (unordered & ordered) */
ul {
  padding-left: 20px;
  margin-bottom: 20px;
}
ul li {
  margin-bottom: 12px;
  list-style: disc;
  color: var(--color-darkgray);
}
ol {
  padding-left: 22px;
  margin-bottom: 20px;
}
ol li {
  list-style: decimal;
  margin-bottom: 10px;
  color: var(--color-darkgray);
}

/* Remove style for special feature blocks */
section ul { list-style: none; padding-left: 0; }
section ul>li { list-style: none; }

/* Accordions – for FAQ page (not present, but ensuring style if added) */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Address and contact */
address {
  font-style: normal;
  color: var(--color-darkgray);
  margin-bottom: 18px;
  font-size: 1rem;
}

/* -------------------------------------------------- */
/* BUTTONS & LINK STYLES                             */
/* -------------------------------------------------- */
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  padding: 14px 38px;
  border-radius: 30px;
  border: none;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform .15s;
  cursor: pointer;
  box-shadow: 0 3px 15px 0 rgba(20,20,25,0.11);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-black);
  color: var(--color-accent);
  box-shadow: 0 8px 32px 0 rgba(23,23,23,0.14);
  transform: translateY(-1px) scale(1.03);
}

/* Links */
a {
  color: var(--color-primary);
  border-bottom: 1px solid transparent;
  transition: border-color .18s, color .18s;
}
a:hover, a:focus {
  color: var(--color-black);
  border-bottom: 1px solid var(--color-accent);
  outline: none;
}

/* Adjust nav and footer link spacing */
nav a {
  display: inline-block;
  padding: 7px 14px;
  margin-right: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.01rem;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
nav a:last-child { margin-right: 0; }
nav a:hover, nav a.active {
  background: var(--color-lightgray);
  color: var(--color-black);
}

/* -------------------------------------------------- */
/* HEADER & NAVIGATION                               */
/* -------------------------------------------------- */
header {
  background: var(--color-white);
  box-shadow: 0 2px 16px rgba(34,34,34,0.04);
  margin-bottom: 24px;
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  padding: 18px 24px 14px 24px;
  position: relative;
}
.logo img {
  height: 38px;
  vertical-align: middle;
  margin-right: 10px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  align-items: center;
  margin-left: 24px;
}
.btn-primary {
  margin-left: auto;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2.1rem;
  cursor: pointer;
  margin-left: 14px;
  border-radius: 50%;
  padding: 8px 10px;
  transition: background var(--transition);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-lightgray);
}

/* MOBILE NAVIGATION OVERLAY */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 1200;
  background: rgba(20,22,26,0.97);
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform var(--transition);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0%);
  animation: slideInMobileMenu .4s cubic-bezier(.85,0,.15,1);
}
@keyframes slideInMobileMenu {
  from { transform: translateX(100%); }
  to { transform: translateX(0%); }
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2.3rem;
  cursor: pointer;
  margin: 18px 0 8px 24px;
  align-self: flex-start;
  transition: color .16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 32px 34px;
  width: 100%;
}
.mobile-nav a {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.16rem;
  letter-spacing: 0.03em;
  padding: 14px 14px 14px 10px;
  border-radius: var(--radius); 
  width: 90%;
  transition: background .15s, color .15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-darkgray);
  color: var(--color-accent);
}

/* Overlay scroll lock when menu open */
body.mobile-menu-open {
  overflow: hidden;
}

/* -------------------------------------------------- */
/* HERO & MAIN SECTIONS                              */
/* -------------------------------------------------- */
main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
main section .container {
  padding: 0 0;
}

/* Hero highlight */
main section:first-of-type {
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--radius);
  margin-top: 12px;
  box-shadow: var(--shadow-hover);
}
main section:first-of-type h1, 
main section:first-of-type p {
  color: var(--color-white);
}
main section:first-of-type a.btn-primary {
  background: var(--color-accent);
  color: var(--color-black);
  border: none;
}
main section:first-of-type a.btn-primary:hover {
  background: var(--color-black);
  color: var(--color-accent);
}

/* CTA section style */
main section:last-of-type {
  background: var(--color-lightgray);
}

/* Section headings */
section h2 {
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-primary);
  text-shadow: 0 1px 0 #fff,0 2px 8px rgba(0,8,29,0.04);
}

/* -------------------------------------------------- */
/* FOOTER                                            */
/* -------------------------------------------------- */
footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: 36px 0 12px 0;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1100px;
}
.footer-brand {
  flex: 1 1 180px;
  min-width: 150px;
  margin-bottom: 12px;
}
.footer-brand img {
  height: 36px;
  margin-bottom: 12px;
}
.footer-contact {
  flex: 2 1 220px;
  min-width: 180px;
}
.footer-contact ul {
  list-style: none;
  padding: 0;
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--color-white);
  font-size: 0.99rem;
}
.footer-contact img {
  width: 16px;
  height: 16px;
  filter: grayscale(1) brightness(2);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 120px;
  min-width: 80px;
}
.footer-nav a {
  color: var(--color-white);
  opacity: .87;
  font-family: var(--font-display);
  font-size: 1rem;
}
.footer-nav a:hover {
  color: var(--color-accent);
}
.footer-social {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-darkgray);
  border-radius: 50%;
  transition: background .2s;
}
.footer-social a:hover {
  background: var(--color-primary);
}
.footer-social img {
  width: 18px;
  height: 18px;
  filter: grayscale(1) brightness(3);
}

/* -------------------------------------------------- */
/* COOKIE CONSENT BANNER                             */
/* -------------------------------------------------- */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2500;
  background: var(--color-white);
  border-top: 1.5px solid var(--color-border);
  box-shadow: 0 -4px 32px 0 rgba(60,60,72,0.09);
  padding: 18px 18px 16px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 1rem;
  visibility: visible;
  opacity: 1;
  transition: opacity .28s;
}
#cookie-banner.hide {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
#cookie-banner .cookie-text {
  flex: 2 1 260px;
  color: var(--color-darkgray);
  font-size: 1rem;
  margin-right: 16px;
}
#cookie-banner .cookie-btns {
  display: flex;
  gap: 14px;
}
.cookie-btn, .cookie-settings-btn {
  padding: 9px 20px;
  border-radius: 24px;
  border: none;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  background: var(--color-black);
  color: var(--color-white);
  transition: background .15s, color .15s;
  box-shadow: 0 1px 10px 0 rgba(12,12,21,0.09);
}
.cookie-btn.accept {
  background: var(--color-accent);
  color: var(--color-black);
}
.cookie-btn.reject {
  background: var(--color-mediumgray);
}
.cookie-btn:hover, .cookie-btn:focus, .cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}

/* Cookie preferences modal popup */
#cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 3000;
  background: rgba(28,31,32,0.78);
  align-items: center;
  justify-content: center;
  animation: fadeInCookieModal .32s;
}
#cookie-modal.open {
  display: flex;
}
@keyframes fadeInCookieModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
#cookie-modal .modal-content {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px 0 rgba(20,22,33,0.19);
  padding: 36px 26px 28px 26px;
  min-width: 320px;
  max-width: 96vw;
  color: var(--color-darkgray);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
#cookie-modal .modal-close {
  position: absolute;
  top: 18px; right: 16px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--color-primary);
  cursor: pointer;
  transition: color .14s;
}
#cookie-modal .modal-close:hover, #cookie-modal .modal-close:focus {
  color: var(--color-accent);
}
#cookie-modal h3 {
  font-size: 1.4rem;
  font-family: var(--font-display);
  color: var(--color-primary);
}
#cookie-modal .cookie-category {
  margin-bottom: 12px;
}
#cookie-modal .category-title {
  font-family: var(--font-display);
  font-size: 1.07rem;
  font-weight: 600;
  color: var(--color-primary);
}
#cookie-modal .category-desc {
  font-size: 1rem;
  color: var(--color-mediumgray);
  margin-bottom: 4px;
}
#cookie-modal .cookie-toggle {
  margin-left: 2px;
  margin-right: 10px;
}

/* Cookie toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-lightgray);
  border-radius: 20px;
  transition: .2s;
}
.slider:before {
  position: absolute;
  content: '';
  height: 16px; width: 16px;
  left: 2px; bottom: 2px;
  background: var(--color-mediumgray);
  border-radius: 50%;
  transition: .2s;
}
.switch input:checked + .slider {
  background: var(--color-accent);
}
.switch input:checked + .slider:before {
  background: var(--color-black);
  transform: translateX(16px);
}

#cookie-modal .cookie-btn-row {
  display: flex;
  flex-direction: row;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 18px;
}

/* -------------------------------------------------- */
/* RESPONSIVE DESIGN (MOBILE-FIRST)                   */
/* -------------------------------------------------- */
@media (max-width: 1200px) {
  .container {
    max-width: 94vw;
    padding: 0 18px;
  }
}
@media (max-width: 900px) {
  .container, footer .container {
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
  }
  .footer-contact, .footer-nav, .footer-brand { min-width: 0; }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 8px;
    padding: 8px 10px 8px 10px;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .btn-primary {
    margin-left: auto;
    margin-right: 8px;
  }
  main > section, main section {
    padding: 22px 7px;
    margin-bottom: 36px;
  }
  .testimonial-card {
    padding: 13px;
    font-size: 1rem;
  }
  .content-wrapper, .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
    padding: 14px 6px 12px 8px;
  }
  #cookie-banner .cookie-btns {
    gap: 7px;
  }
  #cookie-modal .modal-content {
    padding: 21px 7vw 18px 7vw;
    min-width: 80vw;
  }
}
@media (max-width: 430px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.07rem; }
  h3 { font-size: 0.99rem; }
  .btn-primary,
  .cookie-btn,
  .cookie-settings-btn {
    padding: 10px 12px;
    font-size: 0.96rem;
  }
  main section {
    padding: 12px 2px;
  }
}

/* Ensure card/section spacing doesn't collapse */
section > .container > .content-wrapper > *,
section > .container > .content-wrapper > .testimonial-card,
section > .container > .content-wrapper > .card {
  margin-bottom: 20px;
}

/* Utility classes (if needed for HTML extension) */
.d-none { display: none !important; }
.visually-hidden { position:absolute; height:1px; width:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }

/* -------------------------------------------------- */
/* MICRO INTERACTIONS                                */
/* -------------------------------------------------- */
.card, .testimonial-card, .feature-item {
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover, .feature-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.012);
}

/* Focus states for accessibility */
a:focus, .btn-primary:focus, .cookie-btn:focus, .cookie-settings-btn:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* -------------------------------------------------- */
/* END OF STYLE                                      */
/* -------------------------------------------------- */
