/* -------------------
   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,
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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #22262A;
  color: #F9F6EE;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  background: transparent;
  color: #F28241;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #ffa869;
  outline: none;
}
ul, ol {
  padding-left: 1.5em;
  margin: 12px 0;
}
img {
  border: 0;
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
}

/* FONT IMPORTS (use local or via link in HTML in prod) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600;700&display=swap');

/* -------------------
   COLOR VARIABLES (with Fallback)
------------------- */
:root {
  --primary: #274472;
  --primary-darker: #1D3557;
  --secondary: #F9F6EE;
  --secondary-light: #FFFFFF;
  --secondary-dark: #e4e1d7;
  --bg-dark: #22262A;
  --accent: #F28241;
  --accent-dark: #B85A1A;
  --metal: #6A7684;
  --steel: #34405a;
  --grey: #888C94;
  --text-light: #F9F6EE;
  --text-dark: #22262A;
  --shadow-main: 0 6px 22px rgba(22, 24, 29, 0.21);
  --shadow-card: 0 2px 10px rgba(33, 38, 43, 0.14);
  --radius: 10px;
  --radius-sm: 5px;
}

/* -------------------
   INDUSTRIAL MODERN TYPOGRAPHY
------------------- */
h1, .h1 {
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  font-size: 2.25rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary);
  margin-bottom: 20px;
  line-height: 1.15;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 16px;
  line-height: 1.2;
  text-transform: uppercase;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary-light);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
p, li, blockquote, span {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--secondary);
  font-size: 1rem;
  font-weight: 400;
}
strong {
  color: var(--accent);
  font-weight: bold;
}
blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 20px;
  font-style: italic;
  color: var(--primary);
  background: var(--secondary);
  margin: 10px 0 8px 0;
  font-size: 1.1rem;
}

/* Spacing utility for vertical rhytm */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

.container {
  max-width: 1150px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 22px;
  padding-right: 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

/* -------------------
   HEADER & NAVIGATION
------------------- */
header {
  background: var(--bg-dark);
  box-shadow: var(--shadow-main);
  position: sticky;
  top: 0;
  z-index: 110;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding-top: 10px;
  padding-bottom: 10px;
}
header img {
  width: 160px;
  min-width: 110px;
  padding-right: 18px;
}
nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
}
nav a {
  font-family: 'Montserrat', Arial Black, Arial, sans-serif;
  color: var(--secondary);
  font-size: 1rem;
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  transition: background 0.16s, color 0.16s;
}
nav a:hover, nav a:focus {
  color: var(--primary);
  background: var(--accent);
  text-decoration: none;
}
nav .cta-btn {
  background: var(--accent);
  color: var(--secondary-light);
  border-radius: var(--radius);
  padding: 9px 22px;
  letter-spacing: 1px;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(242,130,65,0.15);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.15s, transform 0.12s;
  outline: none;
}
nav .cta-btn:hover, nav .cta-btn:focus {
  background: var(--accent-dark);
  color: var(--secondary-light);
  transform: translateY(-2px) scale(1.02);
}

/* Hamburger mobile menu button */
.mobile-menu-toggle {
  background: var(--metal);
  color: var(--accent);
  border: none;
  font-size: 2.1rem;
  border-radius: var(--radius-sm);
  padding: 5px 16px 4px 14px;
  margin-left: 18px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--accent);
  color: var(--secondary);
  box-shadow: 0 0 0 2px var(--accent), 0 4px 18px rgba(35,40,50,0.15);
  outline: none;
}

@media (max-width: 1020px) {
  nav {
    gap: 16px;
  }
  header img {
    width: 120px;
  }
}
@media (max-width: 768px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* --------------
   MOBILE MENU OVERLAY
-------------- */
.mobile-menu {
  position: fixed;
  inset: 0 0 0 0;
  background: rgba(34, 38, 42, 0.98);
  box-shadow: var(--shadow-main);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  transform: translateX(100vw);
  transition: transform 0.38s cubic-bezier(0.7,0,0.3,1);
  touch-action: manipulation;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--accent);
  color: var(--secondary);
  border: none;
  font-size: 2rem;
  border-radius: var(--radius-sm);
  margin: 24px 0 0 20px;
  padding: 4px 14px;
  cursor: pointer;
  align-self: flex-end;
  transition: background 0.15s, color 0.15s, box-shadow 0.12s;
  z-index: 10010;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent-dark);
  color: var(--secondary-light);
  box-shadow: 0 2px 18px rgba(242,130,65,0.14);
}
.mobile-nav {
  width: 100%;
  margin-top: 38px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 35px;
}
.mobile-nav a {
  color: var(--secondary-light);
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  padding: 12px 0 12px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  transition: background 0.14s, color 0.15s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--accent);
  color: var(--primary-darker);
  outline: none;
}

