/* CSS Design System for Union Striping */

:root {
    /* Colors */
    --primary: #1142d4;
    --primary-hover: #0d35ad;
    --background-light: #f6f6f8;
    --background-dark: #101522;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #ffffff;
    --border-color: #e2e8f0;
    --white-tr: rgba(255, 255, 255, 0.8);
    
    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    
    /* Spacing & Radii */
    --radius-default: 0.5rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-full: 9999px;
    --header-height: 5rem;
    --container-max: 80rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-primary: 0 10px 15px -3px rgba(17, 66, 212, 0.2);
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-display);
    background-color: var(--background-light);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Base Styles */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    transition: all 0.2s;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
    scroll-margin-top: var(--header-height);
}

@media (min-width: 768px) {
    .section {
        padding: 6rem 0;
    }
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    height: 2.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: var(--radius-default);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-lg {
    height: 3.5rem;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 800;
}

.btn-outline {
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: #f8fafc;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    height: var(--header-height);
    background: var(--white-tr);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.logo-icon {
    width: 2.3rem;
    height: 2.3rem;
}

.nav {
    display: none;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
        align-items: center;
        gap: 2.5rem;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.nav-link:hover {
    color: var(--primary);
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero {
        grid-template-columns: 1.2fr 1fr;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.badge {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.1;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 36rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1rem;
    opacity: 0.7;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-image-container {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-lg);
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.floating-card {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.05);
    display: none;
}

@media (min-width: 768px) {
    .floating-card {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
}

/* Features/Props */
.props-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .props-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.prop-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: 0.75rem;
    transition: background 0.2s;
}

.prop-card:hover {
    background: white;
    box-shadow: var(--shadow-sm);
}

.icon-box {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: rgba(17, 66, 212, 0.1);
    color: var(--primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.prop-card:hover .icon-box {
    background: var(--primary);
    color: white;
}

/* Services */
.services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.divider {
    width: 5rem;
    height: 6px;
    background: var(--primary);
    margin: 1.5rem auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(17, 66, 212, 0.3);
}

.service-thumb {
    height: 14rem;
    background-size: cover;
    background-position: center;
}

.service-body {
    padding: 2rem;
}

.service-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.service-meta span:first-child {
    font-size: 1.25rem;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.service-list {
    margin-bottom: 1.5rem;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #334155;
    margin-top: 0.5rem;
}

.service-list li span {
    color: var(--primary);
    font-size: 1rem;
}

.service-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s;
}

.service-link:hover {
    transform: translateX(4px);
}

/* About & Map Sections */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    width: 100%;
    border-radius: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 8px solid white;
}

.quote-box {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.quote-text {
    font-style: italic;
    color: var(--text-color);
    font-weight: 500;
}

.quote-author {
    margin-top: 1rem;
    font-weight: 700;
    color: var(--text-color);
    font-size: 0.875rem;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
}

.hq-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 700;
}

.map-image-container {
    width: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.map-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    filter: grayscale(1) opacity(0.8);
    transition: filter 0.3s ease;
}

.map-image:hover {
    filter: grayscale(0) opacity(1);
}

@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .map-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

/* CTA */
.cta-section {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 6rem 1.5rem;
}

.cta-content {
    max-width: 56rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
}

.cta-desc {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: #020617;
    color: #94a3b8;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: white;
    width: 100%;
    max-width: 32rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    background: var(--primary);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 2rem;
}

.close-modal {
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-default);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(17, 66, 212, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
}

/* Footer Bottom Updates */
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}
