/* ================================================================
   CSS 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%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box; }
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block; }
body {
  line-height: 1.45;
  background-color: #101316;
  color: #F9F6F2;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
ol, ul {
  list-style: none;
}
a {
  background-color: transparent;
  color: #6FC2A9;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F9F6F2;
}
img {
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
:focus {
  outline: 2px dashed #6FC2A9;
  outline-offset: 2px;
}

/* ======= VARIABLE DEFINITIONS (with fallbacks) ======= */
:root {
  --color-primary: #174378;
  --color-secondary: #6FC2A9;
  --color-accent: #F9F6F2;
  --color-bg: #101316;
  --color-panel: #171B22;
  --color-muted: #252B32;
  --color-border: #2D3844;
  --color-metal: #6C7A89; /* Evoke metallic accent */
  --font-display: 'Montserrat', 'Arial Black', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* ===============================
   LAYOUT GLOBALS
=============================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

body {
  background: var(--color-bg);
  color: var(--color-accent);
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-panel);
  border-radius: 18px;
  box-shadow: 0 2px 14px 0 rgba(30,33,37,0.13), 0 1px 0 0 #22282E;
}
section:last-child {
  margin-bottom: 0;
}

/* ===============================
   TYPOGRAPHY
=============================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: .01em;
}
h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 12px;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 8px;
}
h3 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 6px;
}
h4, h5, h6 {
  font-size: 1.15rem;
}
p, li, blockquote, cite {
  font-family: var(--font-body);
  color: var(--color-accent);
  font-size: 1rem;
}
p {
  margin-bottom: 12px;
  line-height: 1.7;
}
blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-primary);
  border-left: 4px solid var(--color-secondary);
  padding-left: 18px;
}
cite {
  display: block;
  margin-top: 12px;
  font-size: .95rem;
  color: var(--color-metal);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .05em;
}
strong {
  color: var(--color-secondary);
  font-weight: 700;
}

ul, ol {
  margin-bottom: 12px;
  padding-left: 24px;
}
ul li, ol li {
  margin-bottom: 7px;
  padding-left: 0;
  list-style: disc;
}
ul li:last-child, ol li:last-child {
  margin-bottom: 0;
}

/* ===============================
   BUTTONS, CTA & INTERACTIONS
=============================== */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #30689B 60%, #174378 100%);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.13rem;
  min-width: 164px;
  min-height: 50px;
  border-radius: 10px;
  box-shadow: 0 3px 18px 0 rgba(23,67,120,0.19), 0 1px 0 0 #2D3844;
  border: 1.5px solid var(--color-secondary);
  letter-spacing: .04em;
  cursor: pointer;
  transition: background 0.22s, color 0.18s, transform 0.12s;
  margin-top: 10px;
  padding: 0 32px;
  text-align: center; }
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(90deg, #222e37 0%, #6FC2A9 100%);
  color: #171B22;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 22px rgba(81,130,109,.25), 0 3px 0 rgba(111,194,169,0.12);
}

button {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  border-radius: 7px;
  padding: 8px 18px;
  background: var(--color-metal);
  color: var(--color-accent);
  border: 1px solid var(--color-secondary);
  cursor: pointer;
  transition: background 0.19s, color 0.13s, box-shadow 0.12s;
}
button:hover, button:focus {
  background: var(--color-secondary);
  color: #171B22;
  box-shadow: 0 1px 8px rgba(111,194,169,0.13);
  border-color: #30689B;
}

/* ===============================
   HEADER & NAVIGATION
=============================== */
header {
  width: 100%;
  background: #171B22;
  box-shadow: 0 2px 16px 0 rgba(25,32,36,0.23);
  padding: 0 0 0 0;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 82px;
}
header img {
  height: 50px;
  margin: 10px 18px 10px 18px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  margin-right: auto;
}
.main-nav a {
  color: var(--color-accent);
  font-size: 1.1rem;
  letter-spacing: .02em;
  position: relative;
  font-family: var(--font-display);
  transition: color 0.16s;
  padding: 5px 0;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-secondary);
}
.main-nav a::after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background: var(--color-secondary);
  transition: width .21s cubic-bezier(.49,2,.23,.88);
  margin-top: 3px;
}
.main-nav a:hover::after, .main-nav a:focus::after {
  width: 100%;
}
header .cta-primary {
  margin-left: 26px;
  margin-right: 12px;
  min-width: unset;
}

