/* ==========================================
   FORMICA PROTOFAB - SHARED STYLES
   Dark theme, navy blue accents
   Matches PaceLight / GeoTrack conventions
   ========================================== */

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

:root {
    --primary: #1a3a6b;
    --primary-light: #4a6fa5;
    --primary-bright: #5a8ec9;
    --accent: #0d2240;
    --accent-gradient: linear-gradient(135deg, #1a3a6b 0%, #0d2240 100%);
    --dark-bg: #0b0f1a;
    --darker-bg: #060911;
    --card-bg: #111627;
    --card-bg-hover: #151c34;
    --card-border: rgba(26, 58, 107, 0.18);
    --card-border-hover: rgba(74, 111, 165, 0.35);
    --light-text: #e8eaf0;
    --gray-text: #8a91a8;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.3);
}

html { overflow-y: scroll; scroll-behavior: smooth; }

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--darker-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ==========================================
   CONTAINERS & SPACING
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

.wide-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

section { padding: 5rem 0; }

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1 { font-size: 3.5rem; font-weight: 700; line-height: 1.15; }
h2 { font-size: 2.6rem; font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.4rem; font-weight: 600; line-height: 1.4; }
h4 { font-size: 1.2rem; font-weight: 600; }
p { font-size: 1.05rem; line-height: 1.7; }

.highlight {
    color: var(--primary-bright);
}

.section-label {
    font-size: 1.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-bright);
    margin-bottom: 0.75rem;
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header p {
    color: var(--gray-text);
    max-width: 700px;
    margin: 1rem auto 0;
    font-size: 1.1rem;
}

/* ==========================================
   NAVIGATION
   ========================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(6, 9, 17, 0.92);
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--card-border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-brand img {
    height: 55px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--gray-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-bright);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 4px;
}

/* ==========================================
   MAIN CONTENT
   ========================================== */
main {
    padding-top: 72px;
    animation: pageLoad 0.3s ease-out;
}

@keyframes pageLoad {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn-primary {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: var(--accent-gradient);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.05rem;
    font-family: 'Rajdhani', sans-serif;
    transition: transform 0.2s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 58, 107, 0.35);
}

.btn-secondary {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: transparent;
    color: var(--primary-bright);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.05rem;
    font-family: 'Rajdhani', sans-serif;
    border: 1px solid rgba(26, 58, 107, 0.5);
    transition: all 0.3s;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--primary-light);
    background: rgba(26, 58, 107, 0.12);
}

/* ==========================================
   DIVIDER
   ========================================== */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--card-border), rgba(74, 111, 165, 0.2), var(--card-border), transparent);
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================
   HERO
   ========================================== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 6rem 0 5rem;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(26, 58, 107, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(13, 34, 64, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 { margin-bottom: 1.5rem; }

.hero-text .tagline {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 2.5rem;
    max-width: 520px;
    line-height: 1.8;
}

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

.hero-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.placeholder-label {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: var(--gray-text);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.placeholder-box {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #141a2e 0%, #1a2038 100%);
    color: rgba(74, 111, 165, 0.15);
    font-size: 3rem;
}

/* ==========================================
   STATS BAR
   ========================================== */
.stats-bar {
    background: var(--card-bg);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    padding: 2.5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-bright);
    line-height: 1.2;
}

.stat-label {
    color: var(--gray-text);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

/* ==========================================
   SERVICE CARDS
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 2.25rem;
    transition: border-color 0.3s, transform 0.2s;
}

.service-card:hover {
    border-color: var(--card-border-hover);
    transform: translateY(-3px);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    margin-bottom: 1.25rem;
}

.service-card h3 { margin-bottom: 0.75rem; }
.service-card p { color: var(--gray-text); font-size: 1rem; }

/* ==========================================
   PRODUCT GALLERY
   ========================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.2s;
}

.gallery-item:hover {
    border-color: var(--card-border-hover);
    transform: translateY(-3px);
}

.gallery-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #141a2e 0%, #1a2038 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(74, 111, 165, 0.2);
    font-size: 2.5rem;
    position: relative;
    overflow: hidden;
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 1.25rem 1.5rem;
}

.gallery-caption h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.gallery-caption p {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.gallery-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-bright);
    margin-top: 0.65rem;
    padding: 3px 10px;
    background: rgba(26, 58, 107, 0.15);
    border-radius: 4px;
}

.gallery-item.featured {
    grid-column: span 2;
}

.gallery-item.featured .gallery-img {
    aspect-ratio: 21 / 10;
}

.site-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-bright);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 0.75rem;
    transition: gap 0.2s;
}

.site-link:hover { gap: 10px; }

/* ==========================================
   AFFILIATED PRODUCTS
   ========================================== */
.affiliated-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.affiliated-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color 0.3s, transform 0.2s;
}

.affiliated-card:hover {
    border-color: var(--card-border-hover);
    transform: translateY(-3px);
}

.aff-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-bright);
}

