/* ===================================
   DATA GALLEY - MARINE ASSET INTELLIGENCE
   Lightweight Static Site Stylesheet
   No dependencies, pure CSS3
   =================================== */

/* =============================
   CSS CUSTOM PROPERTIES
   ============================= */
:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --accent-color: #22d3ee;
    --secondary-bg: #1e293b;
    --gold-accent: #c5a059;
}

/* =============================
   GLOBAL RESET & BASE STYLES
   ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =============================
   UTILITY CLASSES
   ============================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight { color: var(--accent-color); }
.gold { color: var(--gold-accent); }

/* Primary CTA Button */
.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--accent-color);
    color: #0f172a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid var(--accent-color);
}

.btn:hover {
    background-color: transparent;
    color: var(--accent-color);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.4);
}

/* =============================
   RESPONSIVE CONTENT SWAPS
   ============================= */
@media (max-width: 767px) {
    .hero-headline-desktop { display: none !important; }
    .hero-headline-mobile { display: block !important; }
    .support-desktop { display: none !important; }
    .support-mobile { display: block !important; }
    .cta-desktop { display: none !important; }
    .cta-mobile { display: inline !important; }
    .package-desktop { display: none !important; }
    .package-mobile { display: block !important; }
}

@media (min-width: 768px) {
    .hero-headline-desktop { display: block !important; }
    .hero-headline-mobile { display: none !important; }
    .support-desktop { display: block !important; }
    .support-mobile { display: none !important; }
    .cta-desktop { display: inline !important; }
    .cta-mobile { display: none !important; }
    .package-desktop { display: block !important; }
    .package-mobile { display: none !important; }
}

/* =============================
   HEADER & NAVIGATION
   ============================= */
header {
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -1px;
}

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

/* Main Navigation */
.main-nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--accent-color);
}

/* Nav CTA Button */
.main-nav a.nav-cta {
    background: var(--accent-color);
    color: var(--bg-color);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.main-nav a.nav-cta:hover {
    background: #06b6d4;
    transform: translateY(-1px);
}

/* =============================
   HERO SECTION
   ============================= */
.hero {
    height: auto;
    min-height: 100vh;
    padding: 60px 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #0f172a;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

/* Animated Grid Floor */
.hero::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        linear-gradient(rgba(34, 211, 238, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.15) 1px, transparent 1px);
    background-size: 80px 80px;
    transform: rotateX(60deg);
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 70%);
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 70%);
    animation: grid-move 20s linear infinite;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(34, 211, 238, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

@keyframes grid-move {
    0% { transform: rotateX(60deg) translateY(0); }
    100% { transform: rotateX(60deg) translateY(80px); }
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    background: rgba(15, 23, 42, 0.6);
    padding: 30px 20px;
    border-radius: 16px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1rem;
    color: #cbd5e1;
    margin-bottom: 25px;
    font-weight: 300;
}

.sub-text {
    display: block;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #64748b;
}

/* =============================
   PAIN POINTS SECTION
   ============================= */
.pain-section {
    padding: 100px 0;
    background-color: var(--secondary-bg);
    border-top: 1px solid #334155;
    border-bottom: 1px solid #334155;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.card {
    background: rgba(15, 23, 42, 0.5);
    padding: 40px;
    border-radius: 8px;
    border-left: 3px solid var(--gold-accent);
}

.card h3 {
    margin-bottom: 15px;
    color: #e2e8f0;
}

.card p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* =============================
   BEFORE/AFTER COMPARISON
   ============================= */
.before-after-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
    max-width: 100%;
}