.mobile-menu-toggle {
  display: none;
  position: relative;
  background: var(--color-metal);
  color: var(--color-accent);
  font-size: 2.1rem;
  padding: 7px 18px 7px 14px;
  border-radius: 50%;
  border: none;
  margin-left: 8px;
  transition: background 0.2s, color 0.17s;
  z-index: 220;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: #101316;
  outline: 2px solid var(--color-primary);
}

/* MOBILE NAV menu system */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #15181bfa;
  box-shadow: 10px 0 30px rgba(23,67,120,0.15);
  z-index: 2010;
  transform: translateX(-110vw);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(.72,1.61,.32,1) , opacity 0.35s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 36px 8px 0;
  font-size: 2.1rem;
  padding: 2px 12px;
  color: var(--color-accent);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2011;
  border-radius: 6px;
  transition: background 0.2s, color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-secondary);
  color: #171B22;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  align-items: flex-start;
  padding: 30px 0 0 36px;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: var(--color-accent);
  font-size: 1.32rem;
  padding: 12px 8px 12px 0;
  border-radius: 5px;
  margin: 0;
  min-width: 180px;
  transition: background 0.11s, color 0.19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #101316;
}

/* Hide main menu/show burger on mobile */
@media (max-width: 1100px) {
  .main-nav,
  header .cta-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    margin-right: 18px;
  }
}
/* Hide mobile menu toggle above desktop */
@media (min-width: 1101px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===============================
   HERO SECTIONS
=============================== */
.hero {
  background: linear-gradient(112deg, #171B22 72%, #174378 120%);
  box-shadow: 0 7px 36px 0 rgba(17,24,31,0.18);
  display: flex;
  align-items: center;
  min-height: 335px;
  margin-bottom: 60px;
  padding: 56px 20px 48px 20px;
}
.hero h1 {
  color: #fff;
}
.hero p {
  color: #BED3D7;
  font-size: 1.18rem;
}
.hero .cta-primary {
  margin-top: 22px;
}

/* ===============================
   FEATURES & SERVICES FLEX LAYOUT
=============================== */
.features, .services, .about, .legal, .contact {
  background: var(--color-panel);
  box-shadow: 0 2px 16px 0 rgba(28,35,42,0.11);
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 14px;
}
.features .feature-grid, .features .content-wrapper > .feature-grid, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px 32px;
  align-items: flex-start;
  margin-top: 18px;
}
.features .feature-icon, .feature-icon {
  width: 60px;
  min-width: 60px;
  height: 60px;
  background: #222b32;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(51,64,80,0.13);
  border: 1.5px solid var(--color-metal);
  margin-bottom: 0;
}
.features .feature-description, .feature-description {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
  max-width: 310px;
  flex: 1 1 150px;
}
/* Responsive stacking for feature blocks */
@media (max-width: 900px) {
  .features .feature-grid, .feature-grid {
    gap: 18px 0;
    flex-direction: column;
    align-items: stretch;
  }
}

/* Services list bullets */
.services ul, .features ul, .about ul, .legal ul, .contact ul {
  padding-left: 13px;
}
.services ul li::before, .features ul li::before, .about ul li::before, .contact ul li::before, .legal ul li::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-secondary);
  margin-right: 11px;
  vertical-align: middle;
}

/* ===============================
   TESTIMONIALS STYLING
=============================== */
.testimonials .testimonial-card {
  display: flex;
  flex-direction: column;
  background: #F9F6F2;
  color: #171B22;
  border-radius: 13px;
  padding: 20px 28px;
  box-shadow: 0 2px 28px 0 rgba(23,67,120,0.11), 0 1px 0 0 #DDD;
  margin-bottom: 24px;
  gap: 11px;
  min-width: 240px;
  max-width: 570px;
  border-left: 6px solid var(--color-primary);
  z-index: 1;
}
.testimonials .testimonial-card blockquote {
  color: #313338;
  border-left: none;
  padding-left: 0;
  font-size: 1.09rem;
  font-family: var(--font-body);
}
.testimonials .testimonial-card cite {
  color: #676769;
  font-weight: 600;
}
@media (max-width: 800px) {
  .testimonials .testimonial-card {
    padding: 18px 14px;
  }
}