.affiliated-card h3 { font-size: 1.6rem; }
.affiliated-card p { color: var(--gray-text); }

.aff-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-bright);
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    font-size: 1rem;
    transition: gap 0.2s;
}

.aff-link:hover { gap: 12px; }

/* ==========================================
   ABOUT / FOUNDER
   ========================================== */
.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3.5rem;
    align-items: start;
}

.about-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #141a2e 0%, #1a2038 100%);
    border-radius: 10px;
    border: 1px solid var(--card-border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(74, 111, 165, 0.2);
    font-size: 2rem;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content h2 { margin-bottom: 1.25rem; }

.about-text {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.credentials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 0;
}

.credential-item i {
    color: var(--primary-light);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.credential-item span {
    color: var(--gray-text);
    font-size: 1.5rem;
    line-height: 1.5;
}

/* ==========================================
   CONTACT FORM
   ========================================== */
.cta-section {
    background: var(--card-bg);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    text-align: center;
}

.cta-section h2 { margin-bottom: 1rem; }

.cta-section > .container > p {
    color: var(--gray-text);
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.contact-form {
    max-width: 640px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: var(--darker-bg);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    color: var(--light-text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-light);
}

.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form select { cursor: pointer; }
.contact-form select option { background: var(--dark-bg); }

/* ==========================================
   PAGE HERO (sub-pages)
   ========================================== */
.page-hero {
    padding: 4rem 0 3rem;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(26, 58, 107, 0.08) 0%, transparent 60%);
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 { margin-bottom: 1rem; }

.page-hero .page-subtitle {
    color: var(--gray-text);
    font-size: 1.2rem;
    max-width: 650px;
    line-height: 1.7;
}

/* ==========================================
   SERVICES DETAIL (alternating image/text)
   ========================================== */
.services-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.services-detail-grid.reverse {
    direction: rtl;
}

.services-detail-grid.reverse > * {
    direction: ltr;
}

.services-detail-img {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

.services-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-detail-text h2 {
    margin-bottom: 1.25rem;
}

/* ==========================================
   PRODUCT FEATURE (alternating layout)
   ========================================== */
.product-feature-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.product-feature-grid.reverse {
    grid-template-columns: 1fr 1.2fr;
    direction: rtl;
}

.product-feature-grid.reverse > * {
    direction: ltr;
}

.product-feature-img {
    position: relative;
}

@media (max-width: 768px) {
    .services-detail-grid,
    .services-detail-grid.reverse,
    .product-feature-grid,
    .product-feature-grid.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 2rem;
    }
    .services-detail-grid.reverse > *,
    .product-feature-grid.reverse > * {
        direction: ltr;
    }
}

/* ==========================================
   FOOTER (matches PaceLight / GeoTrack)
   ========================================== */
footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--card-border);
    padding: 3rem 0 1.5rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
	align-items: flex-start;
}

.footer-brand .footer-logo {
    height: 50px;
    width: auto;
	
}

.footer-brand p {
    color: var(--gray-text);
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-links h4 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links ul { list-style: none; }

.footer-links a {
    color: var(--gray-text);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover { color: var(--primary-bright); }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
    color: var(--gray-text);
    font-size: 0.9rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 3rem;
    padding-right: 3rem;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero { min-height: auto; padding: 4rem 0 3rem; }
    .hero-image { max-width: 600px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item.featured { grid-column: span 2; }
    .about-grid { grid-template-columns: 200px 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
    .container, .wide-container { padding: 0 2rem; }
    section { padding: 3.5rem 0; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    /* Mobile nav */
    .nav-container { padding: 0 2rem; }
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(6, 9, 17, 0.98);
        padding: 1.5rem 2rem;
        gap: 0.75rem;
        border-bottom: 1px solid var(--card-border);
    }

    .services-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item.featured { grid-column: span 1; }
    .gallery-item.featured .gallery-img { aspect-ratio: 16 / 10; }
    .affiliated-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .about-photo { max-width: 220px; aspect-ratio: 1; border-radius: 50%; }
    .credentials-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-container {
        grid-template-columns: 1fr 1fr;
        padding: 0 2rem;
    }
}

@media (max-width: 480px) {
    .container, .wide-container { padding: 0 1.5rem; }
    h1 { font-size: 2rem; }
    .nav-container { padding: 0 1.5rem; }
    .footer-container { grid-template-columns: 1fr; padding: 0 1.5rem; }
    .footer-bottom { padding-left: 1.5rem; padding-right: 1.5rem; }
}
