/*--- 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,
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;
}
html {font-size: 16px; scroll-behavior: smooth;}
body {line-height: 1.5; background: #23272b; color: #edeef0; font-family: 'Roboto', Arial, sans-serif;}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {display: block;}
*, *::before, *::after {box-sizing: inherit;}
a {color: inherit; text-decoration: none; transition: color 0.2s;}
img {max-width: 100%; height: auto; display: block;}
table {border-collapse: collapse; width: 100%;}
th, td {padding: 12px 8px;}

/*--- VARIABLES ---*/
:root {
  --color-primary: #17617A;
  --color-primary-dark: #133e51;
  --color-secondary: #E3F2F9;
  --color-dark-bg: #23272b;
  --color-mid-bg: #30343A;
  --color-card-bg: #292e33;
  --color-accent: #F29221;
  --color-accent-dark: #B05A00;
  --color-metal: #adb2b9;
  --color-metal-dark: #63676b;
  --color-footer-bg: #17191b;
  --color-card-shadow: rgba(29, 33, 38, 0.18);
  --color-section-bg: #24282c;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/*--- TYPOGRAPHY ---*/
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: #fff;
}
h1 {font-size: 2.75rem; margin-bottom: 24px;}
h2 {font-size: 2rem; margin-bottom: 20px;}
h3 {font-size: 1.4rem; margin-bottom: 14px;}
h4 {font-size: 1.1rem; margin-bottom: 12px;}
p, ul, ol, li, table, label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #edeef0;
}
ul, ol {margin-left: 28px; margin-bottom: 18px;}
ul li, ol li {margin-bottom: 8px;}
strong {font-weight: bold; color: var(--color-accent);}

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }
  h4 { font-size: 0.98rem; }
}

/*--- CONTAINER & LAYOUT ---*/
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-section-bg);
  border-radius: 16px;
  box-shadow: 0 4px 24px var(--color-card-shadow);
}

/*--- HEADER ---*/
header {
  background: var(--color-dark-bg);
  border-bottom: 2px solid var(--color-metal-dark);
  box-shadow: 0 2px 12px rgba(23, 97, 122, 0.05);
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header nav {
  display: flex;
  gap: 22px;
}
header nav a {
  color: var(--color-metal);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
header nav a:hover, header nav a:focus {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}
.cta-button {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  background: var(--color-accent);
  color: #23272b;
  padding: 12px 30px;
  border-radius: 28px;
  border: none;
  box-shadow: 0 2px 8px rgba(242,146,33, 0.14);
  outline: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  transition: background 0.22s, color 0.22s, box-shadow 0.2s;
  margin-left: 14px;
  display: inline-block;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-accent-dark);
  color: #fff;
  box-shadow: 0 4px 16px rgba(176,90,0, 0.21);
}

/*--- HERO ---*/
.hero {
  background: linear-gradient(120deg, #23272b 65%, #313b41 105%);
  padding: 52px 0 44px 0;
  border-bottom: 2px solid var(--color-metal-dark);
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  background: none;
  padding: 0;
  text-align: center;
}
.hero h1 {
  color: var(--color-accent);
  margin-bottom: 18px;
  text-shadow: 2px 2px 4px rgba(17,23,28,0.28);
}
.hero p {
  color: #d7dde1;
  font-size: 1.25rem;
  margin-bottom: 26px;
}

/*--- FEATURE GRID ---*/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 40px 0 32px 0;
  justify-content: space-between;
}
.feature-grid > div {
  background: var(--color-card-bg);
  border-radius: 16px;
  box-shadow: 0 3px 16px var(--color-card-shadow);
  padding: 34px 22px 28px 22px;
  min-width: 220px;
  flex: 1 1 calc(25% - 24px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.16s;
  margin-bottom: 0;
  border: 1px solid #343b40;
}
.feature-grid > div img {
  width: 36px; height: 36px;
  margin-bottom: 10px;
  filter: grayscale(0.3) brightness(0.97);
}
.feature-grid > div h3 {
  color: var(--color-metal);
  margin-bottom: 10px;
}
.feature-grid > div p {
  color: #c7cdd3;
  margin-bottom: 0;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 6px 32px #23272b99, 0 1px 0 #30485b inset;
  transform: translateY(-2px) scale(1.022);
  border-color: var(--color-accent);
}

/*--- FEATURE ICONS LIST ---*/
.feature-icons-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 16px 0 0 0;
}
.feature-icons-list span {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-metal-dark);
  font-size: 1rem;
  gap: 8px;
  background: var(--color-mid-bg);
  border-radius: 6px;
  padding: 8px 18px 8px 10px;
  border: 1px solid #2c363e;
}
.feature-icons-list img {
  width: 22px; height: 22px;
  filter: grayscale(0.4) brightness(1.09);
}

