/* === CSS RESET & NORMALIZATION === */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, blockquote, figure, figcaption {
  margin: 0;
  padding: 0;
}
ul, ol {
  list-style: none;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  background: transparent;
  border: none;
  cursor: pointer;
}
html, body {
  min-height: 100%;
  background: #101112;
  color: #222;
}

/* === TYPOGRAPHY === */
:root {
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Source Sans Pro', Arial, Helvetica, sans-serif;
  --color-bg: #fff;
  --color-text: #181a1b;
  --color-primary: #101112;
  --color-secondary: #858585;
  --color-accent: #f4a261;
  --color-link: #222;
  --color-link-hover: #2a9d8f;
  --color-gray-light: #f5f6f7;
  --color-gray: #d2d4d6;
  --color-gray-dark: #44474a;
  --color-border: #242627;
  --shadow-card: 0 8px 32px rgba(20,20,25,0.05);
  --radius-card: 18px;
  --transition: all 0.28s cubic-bezier(.4,0,.2,1);
}
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  word-break: break-word;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: #101112;
  letter-spacing: -1px;
  font-weight: 700;
}
h1 { font-size: 2.7rem; line-height: 1.13; margin-bottom: 16px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 12px; }
h3 { font-size: 1.4rem; line-height: 1.33; margin-bottom: 10px; }
h4 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
p, li, blockquote, cite { font-size: 1rem; color: var(--color-text); }
blockquote {
  font-style: italic;
  color: #212122;
  border-left: 4px solid #181a1b;
  padding-left: 16px;
  margin: 0 0 8px 0;
}
cite {
  display: block;
  margin-top: 6px;
  color: #858585;
  font-size: 0.97rem;
  font-style: normal;
}
strong {
  font-weight: 700;
}

/* === LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1190px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  margin: 0 auto;
  max-width: 870px;
  padding: 0;
}
.text-section {
  background: #fbfbfb;
  box-shadow: 0 1px 16px rgba(21,21,23,0.045);
  border-radius: var(--radius-card);
  padding: 32px 28px 32px 28px;
  margin-bottom: 40px;
}

/* === HEADER & MAIN NAVIGATION === */
header {
  background: #fff;
  box-shadow: 0 2px 18px rgba(24,22,25,0.055);
  margin-bottom: 0;
  z-index: 14;
  position: relative;
}
header .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  min-height: 70px;
  gap: 24px;
}
.logo img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
}
.main-nav a {
  color: var(--color-primary);
  position: relative;
  padding: 3px 0;
  transition: color 0.22s;
}
.main-nav a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: #222;
  border-radius: 2px;
  transition: var(--transition);
  margin-top: 2px;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-link-hover);
}
.main-nav a:hover::after, .main-nav a:focus::after {
  width: 70%;
  background: var(--color-link-hover);
}
.header .cta-btn {
  margin-left: 16px;
}
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--color-primary);
  background: none;
  padding: 6px 12px;
  border-radius: 7px;
  transition: background 0.16s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #ededed;
}

/* === CTA BUTTON === */
.cta-btn {
  font-family: var(--font-display);
  background: #101112;
  color: #fff;
  font-weight: 700;
  border-radius: 9px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 10px 28px;
  font-size: 1.10rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #222;
  color: #f4a261;
  box-shadow: 0 3px 22px rgba(24,22,25,0.12);
  outline: none;
}

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(12,12,13,0.99);
  z-index: 200;
  transform: translateX(-102vw);
  transition: transform 0.36s cubic-bezier(.42,0,.2,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  margin: 32px 24px 12px 24px;
  font-size: 2.5rem;
  color: #fff;
  background: transparent;
  border-radius: 6px;
  align-self: flex-end;
  cursor: pointer;
  transition: background 0.15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: rgba(255,255,255,0.13);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding: 18px 32px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  padding: 11px 0 7px 0;
  border-bottom: 1px solid #252526;
  transition: color 0.20s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  background: none;
}

@media (max-width: 980px) {
  header .container {
    flex-wrap: wrap;
  }
  .main-nav {
    gap: 18px;
    font-size: 1rem;
  }
}
@media (max-width: 830px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .cta-btn {
    font-size: 1rem;
    padding: 9px 18px;
  }
}

/* === SECTIONS & FLEX SPACING === */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  width: 100%;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 24px;
  flex: 1 1 300px;
  min-width: 270px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.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;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1.5px 12px rgba(18,18,23,0.07);
  margin-bottom: 20px;
  border-left: 8px solid #212124;
  min-width: 230px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 16px 0;
}

/* === RESPONSIVE FLEX DIRECTION === */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  section {
    padding: 28px 3vw;
    margin-bottom: 38px;
  }
  .content-wrapper, .text-section {
    padding: 18px 7px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}

/* === LISTS & ICONS === */
ul {
  margin: 16px 0 14px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
ul li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1rem;
  color: #232325;
  line-height: 1.6;
}
ul li img {
  width: 23px;
  height: 23px;
  opacity: 0.82;
  margin-right: 3px;
}

