/* -------------------------------------
   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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #171C22;
  color: #F9F6F2;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img, video, svg {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: 1.2;
}
:focus {
  outline: 2px solid #C0D6DF;
  outline-offset: 2px;
}

/* -------------------------------------
   CSS VARIABLES (with solid color fallback)
------------------------------------- */
:root {
  --color-primary: #174B67;
  --color-secondary: #C0D6DF;
  --color-accent: #F9F6F2;
  --color-dark: #171C22;
  --color-bg-metal: #23272C;
  --color-bg-card: #232A32;
  --color-text: #F9F6F2;
  --color-text-muted: #C0D6DF;
  --color-highlight: #BBA14F;
  --font-display: 'Montserrat', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Roboto', 'Segoe UI', Arial, sans-serif;
  --shadow-metal: 0 4px 16px rgba(23,26,34,0.12),0 1px 2px rgba(50,58,69,0.24);
  --shadow-card: 0 2px 10px 0 rgba(0,10,15,0.14);
  --radius-main: 10px;
}

/* -------------------------------------
   BODY & TYPOGRAPHY
------------------------------------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--color-dark);
  color: var(--color-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 24px;
  line-height: 1.1;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
  line-height: 1.18;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.2;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, ul, ol, blockquote {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
}
strong {
  color: var(--color-accent);
  font-weight: bold;
}
a {
  color: var(--color-secondary);
  transition: color 0.2s cubic-bezier(0.4,0,0.2,1);
}
a:hover, a:focus {
  color: var(--color-highlight);
  text-decoration: underline;
}


/* -------------------------------------
   CONTAINER AND LAYOUT
------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}


/* -------------------------------------
   HEADER & NAVIGATION
------------------------------------- */
header {
  background: var(--color-bg-metal);
  border-bottom: 2px solid #252A34;
  box-shadow: 0 2px 6px rgba(23,26,34,0.17);
  position: relative;
  z-index: 20;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  position: relative;
}
.main-nav > a > img {
  height: 40px;
  width: auto;
  margin-right: 40px;
}
.main-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin: 0;
  padding: 0;
}
.main-nav li {
  margin: 0;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-accent);
  padding: 5px 0 3px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-bottom 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-highlight);
}
.btn-primary {
  color: var(--color-dark);
  background: var(--color-secondary);
  font-family: var(--font-display);
  padding: 11px 28px;
  border: none;
  border-radius: var(--radius-main);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-metal);
  display: inline-block;
  margin-left: 24px;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
  position: relative;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-highlight);
  color: var(--color-dark);
  box-shadow: 0 4px 24px 0 rgba(187,161,79,0.12), var(--shadow-metal);
}


