/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy-dark: #0a1628;
    --navy: #0f1f3d;
    --navy-mid: #162a4a;
    --navy-light: #1e3a5f;
    --gold: #C9A84C;
    --gold-light: #d4b96a;
    --gold-dark: #a88b3a;
    --white: #ffffff;
    --gray-light: #c8cdd6;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--navy-dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--navy-mid);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-primary:hover {
    background: var(--navy-light);
    border-color: var(--gold);
}

.btn-accent {
    background: var(--gold);
    color: var(--navy-dark);
}

.btn-accent:hover {
    background: var(--gold-light);
}

.btn-gold {
    background: var(--gold);
    color: var(--navy-dark);
    font-weight: 700;
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 1rem;
}

.btn-gold:hover {
    background: var(--gold-light);
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    padding: 14px 36px;
    font-size: 1rem;
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--navy-dark);
}

.full-width {
    width: 100%;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 54px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--gray-light);
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--gold);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 600px;
    padding: 120px 0 0;
    background:
        linear-gradient(135deg, rgba(10,22,40,0.85) 0%, rgba(15,31,61,0.7) 50%, rgba(10,22,40,0.85) 100%),
        url('img/hero.png') center/cover no-repeat;
    overflow: hidden;
    max-width: 1400px;
    margin: 90px auto 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, var(--navy-dark) 100%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 40px 60px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: start;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-desc {
    font-size: 1rem;
    color: var(--gray-light);
    margin-bottom: 32px;
    max-width: 480px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero form */
.hero-form {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 8px;
    padding: 32px 28px;
}

.hero-form h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--white);
    text-align: center;
}

.hero-form input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 14px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.25);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.hero-form input::placeholder {
    color: var(--gray-light);
}

.hero-form input:focus {
    border-bottom-color: var(--gold);
}

.hero-form .btn-gold {
    margin-top: 8px;
}

/* Partner logos */
.partner-logos {
    position: relative;
    z-index: 2;
    background: rgba(10,22,40,0.8);
    border-top: 1px solid rgba(201,168,76,0.15);
    padding: 24px 0;
}

.partner-logos-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.partner-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-light);
    font-size: 0.9rem;
    opacity: 0.8;
}

.partner-logo i {
    font-size: 1.2rem;
    color: var(--gold);
}

/* ===== DIVISIONS SECTION ===== */
.divisions {
    padding: 80px 40px;
    max-width: 1400px;
    margin: 24px auto 0;
    background: linear-gradient(90deg, #0a1628 0%, #0f1f3d 15%, #0f1f3d 85%, #0a1628 100%);
    border-top: 2px solid #ffffff;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
}

.section-header.left {
    justify-content: flex-start;
}

.section-line {
    flex: 1;
    max-width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-light);
    font-size: 1rem;
    margin-bottom: 50px;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 80px 40px;
    max-width: 1400px;
    margin: 24px auto 0;
    background: linear-gradient(90deg, #0a1628 0%, #0f1f3d 15%, #0f1f3d 85%, #0a1628 100%);
    border-top: 2px solid #ffffff;
}

.about-content {
    max-width: 860px;
    margin: 40px auto 0;
    text-align: center;
}

.about-content p {
    color: var(--gray-light);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-content p:first-child {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--white);
    font-weight: 600;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.divisions-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.division-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(201,168,76,0.04) 100%);
    border-left: 1px solid rgba(201,168,76,0.2);
    border-right: 1px solid rgba(201,168,76,0.2);
    border-top: 3px solid var(--gold);
    border-bottom: 3px solid var(--gold);
    border-radius: 6px;
    padding: 30px 18px 24px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    justify-content: center;
}

.division-card:hover {
    border-color: var(--gold);
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(201,168,76,0.08) 100%);
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(201,168,76,0.15);
}

/* GPU acceleration for animated cards */
.division-card {
    will-change: transform;
    contain: layout style paint;
}

.division-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: rgba(201,168,76,0.08);
}

.division-icon i {
    font-size: 1.6rem;
    color: var(--gold);
}

.division-card h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--white);
    line-height: 1.3;
}

.division-card h4 span {
    font-weight: 400;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.division-name {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.division-tag {
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.25);
    color: var(--gold-light);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    margin-top: auto;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    position: relative;
}

.division-tag::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
}

.division-card:hover .division-tag {
    background: rgba(201,168,76,0.18);
    border-color: var(--gold);
}

/* Division icon unified styles */
.gps-electric-icon,
.gps-building-icon,
.tony-link-icon,
.outline-icon,
.bealinker-icon {
    background: transparent;
    border: none;
    width: auto;
    height: 80px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gps-electric-icon img,
.gps-building-icon img,
.tony-link-icon img,
.outline-icon img,
.bealinker-icon img {
    width: auto;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(201, 168, 76, 0.3));
    transition: filter 0.3s ease;
}

.division-card:hover .division-icon img {
    filter: drop-shadow(0 4px 12px rgba(201, 168, 76, 0.6));
}

/* Partner bar logo styles */
.gps-electric-partner,
.gps-building-partner,
.tony-link-partner,
.outline-partner,
.bealinker-partner {
    padding: 0;
}

.gps-electric-logo-sm,
.gps-building-logo-sm,
.tony-link-logo-sm,
.outline-logo-sm,
.bealinker-logo-sm {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 1px 4px rgba(201, 168, 76, 0.3));
}

/* ===== INVESTORS SECTION ===== */
.investors {
    padding: 80px 40px;
    max-width: 1400px;
    margin: 24px auto 0;
    background: linear-gradient(90deg, #0a1628 0%, #0f1f3d 15%, #0f1f3d 85%, #0a1628 100%);
    border-top: 2px solid #ffffff;
}

.investors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.investor-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    min-height: 260px;
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1200&q=75&auto=format') center/cover no-repeat;
    border: 1px solid rgba(201,168,76,0.2);
    display: flex;
    align-items: center;
}

