/* Brahmastra Labs - Styles */

/* CSS Variables */
:root {
    --navy: #0a1628;
    --navy-light: #1a2a44;
    --slate: #2d3a4f;
    --steel: #64748b;
    --silver: #94a3b8;
    --cloud: #cbd5e1;
    --pearl: #e2e8f0;
    --snow: #f1f5f9;
    --tan: #e8dcc8;
    --tan-light: #f5f0e8;
    --tan-dark: #c9b896;
    --white: #ffffff;
    
    --accent-orange: #d97706;
    --accent-teal: #0d9488;
    --accent-red: #dc2626;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--navy);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--tan);
    z-index: 1000;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.logo .accent { color: var(--tan-dark); }

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

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--slate);
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--navy);
    color: var(--white) !important;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    /* No border radius - sharp corners */
}

.nav-cta:hover { background: var(--navy-light); }

.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: var(--navy);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu svg { width: 24px; height: 24px; }

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--tan-light) 0%, var(--white) 50%, var(--snow) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?w=1920&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.08;
}

.hero-content {
    position: relative;
    max-width: 700px;
}

.hero-label {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tan-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

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

.hero h1 .accent {
    color: var(--tan-dark);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--slate);
    line-height: 1.7;
    margin-bottom: 2rem;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    /* No border radius - sharp corners by default */
}

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

.btn-primary:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-sand {
    background: var(--tan-dark);
    color: var(--navy);
}

.btn-sand:hover {
    background: var(--tan);
    transform: translateY(-2px);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--tan-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--steel);
    max-width: 600px;
    margin: 1rem auto 0;
}

/* Services Preview */
.services-preview {
    padding: 6rem 0;
    background: var(--white);
}

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

.service-card {
    padding: 2.5rem;
    background: var(--tan-light);
    border: 1px solid var(--tan);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(10, 22, 40, 0.1);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: var(--tan-dark);
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--slate);
    font-size: 1rem;
    line-height: 1.7;
}

/* LEQ Promo Section */
.leq-promo {
    padding: 6rem 0;
    background: var(--navy);
    color: var(--white);
}

.leq-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.leq-promo .section-label { color: var(--tan-dark); }

.leq-promo h2 { color: var(--white); margin-bottom: 1.5rem; }

.leq-promo p {
    color: var(--cloud);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.leq-promo .btn-outline {
    border-color: var(--tan-dark);
    color: var(--tan-dark);
}

.leq-promo .btn-outline:hover {
    background: var(--tan-dark);
    color: var(--navy);
}

.leq-visual img {
    border: 2px solid var(--tan-dark);
    /* No border radius */
}

/* Articles Preview */
.articles-preview {
    padding: 6rem 0;
    background: var(--snow);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--white);
    overflow: hidden;
    border: 1px solid var(--tan);
    transition: all 0.3s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(10, 22, 40, 0.1);
}

.article-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem 2rem 2rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
}

.article-category {
    color: var(--tan-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-date {
    color: var(--silver);
}

.article-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.article-card p {
    color: var(--steel);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tan-dark);
}

.read-more:hover { color: var(--navy); }

/* Why Us */
.why-us {
    padding: 6rem 0;
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-us .section-label { color: var(--tan-dark); }

.why-us h2 { margin-bottom: 1.5rem; }

.why-us p {
    color: var(--slate);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.why-list {
    display: grid;
    gap: 1rem;
}

.why-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--navy);
}

.why-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tan-light);
    color: var(--accent-teal);
}

.why-icon svg {
    width: 14px;
    height: 14px;
}

.why-visual img {
    border: 2px solid var(--tan);
    /* No border radius */
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: var(--navy);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--cloud);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background: var(--navy-light);
    color: var(--cloud);
    border-top: 4px solid var(--tan-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer h4 {
    color: var(--white);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer a {
    font-size: 0.9375rem;
    color: var(--cloud);
    transition: color 0.2s;
}

.footer a:hover { color: var(--white); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
    color: var(--silver);
}

/* Mobile */
@media (max-width: 968px) {
    .leq-content,
    .why-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .leq-visual,
    .why-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    
    .mobile-menu { display: block; }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-brand { grid-column: span 2; }
}

@media (max-width: 480px) {
    .hero { padding: 100px 0 60px; }
    
    .hero-buttons { flex-direction: column; }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-brand { grid-column: auto; }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Text Utilities */
.text-center { text-align: center; }

/* Page Hero */
.page-hero {
    padding: 140px 0 4rem;
    background: var(--tan-light);
    text-align: center;
}

.page-hero p {
    font-size: 1.25rem;
    color: var(--slate);
    max-width: 600px;
    margin: 1rem auto 0;
}

/* Services Page */
.services-page {
    padding: 4rem 0;
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--tan);
}

.service-detail:nth-child(even) {
    direction: rtl;
}

.service-detail:nth-child(even) > * {
    direction: ltr;
}

.service-detail h2 {
    margin-bottom: 1rem;
}

.service-detail p {
    color: var(--slate);
    margin-bottom: 1.5rem;
}

/* Contact Form */
.contact-section {
    padding: 4rem 0;
    background: var(--snow);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border: 1px solid var(--tan);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--silver);
    background: var(--white);
    transition: border-color 0.2s;
    /* No border radius */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--tan-dark);
}

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

.contact-info h3 {
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--slate);
    margin-bottom: 1.5rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--navy);
}

/* Articles List */
.articles-list {
    padding: 4rem 0;
}

.article-full {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--tan);
}

.article-full h2 {
    margin-bottom: 0.75rem;
}

.article-full p {
    color: var(--slate);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--tan);
    padding: 1rem;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
    display: block;
    padding: 1rem;
    font-weight: 500;
    color: var(--navy);
    border-bottom: 1px solid var(--tan-light);
}

.mobile-nav a:last-child { border-bottom: none; }
