/* ================================================================
   CSS RESET & BASELINE NORMALIZATION
================================================================== */
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;
}
body {
  line-height: 1.5;
  background: #212733;
  color: #f4f7fa;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}
ul, ol {
  padding-left: 1.4em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
strong {
  color: #FDD835;
  font-weight: 600;
}

/* ================================================================
   BRAND COLORS & FONTS (custom property fallback)
================================================================== */
:root {
  --primary: #A83224;
  --primary-dark: #861F11;
  --secondary: #28344A;
  --accent: #FDD835;
  --surface: #232946;
  --surface-alt: #28344A;
  --surface-light: #f4f7fa;
  --white: #fff;
  --black: #101010;
  --neon: #32fff6;
  --danger: #E64849;
  --card-bg: #263159;
  --text-main: #f4f7fa;
  --text-dark: #222;
  --shadow: 0 6px 32px 0 rgba(32,53,76,0.16);

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

html {
  font-size: 16px;
}

body {
  background: linear-gradient(135deg, #1a2233 0%, #232946 100%);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ================================================================
   TYPOGRAPHY
================================================================== */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.375rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--accent);
  letter-spacing: 0.01em;
  text-shadow: 0 0 16px rgba(253,216,53,0.09), 0 2px 8px rgba(41,255,241,0.10);
  line-height: 1.19;
  text-align: center;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--accent);
  letter-spacing: 0.01em;
}
h4, .h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--text-main);
  font-weight: 500;
  margin-bottom: 4px;
}
p, .p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.6;
  text-align: center;
}
.text-section p {
  text-align: left;
}
.text-section ul, .text-section ol {
  text-align: left;
}

/* ================================================================
   HEADER & NAVIGATION
================================================================== */
header {
  width: 100%;
  z-index: 50;
  background: rgba(26,34,51,0.98);
  box-shadow: 0 2px 24px 0 rgba(40,52,74,0.16);
  position: sticky;
  top: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  gap: 18px;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 16px;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-main);
  font-weight: 500;
  position: relative;
  padding: 6px 6px;
}
nav a:hover, nav a:focus {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent), 0 2px 6px #28344A;
  transition: color 0.2s, text-shadow 0.2s;
}

.btn-primary {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 12px 28px;
  border: none;
  border-radius: 28px;
  background: var(--primary);
  color: var(--surface-light);
  box-shadow: 0 2px 24px 0 rgba(168,50,36,0.08);
  cursor: pointer;
  font-weight: 700;
  margin-left: 18px;
  letter-spacing: 0.03em;
  outline: none;
  position: relative;
  transition: background 0.22s, box-shadow 0.18s, transform 0.16s;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-dark);
  color: var(--accent);
  box-shadow: 0 4px 32px 0 rgba(253,216,53,0.19);
  transform: translateY(-2px) scale(1.03);
}

/* ======================================
   MOBILE NAVIGATION (burger)
====================================== */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 2rem;
  cursor: pointer;
  margin-left: 12px;
  outline: none;
  transition: color 0.2s;
  z-index: 110;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: var(--neon);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(26,34,51,0.97);
  backdrop-filter: blur(2px);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.7,0,0.3,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 2.5rem;
  margin: 24px 24px 12px auto;
  align-self: flex-end;
  cursor: pointer;
  z-index: 205;
  transition: color 0.2s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--neon);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  margin: 0 0 0 48px;
}
.mobile-nav a {
  color: var(--accent);
  font-size: 1.19rem;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  padding: 10px 0;
  text-shadow: 0 0 16px rgba(41,255,241,0.06);
  transition: background 0.22s, color 0.19s, border 0.14s;
  border-radius: 6px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: rgba(168,50,36,0.13);
  color: var(--primary);
  text-shadow: none;
}

/* ======================================
   HERO SECTION
====================================== */
.hero-section {
  width: 100%;
  background: linear-gradient(127deg, #232946 65%, #28344A 100%);
  padding: 52px 0 36px 0;
  margin-bottom: 60px;
}
.hero-section .container {
  align-items: center;
}
.hero-section .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 16px;
}

