/* ------------------------- CSS RESET & NORMALIZE ------------------------- */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; border: 0; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
table { border-collapse: collapse; width: 100%; }
button { background: none; border: none; cursor: pointer; font: inherit; }
:focus { outline: 2px solid #2EC6B2; outline-offset: 2px; }
body { min-height: 100vh; text-rendering: optimizeSpeed; }

/* ---------------------- BRAND & BASE TYPOGRAPHY -------------------------- */
:root {
  --color-primary: #264653;
  --color-secondary: #E9C46A;
  --color-accent: #F4F4F4;
  --color-bg: #181D24;
  --color-bg-light: #242B38;
  --color-bg-card: #212938;
  --color-bg-elevate: #232B3B;
  --color-neon: #2EC6B2;
  --color-shadow: rgba(46, 198, 178, 0.07);
  --color-danger: #ff3355;
  --color-table-row: #232C36;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-lg: 0 12px 36px var(--color-shadow);
  --shadow-md: 0 2px 10px var(--color-shadow);
  --transition: 0.22s cubic-bezier(.51,.08,.55,1.47);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Mono', monospace;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600;700&display=swap');

html, body { background: var(--color-bg); color: #F4F4F4; min-height: 100%; font-family: var(--font-body); font-size: 16px; }
body { line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 800; color: #fff; }
h1 { font-size: 2.7rem; margin-bottom: 20px; letter-spacing: -1px; line-height: 1.15; }
h2 { font-size: 2rem; margin: 24px 0 16px 0; line-height: 1.15; }
h3 { font-size: 1.32rem; font-weight: 700; margin-bottom: 12px; }
h4 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
p, ul, li, blockquote, cite { font-size: 1rem; font-family: var(--font-body); color: #F4F4F4; margin: 0 0 12px 0; }
strong { color: var(--color-secondary); font-weight: 700; }

/* --------------------- GENERAL LAYOUT UTILITIES -------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: transparent;
}

.section {
    margin-bottom: 60px;
    padding: 40px 20px;
    background: none;
    border-radius: var(--radius-lg);
}

.card-container, .directory-grid, .equipment-cards, .analysis-list, .news-teasers {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 12px;
}
.card, .company-card, .equipment-type, .testimonial-card, .feature-item, article {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 32px 24px 24px 24px;
    margin-bottom: 20px;
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover, .company-card:hover, .equipment-type:hover, article:hover {
    box-shadow: 0 8px 36px #2ec6b210;
    transform: translateY(-4px) scale(1.025);
}

.content-grid, .office-info, .company-contact, .footer-nav, .contact-details, .news-teasers {
    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: #fff;
    color: #171b22;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}
.testimonial-card cite {
    color: #264653;
    font-weight: 600;
}

.feature-item {
    display: flex; flex-direction: column; align-items: flex-start; gap: 15px; padding: 24px 0;
}

@media (max-width: 900px) {
  .container { max-width: 100vw; }
  .content-wrapper { gap: 20px; }
  .section { padding: 34px 8px; }
  .card, .company-card, .equipment-type, .testimonial-card, .feature-item, article { padding: 20px 14px 18px 14px; }
}
@media (max-width: 768px) {
    .content-grid,.office-info,.company-contact,.footer-nav,.contact-details,.news-teasers,.directory-grid,.equipment-cards,.analysis-list {
        flex-direction: column;
        gap: 18px;
    }
    .text-image-section { flex-direction: column; gap: 20px; }
    .container { padding: 0 8px; }
}

/* --------------- HEADER, NAVIGATION & HERO SECTIONS ---------------------- */
header {
    width: 100%;
    position: relative;
    background: linear-gradient(96deg, var(--color-bg-light) 68%, #162640 100%);
    box-shadow: 0 5px 24px #2ec6b205;
    z-index: 92;
}
header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 24px;
    padding-bottom: 24px;
}
.logo-link img { height: 40px; width: auto; }
nav.main-nav {
    display: flex; align-items: center; gap: 28px; justify-content: flex-start;
}
nav.main-nav a, .footer-nav a {
    color: #f4f4f4;
    font-family: var(--font-display);
    font-size: 1.07rem;
    font-weight: 600;
    letter-spacing: .01em;
    position: relative;
    padding-bottom: 2px;
    transition: color var(--transition);
}
nav.main-nav a:hover, .footer-nav a:hover {
    color: var(--color-secondary);
}
nav.main-nav a.active {
    color: var(--color-neon);
    border-bottom: 2px solid var(--color-neon);
}
.cta.primary {
    display: inline-flex;
    align-items: center;
    background: var(--color-neon);
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: .02em;
    border-radius: var(--radius-md);
    padding: 12px 28px;
    box-shadow: 0 2px 16px #2ec6b230;
    transition: background var(--transition), color var(--transition), transform var(--transition);
    border: none;
}
.cta.primary:hover, .cta.primary:focus {
    background: #0FFDC1;
    color: #162640;
    transform: translateY(-3px) scale(1.04);
}

.hero {
    background: linear-gradient(120deg, #232C36 60%, #353535 100%);
    padding: 0;
}
.hero .container { min-height: 360px; display: flex; align-items: center; }
.hero .content-wrapper {
    max-width: 680px;
    background: none;
    gap: 16px;
}
.hero h1 {
    font-size: 2.8rem;
    color: var(--color-neon);
    font-weight: 900;
    margin-bottom: 16px;
    text-shadow: 0 2px 36px #2ec6b250;
}
.hero p {
    font-size: 1.16rem;
    color: #C8D5E9;
}

@media (max-width: 900px) { .hero h1 { font-size: 2.1rem; } }
@media (max-width: 768px) {
    header .container { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 16px; padding-bottom: 16px; }
    nav.main-nav { display: none; }
    .cta.primary { font-size: 1rem; padding: 10px 20px; }
    .hero .container { min-height: 230px; }
}

/* ---------------------- MOBILE MENU STYLES ----------------------------- */
.mobile-menu-toggle {
    position: fixed;
    top: 20px; right: 20px;
    z-index: 101;
    display: none;
    font-size: 2.2rem;
    width: 48px; height: 48px;
    color: var(--color-neon);
    background: var(--color-bg-elevate);
    border-radius: 50%;
    box-shadow: 0 0 16px #2ec6b235;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus { color: #0FFDC1; background: #191e25; }
@media (max-width: 768px) { .mobile-menu-toggle { display: flex; } }

.mobile-menu {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(30, 40, 55, 0.95);
    z-index: 200;
    transform: translateX(100%);
    transition: transform var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0;
}
.mobile-menu.open {
    transform: translateX(0%);
    box-shadow: 0 2px 32px #2ec6b260;
}
.mobile-menu-close {
    margin: 24px 30px 0 0;
    color: var(--color-neon);
    font-size: 2.1rem;
    background: none;
    border-radius: 50%;
    transition: background var(--transition), color var(--transition); padding: 4px;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
    color: #fff; background: #2ec6b2;
}
.mobile-nav {
    width: 100%; display: flex; flex-direction: column; align-items: center;
    margin-top: 44px; gap: 32px;
}
.mobile-nav a {
    color: #F4F4F4;
    font-family: var(--font-display);
    font-size: 1.32rem; font-weight: 700;
    padding: 8px 0;
    letter-spacing: .03em;
    border-radius: 6px;
    width: 85vw; text-align: center;
    transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover { background: #2ec6b2; color: #181d24; }

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

/* ------------------------- TABLE STYLING -------------------------- */
table, .interactive-table {
    width: 100%;
    background: var(--color-bg-elevate);
    border-radius: var(--radius-md);
    margin: 22px 0 12px 0;
    overflow: hidden;
}
th, td {
    padding: 16px 18px;
    text-align: left;
    font-size: 1rem;
    color: #f4f4f4;
    border-bottom: 1px solid #35485e;
}
th { background: var(--color-primary); color: var(--color-secondary); font-weight: 800; }
tr:nth-child(even) { background: var(--color-table-row); }
tbody tr:hover {
    background: rgba(46, 198, 178, 0.13);
    color: var(--color-neon);
}

@media (max-width: 600px) {
    table, .interactive-table, thead, tbody, th, td, tr {
       display: block; width: 100%;
    }
    th, td {
        padding: 12px 10px; font-size: 0.98rem;
    }
    thead { display: none; }
    tbody tr { margin-bottom: 18px; }
    td { border: none; position: relative; padding-left: 50%; }
    td::before {
      position: absolute;
      top: 0; left: 4px;
      width: 48%;
      font-weight: 700;
      color: #2ec6b2;
      white-space: nowrap;
      content: attr(data-label);
    }
}

/* ------------------- CARD, ARTICLE & ANALYSIS STYLES ------------------- */
.company-card, .card, .equipment-type, .feature-item, article {
    border: 1.5px solid #2ec6b225;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    background: var(--color-bg-card);
    color: #f4f4f4;
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.company-card:hover, .card:hover, .equipment-type:hover, article:hover {
    border-color: var(--color-neon);
    box-shadow: 0 4px 24px #2ec6b215;
    transform: translateY(-2px) scale(1.02);
}

.directory-grid, .equipment-cards, .analysis-list {
    display: flex; flex-wrap: wrap; gap: 24px;
}

.analysis-list article { flex: 1 1 320px; min-width: 270px; max-width: 400px; }
.company-card, .equipment-type { flex: 1 1 290px; min-width: 230px; max-width: 350px; }
@media (max-width: 800px) {
    .directory-grid, .equipment-cards, .analysis-list { gap: 14px; }
    .company-card, .equipment-type, article { min-width: 150px; max-width: 100%; }
}

/* ------------------- FEATURE & TESTIMONIALS ---------------------- */
.testimonial-card {
    box-shadow: 0 2px 16px rgba(20,20,20, 0.09);
    background: #fff;
    color: #181d24;
    border: 1.5px solid #E9C46A33;
    margin-bottom: 20px;
    gap: 22px;
}
.testimonial-card blockquote { color: #2B3850; margin: 0 0 10px 0; font-style: italic; }

/* ------------------- NEWS, FILTERS, BADGES ---------------------- */
.news-teasers, .topic-filter ul {
    display: flex; flex-wrap: wrap; gap: 24px;
}
.news-teasers article { flex: 1 1 330px; min-width: 265px; max-width: 430px; }
.topic-filter ul li {
    background: #2ec6b215;
    padding: 6px 18px;
    border-radius: var(--radius-sm);
    color: #2ec6b2;
    font-weight: 700;
    margin-right: 10px;
    transition: background 0.15s;
    display: inline-flex;
}
.topic-filter ul li:hover { background: #2ec6b235; color: #15ffef; }

/* --------------------- CONTACT DETAILS & FOOTER -------------------- */
footer {
    background: linear-gradient(88deg, #202630 80%, #181d24 100%);
    padding: 38px 0 0 0;
    border-top: 2px solid #26465333;
}
footer .container {
    display: flex; flex-direction: row; flex-wrap: wrap; gap: 28px; align-items: flex-start; justify-content: space-between;
}
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 185px;
}
.contact-details {
    display: flex; flex-direction: column; gap: 8px; margin-top: 4px;
    font-size: 0.97rem; color: #D3E2EF;
}
.contact-details div, .company-contact > div {
    display: flex; align-items: center; gap: 7px;
}
@media (max-width: 900px) { footer .container { flex-direction: column; gap: 0; } }

/* ---------------------- MAP, OFFICE INFO, ETC. --------------------------- */
.office-info { display: flex; flex-wrap: wrap; gap: 18px; }
.address-box, .office-hours, .phone-email {
    background: #232a33;
    border-radius: var(--radius-sm);
    color: #f4f4f4;
    padding: 18px 20px;
    font-size: 0.99rem;
    margin-bottom: 15px;
    box-shadow: 0 1px 12px #252d3a18;
}
.map-placeholder img {
    width: 220px;
    height: 140px;
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 10px #19223010;
    object-fit: cover;
}
@media (max-width: 768px) {
    .map-placeholder img { width: 100%; min-width: 95px; height: 100px; }
}

/* ---------------------- FORMS & BLOCKQUOTE -------------------------- */
blockquote {
    color: #04ffc6;
    font-size: 1.1rem;
    border-left: 4px solid #2ec6b2;
    padding-left: 18px;
    margin-bottom: 10px;
    font-style: italic;
}
cite {
    font-size: 0.97rem;
    color: #E9C46A;
    margin-left: 8px;
    font-style: normal;
}

/* ----------------- BUTTONS, LINKS, CTA MICRO-INTERACTIONS --------- */
button, .cta, .btn, .topic-filter ul li {
    transition: background var(--transition), color var(--transition), box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.cta, .btn {
    border-radius: var(--radius-md);
    padding: 10px 24px;
    background: var(--color-neon);
    color: var(--color-primary);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 1px 6px #2ec6b210;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}
.cta.primary:active, .cta.primary:focus, .btn:active, .btn:focus {
    background: #0FFDC1; color: #191e25;
}
.cta.secondary {
    background: var(--color-secondary);
    color: var(--color-bg);
}
.cta.secondary:hover {
    background: #ffe08f;
}

/* Egg-shaped neon accent for some cases */
.neon-accent {
  box-shadow: 0 0 12px 2px #2EC6B2, 0 0 2px 1px #E9C46A;
  border-radius: 999px;
  border: 1px solid #2ec6b2;
}

/* --------- COOKIE CONSENT BANNER & MODAL --------------------- */
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    width: 100vw;
    background: #1e2733;
    color: #f4f4f4;
    font-family: var(--font-body);
    font-size: 1.07rem;
    padding: 22px 28px;
    box-shadow: 0 -1px 18px #2ec6b222;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    z-index: 3000;
    transform: translateY(150%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.36s cubic-bezier(.86,-0.03,.69,1.41), opacity 0.19s linear;
}
.cookie-banner.visible {
    opacity: 1;
    transform: translateY(0%);
    pointer-events: all;
}
.cookie-banner .cookie-buttons {
    display: flex; gap: 12px;
}
.cookie-banner button {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    background: var(--color-neon);
    color: var(--color-primary);
    border: none;
    box-shadow: 0 1px 5px #2ec6b221;
}
.cookie-banner .btn-reject {
    background: #35393d;
    color: #ff3355;
    border: 1.2px solid #ff3355;
}
.cookie-banner .btn-reject:hover, .cookie-banner .btn-reject:focus { background: #ff3355; color: #fff; }
.cookie-banner .btn-settings {
    background: var(--color-secondary);
    color: var(--color-bg);
}
.cookie-banner .btn-settings:hover { background: #ffe08f; }

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(30,40,55,0.82);
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-backdrop.visible { display: flex; }
.cookie-modal {
    background: #232b38;
    color: #f4f4f4;
    min-width: 310px;
    max-width: 98vw;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px #2ec6b222;
    padding: 38px 24px 22px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 22px;
    animation: modalIn 0.24s 1 cubic-bezier(.41,.8,.41,1.42);
}
@keyframes modalIn {
    0% { transform: translateY(48px) scale(.98); opacity: 0.5; }
    100% { transform: none; opacity: 1; }
}
.cookie-modal h2 {
    color: var(--color-neon);
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 16px;
}
.cookie-category {
    display: flex; align-items: center; gap: 14px; margin-bottom: 9px;
}
.cookie-modal label {
    flex: 1 1 140px; color: #E9C46A; font-weight: 600;
}
.cookie-toggle {
    width: 38px; height: 20px;
    border-radius: 13px;
    background: #263147;
    position: relative;
    transition: background 0.18s;
    display: inline-block;
}
.cookie-toggle input {
    display: none;
}
.cookie-toggle::after {
    content: '';
    position: absolute; left: 4px; top: 3px;
    width: 14px; height: 14px;
    background: #E9C46A;
    border-radius: 50%;
    transition: left 0.19s, background 0.19s;
}
.cookie-toggle input:checked + .slider {
    background: var(--color-neon);
}
.cookie-toggle input:checked + .slider::after {
    background: var(--color-neon);
    left: 20px;
}
.cookie-modal .modal-actions {
    display: flex; gap: 12px; margin-top: 16px;
    justify-content: flex-end;
}
.cookie-modal .modal-close {
    position: absolute; top: 14px; right: 16px;
    color: #2ec6b2;
    font-size: 1.3rem;
    background: none;
}
.cookie-modal .modal-close:hover { color: #fff; }

@media (max-width: 550px) {
    .cookie-banner { flex-direction: column; align-items: flex-start; gap: 14px; font-size: 0.98rem; padding: 15px 8px; }
    .cookie-modal { min-width: 95vw; padding: 22px 7px 15px 7px; }
}

/* --------- CONFIRMATION / THANK YOU MESSAGE --------------- */
.confirmation {
  text-align: center;
  background: linear-gradient(114deg, #222b36 70%, #26465320 100%);
  border-radius: var(--radius-lg);
  padding: 48px 20px;
  margin-top: 40px;
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.confirmation h1 { color: var(--color-neon); margin-bottom: 20px; }
.confirmation p { color: #f4f4f4; margin-bottom: 28px; }

/* ----------------------- MISC. ------------------------------ */
::-webkit-scrollbar {
    width: 9px; background: #181d24;
}
::-webkit-scrollbar-thumb {
    background: #294562; border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: #2ec6b2; }

/* Nice animated glow for special accent buttons & neon lines */
.glow {
    animation: neonGlow 1.8s infinite alternate linear;
}
@keyframes neonGlow {
  0% { box-shadow: 0 0 8px 2px #2ec6b2, 0 0 3px #E9C46A; }
  100% { box-shadow: 0 0 24px 7px #2ec6b2, 0 0 8px #E9C46A; }
}

/* Table sort/filter icons etc (if used via script) */
th.sortable {
  cursor: pointer;
  position: relative;
}
th.sortable::after {
  content: '\2195';
  font-size: 0.97em;
  color: #E9C46A;
  margin-left: 8px;
}

/* ------------- Accessibility & Hidden Utility --------------- */
.sr-only {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ------------- Add transitions for interactive elements ------ */
a, .cta, button, .btn, .card, .company-card, .equipment-type, article, .mobile-nav a, .topic-filter ul li {
    transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

/* Always add a minimal top margin to sections after hero */
main section:not(.hero) { margin-top: 22px; }


/* =============== END OF CSS =============== */