/* ---------------
   HERO SECTIONS
--------------- */
.hero {
  background: linear-gradient(140deg, rgba(34,38,42,1) 75%, var(--primary) 100%);
  border-bottom: 1.5px solid var(--metal);
  box-shadow: 0 14px 40px rgba(25,30,40,.13);
  padding: 66px 0 44px 0;
}
.hero .container {
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 28px;
}
.hero h1 {
  color: var(--accent);
  text-shadow: 0 5px 24px rgba(39,68,114, 0.25), 0 1px 0 #22262A;
}
.hero p {
  color: var(--secondary-light);
  font-size: 1.19rem;
  letter-spacing: 0.1px;
}
.hero .cta-btn {
  font-size: 1.15rem;
  padding: 13px 35px;
  margin-top: 18px;
}

/* --------------
   FLEXBOX CONTENT LAYOUT
-------------- */
.feature-grid,
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  margin-bottom: 8px;
}
.card,
.card-container > div,
.feature-grid > div {
  background: var(--steel);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 26px 26px 22px 26px;
  flex: 1 1 240px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  border: 1.5px solid var(--metal);
  position: relative;
  transition: box-shadow 0.18s, transform 0.21s, background 0.15s;
}
.card:hover, .feature-grid > div:hover {
  box-shadow: 0 10px 32px rgba(242, 130, 65, 0.13), var(--shadow-card);
  background: #303a45;
  transform: translateY(-7px) scale(1.018);
}
.feature-grid img {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

/* Spacing/Alignment patterns */
.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;
  background: var(--secondary-light);
  color: var(--text-dark);
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(34,38,42,0.10), var(--shadow-card);
  min-width: 250px;
  margin-bottom: 20px;
  font-size: 1.04rem;
  transition: box-shadow 0.16s;
}
.testimonial-card blockquote {
  color: var(--primary-darker);
  border-left-color: var(--accent);
  background: transparent;
  margin-bottom: 0;
  font-size: 1.12rem;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--steel);
  font-size: 1.01rem;
  font-weight: 700;
  margin-left: 8px;
}
.testimonial-card:hover {
  box-shadow: 0 10px 36px rgba(242,130,65,0.19), var(--shadow-card);
  transform: translateY(-4px);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Contact Methods (icon + text) */
.contact-methods, .contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 18px 0;
}
.contact-methods li, .contact-info li {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--secondary);
  letter-spacing: 0.4px;
  font-size: 1.05rem;
}
.contact-methods img, .contact-info img {
  width: 27px;
  height: 27px;
  opacity: 0.92;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

/* CARD CONTAINER spacing */
.card-container, .feature-grid, .content-grid {
  margin-bottom: 24px;
}
.card-container > div, .feature-grid > div {
  margin-bottom: 20px;
}

/* ------------
   BUTTONS STYLES
------------ */
.cta-btn,
button, .btn {
  background: var(--accent);
  color: var(--secondary-light);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 11px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  margin-top: 8px;
  box-shadow: 0 2px 12px rgba(242,130,65,0.10);
  letter-spacing: 1px;
  transition: background 0.18s, color 0.13s, transform 0.12s;
  outline: none;
  appearance: none;
}
.cta-btn:hover, .cta-btn:focus,
button:hover, .btn:hover, button:focus, .btn:focus {
  background: var(--accent-dark);
  color: var(--secondary-light);
  transform: translateY(-2px) scale(1.04);
}

/* ---------------
   LIST STYLES
--------------- */
ul {
  list-style: disc inside;
}
ol {
  list-style: decimal inside;
}
ul.contact-methods, ul.contact-info {
  list-style: none;
  padding: 0;
}

/* ---------------
   FOOTER
--------------- */
footer {
  background: #191C20;
  border-top: 1.5px solid var(--metal);
  padding: 30px 0 2px 0;
  color: var(--metal);
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-menu, .footer-contact {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  font-size: 0.99rem;
}
.footer-menu a {
  color: var(--metal);
  transition: color 0.16s;
  font-weight: 600;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--accent);
  text-decoration: underline;
}
.footer-contact img {
  width: 32px;
  margin-right: 6px;
  opacity: 0.85;
}
.footer-contact span {
  color: var(--metal);
  font-size: 0.98rem;
  margin-right: 20px;
}

/* ---------------
   COOKIE CONSENT BANNER
--------------- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--steel);
  color: var(--secondary-light);
  box-shadow: 0 -2px 24px rgba(34,38,42,0.13);
  padding: 18px 22px 16px 22px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 9600;
  font-size: 1rem;
  border-top: 2.5px solid var(--metal);
  animation: slideupcookie 0.54s cubic-bezier(0.18,0.85,0.68,1.1);
}
@keyframes slideupcookie {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
#cookie-banner .cookie-btn {
  margin-left: 12px;
  margin-right: 6px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--secondary-light);
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 20px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 1px 8px rgba(242,130,65,0.13);
  cursor: pointer;
  transition: background 0.14s, color 0.11s, box-shadow 0.21s;
}
#cookie-banner .cookie-btn:hover, #cookie-banner .cookie-btn:focus {
  background: var(--accent-dark);
}
#cookie-banner .cookie-settings-btn {
  background: var(--metal);
  color: var(--secondary-light);
  margin-left: 18px;
}
#cookie-banner .cookie-settings-btn:hover, #cookie-banner .cookie-settings-btn:focus {
  background: var(--primary);
}

/* Cookie settings modal */
#cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(34,38,42,.80);
  z-index: 9800;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadecookie 0.54s cubic-bezier(0.57,0,0.35,1);
}
@keyframes fadecookie {
  from { opacity: 0; }
  to { opacity: 1; }
}
#cookie-modal .cookie-modal-content {
  background: var(--steel);
  border-radius: var(--radius);
  box-shadow: var(--shadow-main);
  padding: 30px 32px 24px 32px;
  color: var(--secondary-light);
  width: 90vw;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  opacity: 1;
  animation: popincookie .43s cubic-bezier(0.37,0.58,0.34,1.15);
}
@keyframes popincookie {
  from { transform: scale(0.92); opacity: 0.2; }
  to { transform: scale(1); opacity: 1; }
}
#cookie-modal h2 {
  font-size: 1.25rem;
  color: var(--accent);
}
#cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 11px;
}
#cookie-modal label {
  font-weight: 600;
  font-size: 1rem;
}
#cookie-modal input[type=checkbox] {
  accent-color: var(--accent);
  width: 22px;
  height: 22px;
  cursor: pointer;
}
#cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 10px;
}
#cookie-modal .cookie-modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: var(--accent);
  color: var(--secondary-light);
  border: none;
  border-radius: 100px;
  font-size: 1.33rem;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 5px rgba(242,130,65,0.09);
  transition: background 0.13s, color 0.14s;
  z-index: 10100;
}
#cookie-modal .cookie-modal-close:hover, #cookie-modal .cookie-modal-close:focus {
  background: var(--accent-dark);
}