/*--- TEXT SECTION / CARDS ---*/
.text-section {
  margin-bottom: 0;
  background: none;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card-bg);
  border-radius: 16px;
  box-shadow: 0 3px 16px var(--color-card-shadow);
  margin-bottom: 20px;
  padding: 32px 24px;
  flex: 1 1 320px;
  position: relative;
  border: 1px solid #31363e;
  transition: box-shadow 0.21s, border-color 0.18s;
}
.card:hover, .card:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 6px 32px #23272b99, 0 1px 0 #692b02 inset;
}

/*--- TESTIMONIALS ---*/
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  color: #22242a;
  border-radius: 16px;
  box-shadow: 0 4px 18px #22292e27;
  border-left: 6px solid var(--color-accent);
  font-size: 1.06rem;
  position: relative;
  max-width: 610px;
  transition: box-shadow 0.21s, border-color 0.18s;
}
.testimonial-card p {
  color: #313439;
}
.testimonial-card strong {
  color: var(--color-primary);
}
.testimonial-card:hover {
  box-shadow: 0 8px 40px #22292e44;
  border-left: 6px solid var(--color-accent-dark);
}

.rating-summary {
  background: var(--color-card-bg);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.15rem;
  border-radius: 10px;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  box-shadow: 0 2px 10px #22292e22;
  margin-top: 22px;
}
.rating-summary img {
  vertical-align: middle;
  margin-left: 5px;
  width: 26px;
}

/*--- FAQ ---*/
.faq-item {
  background: var(--color-card-bg);
  border-radius: 12px;
  box-shadow: 0 1px 8px #23262830;
  margin-bottom: 20px;
  padding: 16px 20px;
  border-left: 4px solid var(--color-primary);
}
.faq-item h3 {
  margin-bottom: 8px;
}

/*--- SECTIONS, FEATURE ITEM, TEXT-IMAGE ---*/
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-card-bg);
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 20px 18px;
}

/*--- TABLES ---*/
table {
  width: 100%;
  background: var(--color-card-bg);
  border-radius: 10px;
  box-shadow: 0 2px 10px #22292e17;
  overflow: hidden;
  margin-bottom: 22px;
}
thead {
  background: var(--color-mid-bg);
}
th {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  border-bottom: 2px solid var(--color-accent);
}
td {
  color: #e2e3e7;
  border-bottom: 1px solid #2f3237;
}

/*--- BUTTONS & LINKS ---*/
button, input[type="button"], input[type="submit"] {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  background: var(--color-accent);
  color: var(--color-dark-bg);
  padding: 11px 26px;
  border: none;
  border-radius: 28px;
  cursor: pointer;
  transition: background 0.19s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 6px #b05a0030;
  outline: none;
  margin-right: 8px;
}
button:hover, button:focus {
  background: var(--color-accent-dark);
  color: #fff;
  box-shadow: 0 4px 16px #b05a0054;
}
a.button, .cta-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  background: var(--color-primary);
  color: #fff;
  padding: 9px 22px;
  border-radius: 22px;
  text-transform: uppercase;
  margin-top: 18px;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
  box-shadow: 0 2px 7px #23272b30;
}
a.button:hover, a.button:focus, .cta-link:hover, .cta-link:focus {
  background: var(--color-accent);
  color: var(--color-dark-bg);
}

