/* ===================================
   OneVision - Industrial Corporate Website
   Modern Energy Sector Design
   =================================== */

/* Import Google Fonts - OneVision Uniform Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Variables - OneVision Brand System */
:root {
    /* Brand Colors */
    --brand-primary: #1E4D8A;           /* Deep Royal Blue */
    --brand-primary-700: #153A64;       /* Darker variant for accessibility */
    --brand-primary-300: #6A8EC0;       /* Lighter variant */
    --brand-accent: #203bd7;            /* Goldenrod Yellow */
    --brand-accent-700: #d0ba49;        /* Darker accent for text/contrast */
    --brand-neutral: #C5C8C9;           /* Steel Silver */
    --background: #F6F7F8;              /* Light background */
    --text-dark: #1A1A1A;               /* Charcoal Black */
    --white: #FFFFFF;
    
    /* Legacy support mapping */
    --primary-dark: var(--brand-primary);
    --accent-red: var(--brand-accent);
    --light-cream: var(--background);
    --light-blue: var(--brand-primary-300);
    --gray-dark: var(--text-dark);
    --gray-medium: var(--brand-neutral);
    --gray-light: var(--background);
    
    /* Typography - OneVision Uniform System */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: var(--font-primary);
    --font-subhead: var(--font-primary);
    --font-body: var(--font-primary);
    --font-accent: var(--font-primary);
    
    --shadow-sm: 0 2px 8px rgba(11, 29, 42, 0.08);
    --shadow-md: 0 4px 16px rgba(11, 29, 42, 0.12);
    --shadow-lg: 0 8px 32px rgba(11, 29, 42, 0.16);
    --shadow-xl: 0 16px 48px rgba(11, 29, 42, 0.2);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    font-feature-settings: 'kern' 1, 'liga' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography - OneVision Uniform System */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    line-height: 1.2;
    color: var(--brand-primary);
    margin-bottom: 1rem;
    font-feature-settings: 'kern' 1;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

h5 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Accent text for consistency */
.accent-text {
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.5;
}

.caption {
    font-size: 0.8125rem; /* 13px */
    line-height: 1.3;
    color: var(--brand-neutral);
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(145deg, 
        #e8e8e8 0%, 
        #c0c0c0 15%, 
        #a8a8a8 30%, 
        #b8b8b8 50%, 
        #d0d0d0 70%, 
        #e8e8e8 100%);
    box-shadow: 
        0 2px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.site-header.scrolled {
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        inset 1px 0 0 rgba(255, 255, 255, 0.5),
        inset -1px 0 0 rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 24px;
    max-width: 1440px;
    margin: 0 auto;
    min-height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--brand-primary);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--brand-accent);
}

/* Logo image option */
.logo-image {
    height: 65px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(30, 77, 138, 0.15));
    transition: var(--transition);
}

.logo:hover .logo-image {
    transform: scale(1.02);
}

/* Logo text with image */
.logo-with-image {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-with-image .logo-image {
    height: 32px;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 3rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    padding: 1.25rem 1rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    letter-spacing: 0.025em;
    border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
}

/* Header CTA Button */
.header-cta {
    display: flex;
    align-items: center;
}

.btn-header {
    background: var(--brand-accent-700);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--brand-accent-700);
    letter-spacing: 0.025em;
}

.btn-header:hover {
    background:  var(--brand-primary);
    color: var(--white);
    transform: translateY(-2px);
    border: 1px solid var(--brand-primary);
    box-shadow: 0 4px 15px rgba(30, 77, 138, 0.2);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.5rem;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: all 0.3s ease;
    vertical-align: middle;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 280px;
    background: white;
    box-shadow: 0 10px 40px rgba(30, 77, 138, 0.15);
    border-radius: 12px;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 77, 138, 0.1);
    z-index: 1000;
    margin-top: 8px;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    gap: 1rem;
}

