/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
    /* Colors */
    --color-navy: #1f2d3d;
    --color-navy-light: #2c3d51;
    --color-teal: #8a6b3f;
    --color-teal-dark: #6d5433;
    --color-offwhite: #f3efe6;
    --color-gray-100: #ece6da;
    --color-gray-200: #ddd6c8;
    --color-gray-300: #c8bead;
    --color-gray-400: #b3a895;
    --color-gray-500: #938876;
    --color-gray-600: #6f675b;
    --color-gray-700: #534d43;
    --color-gray-800: #353129;
    --color-gray-900: #211f1b;
    
    /* Typography */
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Source Serif 4', Georgia, serif;
    
    /* Spacing */
    --section-padding: 6rem;
    --container-max: 1200px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-800);
    background-color: var(--color-offwhite);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ========================================
   Container & Layout
   ======================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-navy);
}

.text-accent {
    color: var(--color-teal);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--color-teal-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-navy);
    border: 2px solid var(--color-navy);
}

.btn-secondary:hover {
    background-color: var(--color-navy);
    color: white;
}

.btn-text {
    background: none;
    color: var(--color-teal);
    padding: 0.5rem 0;
    font-weight: 600;
}

.btn-text:hover {
    color: var(--color-teal-dark);
}

.btn-full {
    width: 100%;
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background-color: rgba(138, 107, 63, 0.12);
    color: var(--color-teal);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-gray-600);
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(243, 239, 230, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-gray-200);
    transition: all var(--transition-base);
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--color-navy);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--color-navy);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--color-gray-700);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-teal);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--color-navy);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-navy);
    transition: all var(--transition-base);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding: calc(var(--section-padding) + 72px) 0 var(--section-padding);
    background: linear-gradient(135deg, var(--color-offwhite) 0%, #e8e1d3 100%);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 540px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: rgba(138, 107, 63, 0.14);
    color: var(--color-teal-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-gray-600);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 500px;
}

.hero-card {
    position: absolute;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    max-width: 220px;
    z-index: 2;
}

.hero-card-1 {
    top: 0;
    left: 0;
}

.hero-card-2 {
    bottom: 80px;
    right: 0;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.hero-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.hero-card p {
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

.hero-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    z-index: 1;
}

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

/* ========================================
   Credibility Bar
   ======================================== */
.credibility {
    padding: 3rem 0;
    background-color: white;
    border-bottom: 1px solid var(--color-gray-200);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

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

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    margin-top: 0.5rem;
}

.featured-logos {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray-200);
}

.logos-title {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.logo-item {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-gray-400);
    font-size: 1.125rem;
}

/* ========================================
   Services Section
   ======================================== */
.services {
    padding: var(--section-padding) 0;
    background-color: var(--color-offwhite);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-gray-600);
    margin-bottom: 1.25rem;
}

.service-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-teal);
    font-size: 0.9rem;
}

.service-link:hover {
    color: var(--color-teal-dark);
}

.courses-section {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.courses-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.courses-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.course-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--color-gray-100);
    border-radius: 8px;
}

.course-name {
    font-weight: 500;
}

.course-duration {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

/* ========================================
   Book Section
   ======================================== */
.book {
    padding: var(--section-padding) 0;
    background-color: var(--color-navy);
    color: white;
}

.book .section-header {
    margin-bottom: 2rem;
}

.book .section-badge {
    background-color: rgba(138, 107, 63, 0.24);
    color: var(--color-teal);
}

.book .section-title {
    color: white;
}

.book-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.book-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    padding: 0.75rem;
}

.book-item-image {
    width: 100%;
    aspect-ratio: 7 / 10;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.book-item-title {
    color: white;
    font-size: 1.05rem;
    line-height: 1.3;
}

/* ========================================
   Publications Section
   ======================================== */
.publications {
    padding: var(--section-padding) 0;
    background-color: white;
}

.publications-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.publication-card {
    background: var(--color-offwhite);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-base);
}

.publication-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.publication-card.featured {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

.publication-image {
    height: 200px;
    overflow: hidden;
}

.publication-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.publication-cover-fit {
    object-fit: contain !important;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
}

.publication-card:hover .publication-image img {
    transform: scale(1.05);
}

.publication-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.publication-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-teal);
    color: var(--color-navy);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

.publication-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.publication-card p {
    font-size: 0.95rem;
    color: var(--color-gray-600);
    margin-bottom: 1.25rem;
    flex: 1;
}

.publication-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-teal);
    font-size: 0.9rem;
}

.publication-link:hover {
    color: var(--color-teal-dark);
}

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

/* ========================================
   Insights Section
   ======================================== */
.insights {
    padding: var(--section-padding) 0;
    background-color: var(--color-offwhite);
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.insight-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.insight-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.insight-category {
    padding: 0.25rem 0.75rem;
    background: rgba(138, 107, 63, 0.12);
    color: var(--color-teal);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
}

.insight-date {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

.insight-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.insight-card p {
    font-size: 0.95rem;
    color: var(--color-gray-600);
    margin-bottom: 1.25rem;
}

.insight-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-teal);
    font-size: 0.9rem;
}

.insight-link:hover {
    color: var(--color-teal-dark);
}

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

/* ========================================
   About Section
   ======================================== */
.about {
    padding: var(--section-padding) 0;
    background-color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: auto;
}

.about-content .section-title {
    font-size: 2.5rem;
}

.about-text {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.about-buttons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-top: 1.5rem;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 760px;
    margin: 0 auto;
}

.contact-info .section-badge {
    background-color: rgba(138, 107, 63, 0.24);
    color: var(--color-teal);
}

.contact-info .section-title {
    color: white;
    font-size: 2.5rem;
}

.contact-description {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    transition: all var(--transition-base);
}

.contact-method:hover {
    background: rgba(255,255,255,0.1);
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-form-wrapper {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--color-gray-700);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-gray-300);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-teal);
    box-shadow: 0 0 0 3px rgba(138, 107, 63, 0.14);
}

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

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 4rem 0 2rem;
    background-color: var(--color-navy-light);
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-tagline {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    font-size: 1.25rem;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.footer-social a:hover {
    opacity: 1;
}

.footer-links h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-teal);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
    opacity: 0.7;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a:hover {
    color: var(--color-teal);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        height: 400px;
        order: -1;
    }
    
    .hero-image {
        width: 220px;
        height: 280px;
    }
    
    .hero-card {
        max-width: 180px;
        padding: 1rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .publications-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .publication-card.featured {
        grid-column: span 2;
        grid-row: span 1;
        flex-direction: row;
    }
    
    .publication-card.featured .publication-image {
        width: 40%;
        height: auto;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .book-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-image {
        order: -1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--color-gray-200);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .services-grid,
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .courses-list {
        grid-template-columns: 1fr;
    }
    
    .publications-grid {
        grid-template-columns: 1fr;
    }

    .book-list {
        grid-template-columns: 1fr;
    }
    
    .publication-card.featured {
        flex-direction: column;
    }
    
    .publication-card.featured .publication-image {
        width: 100%;
        height: 200px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-visual {
        height: 350px;
    }
    
    .hero-card {
        display: none;
    }
    
    .hero-image {
        width: 200px;
        height: 260px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .book-item-title {
        font-size: 1rem;
    }
}