/* === FOOTER === */
footer {
  background: #111212;
  color: #fff;
  border-top: 1px solid #252628;
  padding: 0;
  margin-top: 0;
  font-size: 0.99rem;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 36px 18px 18px 18px;
}
footer img {
  height: 36px;
  margin-bottom: 18px;
  filter: grayscale(1) contrast(1.3);
}
footer p {
  color: #b7b7b7;
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.7;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 2px;
}
.footer-nav a {
  color: #fff;
  opacity: 0.88;
  transition: color 0.18s, opacity 0.16s;
  font-family: var(--font-display);
  font-size: 1.08rem;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
  opacity: 1;
}
footer .container > p:last-child {
  margin-top: 19px;
  font-size: 0.96rem;
  color: #a0a0a0;
}
@media (max-width: 800px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* === CARDS & SHADOWS === */
.card {
  background: #f9f9f9;
  border: 1px solid #ededed;
  box-shadow: 0 4px 36px rgba(14,14,19,0.055);
  border-radius: var(--radius-card);
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 16px 36px rgba(51,51,55,0.12);
  transform: translateY(-3px);
  z-index: 2;
}

/* === TESTIMONIALS === */
.testimonial-card {
  background: #fff;
  color: #1c1d1f;
  border-left: 8px solid #101112;
  box-shadow: 0 6px 26px rgba(12,12,13,0.07);
  font-size: 1.08rem;
  max-width: 580px;
  padding: 28px 29px 22px 23px;
  margin-top: 8px;
  margin-bottom: 32px;
}
.testimonial-card blockquote {
  color: #212122;
}
.testimonial-card cite {
  color: #888;
  margin-left: 6px;
}
@media (max-width: 540px) {
  .testimonial-card {
    padding: 18px 13px 17px 15px;
    font-size: 1rem;
  }
}

/* === TABLE & FORMS BASE (for future expansion) === */
table { border-collapse: collapse; width: 100%; }
th, td { padding: 8px 6px; border: none; text-align: left; }
input, textarea, select {
  font-size: 1rem;
  padding: 9px 13px;
  border-radius: 8px;
  border: 1px solid #dadada;
  background: #fafafa;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid #101112;
  background: #fff;
}

/* === COOKIE CONSENT BANNER === */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(20,20,25,0.96);
  color: #fff;
  z-index: 9999;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.13);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 36px;
  font-family: var(--font-body);
  font-size: 1.07rem;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.38s cubic-bezier(.38,0,.3,1), opacity 0.27s;
}
.cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%) !important;
}
.cookie-consent-banner .cookie-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: 22px;
}
.cookie-consent-banner button {
  font-size: 1rem;
  border-radius: 8px;
  padding: 7px 18px;
  font-family: var(--font-display);
  border: none;
  font-weight: 600;
  transition: background 0.17s, color 0.17s;
}
.cookie-accept-btn {
  background: #101112;
  color: #fff;
}
.cookie-accept-btn:hover, .cookie-accept-btn:focus {
  background: #15171b;
  color: #f4a261;
}
.cookie-reject-btn {
  background: #232426;
  color: #eee;
}
.cookie-reject-btn:hover, .cookie-reject-btn:focus {
  background: #28292b;
  color: #f4a261;
}
.cookie-settings-btn {
  background: transparent;
  color: #f4a261;
  border: 1.5px solid #f4a261;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #fff;
  color: #232325;
}

@media (max-width: 700px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 10px;
    gap: 14px;
    font-size: 0.98rem;
  }
  .cookie-consent-banner .cookie-buttons{
    margin-left: 0;
    gap: 8px;
  }
}

/* === COOKIE SETTINGS MODAL === */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(14,14,15,0.81);
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.33s ease;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal .modal-dialog {
  background: #1d1e1f;
  color: #f8f8f8;
  border-radius: 16px;
  box-shadow: 0 8px 88px rgba(0,0,0,0.22);
  padding: 32px 34px 28px 34px;
  width: 96vw;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal h3 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 3px;
}
.cookie-modal .cookie-options {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-modal label {
  font-size: 1.07rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-modal input[type="checkbox"], 
.cookie-modal input[type="radio"] {
  accent-color: #f4a261;
  width: 17px;
  height: 17px;
}
.cookie-modal .modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 11px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 16px; right: 22px;
  background: none;
  color: #fff;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
  border-radius: 7px;
  transition: background .14s;
  padding: 0 5px;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: rgba(244,162,97,0.08);
}

@media (max-width: 500px) {
  .cookie-modal .modal-dialog {
    padding: 17px 5vw 12px 5vw;
    gap: 13px;
  }
}

/* === MICRO-INTERACTIONS & HOVER === */
.card, .cta-btn, .main-nav a, .footer-nav a, .mobile-nav a {
  transition: var(--transition);
}
main a:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* === CUSTOM SCROLLBAR (monochrome subtle) === */
html {
  scrollbar-width: thin;
  scrollbar-color: #a6a6a9 #f6f6f8;
}
::-webkit-scrollbar {
  width: 8px;
  background: #f6f6f8;
}
::-webkit-scrollbar-thumb {
  background: #c8c8ca;
  border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a8a8aa;
}

/* === MONOCHROME SOPHISTICATED DESIGN === */
body, .text-section, .card, .testimonial-card, footer, .cookie-modal .modal-dialog {
  color-scheme: light dark;
}
body {
  background: #f8f9fb;
  color: #18191a;
}
.text-section, .content-wrapper, .card, .testimonial-card {
  background: #fff;
  border: 1px solid #ededed;
}
h1, h2, h3, h4 {
  color: #101112;
  font-family: var(--font-display);
  letter-spacing: -0.5px;
  font-feature-settings: 'ss04' on;
  font-weight: 700;
  text-rendering: optimizeLegibility;
}

/* === BREADCRUMBS (for future) === */
.breadcrumb {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 0.93rem;
  color: #858585;
  margin-bottom: 14px;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(32px); }
  100% { opacity: 1; transform: translateY(0); }
}
.card, .testimonial-card, section, .cookie-consent-banner {
  animation: fadeInUp 0.78s both;
}

/* === PRINT SUPPORT === */
@media print {
  header, footer, .cookie-consent-banner, .mobile-menu { display: none !important; }
  body { background: #fff !important; color: #222 !important; }
}
