/* ================================================================
   styles.css — ClawDrive site + markdown‑rendered content
   Updated to Match Exact Dark Hero Layout (LHS)
   ================================================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
                 sans-serif;
    line-height: 1.7;
    color: #1a1a2e;
    background: #f7f8fa; /* Light theme for the rest of the page */
}
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}
.loading {
    text-align: center;
    padding: 5rem 1rem;
    color: #999;
    font-size: 1.1rem;
}

/* ── Site Header ─────────────────────────────────────── */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 50px;
    background: #f7f8fa; /* Changed from #24262c to white */
    border-bottom: 1px solid #f0f0f0; /* Optional: subtle border for separation */
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.logo-icon img {
    height: 65px;
    width: auto;
    object-fit: contain;
    display: block;

}

.logo-text {
    display: none; /* Text embedded in image in LHS */
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    color: #333333; /* Changed from white to dark grey */
    transition: opacity 0.2s;
    margin:0 15px;
}

.nav-links a:hover {
    opacity: 0.7;
}

.btn-launch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.8rem;
    background: #5a5a5a; /* Dark grey matching "AI CONSULTATION" button */
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase; /* Added uppercase */
    border: none;
    border-radius: 0; /* Changed from 50px to square corners */
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
    line-height:1;
}

.btn-launch::after {
    content: none; /* Removed the unicode right arrow */
}

/* Hide hamburger menu by default on desktop */
.menu-toggle {
    display: none;
}

/* ── Main Layout Engine ──────────────────────────────────────────── */
#content {
    max-width: 1600px;
    width:100%;
    padding: 0;
    margin: 0 auto;
}

/* Target the inner .md-content which wraps the actual elements */
#content > .md-content {
    display: grid;
    /* 12 column centered grid */
    grid-template-columns: minmax(5%, 1fr) repeat(12, minmax(0, 100px)) minmax(5%, 1fr);
    grid-auto-rows: min-content;
    column-gap: 1.5rem;
    position: relative;
    padding-bottom: 5rem;
}


/* ── Components & Typography Defaults ────────────────────────────── */

.p_wrapper { margin-bottom: 1.25rem; }
.p_wrapper p {
    font-size: 1.05rem;
    line-height: 1;
    color: #4a4a4a;
}

.h2_wrapper h2 {
    font-size: 1.9rem;
    font-weight: 700;
    color: #16213e;
    padding-bottom: 0.3rem;
}

.h3_wrapper h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #0f3460;
}

.img_wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.card-wrapper {
    background: #ffffff;
    border-radius: 16px;
    padding: 3rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.hr_wrapper hr {
    border: none;
    height: 1px;
    background: #e4e6eb;
}

.list_wrapper ul { padding-left: 1.75rem; margin-bottom: 1.5rem; }
.list_wrapper li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    color: #2d2d2d;
}

.md-content a { color: #ff6b35; text-decoration: none; font-weight: 500; }
.md-content a:hover { text-decoration: underline; }

#content > .md-content > .section_lv2_wrapper {
    background: #ffffff;
    box-shadow: none;
    padding: 4rem 50px 1rem 50px;
    margin: 0;
    border-radius: 0;
    grid-column:1 / 15;
    width:100%;
}

/* ── General: Responsive Refinements ──────────────────────────────────────── */
@media (max-width: 1024px) {
    #content > .md-content { grid-template-columns: minmax(1rem, 1fr) repeat(12, minmax(0, 100px)) minmax(1rem, 1fr); }
}

@media (max-width: 768px) {
    .site-header { padding: 1rem 5%; }
    
    /* 1. Style the hamburger button icon */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.8rem;
        color: #333333;
        cursor: pointer;
        padding: 0.25rem;
    }

    /* 2. Turn the hidden container into an absolute dropdown wrapper */
    .nav-links { 
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 5%;
        background: #ffffff;
        border: 1px solid #f0f0f0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        width: 200px;
        z-index: 1000;
    }

    /* 3. Display the dropdown when toggled open */
    .nav-links.open {
        display: flex;
    }

    /* 4. Fix link spacings for vertical block stack */
    .nav-links a {
        margin: 0.5rem 0;
    }
}

/* ================================================================
 Hero Section
   ================================================================ */
#content > .md-content > .h1_wrapper{
    box-shadow: none;
    padding: 1rem 50px 1rem 50px;
    margin: 0;
    border-radius: 0;
    grid-column:1 / 15;
    width:100%;
}
#content > .md-content > .h1_wrapper h1 {
    font-size: 2rem;
    color: #1a0b2e;
    font-weight: 800;
    line-height:1.3;
    border: none;
    padding: 0;
    max-width:700px;
    margin-top:50px;
}