/* ======================================
   SECTIONS SPACING & LAYOUTS
====================================== */
.section, .features-section, .about-section, .cta-section, .testimonials-section, .services-section, .contact-details-section, .contact-form-section, .legal-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.content-grid, .feature-grid, .card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  width: 100%;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 rgba(41,255,241,0.06);
  padding: 28px 22px 24px 22px;
  margin-bottom: 20px;
  min-width: 240px;
  max-width: 320px;
  flex: 1 1 240px;
  position: relative;
  border-left: 4px solid var(--primary);
  transition: border-color 0.18s, box-shadow 0.16s, transform 0.17s;
}
.feature-item img {
  width: 44px;
  height: 44px;
  margin-bottom: 2px;
  filter: drop-shadow(0 0 8px var(--accent));
}
.feature-item:hover, .feature-item:focus-within {
  border-left: 4px solid var(--accent);
  box-shadow: 0 8px 32px 0 var(--neon), 0 2px 18px 0 rgba(41,255,241,0.10);
  transform: translateY(-2px) scale(1.017);
}
.feature-item h3 {
  color: var(--accent);
}
.feature-item p {
  color: var(--text-main);
  text-align: left;
  font-size: 1rem;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 rgba(41,255,241,0.06);
  padding: 32px 24px 32px 24px;
  margin-bottom: 20px;
  min-width: 260px;
  flex: 1 1 260px;
  position: relative;
  transition: box-shadow 0.16s, transform 0.16s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 28px 0 var(--neon), 0 2px 14px 0 rgba(41,255,241,0.13);
  transform: scale(1.025);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonials-section {
  background: linear-gradient(105deg, #2d354c 70%, #353f5d 100%);
  border-radius: 24px;
  box-shadow: 0 2px 24px 0 rgba(25,31,47,0.18);
  margin-bottom: 60px;
  padding-top: 50px;
  padding-bottom: 50px;
}
.testimonials-section .content-wrapper {
  gap: 32px;
  align-items: center;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: var(--surface-light);
  color: var(--text-dark);
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 rgba(41,255,241,0.04);
  padding: 20px;
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 490px;
  transition: box-shadow 0.16s, border 0.16s, transform 0.17s;
  border-left: 4px solid var(--accent);
}
.testimonial-card:hover, .testimonial-card:focus-within {
  border-left: 4px solid var(--primary);
  box-shadow: 0 8px 32px 0 var(--primary), 0 2px 8px 0 rgba(41,255,241,0.10);
  transform: scale(1.015);
}
.testimonial-card p {
  color: var(--text-dark);
  font-size: 1.063rem;
  line-height: 1.7;
  font-style: italic;
  text-align: left;
}
.testimonial-author {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}
/* CTA Section */
.cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(100deg, #232946 68%, #A83224 100%);
  border-radius: 20px;
  margin-bottom: 60px;
  padding: 48px 20px;
}
.cta-section .btn-primary {
  margin-left: 0;
  margin-top: 20px;
}

/* Legal / Info Sections */
.legal-section .content-wrapper {
  align-items: flex-start;
  text-align: left;
}
.legal-section h1, .legal-section h2, .legal-section h3 {
  text-align: left;
}
.legal-section .text-section p, .legal-section ul, .legal-section ol {
  text-align: left;
}

/* Footer */
footer {
  width: 100%;
  background: #1a2233;
  box-shadow: 0 -2px 28px 0 rgba(40,52,74,0.14);
  padding: 44px 0 20px 0;
  margin-top: 24px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.footer-logo {
  flex: 0 0 auto;
  margin-right: 16px;
}
.footer-logo img {
  height: 40px;
  width: auto;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: var(--accent);
  font-size: 1rem;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--primary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text-main);
  font-size: 0.97rem;
}
.footer-contact a {
  color: var(--accent);
  font-family: var(--font-body);
}
.footer-contact a:hover, .footer-contact a:focus {
  color: var(--primary);
}

/* ================================================================
   COOKIE CONSENT BANNER
================================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 300;
  width: 100vw;
  background: #212733;
  border-top: 3px solid var(--accent);
  color: var(--text-main);
  font-size: 1rem;
  padding: 20px 10px 24px 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  box-shadow: 0 -2px 34px 0 rgba(40,52,74,0.25);
  transition: bottom 0.35s;
}
.cookie-banner.hide {
  display: none;
}
.cookie-banner .banner-text {
  flex: 1;
  min-width: 150px;
}
.cookie-banner .banner-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 8px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 22px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  transition: background 0.18s, color 0.18s;
  margin-right: 0px;
}
.cookie-btn.accept {
  background: var(--primary);
  color: var(--surface-light);
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: var(--accent);
  color: var(--primary-dark);
}
.cookie-btn.reject {
  background: var(--surface-light);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: var(--danger);
  color: #fff;
}
.cookie-btn.settings {
  background: var(--secondary);
  color: var(--accent);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--accent);
  color: var(--secondary);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(32,35,60,0.95);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.23s;
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-preferences {
  background: #212733;
  border-radius: 20px;
  box-shadow: 0 12px 48px 0 rgba(41,255,241,0.12);
  padding: 36px 28px;
  min-width: 320px;
  min-height: 240px;
  max-width: 98vw;
  color: var(--surface-light);
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: stretch;
}
.cookie-preferences h2 {
  color: var(--accent);
  font-size: 1.32rem;
  margin-bottom: 18px;
  text-align: left;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cookie-category.essential {
  opacity: 0.65;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--surface-light);
}
.cookie-toggle {
  width: 38px;
  height: 20px;
  background: var(--secondary);
  border-radius: 11px;
  position: relative;
  cursor: pointer;
  appearance: none;
  outline: none;
  transition: background 0.16s;
}
.cookie-toggle:checked {
  background: var(--accent);
}
.cookie-toggle::before {
  content: "";
  display: block;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 2px;
  top: 2px;
  transition: left 0.18s;
  box-shadow: 0 1px 4px 0 rgba(168,50,36,0.07);
}
.cookie-toggle:checked::before {
  left: 20px;
}
.cookie-preferences .modal-actions {
  margin-top: 6px;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-close {
  background: none;
  color: var(--accent);
  border: none;
  font-size: 1.7rem;
  position: absolute;
  right: 32px; top: 18px;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-close:hover, .cookie-close:focus {
  color: var(--primary);
}

/* ================================================================
   BUTTONS, EFFECTS & MICRO-INTERACTIONS
================================================================== */
button, .btn-primary, .cookie-btn {
  transition: background 0.16s, color 0.16s, border 0.16s, box-shadow 0.18s;
}
.btn-primary:active, .cookie-btn:active {
  transform: scale(0.98);
}

/* Focus visible for all buttons/important links */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button:disabled, .btn-primary:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ================================================================
   MEDIA QUERIES – RESPONSIVE
================================================================== */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
  .container {
    max-width: 92vw;
    padding: 0 4vw;
  }
  .footer-logo {
    margin-bottom: 16px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .card-container, .content-grid {
    justify-content: flex-start;
  }
  .feature-item, .card {
    min-width: 220px;
    max-width: 100%;
  }
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .container {
    max-width: 100vw;
    padding: 0 10px;
  }
  header .container {
    flex-direction: row;
    align-items: center;
    padding: 14px 10px;
    gap: 14px;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .btn-primary {
    margin-left: 0;
  }
  .hero-section, .cta-section, .section, .features-section, .about-section, .testimonials-section, .services-section, .contact-details-section, .contact-form-section, .legal-section {
    padding: 32px 5px;
    margin-bottom: 38px;
  }
  .feature-grid, .card-container, .content-grid {
    gap: 18px;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .testimonials-section, .cta-section {
    padding: 26px 6px 32px 6px;
    border-radius: 13px;
    margin-bottom: 36px;
  }
  .footer-logo {
    margin-bottom: 10px;
  }
}
@media (max-width: 540px) {
  html {
    font-size: 14px;
  }
  .btn-primary, .cookie-btn {
    font-size: 0.97rem;
    padding: 10px 16px;
  }
  h1 {
    font-size: 1.59rem;
  }
  h2 {
    font-size: 1.26rem;
  }
  .testimonial-card, .feature-item, .card {
    padding: 14px 10px 16px 10px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 8px;
  }
  .cookie-modal .cookie-preferences {
    min-width: 92vw;
    padding: 19px 6px;
  }
}

/* ================================================================
   SCROLLBAR & SELECTION
================================================================== */
::-webkit-scrollbar {
  width: 8px;
  background: #1a2233;
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}
::selection {
  background: var(--accent);
  color: var(--secondary);
}

/* ================================================================
   EXTRAS / UTILS (Hide content for screen readers)
================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Hide cookie modal by default */
.cookie-modal.hide {
  display: none;
  opacity: 0;
  pointer-events: none;
}

/* ==============
   TRANSITIONS
 =============== */
.testimonial-card,
.feature-item,
.card,
.btn-primary,
.mobile-menu, 
.cookie-banner, 
.cookie-btn, 
.cookie-modal {
  transition-timing-function: cubic-bezier(0.4, 0.3, 0.1, 1);
}

/* ===========
   DIALOG BACKUP LAYOUT FLEX
   (for cookie modal and overlays)
============== */
.cookie-modal, .cookie-preferences, .cookie-categories {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/*
  End of stylesheet
*/
