/* ==========================================================================
   PMS Technical Solutions - Full WP Builder Theme
   ========================================================================== */
:root {
    /* PMS Brand Colors */
    --clr-primary: #E89E28;
    --clr-primary-hover: #cc8418;
    --clr-black: #000000;
    --clr-dark: #121212;
    --clr-dark-gray: #1E1E1E;
    --clr-gray: #f5f5f5;
    --clr-white: #ffffff;
    --clr-text: #454545;
    --clr-text-light: #777777;

    /* Typography */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Layout */
    --container-max: 1200px;
    --transition: 0.3s ease-in-out;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text);
    background-color: var(--clr-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--clr-dark);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--clr-primary);
    transition: var(--transition);
}

a:hover {
    color: var(--clr-black);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--clr-gray);
}

.bg-dark {
    background-color: var(--clr-dark);
    color: var(--clr-white);
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--clr-white);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-6 {
    width: 50%;
    padding: 0 15px;
}

.col-4 {
    width: 33.333%;
    padding: 0 15px;
}

/* ==========================================================================
   Buttons & Elements
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    border-radius: 3px;
    min-height: 44px;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: var(--clr-white);
}

.btn-primary:hover {
    background-color: var(--clr-black);
    color: var(--clr-white);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--clr-white);
    color: var(--clr-white);
}

.btn-outline:hover {
    background-color: var(--clr-white);
    color: var(--clr-black);
}

.heading-divider {
    width: 60px;
    height: 4px;
    background: var(--clr-primary);
    margin: 0 auto 30px;
}

.heading-divider.left {
    margin: 0 0 30px 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.top-bar {
    background-color: var(--clr-black);
    color: #999;
    font-size: 13px;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact span {
    margin-right: 20px;
}

.top-bar i {
    color: var(--clr-primary);
    margin-right: 5px;
}

.top-bar a:hover {
    color: var(--clr-primary);
}

.site-header {
    background: var(--clr-white);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: padding var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo img {
    max-height: 100px;
    width: auto;
    transition: max-height var(--transition);
}

.scrolled {
    padding: 5px 0;
}

.scrolled .brand-logo img {
    max-height: 60px;
}

.main-nav ul {
    display: flex;
    align-items: center;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    color: var(--clr-black);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    position: relative;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--clr-primary);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-title {
    color: var(--clr-white);
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text {
    color: #e0e0e0;
    font-size: 18px;
    margin-bottom: 30px;
}

/* ==========================================================================
   Info Cards
   ========================================================================== */