/* -------------------------------
   MOBILE MENU
------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-accent);
  font-size: 2rem;
  cursor: pointer;
  margin-left: 16px;
  z-index: 105;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: var(--color-highlight);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(23, 28, 34, 0.97);
  box-shadow: 0 2px 32px #171C22AA;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 24px 24px 24px;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(0.68,0,0.32,1);
  z-index: 110;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 2.2rem;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 35px;
  transition: color 0.2s;
  z-index: 111;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-highlight);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-accent);
  padding: 10px 0;
  border-left: 4px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  border-left: 4px solid var(--color-highlight);
}

/* Hide main nav on mobile */
@media (max-width: 1024px) {
  .main-nav ul, .main-nav .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* -------------------------------------
   FLEXBOX PATTERNS FOR STRUCTURE
------------------------------------- */
/* Section generic layout already provided above */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  padding: 28px 24px;
  min-width: 260px;
  flex: 1 1 300px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.15s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 20px 0 #174B6740, var(--shadow-card);
  transform: translateY(-3px);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f9f6f2;
  color: #171c22;
  border-radius: var(--radius-main);
  box-shadow: 0 2px 6px 0 #171C2244;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s;
  flex-wrap: wrap;
  font-size: 1.13rem;
}
.testimonial-card p {
  color: #23272C;
  margin: 0 18px 0 0;
}
.testimonial-card strong {
  color: #174B67;
  font-family: var(--font-display);
  font-weight: bold;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Additional responsive utility flex layouts for FAQ, Blog, etc. */
.faq-list, .blog-posts-list, .category-list, .service-list, .process-list, .feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 16px 0 0 0;
  padding: 0;
}
.feature-list li, .service-list li, .process-list li, .category-list li, .blog-posts-list li {
  background: var(--color-bg-card);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  padding: 24px 18px;
  margin-bottom: 20px;
  flex: 1 1 260px;
  min-width: 210px;
  transition: box-shadow 0.18s, transform 0.12s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.feature-list li:hover, .service-list li:hover, .blog-posts-list li:hover, .process-list li:hover {
  box-shadow: 0 8px 20px #174B6788, var(--shadow-card);
  transform: translateY(-2.5px);
}
.category-list li {
  background: transparent;
  border: 1px solid #BBA14F;
  color: #BBA14F;
  font-weight: bold;
  border-radius: 40px;
  padding: 6px 18px;
  margin-bottom: 0;
  min-width: unset;
  flex: unset;
  box-shadow: none;
  transition: background 0.2s, color 0.2s;
}
.category-list li:hover {
  background: #BBA14F;
  color: #23272C;
}

.faq-item {
  background: var(--color-bg-card);
  border-left: 4px solid var(--color-highlight);
  border-radius: var(--radius-main);
  padding: 22px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.15s;
}
.faq-item h2 {
  font-size: 1.15rem;
  color: var(--color-secondary);
  margin-bottom: 9px;
}
.faq-item p {
  margin-bottom: 0;
}

/* -------------------------------------
   HERO SECTION / CALL TO ACTION
------------------------------------- */
.hero-section {
  background: linear-gradient(120deg, #232A32 0%, #174B67 100%);
  padding: 70px 0 60px 0;
  border-bottom: 1px solid #232A32;
}
.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-section h1 {
  color: var(--color-secondary);
  font-size: 2.5rem;
  margin-bottom: 18px;
}
.hero-section p {
  color: var(--color-accent);
  font-size: 1.2rem;
  margin-bottom: 32px;
  max-width: 620px;
}

/* -------------------------------------
   FOOTER
------------------------------------- */
footer {
  background: var(--color-bg-metal);
  border-top: 2px solid #252A34;
  box-shadow: 0 -2px 8px rgba(23,26,34,0.06);
  margin-top: 40px;
  color: var(--color-text-muted);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
  margin-bottom: 15px;
}
.footer-nav a {
  font-size: 0.98rem;
  color: var(--color-secondary);
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-highlight);
}
.footer-contact {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 16px;
  margin-top: 6px;
}
.footer-contact img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #232A32;
  box-shadow: 0 2px 10px #232A3255;
}
.footer-contact > div > p, .footer-contact a {
  font-size: 0.98rem;
  color: var(--color-secondary);
  margin-bottom: 5px;
  word-break: break-word;
}
.footer-contact a:hover {
  color: var(--color-highlight) !important;
}

/* -------------------------------------
   COOKIE CONSENT BANNER & MODAL
------------------------------------- */
#cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #232A32;
  color: #F9F6F2;
  z-index: 1500;
  box-shadow: 0 -4px 20px #174B6759;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 22px;
  transition: transform 0.35s ease;
  gap: 22px;
  font-size: 1rem;
}
#cookie-banner.hide {
  transform: translateY(120%);
}
#cookie-banner .cookie-btn {
  margin: 0 8px;
  padding: 8px 20px;
  border-radius: 24px;
  font-family: var(--font-display);
  font-weight: bold;
  color: #232A32;
  background: #C0D6DF;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.16s, box-shadow 0.15s;
  box-shadow: 0 2px 10px #171C2215;
}
#cookie-banner .cookie-btn:hover, #cookie-banner .cookie-btn:focus {
  background: #BBA14F;
  color: #232A32;
}
#cookie-banner .cookie-btn.settings {
  background: #23272C;
  color: #C0D6DF;
  border: 1px solid #BBA14F;
  margin-left: 10px;
}
#cookie-banner .cookie-btn.settings:hover, #cookie-banner .cookie-btn.settings:focus {
  background: #BBA14F;
  color: #232A32;
}

