/* --- CSS RESET & BASE TYPOGRAPHY --- */

html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #18191a;
  background: #fff;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 1rem;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img, svg {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #18191a;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #17516D;
  outline: none;
}
ul, ol {
  padding-left: 20px;
  margin-bottom: 1.5em;
}
li {
  margin-bottom: 0.6em;
}

/* FONT FAMILY CLASSES */
h1, h2, h3, h4, h5, h6, .logo, .cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
}
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #111112;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #171717;
}
h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #222324;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #292929;
}
p, ul, ol {
  font-size: 1rem;
  color: #222324;
}
strong {
  font-weight: 600;
  color: #171717;
}
em {
  font-style: italic;
}
blockquote {
  border-left: 4px solid #17516D;
  margin: 0 0 12px 0;
  padding-left: 14px;
  font-style: italic;
  font-size: 1.08em;
  color: #232323;
}

/* --- CONTAINER & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(30,30,30,0.07);
  padding: 28px 22px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 32px rgba(15,15,15,0.13);
  transform: translateY(-3px) scale(1.01);
}
.content-grid, .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}
.text-section {
  margin-bottom: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- HEADER --- */
header {
  background: #fff;
  border-bottom: 1px solid #e2e2e2;
  box-shadow: 0 2px 10px rgba(30,30,30,0.015);
  position: relative;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 11px;
  padding-bottom: 11px;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: 24px;
}
.logo img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #232323;
  padding: 6px 5px;
  border-radius: 3px;
  transition: color 0.18s, background 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #17516D;
  color: #fff;
}
.cta-btn {
  display: inline-block;
  background: #fff;
  color: #111112;
  border: 1.5px solid #111112;
  border-radius: 24px;
  padding: 9px 29px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 10px rgba(30,30,30,0.03);
  transition: background 0.25s, color 0.18s, box-shadow 0.18s, border-color 0.18s;
  margin-left: 30px;
  cursor: pointer;
}
.cta-btn:hover, .cta-btn:focus {
  background: #171717;
  color: #fff;
  border-color: #171717;
  box-shadow: 0 4px 18px rgba(23,81,109,0.09);
  transform: translateY(-2px) scale(1.025);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #171717;
  font-size: 2.1rem;
  line-height: 1;
  cursor: pointer;
  margin-left: 16px;
  z-index: 51;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus {
  color: #17516D;
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(18,18,18,0.95);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.65,.05,.4,1);
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.3rem;
  align-self: flex-end;
  margin: 26px 23px 12px 0;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 102;
}
.mobile-menu-close:focus {
  color: #F4BC5D;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: 32px 28px 34px 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-size: 1.34rem;
  font-weight: 500;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  letter-spacing: 0.03em;
  border-radius: 2px;
  transition: color 0.14s, background 0.13s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #F4BC5D;
  background: rgba(255,255,255,0.09);
}

@media (max-width: 1080px) {
  .main-nav {
    gap: 14px;
  }
  .cta-btn {
    margin-left: 14px;
  }
}
@media (max-width: 900px) {
  .container {
    padding: 0 17px;
  }
}
@media (max-width: 890px) {
  header .container {
    padding: 10px 10px;
  }
  .main-nav {
    gap: 7px;
  }
}
@media (max-width: 820px) {
  .main-nav a { font-size: 0.97rem; }
  .cta-btn { font-size: 0.95rem; padding: 8px 22px; }
}
@media (max-width: 720px) {
  .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  header .container {
    gap: 0;
  }
}

