/* --- Global Reset & Apple Variables --- */
:root {
    --white: #ffffff;
    --apple-gray: #f5f5f7;       
    --text-black: #1d1d1f;       
    --text-gray: #86868b;        
    --accent-blue: #0066cc;      
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-black);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

/* --- Navigation (Modern Fixed Blur) --- */
.apple-nav {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 52px;
    padding: 0 20px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-black);
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent-blue);
}

/* --- Hero Section --- */
.hero-section {
    padding: 100px 20px 40px; /* Top padding clears the fixed nav */
    background-color: var(--white);
    text-align: center;
}

.hero-section h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Banner --- */
.banner-image-container {
    width: 100%;
    line-height: 0;
    margin-bottom: 3rem;
}

.full-width-banner {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Card Layout --- */
.gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.card-row {
    display: flex;
    background-color: var(--apple-gray);
    border-radius: 28px;
    margin-bottom: 40px;
    overflow: hidden;
    min-height: 500px;
}

.card-row.reverse { flex-direction: row-reverse; }

.card-text {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-text h3 { font-size: 2.2rem; margin-bottom: 15px; }

.eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.card-image {
    flex: 1;
    background-size: cover;
    background-position: center;
}

/* Background Images */
.bg-speech { background-image: url('../images/speech.png'); }
.bg-writing { background-image: url('../images/writingsoftware.png'); }
.bg-meeting { background-image: url('../images/meeting.png'); }
.bg-person { background-image: url('../images/personusingsoftware.png'); }
.bg-coaching { background-image: url('../images/coaching.png'); }
.bg-mobile { background-image: url('../images/mobiledevice.png'); }
.bg-psychometrics { background-image: url('../images/psycho.png'); }

/* --- Footer --- */
.apple-footer {
    padding: 60px 20px;
    background-color: var(--apple-gray);
    text-align: center;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--accent-blue);
    margin: 0 15px;
    text-decoration: none;
}

/* --- TABLET BREAKPOINT --- */
@media (max-width: 1024px) {
    .nav-links { gap: 15px; }
    .nav-links a { font-size: 0.8rem; }
    .card-text { padding: 40px; }
}

/* --- MOBILE BREAKPOINT --- */
@media (max-width: 768px) {
    .nav-content {
        justify-content: flex-start; /* Aligns scrollable items to start */
    }

    .nav-links {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 20px;
        padding: 10px 0;
        width: 100%;
    }

    .nav-links::-webkit-scrollbar { display: none; } /* Hides scrollbar for clean look */

    .card-row, .card-row.reverse { flex-direction: column; min-height: auto; }
    .card-image { min-height: 300px; }
    .hero-section h1 { font-size: 2.4rem; }
    
    .hero-section { padding-top: 80px; }

    .card-text h3 {
        font-size: 1.75rem;       /* Smaller font specifically for mobile */
        line-height: 1.2;
        word-wrap: break-word;    /* Older browser support */
        overflow-wrap: break-word; /* Modern browser support */
        hyphens: auto;            /* Adds a dash if a word breaks (Optional) */
    }

    /* Prevent the card-text container from having too much horizontal padding */
    .card-text {
        padding: 30px 20px; 
    }
    
}

html {
    scroll-behavior: smooth;
    /* Offset so fixed nav doesn't cover section titles */
    scroll-padding-top: 70px; 
}
