/* ===================================
   VOB365 Website Styles
   Brand Colors:
   - Red: #B31942
   - White: #FFFFFF
   - Blue: #0A3161
   =================================== */

/* Reset, Base, and Multi-Browser Normalization (Item 6) */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

:root {
    --red: #B31942;
    --white: #FFFFFF;
    --blue: #0A3161;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
    --text-gray: #666666;
    /* Fallback variables for Hero section cross-browser compatibility */
    --nav-height: 0px;
    --surface-strong: #0A3161;
    --accent: #B31942;
    --text-on-surface-strong: #FFFFFF;
    --link-on-strong: rgba(255, 255, 255, 0.9);
    --text-lg: 1.15rem;
    --text-3xl: 2.25rem;
    --text-xs: 0.85rem;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--blue);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--blue);
}

/* Brand styling for V-INSIGHT™: V- in bold blue, INSIGHT in bold red, TM in blue */
.v-insight {
    font-weight: 700;
    color: var(--blue);
}

.v-insight .vi-red {
    color: var(--red);
    font-weight: 700;
}

.v-insight .vi-tm {
    color: var(--blue);
    font-weight: 400;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.btn-primary:hover {
    background-color: #0a3161;
    border-color: #B31942;
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--blue);
}

.btn-contact {
    background-color: var(--white);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 5px;
}

.btn-contact:hover {
    background-color: #FFFFFF;
}

/* Navigation */
.navbar {
    background-color: var(--white);
    padding: 1rem 0;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .logo {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

/* Item 1: Centers nav-menu text when stacked with line breaks (<br>) */
.nav-menu li {
    text-align: center;
}

.nav-menu a {
    display: inline-block;
    text-align: center;
    line-height: 1.3;
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--red);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

/* Changed from white to blue so hamburger icon is visible against white navbar on mobile */
.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--blue);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--blue) 0%, #0D4A8A 100%);
    color: var(--white);
    padding: 120px 0 80px;
    text-align: left;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--red);
}

.section-title-b {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--blue);
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--red);
    margin-bottom: 3rem;
}

/* Capabilities Section */
.capabilities {
    background: linear-gradient(135deg, var(--white) 0%, #0D4A8A 100%);
    color: var(--blue);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.capability-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.capability-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(179, 25, 66, 0.2);
}

.capability-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.capability-card h3 {
    color: var(--blue);
    margin-bottom: 1rem;
}

.capability-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin-top: 1rem;
}