.comparison-item {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.comparison-item h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.comparison-item h3.before-label { color: #ef4444; }
.comparison-item h3.after-label { color: var(--accent-color); }

.comparison-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    width: 100%;
    max-width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* =============================
   SOLUTION METHODOLOGY
   ============================= */
.solution-section {
    padding: 100px 0;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
}

.step-number {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    line-height: 0.8;
    margin-right: 20px;
}

.step-content h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

/* =============================
   SERVICES & PRICING
   ============================= */
.services-section {
    padding: 100px 0;
    background-color: var(--secondary-bg);
}

.service-box {
    border: 1px solid #334155;
    padding: 40px;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-box:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.service-box h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-box h3.highlight-text { color: var(--accent-color); }

.service-box p {
    color: #94a3b8;
    margin-bottom: 20px;
}

.service-box strong { color: #e2e8f0; }

.price {
    display: block;
    margin-top: auto;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-accent);
}

.retainer-note {
    text-align: center;
    margin-top: 50px;
    color: #64748b;
    font-style: italic;
    font-size: 0.9rem;
}

/* =============================
   PRICING ACCORDION
   ============================= */
.pricing-accordion {
    margin-top: 30px;
}

.pricing-accordion summary {
    cursor: pointer;
    padding: 20px 30px;
    background: rgba(34, 211, 238, 0.1);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    text-align: center;
    list-style: none;
    transition: all 0.3s ease;
    user-select: none;
}

.pricing-accordion summary::-webkit-details-marker { display: none; }

.pricing-accordion summary::after {
    content: " ▼";
    font-size: 0.8em;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.pricing-accordion[open] summary::after { transform: rotate(180deg); }

.pricing-accordion summary:hover {
    background: rgba(34, 211, 238, 0.15);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.2);
}

.pricing-accordion-content {
    padding-top: 40px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============================
   CREDIBILITY SECTION
   ============================= */
.credibility {
    padding: 80px 0;
    text-align: center;
}

.credibility h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.credibility p {
    max-width: 600px;
    margin: 0 auto;
    color: #94a3b8;
}

/* =============================
   FOOTER
   ============================= */
footer {
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid #334155;
    color: #64748b;
    font-size: 0.9rem;
}

/* =============================
   LEAD GENERATION FORM
   ============================= */
#lead-form-container {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-in;
    margin-top: 0;
}

#lead-form-container.is-visible {
    max-height: 500px;
    opacity: 1;
    margin-top: 1.5rem;
    padding-bottom: 2rem;
}

#email-input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #475569;
    background: rgba(30, 41, 59, 0.5);
    color: white;
    font-size: 16px;
    margin-bottom: 1rem;
}

#submit-btn {
    width: 100%;
    background-color: #fbbf24;
    color: #0f172a;
    font-weight: bold;
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

#submit-btn:active {
    transform: scale(0.98);
}

/* =============================
   DESKTOP RESPONSIVE (768px+)
   ============================= */
@media (min-width: 768px) {
    header {
        position: relative;
        background: transparent;
        backdrop-filter: none;
        padding: 30px 0;
        border-bottom: none;
        z-index: 10;
    }
    
    .main-nav {
        display: flex;
        gap: 30px;
        align-items: center;
    }
    
    .logo { font-size: 24px; }
    
    .hero {
        height: 90vh;
        padding: 0;
        min-height: auto;
    }
    
    .hero-content { padding: 40px; }
    
    .hero h1 { 
        font-size: 3.5rem;
        margin-bottom: 20px;
    }
    
    .hero p {
        font-size: 1.2rem;
        margin-bottom: 40px;
    }
    
    .grid { 
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .before-after-container {
        flex-direction: row;
        gap: 50px;
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
        align-items: stretch;
    }
    
    .comparison-item {
        flex: 1;
        max-width: 650px;
    }
    
    .comparison-image {
        height: 100%;
        min-height: 400px;
    }
    
    .comparison-image img {
        max-height: 500px;
        object-fit: contain;
    }
}

/* =============================
   BORROWED AUTHORITY — LOGO BAR
   ============================= */
.authority-logo {
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.authority-logo:hover {
    opacity: 0.9;
}

/* Mobile: tighter layout, 2×3 grid, smaller logos */
@media (max-width: 767px) {
    .authority-bar {
        padding: 25px 15px !important;
    }

    .authority-headline {
        font-size: 0.7rem !important;
        letter-spacing: 1.5px !important;
        margin-bottom: 20px !important;
    }

    .authority-logos {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px 30px !important;
        justify-items: center;
        align-items: center;
    }

    .authority-logo {
        height: 22px !important;
    }

    .authority-subtitle {
        font-size: 0.68rem !important;
        margin-top: 18px !important;
    }
}
