/* === CSS Reset & Normalize (Mobile First) === */
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,
main, 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;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1.5; background: #151A22; color: #E2E8F0; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
img { max-width: 100%; height: auto; display: block; }
table { border-collapse: collapse; border-spacing: 0; }
:root {
  --brand-primary: #003366;
  --brand-secondary: #EFD469;
  --brand-accent: #E2E8F0;
  --brand-bg: #151A22;
  --brand-bg-secondary: #202632;
  --brand-metal-accent: #A8A8A8;
  --brand-metal-dark: #282E38;
  --brand-shadow: 0 2px 16px 0 rgba(15,20,30,0.12);
  --danger: #c44b33;
  --success: #39c169;
  --text-base: #E2E8F0;
  --text-light: #B3BAC6;
  --text-heading: #F7F9FC;
  --surface: #232937;
}

/* === Typography === */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:700,900&display=swap');
body {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  color: var(--text-base);
  background: var(--brand-bg);
}
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: 1px;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.05rem; margin-bottom: 10px; }
p, ul, li, table, th, td { font-family: 'Montserrat', Arial, sans-serif; }
p, ul, ol, li { font-size: 1rem; color: var(--text-base); }
strong { font-weight: 700; color: var(--brand-secondary); }
em { color: var(--brand-metal-accent); }
a { color: var(--brand-secondary); cursor: pointer; }
a:hover, a:focus { color: #e5b800; text-decoration: underline; }
.subheadline { font-size: 1.2rem; color: var(--text-light); margin-bottom: 24px; margin-top: 12px; }

/* === Layout Utility Containers (Flexbox Only!) === */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--brand-shadow);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--brand-metal-accent);
  transition: box-shadow 0.2s, border 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.21);
  border: 1.5px solid var(--brand-secondary);
  z-index: 2;
}
.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) {
  .text-image-section { flex-direction: column; align-items: stretch; gap: 20px; }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #F8FAFC;
  color: #0D1B2A;
  border-radius: 10px;
  box-shadow: 0 3px 20px 0 rgba(0,0,0,0.09);
  padding: 20px;
  margin-bottom: 20px;
  border-left: 5px solid var(--brand-secondary);
  font-size: 1.05rem;
  transition: box-shadow 0.2s, border 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 30px 0 rgba(0,0,0,0.13);
  border-left: 5px solid var(--brand-primary);
}
.testimonial-author { font-weight: 600; color: var(--brand-primary); font-size: 0.98rem; }
.testimonial-rating {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #e7c839;
  letter-spacing: 2px;
  font-size: 1.1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === Header & Navigation (Flex & Responsive Burger) === */
header {
  width: 100%;
  background: var(--brand-bg-secondary);
  border-bottom: 2px solid var(--brand-metal-accent);
  position: sticky;
  top: 0;
  z-index: 100;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
nav img {
  width: 150px;
  height: auto;
  margin-right: 38px;
}
nav ul {
  display: flex;
  gap: 22px;
}
nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.03em;
  font-weight: 500;
  color: var(--text-base);
  padding: 6px 14px;
  border-radius: 4px;
  transition: background 0.16s, color .16s;
}
nav ul li a:hover, nav ul li a:focus, nav ul li a.active {
  background: var(--brand-secondary);
  color: #232937;
}
.cta-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  background: var(--brand-secondary);
  color: #1B232E;
  border: none;
  border-radius: 5px;
  padding: 12px 32px;
  margin-left: 28px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.23s, color 0.23s, box-shadow 0.19s;
  box-shadow: 0 2px 8px 0 rgba(255,228,98,0.10);
  outline: none;
  position: relative;
}
.cta-primary:hover, .cta-primary:focus {
  background: #F6D23C;
  color: var(--brand-primary);
  box-shadow: 0 4px 16px 0 rgba(239,212,105,0.23);
}
.cta-secondary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--brand-secondary);
  border: 2px solid var(--brand-secondary);
  background: none;
  padding: 10px 34px;
  border-radius: 5px;
  margin-top: 30px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border 0.18s, background 0.21s, color 0.18s;
  outline: none;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2.2rem;
  color: var(--brand-secondary);
  padding: 6px 12px;
  cursor: pointer;
  z-index: 999;
  margin-left: 20px;
  transition: background 0.19s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: rgba(37,36,29,0.1);
  border-radius: 8px;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30, 32, 40, 0.98);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.28,0.63,0.5,1), opacity 0.22s;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2rem;
  color: var(--brand-secondary);
  background: transparent;
  border: none;
  align-self: flex-end;
  margin: 22px 26px 0 0;
  cursor: pointer;
  transition: background 0.13s;
  border-radius: 8px;
  padding: 8px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(239,212,105,0.08);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: start;
  margin: 48px 0 0 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  color: var(--brand-accent);
  padding: 8px 0;
  transition: color 0.18s;
  border-bottom: 1px solid transparent;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--brand-secondary);
  border-bottom: 1px solid var(--brand-secondary);
}
@media (max-width: 1024px) {
  nav ul {
    display: none;
  }
  .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 768px) {
  nav img { width: 120px; }
  .mobile-nav { margin: 38px 0 0 20px; }
  header nav { padding: 8px 0; }
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(120deg, #1B232E 0%, #141922 100%);
  min-height: 360px;
  display: flex;
  align-items: center;
  margin-bottom: 42px;
}
.hero .container {
  display: flex;
  align-items: center;
  height: 100%;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 10px;
  max-width: 560px;
}
.hero h1 {
  font-size: 2.8rem;
  color: var(--brand-secondary);
  line-height: 1.1;
  margin-bottom: 10px;
  text-shadow: 1px 2px 7px #282E38;
}
.hero .subheadline {
  font-size: 1.22rem;
  color: var(--brand-accent);
}
@media (max-width: 540px) {
  .hero h1 { font-size: 2.1rem; }
}

/* === Features Grid & Service List (Flex) === */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  margin-top: 14px;
}
.feature {
  background: var(--surface);
  border: 1.3px solid var(--brand-metal-accent);
  border-radius: 10px;
  box-shadow: var(--brand-shadow);
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 290px;
  padding: 22px 18px 18px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: border 0.2s, box-shadow 0.17s;
}
.feature img {
  width: 38px; height: 38px;
  margin-bottom: 8px;
  filter: grayscale(40%) brightness(1.04);
}
.feature h3 { font-size: 1.2rem; color: var(--brand-secondary); }
.feature .label-price {
  color: var(--brand-accent);
  background: #222837;
  padding: 4px 11px;
  border-radius: 6px;
  font-size: 0.98rem;
  font-weight: 600;
  margin-top: 8px;
}
.feature:hover {
  border: 1.3px solid var(--brand-secondary);
  box-shadow: 0 6px 24px 0 rgba(239,212,105,0.14);
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.service-item {
  background: var(--surface);
  border: 1px solid var(--brand-metal-accent);
  border-radius: 10px;
  box-shadow: var(--brand-shadow);
  flex: 1 1 210px;
  min-width: 210px;
  max-width: 260px;
  padding: 18px 18px 12px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border 0.18s, box-shadow 0.15s;
}
.service-item:hover {
  border: 1.5px solid var(--brand-secondary);
  box-shadow: 0 5px 30px 0 rgba(239,212,105,0.13);
}
.service-item h3 { color: var(--brand-secondary); font-size: 1.11rem; margin-bottom: 4px; }
.service-item .label-price {
  color: var(--brand-accent);
  background: #252F3D;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.98rem;
  font-weight: 500;
  margin-top: 3px;
}

/* === Comparison Table, Pricing Table, FAQ (Flex Holistic) === */
.comparison-table, .pricing-table {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 22px;
}
.comparison-table table, .pricing-table table {
  width: 100%;
  min-width: 540px;
  background: var(--brand-bg-secondary);
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(20,28,38,0.07);
  color: var(--brand-accent);
}
.comparison-table th, .pricing-table th,
.comparison-table td, .pricing-table td {
  padding: 14px;
  border-bottom: 1px solid #232a33;
  text-align: left;
}
.comparison-table th, .pricing-table th {
  background: var(--brand-bg);
  color: var(--brand-secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.comparison-table tr:last-child td, .pricing-table tr:last-child td {
  border-bottom: none;
}

.faq-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-item {
  background: var(--surface);
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 1px 8px 0 rgba(41, 44, 51, 0.11);
  border-left: 5px solid var(--brand-secondary);
  font-size: 1.03rem;
  margin-bottom: 10px;
}
.faq-item h3 { margin-bottom: 5px; color: var(--brand-secondary); font-size: 1.09rem; }
.faq-item p { color: var(--brand-accent); font-size: 1rem; }

/* === Lists & Textual Elements === */
ul, ol {
  margin-left: 18px;
  margin-bottom: 12px;
  color: var(--text-accent, #ccd4e5);
  font-size: 1rem;
  padding-left: 14px;
}
ul li, ol li { margin-bottom: 5px; list-style: disc; font-size: 1rem; }
.text-section { display: flex; flex-direction: column; gap: 12px; }
.privacy-note {
  color: #bdbdbd;
  font-size: 0.97rem;
  margin-top: 8px;
}

/* === Footer === */
footer {
  width: 100%;
  background: #13171E;
  border-top: 2px solid var(--brand-metal-accent);
  padding-top: 18px;
  margin-top: 42px;
}
footer .container {
  padding: 0 17px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 0 30px 0;
}
.footer-links {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 6px;
}
.footer-links a {
  color: var(--brand-secondary);
  font-size: 0.97rem;
  transition: color 0.17s;
}
.footer-links a:hover {
  color: #eecd1c;
}
.footer-socials {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 8px;
}
.footer-socials a {
  background: #232937;
  padding: 7px;
  border-radius: 50%;
  transition: background 0.17s;
}
.footer-socials a:hover {
  background: var(--brand-secondary);
}
.footer-socials img {
  width: 26px;
  height: 26px;
  filter: grayscale(55%) brightness(1.09);
}
.mini-address {
  color: #a4b1c6;
  font-size: 0.99rem;
  margin-top: 4px;
  opacity: 0.69;
  letter-spacing: 0.02em;
}

/* === Cookie Consent Banner & Modal === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  background: var(--brand-bg-secondary);
  box-shadow: 0 -4px 20px 0 rgba(0,0,0,0.13);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 8vw 18px 8vw;
  color: var(--brand-accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: transform 0.38s cubic-bezier(0.25,0.69,0.48,1.12), opacity 0.21s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-banner button {
  font-family: 'Montserrat', sans-serif;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  padding: 8px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border 0.13s;
}
.cookie-accept {
  background: var(--brand-secondary);
  color: #171f2a;
}
.cookie-accept:hover,.cookie-accept:focus {
  background: #ffe55d;
  color: var(--brand-primary);
}
.cookie-reject {
  background: #282E38;
  color: var(--brand-secondary);
  border: 1.5px solid var(--brand-secondary);
}
.cookie-reject:hover, .cookie-reject:focus {
  background: var(--brand-secondary);
  color: var(--brand-bg-secondary);
}
.cookie-settings {
  background: transparent;
  color: var(--brand-metal-accent);
  border: 1.3px solid var(--brand-metal-accent);
}
.cookie-settings:hover, .cookie-settings:focus {
  background: #333c4f;
  color: var(--brand-secondary);
  border-color: var(--brand-secondary);
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 96vw;
  max-width: 420px;
  background: var(--brand-bg-secondary);
  border-radius: 14px;
  box-shadow: 0 7px 44px 0 rgba(0,0,0,0.23);
  padding: 36px 29px 26px 29px;
  color: var(--brand-accent);
  z-index: 100010;
  transform: translate(-50%,-50%) scale(0.93);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.33s;
  display: flex;
  flex-direction: column;
  gap: 21px;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h3 {
  color: var(--brand-secondary);
  font-size: 1.13rem;
  margin-bottom: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 0 10px 0;
  border-bottom: 1px solid #2b2e36;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal-category:last-child { border-bottom: none; }
.cookie-modal-toggle[disabled] {
  background: #adb0b4;
  cursor: not-allowed;
}
.cookie-modal-toggle {
  appearance: none;
  width: 38px;
  height: 20px;
  border-radius: 12px;
  background: #333c4f;
  position: relative;
  outline: none;
  border: 1.5px solid #b8baba;
  cursor: pointer;
  transition: background 0.18s, border 0.13s;
}
.cookie-modal-toggle:checked {
  background: var(--brand-secondary);
  border-color: #ffe76b;
}
.cookie-modal-toggle:before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 1.5px;
  left: 2px;
  transform: translateX(0);
  transition: transform 0.16s;
}
.cookie-modal-toggle:checked:before {
  transform: translateX(16px);
  background: var(--brand-primary);
}
.cookie-modal-buttons {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 24px;
}
.cookie-modal-accept, .cookie-modal-cancel {
  font-size: 1rem;
  border-radius: 7px;
  font-weight: 500;
  border: none;
  padding: 9px 20px;
  cursor: pointer;
  transition: background 0.17s;
}
.cookie-modal-accept {
  background: var(--brand-secondary);
  color: #15181f;
}
.cookie-modal-accept:hover, .cookie-modal-accept:focus {
  background: #f9e05a; color: #111;
}
.cookie-modal-cancel {
  background: transparent;
  color: var(--brand-accent);
  border: 1.3px solid var(--brand-accent);
}
.cookie-modal-cancel:hover, .cookie-modal-cancel:focus {
  background: #252e36;
}
@media (max-width: 800px) {
  .cookie-banner {
    padding: 13px 3vw 13px 3vw;
    font-size: 0.99rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .cookie-banner .banner-buttons { align-self: flex-end; }
  .cookie-modal { padding: 22px 8px 18px 13px; }
}

/* === Responsive & Spacing Utilities === */
@media (max-width: 1024px) {
  .feature-grid, .service-list {
    gap: 18px;
  }
  .container {
    padding-left: 9px; padding-right: 9px;
  }
}
@media (max-width: 800px) {
  .card-container, .service-list, .feature-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .feature, .service-item {
    max-width: 100%; min-width: 0;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.23rem; }
  h3 { font-size: 1.07rem; }
  section { padding: 24px 5px !important; }
  .section { padding: 24px 5px; }
  .content-wrapper { gap: 21px; }
}

/* === Animations & Micro-Interactions === */
button, a, .card, .feature, .service-item, .faq-item, .testimonial-card, .cookie-banner, .cta-primary, .cta-secondary {
  transition: all 0.19s cubic-bezier(.4,0,.6,1), background 0.21s;
}
.card:active, .feature:active, .service-item:active {
  transform: scale(0.98);
}
.mobile-menu, .cookie-modal, .cookie-banner {
  will-change: transform, opacity;
}

/* === Miscellaneous === */
::-webkit-scrollbar {
  width: 8px;
  background: #232747;
}
::-webkit-scrollbar-thumb {
  background: #363d50;
  border-radius: 4px;
}
::-webkit-input-placeholder { color: #8b94a7; }
:-ms-input-placeholder { color: #8b94a7; }
::placeholder { color: #8b94a7; }

/* === Accessibility & Focus Styles === */
a:focus, button:focus, .cta-primary:focus, .cta-secondary:focus, .mobile-menu-close:focus {
  outline: 2px dashed var(--brand-secondary);
  outline-offset: 2px;
}

/* === Tables special on small screens === */
@media (max-width: 600px) {
  .comparison-table table, .pricing-table table { font-size: 0.95rem; }
}

/* === Ensure min-spacing between all sections/cards === */
section { margin-bottom: 60px; padding: 40px 20px; }
.card, .feature, .service-item, .testimonial-card, .faq-item { margin-bottom: 20px; }
.card-container, .feature-grid, .service-list, .content-grid { gap: 20px; }

/* === Remove grid/column properties completely - Flexbox only ensured === */
/* End of CSS */