#content > .md-content > .p_wrapper{
    padding: 1rem 50px 1rem 50px;
    margin: 0;
    border-radius: 0;
    grid-column:1 / 15;
    width:100%;
    margin-bottom:50px;
}

    #content > .md-content > .p_wrapper > p{
       font-size:1rem;
       line-height:1.6;
       color:#6a7682; 
    }

/* ================================================================
   RE-WRITTEN: Our blog Section 
   Fixes the layout using Flexbox cards instead of display:contents
   ================================================================ */

/* 1. "Our blog" Kicker (Section 9-) */
#content > .md-content > .section_lv2_wrapper:nth-child(3) {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 50px 4rem 50px;
    margin: 0 auto;
    background: transparent;
    box-shadow: none;

}
#content > .md-content > .section_lv2_wrapper:nth-child(3) > .h2_wrapper h2{
    font-size: 1.5rem;
    color: #8cc4af; /* Teal color matching the target */
    text-transform: none;
    font-weight: 700;
    border: none;
    padding: 0;
    letter-spacing: normal;
    margin-top:50px;
}
#content > .md-content > .section_lv2_wrapper:nth-child(3) > .hr_wrapper {
    display: none;
}


/* 3. Subtitle Row (Wrapper 1) */
#content > .md-content > .section_lv2_wrapper:nth-child(3) > .section_lv3_wrapper:nth-of-type(1){
    width: 100%;
    text-align: center;
    margin-bottom: 3rem;
    padding: 0;
    background: transparent;
    box-shadow: none;
    display: block;
}
#content > .md-content > .section_lv2_wrapper:nth-child(3) > .section_lv3_wrapper:nth-of-type(1) > .h3_wrapper h3 {
    font-size: 1.1rem;
    color: #6a7682;
    font-weight: 400;
    margin: 0;
}

/* Hide stray Kicker 1 and HR from Wrapper 1 */
#content > .md-content > .section_lv2_wrapper:nth-child(3) > .section_lv3_wrapper:nth-of-type(1) > .hr_wrapper,
#content > .md-content > .section_lv2_wrapper:nth-child(3) > .section_lv3_wrapper:nth-of-type(1) > .section_lv4_wrapper{
    display: none;
}

#content > .md-content > .section_lv2_wrapper:nth-child(3) > .blockquote_wrapper:nth-of-type(2),
#content > .md-content > .section_lv2_wrapper:nth-child(3) > .h2_wrapper:nth-of-type(1){
    text-align:center;
    width:100%;
    margin-bottom:10px;
}

#content > .md-content > .section_lv2_wrapper:nth-child(3) > .blockquote_wrapper:nth-of-type(2)::after {
  content: "";
  display: table;
  clear: both;
}

/* 4. Column Cards (Wrapper 2 & Wrapper 3) */
#content > .md-content > .section_lv2_wrapper:nth-child(3) > .section_lv3_wrapper:nth-of-type(n+3) {
    width: calc(33% - 1.5rem); /* Splits width exactly in half minus gap */
    display: flex;
    flex-direction: column;
    padding: 0;
    background: transparent;
    box-shadow: none;
    margin: 20px 0;
}


/* 5. Reorder and style internal card elements */

/* Image goes to the top */
#content > .md-content > .section_lv2_wrapper:nth-child(3) > .section_lv3_wrapper:not(:first-of-type) > .img_wrapper {
    order: 1;
    margin-bottom: 1.5rem;
}

/* Title block goes in the middle */
#content > .md-content > .section_lv2_wrapper:nth-child(3) > .section_lv3_wrapper:not(:first-of-type) > .h3_wrapper {
    order: 2;
    margin-bottom: 0.5rem;
}

/* Descriptive Paragraph (3rd child) goes after the title */
#content > .md-content > .section_lv2_wrapper:nth-child(3) > .section_lv3_wrapper:not(:first-of-type) > .p_wrapper:nth-child(3) {
    order: 3;
    margin-bottom: 1.5rem;
}
#content > .md-content > .section_lv2_wrapper:nth-child(3) > .section_lv3_wrapper:not(:first-of-type) > .p_wrapper:nth-child(3) p{
    font-size: 1rem;
    color: #6a7682;
    line-height: 1.6;
    margin: 0;
}


/* Read More link wrapper (4th child) goes to the absolute bottom */
#content > .md-content > .section_lv2_wrapper:nth-child(3) > .section_lv3_wrapper:not(:first-of-type) > .p_wrapper:nth-child(4),
#content > .md-content > .section_lv2_wrapper:nth-child(12) > .section_lv3_wrapper:not(:first-of-type) > .p_wrapper:nth-child(4) {
    order: 4;
    margin-top: auto; /* Pushes the button to the bottom if cards stretch */
}