.investor-card:nth-child(2) {
    background: url('img/investor.png') center/cover no-repeat;
}

.investor-card-content {
    position: relative;
    z-index: 2;
    padding: 30px 36px;
    background: linear-gradient(to right, rgba(10, 22, 40, 0.8), rgba(15, 31, 61, 0.4), transparent);
    backdrop-filter: blur(4px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.investor-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.investor-card ul {
    list-style: none;
}

.investor-card li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--gray-light);
}

.investor-card li i {
    color: var(--gold);
    font-size: 0.7rem;
    margin-top: 6px;
}

.investors-cta {
    text-align: center;
    margin-top: 40px;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 0;
    background: linear-gradient(90deg, #0a1628 0%, #0f1f3d 15%, #0f1f3d 85%, #0a1628 100%);
    margin: 24px auto 0;
    max-width: 1400px;
    border-top: 2px solid #ffffff;
    overflow: hidden;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.contact-image {
    background:
        linear-gradient(to right, transparent 60%, var(--navy) 100%),
        url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?w=800&q=75&auto=format') center/cover no-repeat;
    min-height: 100%;
}

.contact-content {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-content .section-header {
    margin-bottom: 8px;
}

.contact-content .section-header h2 {
    font-size: 1.6rem;
    white-space: normal;
    line-height: 1.4;
}

.contact-subtitle {
    color: var(--gray-light);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 0;
    margin-bottom: 12px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.92rem;
    outline: none;
    resize: none;
    transition: border-color 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--gray-light);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-bottom-color: var(--gold);
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--gray-light);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 12px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gray-light);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--gold);
    cursor: pointer;
}

.contact-form .btn-gold {
    margin-top: 10px;
}

/* ===== FORM STATUS MESSAGES ===== */
.form-status {
    margin-top: 14px;
    padding: 0;
    font-size: 0.9rem;
    border-radius: 6px;
    text-align: center;
    transition: opacity 0.4s ease;
}

.form-status.success {
    background: rgba(46, 160, 67, 0.12);
    border: 1px solid rgba(46, 160, 67, 0.35);
    color: #56d364;
    padding: 14px 18px;
}

.form-status.error {
    background: rgba(248, 81, 73, 0.12);
    border: 1px solid rgba(248, 81, 73, 0.35);
    color: #f85149;
    padding: 14px 18px;
}

.form-status i {
    margin-right: 6px;
}

/* Spinner animation */
@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.fa-spin {
    animation: fa-spin 1s linear infinite;
}

button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(90deg, #0a1628 0%, #0f1f3d 15%, #0f1f3d 85%, #0a1628 100%);
    padding: 30px 40px;
    max-width: 1400px;
    margin: 24px auto;
    border-top: 2px solid #ffffff;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--gray-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-form {
        max-width: 420px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .divisions-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-image {
        min-height: 300px;
        background:
            linear-gradient(to bottom, transparent 60%, var(--navy) 100%),
            url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?w=800&q=75&auto=format') center/cover no-repeat;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10,22,40,0.98);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        border-bottom: 1px solid rgba(201,168,76,0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 12px 16px;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .logo-img {
        height: 44px;
    }

    .hero {
        margin-top: 70px;
        padding-top: 40px;
        min-height: auto;
    }

    .hero-container {
        padding: 20px 20px 40px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        text-align: center;
        justify-content: center;
    }

    .divisions {
        padding: 60px 20px;
    }

    .divisions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .division-card {
        aspect-ratio: auto;
        padding: 20px 14px 18px;
    }

    .division-icon,
    .gps-electric-icon,
    .gps-building-icon,
    .tony-link-icon,
    .outline-icon,
    .bealinker-icon {
        height: 55px;
    }

    .gps-electric-icon img,
    .gps-building-icon img,
    .tony-link-icon img,
    .outline-icon img,
    .bealinker-icon img {
        height: 55px;
    }

    .division-name {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .division-tag {
        font-size: 0.65rem;
        padding: 6px 12px;
    }

    .investors {
        padding: 60px 20px;
    }

    .investors-grid {
        grid-template-columns: 1fr;
    }

    .investor-card {
        min-height: 220px;
    }

    .investor-card-content {
        padding: 24px 20px;
    }

    .section-header h2 {
        font-size: 1.5rem;
        white-space: normal;
        text-align: center;
    }

    .section-line {
        display: none;
    }

    .contact-content {
        padding: 40px 24px;
    }

    .contact-content .section-header h2 {
        font-size: 1.3rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .partner-logos-inner {
        gap: 16px;
        padding: 0 20px;
    }

    .partner-logo img {
        height: 28px;
    }

    .checkbox-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .about {
        padding: 60px 20px;
    }

    .hero,
    .about,
    .divisions,
    .investors,
    .contact,
    .footer {
        margin-left: 8px;
        margin-right: 8px;
    }
}

@media (max-width: 480px) {
    .divisions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .nav-container {
        padding: 0 16px;
    }

    .logo-img {
        height: 38px;
    }

    .partner-logos-inner {
        gap: 12px;
    }

    .partner-logo img {
        height: 22px;
    }

    .investor-card-content {
        padding: 20px 16px;
    }

    .investor-card h3 {
        font-size: 1.2rem;
        margin-bottom: 14px;
    }

    .investor-card li {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .hero,
    .about,
    .divisions,
    .investors,
    .contact,
    .footer {
        margin-left: 0;
        margin-right: 0;
    }
}