.dropdown-item:hover {
    background: rgba(30, 77, 138, 0.05);
    color: var(--brand-primary);
    border-left-color: var(--brand-primary);
    padding-left: 2rem;
}

.dropdown-item i {
    font-size: 0.9rem;
    width: 16px;
    color: var(--brand-primary);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.dropdown-item:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.dropdown-item span {
    flex: 1;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-toggle span {
    width: 28px;
    height: 3px;
    background: var(--brand-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 900px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a3a4a 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    max-width: 900px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-eyebrow {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-accent-700);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    max-width: 700px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Buttons - OneVision Uniform Design */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--brand-primary);
    color: var(--white);
    border-color: var(--brand-primary);
}

.btn-primary:hover {
    background: var(--brand-primary-700);
    border-color: var(--brand-primary-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--brand-accent-700);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--brand-accent-700);
    color: var(--white);
    border-color: var(--brand-accent-700);
}

.btn-outline {
    background: transparent;
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-outline:hover {
    background: var(--brand-primary);
    color: var(--white);
}

/* Section Styles */
.section {
    padding: 6rem 0;
}

.section-light {
    background: var(--background);
}

.section-dark {
    background: var(--brand-primary);
    color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--white);
}

.section-dark p {
    color: rgba(255, 255, 255, 0.85);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-eyebrow {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-primary);
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.section-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-dark);
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
}

/* OneVision Brand Elements */
.brand-rule {
    height: 2px;
    background: var(--brand-primary);
    border: none;
    margin: 2rem 0;
}

.brand-rule-accent {
    height: 4px;
    background: var(--brand-primary);
    border: none;
    margin: 2rem 0;
    width: 60px;
}

/* Typography Utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Spacing Utilities */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 2px; /* More geometric */
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid var(--brand-primary);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--brand-accent);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--light-cream);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-red);
    font-size: 2rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--brand-primary);
    line-height: 1.3;
}

.feature-description {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 0.95rem;
    font-weight: 400;
}

/* Capabilities Grid */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.capability-card {
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.capability-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.capability-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.capability-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(11, 29, 42, 0.95), transparent);
    padding: 2.5rem;
    color: var(--white);
}

.capability-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.capability-description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.capability-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-weight: 600;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.capability-link::after {
    content: '→';
    transition: var(--transition);
}

.capability-link:hover::after {
    transform: translateX(5px);
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-family: var(--font-primary);
}

/* Footer */
.site-footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-column p,
.footer-column a {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.footer-column a:hover {
    color: var(--accent-red);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--accent-red);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--gray-light);
    border-radius: 4px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* reCAPTCHA Styling */
.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

@media (max-width: 640px) {
    .g-recaptcha {
        transform: scale(0.77);
        transform-origin: center;
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .mobile-toggle {
        display: flex;
    }

    .header-cta {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 40px rgba(30, 77, 138, 0.15);
        transform: translateX(-100%);
        transition: all 0.3s ease;
        margin: 0;
        justify-content: flex-start;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
        align-items: stretch;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--gray-light);
    }

    .nav-link {
        display: block;
        padding: 1rem;
        margin: 0.25rem 0;
        border-bottom: 3px solid transparent;
        border-radius: 6px;
    }

    .nav-link:hover,
    .nav-link.active {
        border-bottom-color: var(--brand-primary);
        background: rgba(30, 77, 138, 0.05);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(30, 77, 138, 0.05);
        max-height: 0;
        overflow: hidden;
        padding: 0;
        margin: 0;
        border-radius: 0;
        border: none;
    }

    .dropdown-item {
        padding: 1rem 2rem;
        border-left: none;
    }

    .dropdown-item:hover {
        padding-left: 2rem;
        background: rgba(30, 77, 138, 0.1);
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
        padding: 1rem 0;
    }

    .hero {
        height: 85vh;
        min-height: 650px;
    }

    .section {
        padding: 4rem 0;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .feature-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}