.info-cards {
    position: relative;
    z-index: 10;
    padding: 40px 0;
    background: var(--clr-gray);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.info-card {
    background: var(--clr-white);
    padding: 30px 20px;
    display: flex;
    gap: 15px;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.info-card.accent {
    background: var(--clr-primary);
    color: var(--clr-white);
}

.info-card.accent h3 {
    color: var(--clr-white);
}

.info-card.accent p {
    color: rgba(255, 255, 255, 0.9);
}

.info-icon {
    font-size: 36px;
    color: var(--clr-primary);
    flex-shrink: 0;
}

.info-card.accent .info-icon {
    color: var(--clr-white);
}

.info-text h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.info-text p {
    font-size: 14px;
    margin: 0;
}

/* ==========================================================================
   Interior Page Headers
   ========================================================================== */
.page-header {
    background-color: var(--clr-dark);
    padding: 80px 0;
    text-align: center;
    color: var(--clr-white);
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.page-header h1 {
    color: var(--clr-primary);
    position: relative;
    z-index: 2;
    font-size: 48px;
    margin-bottom: 0;
}

/* ==========================================================================
   Content Grid & Layouts
   ========================================================================== */
.content-box {
    background: var(--clr-white);
    padding: 40px;
    border-radius: 4px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border-top: 4px solid var(--clr-primary);
}

.img-fluid {
    width: 100%;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.feature-list {
    margin-top: 20px;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-list i {
    color: var(--clr-white);
    background: var(--clr-primary);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ==========================================================================
   Product / Equipment Grid
   ========================================================================== */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.equipment-card {
    background: var(--clr-white);
    border: 1px solid #ddd;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.equipment-card:hover {
    transform: translateY(-5px);
    border-color: var(--clr-primary);
    box-shadow: var(--shadow);
}

.equipment-icon {
    font-size: 50px;
    color: var(--clr-dark);
    margin-bottom: 20px;
    transition: var(--transition);
}

.equipment-card:hover .equipment-icon {
    color: var(--clr-primary);
}

/* ==========================================================================
   Contact Map & Form
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-info-block {
    margin-bottom: 30px;
}

.contact-info-block i {
    font-size: 24px;
    color: var(--clr-primary);
    margin-bottom: 10px;
    display: block;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 16px;
    min-height: 44px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--clr-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 158, 40, 0.15);
}

.map-container {
    height: 400px;
    width: 100%;
    margin-top: 50px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #111;
    color: #888;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    max-width: 220px;
    margin-bottom: 20px;
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.footer-widget h3 {
    color: var(--clr-white);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-widget ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-widget ul li i {
    margin-top: 4px;
    flex-shrink: 0;
    color: var(--clr-primary);
}

.footer-widget a {
    color: #888;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.footer-widget a:hover {
    color: var(--clr-primary);
    padding-left: 5px;
}

/* Footer contact - email wrapping fix */
.footer-contact ul li {
    word-break: normal;
    overflow-wrap: break-word;
}

.footer-contact ul li span {
    word-break: normal;
    overflow-wrap: break-word;
}

.footer-contact ul li a {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #888;
    text-decoration: none;
}

.footer-bottom {
    background: #000;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #222;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Mobile Navigation
   ========================================================================== */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--clr-primary);
    font-size: 28px;
    cursor: pointer;
    z-index: 1000;
    min-height: 44px;
    min-width: 44px;
}

.mobile-nav-panel {
    display: none;
    background: var(--clr-dark);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 20px 0;
    border-top: 1px solid #333;
    z-index: 999;
}

.mobile-nav-panel.open {
    display: block;
}

.mobile-nav-panel ul li {
    text-align: center;
    margin: 15px 0;
}

.mobile-nav-panel ul li a {
    color: var(--clr-white);
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 500;
    font-family: var(--font-heading);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.mobile-nav-panel ul li a:hover,
.mobile-nav-panel ul li a.active {
    color: var(--clr-primary);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {

    .main-nav,
    .top-bar {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-section {
        min-height: auto;
        padding: 80px 0 60px 0;
        align-items: flex-start;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-text {
        font-size: 16px;
    }

    .col-6,
    .col-4 {
        width: 100%;
        margin-bottom: 30px;
    }

    .info-grid,
    .equipment-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 36px;
    }

    .contact-form .row .col-6 {
        width: 100%;
        padding: 0;
    }

    .contact-form .row {
        margin: 0;
    }

    .col-6>div[style*="padding-left"] {
        padding-left: 0 !important;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 26px;
    }

    .page-header {
        padding: 60px 0;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .section-padding {
        padding: 50px 0;
    }

    .content-box {
        padding: 25px;
    }

    .hero-content .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* --- New Equipment Cards CSS --- */
.equipment-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
    border-top: 1px solid #ddd;
    padding-top: 60px;
}

.equipment-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
    border-bottom: 4px solid var(--clr-primary);
}

.equipment-card-img-ai {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.equipment-card-img-ai img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.equipment-card-img-drifter {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: #e2e4e6;
    border-bottom: 1px solid #eee;
}

.equipment-card-img-drifter img {
    width: 130%;
    height: 130%;
    object-fit: contain;
    mix-blend-mode: multiply;
    border: none;
}

.equipment-card-content {
    padding: 30px;
}

.equipment-card-content h3 {
    font-size: 24px;
    margin-top: 0;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    color: var(--clr-dark);
}

.equipment-card-content p {
    color: #666;
    line-height: 1.6;
}

/* --- New Equipment Gallery CSS --- */
.equipment-gallery-container {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px dashed #ccc;
    text-align: center;
}

.equipment-gallery-container h3 {
    font-size: 28px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    color: var(--clr-dark);
    margin-bottom: 20px;
}

.equipment-gallery-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.equipment-gallery-item {
    width: 200px;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: 0.2s;
}

.equipment-gallery-item:hover {
    transform: scale(1.05);
    border-color: var(--clr-primary);
}

.equipment-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Lightbox Gallery Custom Styles --- */
#pms-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#pms-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

#pms-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    background: #fff;
    /* White background for the transparent pngs */
}

.pms-lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.pms-lightbox-close:hover {
    color: var(--clr-primary);
    transform: scale(1.1);
}

/* --- Hyper-Specialized Technical Section Styles --- */
.tech-section-wrapper {
    border-top: 2px dashed #ddd;
    padding-top: 60px;
    margin-top: 20px;
}

.tech-box {
    background: white;
    border-top: 4px solid var(--clr-primary);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.tech-table th,
.tech-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.tech-table th {
    background-color: #fca3111a;
    font-weight: bold;
    color: var(--clr-dark);
}

.tech-table tr:hover {
    background-color: #f9f9f9;
}

.part-number {
    font-family: monospace;
    background: #eee;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    color: #c0392b;
}

.bridge-copy {
    background: #222;
    color: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 5px solid var(--clr-primary);
}

.bridge-copy h3 {
    color: #fff;
    margin-top: 0;
}

.bridge-copy p {
    color: #ddd;
    margin-bottom: 0;
}

.disclaimer-box {
    background: #fdf5e6;
    border: 1px solid #ffcc80;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    font-style: italic;
    color: #555;
    text-align: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .tech-table th,
    .tech-table td {
        padding: 8px 10px;
        font-size: 14px;
    }
}