/*--- FOOTER ---*/
footer {
  background: var(--color-footer-bg);
  color: #dedfdc;
  padding: 0 0 0 0;
  font-family: var(--font-body);
  border-top: 2px solid #35383a;
  box-shadow: 0 -2px 24px #22292e10;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 34px 0 18px 0;
}
.footer-top nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-top nav a {
  color: var(--color-metal-dark);
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 4px 0;
  border: none;
  transition: color 0.18s;
}
.footer-top nav a:hover {
  color: var(--color-accent);
}
.footer-contact p, .footer-contact a {
  color: #c1c4c6;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-social {
  display: flex;
  gap: 14px;
}
.footer-social a {
  display: inline-flex;
  background: var(--color-mid-bg);
  border-radius: 50%;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  transition: background 0.17s;
  border: 1px solid #37404a;
}
.footer-social a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent-dark);
}
.footer-social img {
  width: 22px; height: 22px;
  filter: grayscale(0.15) brightness(1.2);
}
.footer-bottom {
  border-top: 1px solid #26282c;
  padding: 17px 0 8px 0;
  text-align: center;
  color: #828689;
  font-size: 0.965rem;
}

/*--- CERTIFICATES (About page) ---*/
.certifications-list {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
}
.certifications-list p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-metal);
  font-weight: 600;
}
.certifications-list img {width: 26px; height: 26px;}

/*--- MOBILE MENU ---*/
.mobile-menu-toggle {
  position: fixed;
  right: 20px; top: 17px;
  z-index: 3200;
  background: var(--color-card-bg);
  color: var(--color-accent);
  font-size: 2.1rem;
  border: none;
  border-radius: 9px;
  width: 50px; height: 50px;
  display: none; /* Only on mobile shown*/
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px #10141720;
  transition: background 0.19s, color 0.19s;
  outline: none;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-accent);
  color: var(--color-dark-bg);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(36, 40, 44, 0.95);
  z-index: 4000;
  transform: translateX(100vw);
  transition: transform 0.33s cubic-bezier(.63,.04,.32,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 30px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  border: none;
  font-size: 2.2rem;
  margin-left: auto;
  margin-right: 17px;
  margin-bottom: 18px;
  cursor: pointer;
  transition: color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 32px;
  margin-top: 8px;
}
.mobile-nav a {
  color: #edeef0;
  background: none;
  padding: 14px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.14rem;
  border-bottom: 1px solid #33393d;
  transition: color 0.15s, background 0.11s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  background: #13252e;
}
@media (max-width: 1023px) {
  header nav, .cta-button {display: none !important;}
  .mobile-menu-toggle {display: flex;}
}
@media (min-width: 1024px) {
  .mobile-menu, .mobile-menu-toggle {display: none !important;}
}

/*--- RESPONSIVE GENERIC FLEX FIXES ---*/
@media (max-width: 900px) {
  .feature-grid {flex-direction: column; gap: 20px;}
  .footer-top {flex-direction: column; gap: 28px; align-items: flex-start;}
}
@media (max-width: 768px) {
  .container, .content-wrapper { padding-left: 7px; padding-right: 7px; }
  .content-wrapper, .section {
    padding: 24px 9px;
    margin-bottom: 34px;
  }
  .section {border-radius: 9px;}
  .feature-grid {flex-direction: column; min-width: 0;}
  .card-container {flex-direction: column; gap: 18px;}
  .footer-top {flex-direction: column; gap: 22px; align-items: flex-start;}
  .text-image-section { flex-direction: column; gap: 18px; }
  .feature-icons-list { flex-direction: column; gap: 13px; }
  table, thead, tbody, th, td { font-size: 0.97rem; }
}
@media (max-width: 600px) {
  .hero { padding: 30px 0 24px 0; }
  .hero h1 {font-size: 1.4rem;}
  .hero p {font-size: 1rem;}
  .footer-bottom {padding: 8px 0 7px 0; font-size: 0.89rem;}
}

