/* 
   LAUNCHEDIN10 DESIGN SYSTEM - ELITE AGENCY OVERRIDE
   Styles: Bespoke, Asymmetric, Editorial
*/

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text);
    margin-bottom: var(--space-tight);
    letter-spacing: -0.02em;
    /* Tight editorial tracking */
}

h1 {
    font-size: var(--text-hero);
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    font-size: var(--text-h1);
    margin-bottom: var(--space-element);
}

h3 {
    font-size: var(--text-h3);
    font-weight: 600;
    margin-bottom: var(--space-micro);
}

p {
    font-size: var(--text-body);
    color: var(--color-text);
    margin-bottom: var(--space-tight);
    max-width: 65ch;
    /* Optimal reading length */
}

p.lead {
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

.text-muted {
    color: var(--color-text-muted);
}

.text-balance {
    text-wrap: balance;
}

/* --- LAYOUT UTILITIES --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.text-center {
    text-align: center;
}

/* Editorial Grid: Asymmetric 2-column (Classic 60/40 split) */
.editorial-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--grid-gap);
    align-items: start;
}

/* Reverse Editorial Grid (40/60) */
.editorial-grid.reverse {
    grid-template-columns: 0.8fr 1.2fr;
}

/* Tri-Grid: Asymmetric 3-column (Standard for features but spaced widely) */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
}

/* Staggered Grid for Cards/Lists */
.staggered-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--grid-gap);
}

.staggered-grid>*:nth-child(even) {
    margin-top: var(--space-block);
    /* Push down even items for asymmetry */
}

/* Section Spacing */
.section {
    padding: var(--space-section) 0;
}

.section-tight {
    padding: var(--space-block) 0;
}

.bg-stone {
    background-color: var(--client-stone);
}

.bg-dark {
    background-color: var(--client-primary);
    color: white;
}

.bg-dark h1,
.bg-dark h2,
.bg-dark p {
    color: white;
}

/* --- COMPONENTS --- */

/* Buttons: Architectural, Sharp, Modern */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: var(--transition-fast);
    border: 1px solid transparent;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: var(--color-text);
    /* Black/Charcoal on hover */
    border-color: var(--color-text);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-text);
    background-color: transparent;
}

/* The "Link" Button (Text only with arrow) */
.btn-link {
    padding: 0;
    background: none;
    border: none;
    color: var(--client-primary);
    border-bottom: 1px solid currentColor;
    border-radius: 0;
}

/* Navigation - Floating, Minimal */
header {
    padding: var(--space-element) 0;
    width: 100%;
    z-index: 100;
    background: transparent;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 48px;
    /* Slightly larger presence */
}

.nav-links {
    display: flex;
    gap: var(--space-element);
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
}

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

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

/* --- SECTIONS SPECIFIC --- */

/* Standard Hero (Centered) */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: var(--space-section) 0;
}

.hero.overlay-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay for text readability */
    z-index: 1;
}

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

.hero h1,
.hero p {
    color: white;
}

.hero-subtitle {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Background Utilities */
.bg-warm {
    background-color: var(--client-stone);
}

/* Hero: Editorial Style (Text Left, Image Right/Overlap) */
.hero-editorial {
    padding-top: var(--space-block);
    padding-bottom: var(--space-section);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-editorial .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 60%;
    /* Occupy 60% of width */
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Feature Block (No visible card chrome) */
.feature-block {
    padding-right: var(--space-element);
}

.feature-block h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-tight);
}

.feature-block .icon {
    margin-bottom: var(--space-tight);
    color: var(--client-primary);
}

/* Testimonial: Editorial Quote */
.quote-editorial blockquote {
    font-family: var(--font-quote);
    font-size: 2.5rem;
    line-height: 1.2;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: var(--space-element);
    border: none;
    padding: 0;
}

.quote-editorial cite {
    font-family: var(--font-heading);
    font-style: normal;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--client-primary);
    display: block;
}

/* Footer: Deconstructed / Editorial */
.footer {
    padding: var(--space-section) 0 var(--space-element);
    border-top: 1px solid var(--color-border);
    background: transparent;
    margin-top: var(--space-section);
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-block);
    margin-bottom: var(--space-section);
}

.footer-brand {
    max-width: 300px;
}

.footer-brand img {
    opacity: 1;
    height: 48px;
    margin-bottom: var(--space-element);
}

.footer-nav-large {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}

.footer-nav-large a {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-text);
    transition: color 0.3s ease, transform 0.3s ease;
    letter-spacing: -0.02em;
}

.footer-nav-large a:hover {
    color: var(--client-primary);
    transform: translateX(-10px);
}

.footer-meta {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-block);
    padding-top: var(--space-element);
    border-top: 1px solid var(--color-border);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.footer-meta h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.footer-meta p,
.footer-meta a {
    margin-bottom: 0.5rem;
    display: block;
    color: var(--color-text);
    text-decoration: none;
}

.footer-meta a:hover {
    color: var(--client-primary);
}

.copyright {
    margin-top: var(--space-element);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    display: flex;
    justify-content: space-between;
}

/* Editorial Form Styles */
.form-group {
    margin-bottom: var(--space-element);
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    color: var(--color-text);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 16px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-text);
    border-radius: 0;
    transition: var(--transition-fast);
}

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

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    appearance: none;
    -webkit-appearance: none;
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-nav-large {
        align-items: flex-start;
        margin-top: var(--space-element);
    }

    .footer-meta {
        grid-template-columns: 1fr;
        gap: var(--space-element);
    }
}

/* --- ANIMATIONS: SUBTLE & REFINED --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 968px) {

    .editorial-grid,
    .editorial-grid.reverse,
    .grid-3,
    .staggered-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-editorial {
        flex-direction: column;
        padding-top: var(--header-height);
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: var(--space-element);
    }

    .hero-image-wrapper {
        position: relative;
        width: 100%;
        height: 50vh;
        margin-top: var(--space-element);
    }

    .staggered-grid>*:nth-child(even) {
        margin-top: 0;
    }

    .nav-links {
        display: none;
        /* Mobile menu logic remains */
    }

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

    /* Mobile Text Sizes */
    h1 {
        font-size: 3rem;
    }

    .quote-editorial blockquote {
        font-size: 1.75rem;
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
    margin-top: var(--space-section);
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-element);
}

.stat-item h3 {
    font-size: var(--text-h2);
    color: var(--client-primary);
    margin-bottom: 0px;
    line-height: 1;
}

.stat-item p {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: 1rem;
}

/* Flex Utilities */
.flex-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-element);
        margin-top: var(--space-block);
    }
}