/* --- HERO SECTIONS --- */
.hero {
  background: #191a1a;
  color: #fff;
  padding: 60px 0 40px 0;
  box-shadow: 0 3px 24px rgba(28,28,28,0.07);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.hero h1,
.hero h2 {
  color: #fff;
}
.hero p, .hero ul, .hero li{
  color: #e3e3e3;
}

/* --- SERVICES, FEATURES, CTA --- */
.services {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}
.services .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.services .content-wrapper > div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 18px rgba(28,28,28,0.08);
  padding: 28px 17px 22px 20px;
  min-width: 240px;
  flex: 1 1 255px;
  transition: box-shadow 0.21s, transform 0.21s;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.services .content-wrapper > div:hover, .services .content-wrapper > div:focus-within {
  box-shadow: 0 4px 28px rgba(23,81,109,0.14);
  transform: translateY(-2px) scale(1.015);
}
.services h2 {
  margin-bottom: 15px;
}

.features {
  margin-bottom: 60px;
  padding: 40px 0;
}
.features ul {
  list-style: disc;
  margin: 22px 0 6px 18px;
}
.features li {
  margin-bottom: 16px;
  font-size: 1.08rem;
  color: #262728;
}
.features li:last-child {
  margin-bottom: 1px;
}

.cta-section {
  background: #1b1b1d;
  color: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 30px rgba(30,30,30,0.08);
  margin: 55px 0 0 0;
  padding: 65px 0 56px 0;
}
.cta-section h2,
.cta-section h3,
.cta-section p {
  color: #fff;
}
.cta-section .cta-btn {
  background: #fff;
  color: #1b1b1d;
  border-radius: 23px;
  border: none;
  padding: 11px 32px;
  margin-top: 24px;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 5px 28px rgba(28,28,28,0.16);
}
.cta-section .cta-btn:hover,
.cta-section .cta-btn:focus {
  background: #F4BC5D;
  color: #18191a;
  transform: translateY(-2px) scale(1.025);
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #fafbfc;
  border-left: 4px solid #111112;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(28,28,28,0.06);
  padding: 20px;
  min-width: 250px;
  flex: 1 1 270px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, border-color 0.18s;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  border-color: #17516D;
  box-shadow: 0 10px 38px rgba(23,81,109,0.10);
  transform: translateY(-3px) scale(1.01);
}
.testimonial-card blockquote {
  color: #161617;
  font-size: 1.08rem;
  font-style: italic;
}
.testimonial-card span {
  font-size: 0.96rem;
  color: #565759;
  margin-top: 4px;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* --- LEGAL --- */
.legal {
  background: #fafbfc;
  border-radius: 10px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 2px 16px rgba(28,28,28,0.08);
}
.legal h1, .legal h2, .legal h3 { color: #171717; }
.legal ul {
  margin-top: 9px;
  margin-bottom: 12px;
}
.text-section {
  margin-bottom: 20px;
}

/* --- THANK YOU --- */
.thank-you {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  background: #f9f9fb;
  padding: 60px 28px 70px 28px;
}
.thank-you .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.thank-you h1, .thank-you p {
  color: #111112;
}

/* --- FOOTER --- */
footer {
  background: #191a1a;
  color: #fff;
  padding: 32px 0 10px 0;
  margin-top: 70px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  margin-bottom: 6px;
}
.footer-nav a {
  color: #f9f9f9;
  font-size: 1rem;
  position: relative;
  transition: color 0.16s;
}
.footer-nav a:after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: #F4BC5D;
  transition: width 0.19s;
  border-radius: 6px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #F4BC5D;
}
.footer-nav a:hover:after, .footer-nav a:focus:after {
  width: 100%;
}
.footer-copy {
  font-size: 0.98rem;
  color: #eeeef0;
  opacity: 0.9;
  margin-top: 4px;
}

/* --- SPACING & FLEX PATTERNS (MANDATORY) --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.content-grid, .content-wrapper {
  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 DESIGN --- */
@media (max-width: 1200px) {
  .services .content-wrapper > div {
    min-width: 200px;
    flex-basis: 47%;
  }
}
@media (max-width: 970px) {
  .services .content-wrapper, .content-grid, .card-container, .features .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    min-width: 0;
    flex-basis: 100%;
  }
}
@media (max-width: 904px) {
  .hero,
  .legal,
  .cta-section,
  .section {
    padding-left: 10px;
    padding-right: 10px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2.02rem; }
  h2 { font-size: 1.32rem; }
  .hero {
    padding: 38px 0 26px 0;
  }
  .cta-section {
    padding: 32px 0 28px 0;
  }
  .section, .legal {
    padding: 22px 7px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .footer-nav {
    gap: 11px;
  }
}
@media (max-width: 480px) {
  html { font-size: 15px; }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.18rem; }
  .thank-you .container {
    gap: 11px;
  }
  .cta-btn, .ct a {
    padding: 8px 17px;
    font-size: 0.98rem;
  }
}

/* --- BUTTON & LINK MICRO-INTERACTIONS --- */
button, .cta-btn, input[type="submit"], input[type="button"] {
  transition: background 0.17s, color 0.17s, border 0.17s, box-shadow 0.19s, transform 0.17s;
  cursor: pointer;
  outline: none;
  border: none;
}
button:disabled, .cta-btn:disabled, input:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #171717;
  color: #fff;
  z-index: 1200;
  padding: 18px 12px 18px 22px;
  box-shadow: 0 -8px 32px rgba(23,81,109,0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 1.03rem;
  animation: cookie-slideup 0.6s cubic-bezier(.72,.12,.56,1) both;
}
@keyframes cookie-slideup {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-content {
  flex: 1 1 220px;
  margin-right: 15px;
}
.cookie-banner-buttons {
  display: flex;
  gap: 17px;
}
.cookie-btn, .cookie-settings-btn {
  border-radius: 21px;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 8px 21px;
  color: #171717;
  background: #fff;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(30,30,30,0.09);
  margin-left: 0;
  transition: background 0.17s, color 0.17s, transform 0.14s;
}
.cookie-btn:hover, .cookie-btn:focus, .cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #F4BC5D;
  color: #191a1a;
  transform: scale(1.022);
}
.reject-btn {
  background: #191a1a;
  color: #fff;
  border: 1.5px solid #fff;
}
.reject-btn:hover, .reject-btn:focus {
  background: #fff;
  color: #191a1a;
  border-color: #191a1a;
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.57);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.20s cubic-bezier(.22, .59, .36, 1) both;
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #222324;
  border-radius: 11px;
  box-shadow: 0 16px 46px rgba(31,31,31,0.20);
  width: 100%;
  max-width: 430px;
  padding: 32px 22px 21px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 17px;
  animation: modal-pop 0.45s cubic-bezier(.59,.12,.29,1.05) both;
}
@keyframes modal-pop {
  from { transform: scale(0.72) translateY(40px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.2rem;
  margin-bottom: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
  opacity: 0.98;
}
.cookie-category label {
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}
.cookie-modal .toggle-switch {
  appearance: none;
  width: 43px;
  height: 23px;
  background: #ececec;
  border-radius: 19px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-modal .toggle-switch:checked {
  background: #17516D;
}
.toggle-switch:before {
  content: '';
  display: block;
  position: absolute;
  left: 3px;
  top: 2.5px;
  background: #fff;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  transition: left 0.16s;
  box-shadow: 0 2px 8px rgba(30,30,30,0.11);
}
.toggle-switch:checked:before {
  left: 22px;
}
.cookie-modal .save-btn {
  margin-top: 18px;
  align-self: flex-end;
  background: #17516D;
  color: #fff;
  border-radius: 21px;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 8px 24px;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(30,30,30,0.10);
  font-size: 1rem;
  border: none;
  transition: background 0.14s;
}
.cookie-modal .save-btn:hover, .cookie-modal .save-btn:focus {
  background: #F4BC5D;
  color: #171717;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 11px;
  right: 13px;
  background: none;
  border: none;
  color: #17516D;
  font-size: 1.66rem;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  color: #F4BC5D;
  outline: none;
}

@media (max-width:390px){
  .cookie-modal { padding: 13px 7px 13px 14px; }
}

/* --- MONOCHROME SOPHISTICATED COLOR SCHEME OVERRIDES --- */
body, main, .container, .services .content-wrapper > div, footer {
  background: #fff;
}
.hero,
footer {
  background: #18191a;
  color: #fff;
}

/* --- SCROLLBAR (optional subtle) --- */
html {
  scrollbar-width: thin;
  scrollbar-color: #B3B3B3 #eee;
}
::-webkit-scrollbar {
  width: 11px;
  background: #efefef;
}
::-webkit-scrollbar-thumb {
  background: #c5c7cd;
  border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b0b2b8;
}

/* --- FOCUS STATES FOR ACCESSIBILITY --- */
a:focus, button:focus, input:focus, .cta-btn:focus {
  outline: 2.5px solid #17516D;
  outline-offset: 2px;
}

/* --- PRINT FRIENDLY --- */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
}