/* Turn "Read more" link into a solid button */
#content > .md-content > .section_lv2_wrapper:nth-child(3) > .section_lv3_wrapper:not(:first-of-type) > .p_wrapper:nth-child(4) a,
#content > .md-content > .section_lv2_wrapper:nth-child(12) > .section_lv3_wrapper:not(:first-of-type) > .p_wrapper:nth-child(4) a {
    display: inline-block;
    background-color: #8b5cf6; 
    color: #ffffff;
    padding: 0.7rem 1.6rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Button hover effect */
#content > .md-content > .section_lv2_wrapper:nth-child(3) > .section_lv3_wrapper:not(:first-of-type) > .p_wrapper:nth-child(4) a:hover {
    background-color: #6d28d9;
    transform: translateY(-2px);
}

/* 6. Mobile Responsiveness */

@media (max-width: 768px) {
    #content > .md-content > .section_lv2_wrapper:nth-child(3) {
        flex-direction: column;
        padding: 0 5% 4rem 5%;
    }
    #content > .md-content > .section_lv2_wrapper:nth-child(3) > .section_lv3_wrapper:nth-of-type(n+3) {
        width: 100%;
        margin-bottom: 3rem;
    }
    #content > .md-content > .section_lv2_wrapper:nth-child(3) > .h2_wrapper h2{
        font-size:1.5rem;
    }
}




/* ================================================================
   Footer Section (Match LHS Screenshot)
   ================================================================ */

/* 1. Main Footer Wrapper: Full width, light gray background, flex column */
#content > .md-content > .section_lv2_wrapper:last-of-type {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f5f6f8; /* Light gray background */
    box-shadow: none;
    border-radius: 0;
    padding: 4rem 2rem;
    margin: 0;
}

/* 2. Hide the "Footer" title */
#content > .md-content > .section_lv2_wrapper:last-of-type > .h2_wrapper {
    display: none;
}

/* 3. Reorder elements using Flexbox */
#content > .md-content > .section_lv2_wrapper:last-of-type > .img_wrapper {
    order: 1;
    margin-bottom: 2rem;
}

#content > .md-content > .section_lv2_wrapper:last-of-type > .list_wrapper {
    order: 2;
    margin-bottom: 1.5rem;
}

#content > .md-content > .section_lv2_wrapper:last-of-type > .p_wrapper {
    order: 3;
    margin: 0;
}

/* 4. Logo Styling */
#content > .md-content > .section_lv2_wrapper:last-of-type > .img_wrapper img {
    max-width: 180px; /* Scale down to match LHS */
    height: auto;
    box-shadow: none;
    border-radius: 0;
}

/* 5. Horizontal Links List Styling */
#content > .md-content > .section_lv2_wrapper:last-of-type > .list_wrapper ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem; /* Spacing between links */
    padding: 0;
    margin: 0;
    list-style: none;
}

#content > .md-content > .section_lv2_wrapper:last-of-type > .list_wrapper ul li {
    padding: 0;
    margin: 0;
}

/* Remove inherited custom purple checkmarks/bullets */
#content > .md-content > .section_lv2_wrapper:last-of-type > .list_wrapper ul li::before {
    content: none;
}

#content > .md-content > .section_lv2_wrapper:last-of-type > .list_wrapper ul li a {
    color: #718096; /* Slate gray link color */
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}


#content > .md-content > .section_lv2_wrapper:last-of-type > .list_wrapper ul li a:hover {
    color: #2b2e36;
}

/* 6. Copyright Text Styling */
#content > .md-content > .section_lv2_wrapper:last-of-type > .p_wrapper p {
    color: #a0aec0; /* Lighter slate gray */
    font-size: 0.85rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
}

/* 7. Mobile Responsiveness */

@media (max-width: 768px) {
    /* Remove the multi-column grid on mobile to stop gaps from blowing out the width */
    #content > .md-content {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        overflow-x: hidden;
        padding-bottom: 2rem;
    }

/* 3. Fix Header Cramping so it fits on one line */
    .site-header {
        padding: 0.8rem 15px !important;
        gap: 10px;
    }

    #content > .md-content > .section_lv2_wrapper:last-of-type > .list_wrapper ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    /* 1. Header fixes: Scale down logo and button to prevent crowding */
    .logo-icon img {
        height: 40px !important; /* Scaled down */
    }
    .btn-launch {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.75rem !important;
    }


    #content > .md-content > .section_lv2_wrapper:nth-child(3) {
padding: 1.5rem 20px 2rem 20px !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    #content > .md-content > .h1_wrapper, #content > .md-content > .p_wrapper{
        padding: 0.5rem 20px 0.5rem 20px;
    }

    #content > .md-content > .h1_wrapper h1{
        font-size:1.5rem;
        max-width:100%;
        line-height:1.2;
    }
    #content > .md-content > .section_lv2_wrapper:nth-child(3) > .h2_wrapper h2{
        margin-top:0 ;
    }
}