/* ------------
   RESPONSIVE DESIGN
------------ */
@media (max-width: 1200px) {
  .container { max-width: 99vw; }
}
@media (max-width: 992px) {
  .feature-grid, .card-container, .footer-menu, .footer-contact {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 11px;
    padding-right: 11px;
  }
  .content-wrapper {
    gap: 16px;
    padding: 10px 0;
  }
  .section {
    padding: 25px 7px;
    margin-bottom: 38px;
  }
  .card, .feature-grid > div {
    min-width: 90vw;
    padding: 18px 11px 16px 14px;
  }
  .feature-grid,
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .hero {
    padding: 38px 0 18px 0;
  }
  .hero .content-wrapper {
    gap: 18px;
  }
  .text-image-section, .footer-menu, .footer-contact {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
    padding: 14px 8px;
    min-width: 0;
  }
  .footer-menu, .footer-contact {
    text-align: left;
  }
}
@media (max-width: 540px) {
  .hero h1 { font-size: 1.47rem; }
  h2 { font-size: 1.08rem; }
  nav .cta-btn, .cta-btn, button { font-size: 0.97rem; padding: 9px 16px; }
  .feature-grid > div, .card {
    padding: 11px 6px 12px 10px;
    font-size: 0.98rem;
  }
  .testimonial-card {
    font-size: 1rem;
  }
}

/* Avoid unwanted overlaps, guarantee spacing */
.feature-grid > div + div, .card-container > div + div, .testimonial-card + .testimonial-card {
  margin-top: 0 !important;
}

/* Miscellaneous */
::-webkit-scrollbar {
  width: 8px;
  background: #23262b;
}
::-webkit-scrollbar-thumb {
  background: #454a52;
  border-radius: 14px;
}