/*--- COOKIE CONSENT BANNER ---*/
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: rgba(38,40,44,0.97);
  color: #fff;
  z-index: 99999;
  box-shadow: 0 -2px 22px #16181a40;
  border-top: 2px solid var(--color-accent);
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  padding: 22px 30px 18px 30px;
  font-family: var(--font-body);
  font-size: 1rem;
  animation: cookieBannerIn 0.55s cubic-bezier(.65,.17,.21,1);
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-text {
  flex: 1 1 300px;
  color: #fff;
  margin-bottom: 6px;
}
.cookie-banner-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  padding: 10px 22px;
  border-radius: 6px;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.01rem;
  letter-spacing: 0.01em;
  margin: 0 4px;
  cursor: pointer;
  box-shadow: 0 1px 6px #B05A0020;
  transition: background 0.17s, color 0.17s;
}
.cookie-btn.accept {background: var(--color-accent); color: #222;}
.cookie-btn.reject {background: #343b40; color: #fff;}
.cookie-btn.settings {background: var(--color-primary); color: #fff;}
.cookie-btn:hover, .cookie-btn:focus {filter: brightness(.97);}

/*--- COOKIE MODAL ---*/
.cookie-modal-overlay {
  position: fixed; z-index: 100000;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(23, 17, 14, 0.60);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalIn 0.35s cubic-bezier(.77,.14,.19,1);
}
@keyframes cookieModalIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal {
  background: #23282b;
  color: #edeef0;
  padding: 36px 36px 26px 36px;
  border-radius: 15px;
  max-width: 360px;
  box-shadow: 0 8px 56px #000a  ;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1rem;
}
.cookie-modal h2 {font-size: 1.23rem; color: var(--color-accent); margin-bottom: 10px;}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  font-weight: 600;
}
.cookie-modal .cookie-toggle {
  width: 32px; height: 18px;
  appearance: none;
  background: #ccc;
  border-radius: 14px;
  position: relative;
  outline: none;
  margin: 0 5px 0 0;
  transition: background 0.17s;
}
.cookie-modal .cookie-toggle:checked {
  background: var(--color-accent);
}
.cookie-modal .cookie-toggle:before {
  content: '';
  position: absolute;
  left: 2px; top: 2px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s;
  box-shadow: 0 1px 2px #0002;
}
.cookie-modal .cookie-toggle:checked:before {transform: translateX(14px);}
.cookie-modal .close-modal {
  position: absolute;
  right: 15px; top: 12px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal .close-modal:hover { color: var(--color-accent); }

.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

@media (max-width: 480px) {
  .cookie-banner { flex-direction: column; gap: 11px; padding: 13px 7px 12px 9px; }
  .cookie-modal { padding: 19px 7px 17px 7px; font-size: 0.99rem; }
}

/*--- ANIMATIONS & MICRO-INTERACTIONS ---*/
a, button, .cta-button, .card, .feature-grid > div, .footer-social a, .testimonial-card, .mobile-nav a, .cookie-btn {
  transition: background 0.19s, color 0.16s, border 0.15s, box-shadow 0.18s, transform 0.17s;
}

/*--- UTILITIES ---*/
.text-center { text-align: center; }
.mt-16 { margin-top: 16px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }
.pt-16 { padding-top: 16px !important; }
.pb-16 { padding-bottom: 16px !important; }

/*--- EXTRAS ---*/
::-webkit-scrollbar { width: 8px; background: #222; }
::-webkit-scrollbar-thumb { background: #393939; border-radius: 7px; }

/*--- ACCESSIBILITY/FOCUS ---*/
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  z-index: 3;
}

/*--- SPECIAL FLEX FIXES for cookies/review sections on mobile ---*/
@media (max-width: 600px) {
  .testimonial-card {padding: 14px 6px;}
  .cookie-modal {max-width: 97vw;}
}