/* Cookie Settings Modal */
#cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(23,28,34,0.88);
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
#cookie-modal.open {
  pointer-events: all;
  opacity: 1;
}
#cookie-modal .cookie-modal-content {
  background: #232A32;
  padding: 32px 28px 24px 28px;
  border-radius: var(--radius-main);
  color: #F9F6F2;
  max-width: 450px;
  min-width: 270px;
  box-shadow: 0 6px 24px #174B6785;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
#cookie-modal .cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: #C0D6DF;
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
}
#cookie-modal .cookie-modal-close:hover, #cookie-modal .cookie-modal-close:focus {
  color: #BBA14F;
}
.cookie-categories {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}
.cookie-category label {
  font-family: var(--font-body);
  font-size: 1rem;
}
.cookie-category input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: #174B67;
}
.cookie-category.essential label {
  color: var(--color-text)
}
.cookie-category.essential input[type='checkbox'] {
  accent-color: #232A32;
}


/* -------------------------------------
   MICROINTERACTIONS/SHADOWS/BUTTONS
------------------------------------- */
button, .btn-primary, .cookie-btn {
  transition: background 0.2s, color 0.2s, box-shadow 0.18s, transform 0.12s;
}
button:active, .btn-primary:active, .cookie-btn:active {
  transform: scale(0.97);
}


/* -------------------------------------
   IMAGES + ICONS
------------------------------------- */
img, svg {
  vertical-align: middle;
  border: none;
}
.feature-list img, .service-list img, .process-list img, .text-section img, .footer-contact img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 8px;
}


/* -------------------------------------
   SPACING & UTILITIES
------------------------------------- */
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-24 { margin-top: 24px !important; }
.pt-16 { padding-top: 16px !important; }
.pt-24 { padding-top: 24px !important; }
.gap-16 { gap: 16px !important; }
.gap-24 { gap: 24px !important; }

/* Ensure all cards and blocks have minimum 20px spacing */
.card, .testimonial-card, .faq-item, .feature-list li, .service-list li, .process-list li, .blog-posts-list li {
  margin-bottom: 20px;
}

/* -------------------------------------
   RESPONSIVE DESIGN
------------------------------------- */
@media (max-width: 768px) {
  .main-nav {
    padding: 10px 0;
    flex-direction: row;
    gap: 8px;
  }
  .main-nav > a > img {
    height: 34px;
    margin-right: 20px;
  }
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .content-wrapper {
    gap: 20px;
  }

  .section {
    margin-bottom: 36px;
    padding: 26px 7px;
  }
  .card-container, .content-grid, .feature-list, .service-list, .category-list, .blog-posts-list, .process-list {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .footer-contact {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    font-size: 1rem;
  }
  .feature-list li, .service-list li, .process-list li, .blog-posts-list li {
    min-width: 160px;
    padding: 16px 11px;
  }
  h1 {
    font-size: 1.55rem;
    margin-bottom: 14px;
  }
  h2 {
    font-size: 1.18rem;
    margin-bottom: 11px;
  }
  .hero-section {
    padding: 42px 0 30px 0;
  }
}

@media (max-width: 475px) {
  .btn-primary {
    font-size: 0.98rem;
    padding: 8px 16px;
    margin-left: 6px;
  }
  #cookie-banner {
    flex-direction: column;
    gap: 12px;
    font-size: 0.97rem;
    padding: 14px 6px;
    text-align: center;
  }
  #cookie-modal .cookie-modal-content {
    padding: 14px 4px 10px 6px;
    min-width: unset;
    width: 95vw;
    max-width: 99vw;
  }
}

/* -------------------------------------
   ACCESSIBILITY & PRINT
------------------------------------- */
@media print {
  header, footer, #cookie-banner, #cookie-modal, .mobile-menu {
    display: none !important;
  }
  body {
    color: #171C22 !important;
    background: #fff !important;
  }
}

/* -------------------------------------
   SCROLLBAR & SELECTION
------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
  background: #232A32;
}
::-webkit-scrollbar-thumb {
  background: #174B67;
  border-radius: 5px;
}
::selection {
  background: #174B67;
  color: #F9F6F2;
}

/* -------------------------------------
   END OF FILE
------------------------------------- */