.capability-tags li {
    background-color: var(--blue);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Survey Section */
.survey-section {
    background: linear-gradient(135deg, var(--white) 0%, #0D4A8A 100%);
    color: var(--blue);
}

.survey-section .section-title,
.survey-section .section-subtitle {
    color: var(--blue);
}

.survey-section .section-title-r,
.survey-section .section-subtitle-r {
    color: var(--red);
}

.survey-content {
    max-width: 900px;
    margin: 0 auto;
}

.survey-text p {
    color: var(--blue);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.survey-features {
    display: grid;
    gap: 2rem;
}

.survey-feature {
    background-color: #FFFFFF;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--red);
}

.survey-feature-2 {
    background-color: #FFFFFF;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--red);
}

.survey-feature h4 {
    color: var(--blue);
    margin-bottom: 1rem;
}

.survey-feature p {
    color: #0A3161;
}

/* Item 3.3: Places MonitorPerimeterView.png to the right of the middle paragraph and locks its height to the paragraph */
.survey-para-with-img {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 2rem;
}

.survey-para-with-img p {
    margin-bottom: 0 !important;
}

.survey-para-img-box {
    position: relative;
    height: 100%;
    min-height: 100%;
}

.survey-para-img-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Installations Section */
.installations {
    background-color: #0A3161;
    background: linear-gradient(135deg, var(--white) 0%, #0D4A8A 100%);
}

.installations-grid {
    display: grid;
    gap: 3rem;
}

.installation-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background-color: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
}

.installation-card:nth-child(even) {
    direction: rtl;
}

.installation-card:nth-child(even) .installation-content {
    direction: ltr;
}

.installation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.installation-content {
    padding: 2rem;
}

.installation-tag {
    display: inline-block;
    background-color: var(--blue);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.installation-content h3 {
    color: var(--blue);
    margin-bottom: 1rem;
}

.installation-specs {
    list-style: none;
    margin-top: 1.5rem;
}

.installation-specs li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.installation-specs li:last-child {
    border-bottom: none;
}

.installation-specs strong {
    color: var(--blue);
}

/* About Section */
.about {
    background: linear-gradient(135deg, var(--white) 0%, #0D4A8A 100%);
    color: var(--blue);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Creates scrolling text */
.scroll-left {
    height: 50px;
    overflow: hidden;
    position: relative;
    background: #FFFFFF;
    color: var(--blue);
    border: 2px solid;
}

.scroll-left p {
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
    line-height: 50px;
    text-align: center;
    white-space: nowrap;
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    -webkit-animation: scroll-left 15s linear infinite;
    animation: scroll-left 15s linear infinite;
}

@-webkit-keyframes scroll-left {
    0%   { -webkit-transform: translateX(100%); transform: translateX(100%); }
    100% { -webkit-transform: translateX(-100%); transform: translateX(-100%); }
}

@keyframes scroll-left {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.about-content > p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.about-sba-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.about-sba-row p {
    font-size: 1.1rem;
    margin-bottom: 0;
    flex: 1;
}

.sba-badge {
    height: 110px;
    width: auto;
    flex-shrink: 0;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.about-feature {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.feature-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 1rem;
}

.about-feature h4 {
    color: var(--blue);
    margin-bottom: 1rem;
}

.naics-codes {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.naics-codes h4 {
    color: var(--blue);
    margin-bottom: 1rem;
}

.naics-codes ul {
    list-style: none;
    padding-left: 0;
}

.naics-codes li {
    color: var(--blue);
    padding: 0.4rem 0;
}

.naics-codes li strong {
    color: var(--red);
    font-weight: 700;
    margin-right: 0.5rem;
}

/* Item 4: Contact Section - Tightened vertical spacing */
.contact {
    background: linear-gradient(45deg, var(--white) 0%, #95C3F5 100%);
    color: var(--blue);
    padding: 40px 0 25px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 0;
}

.contact-info {
    display: grid;
    gap: 0.75rem;
}

.contact-item h4 {
    color: var(--blue);
    margin-bottom: 0.2rem;
}

.contact-item p {
    margin-bottom: 0.25rem;
}

/* Item 2: Footer & 4px Horizontal Red Line right above "Jump To:" on ALL pages */
.footer {
    padding: 0rem 0;
    background-color: var(--white);
}

.footer-links {
    border-top: 4px solid var(--red);
    padding-top: 1.25rem;
    margin-top: 0rem;
}

.footer-column ul {
    list-style: none;
    padding-left: 0;
}

/* ===================================
   Item 5: Mobile & Tablet Optimization
   =================================== */
@media (max-width: 992px) {
    .about-features {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
    }
}

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }

    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.85rem; }
    h3 { font-size: 1.4rem; }

    /* Responsive Navigation Bar */
    .navbar .container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 1.25rem;
        width: 100%;
    }

    /* Stacks the survey paragraph and MonitorPerimeterView.png cleanly on small screens */
    .survey-para-with-img {
        grid-template-columns: 1fr;
    }

    .survey-para-img-box {
        height: 220px;
    }

    /* Stacks Field Installation cards vertically on mobile */
    .installation-card,
    .installation-card:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    /* Stacks SBA badges and paragraph cleanly on mobile */
    .about-sba-row {
        flex-direction: column;
        text-align: center;
    }

    /* Stacks 01-06 About feature cards in 1 column on mobile */
    .about-features {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    /* Allows scrolling customer ticker text to remain readable on small screens */
    .scroll-left p {
        font-size: 0.85rem;
    }
}