/* =============================================
   LexMirror - AI-Powered Legal Insight
   Main Stylesheet
   ============================================= */

/* CSS Variables */
:root {
    --primary-navy: #1a365d;
    --primary-teal: #0d9488;
    --primary-teal-light: #14b8a6;
    --primary-cyan: #06b6d4;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --text-dark: #0f172a;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
    --border-color: rgba(30, 41, 59, 0.1);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg:
        0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --gradient-primary: linear-gradient(
        135deg,
        var(--primary-navy) 0%,
        var(--primary-teal) 100%
    );
    --gradient-teal: linear-gradient(
        135deg,
        var(--primary-teal) 0%,
        var(--primary-cyan) 100%
    );
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    background: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* =============================================
   Header / Navigation
   ============================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: var(--shadow);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text span {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-navy);
    letter-spacing: -0.5px;
}

.logo-text small {
    font-size: 11px;
    color: var(--primary-teal);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

nav a:hover {
    color: var(--primary-teal);
    background: var(--bg-light);
}

.nav-cta {
    background: var(--gradient-teal) !important;
    color: white !important;
    padding: 10px 20px !important;
    margin-left: 8px;
}

.nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 6px 0;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 82px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

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

.mobile-nav a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 14px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-nav a:hover {
    color: var(--primary-teal);
    background: var(--bg-light);
}

.mobile-nav .nav-cta {
    display: block;
    text-align: center;
    margin-top: 12px;
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(
        180deg,
        var(--bg-white) 0%,
        var(--bg-light) 100%
    );
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(
        circle at 70% 30%,
        rgba(13, 148, 136, 0.08) 0%,
        transparent 50%
    );
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(36px, 5vw, 52px);
    margin-bottom: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-tagline {
    font-size: 20px;
    font-weight: 500;
    color: var(--primary-teal);
    font-style: italic;
    margin-bottom: 24px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-teal);
    color: white;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.5);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-primary);
    border: 2px solid var(--border-light);
}

.btn-secondary:hover {
    border-color: var(--primary-teal);
    color: var(--primary-teal);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

/* Trust Badges in Hero */
.trust-badges {
    display: flex;
    gap: 24px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.trust-badge svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.trust-badge-text {
    display: flex;
    flex-direction: column;
}

.trust-badge-text strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.trust-badge-text span {
    font-size: 11px;
    color: var(--text-muted);
}

/* =============================================
   Common Section Styles
   ============================================= */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-teal);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    padding: 6px 14px;
    background: rgba(13, 148, 136, 0.1);
    border-radius: 20px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 17px;
    color: var(--text-secondary);
}

/* =============================================
   Expertise Section
   ============================================= */
.expertise {
    background: var(--bg-light);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.expertise-card {
    background: var(--bg-white);
    padding: 40px 32px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-teal);
}

.expertise-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-teal);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.expertise-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
}

.expertise-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.expertise-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* =============================================
   Why LexMirror Section
   ============================================= */
.why-section {
    background: var(--bg-white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.why-card {
    display: flex;
    gap: 20px;
    padding: 32px;
    background: var(--bg-light);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.why-card:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
}

.why-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(13, 148, 136, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-teal);
}

.why-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.why-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* =============================================
   Trust & Security Section
   ============================================= */
.trust-section {
    background: var(--primary-navy);
    color: white;
    position: relative;
    overflow: hidden;
}

.trust-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.trust-section .section-header h2 {
    color: white;
}

.trust-section .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.trust-section .section-label {
    background: rgba(255, 255, 255, 0.15);
    color: var(--primary-cyan);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
    z-index: 1;
}

.trust-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 36px 28px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.trust-card-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-card-icon svg {
    width: 36px;
    height: 36px;
}

.trust-card h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 8px;
}

.trust-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
}

/* =============================================
   Privacy Section
   ============================================= */
.privacy-section {
    background: var(--bg-light);
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.privacy-card {
    background: var(--bg-white);
    padding: 36px 28px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.privacy-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-teal);
}

.privacy-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--gradient-teal);
    color: white;
    font-weight: 700;
    font-size: 14px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.privacy-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.privacy-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.privacy-card ul {
    list-style: none;
    margin-top: 16px;
}

.privacy-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
}

.privacy-card ul li svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary-teal);
    flex-shrink: 0;
    margin-top: 2px;
}

/* =============================================
   Contact Section
   ============================================= */
.contact-section {
    background: var(--bg-white);
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 16px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    background: rgba(13, 148, 136, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary-teal);
}

.contact-item-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item-content p,
.contact-item-content a {
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
}

.contact-item-content a:hover {
    color: var(--primary-teal);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
}

.contact-form-wrapper h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.contact-form-wrapper > p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 28px;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-label .required {
    color: #ef4444;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: var(--bg-white);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

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

.btn-submit {
    width: 100%;
    padding: 14px 28px;
    background: var(--gradient-teal);
    color: white;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

/* =============================================
   Footer
   ============================================= */
footer {
    background: var(--primary-navy);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-brand img {
    height: 50px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

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

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-cyan);
}

.footer-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-badge svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

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

/* =============================================
   Responsive Styles
   ============================================= */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-width: 300px;
    }

    .trust-badges {
        justify-content: center;
    }

    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .privacy-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand p {
        max-width: none;
    }

    .footer-badges {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .expertise-grid,
    .trust-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-form-wrapper {
        padding: 28px;
    }

    section {
        padding: 60px 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* =============================================
   Animations
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