/* ===============================
   CTA BAR SECTION
=============================== */
.cta {
  background: #222B32;
  color: var(--color-accent);
  text-align: center;
  box-shadow: 0 4px 22px 0 rgba(23,67,120,0.09);
}
.cta h2 {
  margin-bottom: 12px;
}
.cta p {
  margin-bottom: 20px;
}

/* ===============================
   FLEXBOX TEMPLATES FOR STRUCTURE
=============================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 11px;
  background: var(--color-muted);
  box-shadow: 0 1px 14px 0 rgba(23,67,120,0.09);
  padding: 28px;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Make every section, card, wrapper to have adequate spacing */
.section, .card-container, .content-grid, .text-image-section, .testimonial-card, .feature-item, .features, .services, .about, .legal, .contact {
  margin-bottom: 32px;
}
.card, .testimonial-card, .feature-description {
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  section {
    padding: 32px 8px;
    margin-bottom: 38px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.3rem;
  }
}

/* ===============================
   FOOTER
=============================== */
footer {
  background: #181B1E;
  color: var(--color-accent);
  padding: 36px 0 28px 0;
  border-top: 4px solid var(--color-secondary);
  margin-top: 56px;
}
footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  justify-content: center;
}
.footer-nav a {
  color: var(--color-metal);
  font-size: .99rem;
  text-decoration: underline 1.5px rgba(28,163,147,0.33);
  margin-right: 12px;
  transition: color 0.15s;
  letter-spacing: .01em;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-secondary);
  text-decoration-color: var(--color-secondary);
}
.contact-summary p {
  color: #92a6ae;
  font-size: .97rem;
  line-height: 1.5;
  text-align: center;
}
footer .social-icons {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-top: 18px;
}
footer .social-icons img {
  width: 30px;
  height: 30px;
  padding: 5px;
  background: #222B32;
  border-radius: 50%;
  border: 2px solid var(--color-metal);
  transition: border-color 0.18s;
}
footer .social-icons img:hover, footer .social-icons img:focus {
  border-color: var(--color-secondary);
}

/* ===============================
   COOKIE BANNER COMPONENT
=============================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #101316ee;
  color: #F9F6F2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 22px 12px 21px 12px;
  z-index: 3001;
  font-size: 1rem;
  box-shadow: 0 -3px 24px #14151f36;
  border-top: 3px solid var(--color-secondary);
}
.cookie-banner .cookie-text {
  flex: 1 1 260px;
  max-width: 560px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
}
.cookie-btn, .cookie-settings-btn {
  padding: 8px 22px;
  border-radius: 9px;
  border: 1.3px solid var(--color-secondary);
  background: #174378;
  color: #F9F6F2;
  font-family: var(--font-display);
  font-weight: 700;
  transition: background 0.13s, color 0.14s, border 0.13s;
  font-size: .99rem;
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: #171B22;
}
.cookie-btn.reject {
  background: #313338;
  color: var(--color-accent);
}
.cookie-settings-btn {
  background: none;
  color: var(--color-metal);
  border: 1.3px dashed var(--color-secondary);
}
.cookie-btn:hover, .cookie-btn:focus, .cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #6FC2A9;
  color: #101316;
  border-color: #174378;
}
/* Responsive cookie */
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    text-align: center;
    padding: 18px 6px 18px 6px;
  }
  .cookie-banner .cookie-actions {
    justify-content: center;
    gap: 9px;
  }
  .cookie-banner .cookie-text {
    padding-bottom: 7px;
  }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right:0; bottom:0;
  background: rgba(14, 16, 21, 0.85);
  z-index: 4005;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.25s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #222B32;
  color: #F9F6F2;
  border-radius: 18px;
  padding: 34px 32px 20px 32px;
  width: 95%;
  max-width: 440px;
  box-shadow: 0 12px 48px 0 rgba(41, 54, 67, 0.28);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 21px;
  animation: cookieModalIn 0.32s cubic-bezier(.41,1.62,.22,1);
}
@keyframes cookieModalIn {
  0% { transform: translateY(60px) scale(.98); opacity: 0.10; }
  80% { transform: translateY(-7px) scale(1.04); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal h3 {
  color: var(--color-secondary);
  font-size: 1.3rem;
  font-family: var(--font-display);
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 13px 0;
  font-size: 1.07rem;
  font-weight: 600;
  color: var(--color-accent);
}
.cookie-category .toggle {
  position: relative;
}
/* Custom toggle switch */
.cookie-category input[type="checkbox"] {
  width: 0; height: 0; opacity: 0; position: absolute;
}
.toggle-switch {
  width: 38px;
  height: 20px;
  background: #171B22;
  border-radius: 11px;
  border: 2px solid var(--color-secondary);
  position: relative;
  transition: background 0.18s, border 0.10s;
  cursor: pointer;
  display: inline-block;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px; height: 14px;
  background: #8AC5AF;
  border-radius: 50%;
  transition: left 0.15s, background 0.20s;
}
.cookie-category input[type="checkbox"]:checked + .toggle-switch {
  background: var(--color-secondary);
  border-color: var(--color-primary);
}
.cookie-category input[type="checkbox"]:checked + .toggle-switch::after {
  background: #174378;
  left: 18px;
}
.cookie-category.disabled label, .cookie-category.disabled input, .cookie-category.disabled {
  opacity: 0.54;
  pointer-events: none;
}
/* Modal buttons */
.cookie-modal .cookie-actions {
  margin-top: 18px;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 17px;
  top: 14px;
  background: none;
  color: #6FC2A9;
  font-size: 2.1rem;
  border: none;
  cursor: pointer;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: #F9F6F2;
}

/* ===============================
   SCROLLBAR STYLING
=============================== */
::-webkit-scrollbar {
  width: 10px;
  background: #16191d;
}
::-webkit-scrollbar-thumb {
  background: #23262B;
  border-radius: 6px;
}
::-webkit-scrollbar-track {
  background: #101316;
}

/* ===============
   UTILS
=============== */
.bg-metal-accent {
  background: linear-gradient(92deg, #2D3844 77%, #6FC2A9 180%);
}
.mt-0 { margin-top: 0!important; }
.mb-0 { margin-bottom: 0!important; }
.mt-18 { margin-top: 18px!important; }

/* ===============
   ANIMATIONS
=============== */
section, .card, .testimonial-card, .feature-icon, .cookie-banner, .cookie-modal {
  transition: box-shadow 0.23s cubic-bezier(.41,1.62,.22,1), background 0.23s, color 0.18s;
}
.cta-primary, button, .cookie-btn, .cookie-settings-btn {
  transition: background 0.18s, color 0.16s, box-shadow 0.19s, transform 0.14s;
}

/* ===============================
   INDUSTRIAL MODERN DECORATIVE DETAILS
=============================== */
/* Decorative metallic border for some panels */
.features, .services, .about, .legal {
  border-left: 7px solid var(--color-metal);
}
@media (max-width: 700px) {
  .features, .services, .about, .legal {
    border-left: 4px solid var(--color-metal);
  }
}

/* Headings underline accent */
h2, h1 {
  position: relative;
}
h2::after, h1::after {
  content: '';
  display: block;
  width: 38px;
  height: 4px;
  background: var(--color-secondary);
  border-radius: 2px;
  margin-top: 7px;
}

/* ===============================
   FORMS (for contact page, if forms present later)
=============================== */
input, textarea {
  font-size: 1rem;
  background: #171B22;
  border: 1.5px solid var(--color-metal);
  color: #F9F6F2;
  border-radius: 5px;
  padding: 10px 13px;
  margin: 12px 0 18px 0;
  box-shadow: 0 1px 6px #23262B0d;
  width: 100%;
  transition: border 0.17s, background 0.16s;
}
input:focus, textarea:focus {
  border-color: var(--color-secondary);
  background: #23262B;
}
label {
  font-family: var(--font-display);
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 0.98rem;
}

/* ========== END OF STYLE.CSS =========== */
