:root {
    /* Design System Colors (From Logo) */
    --bg-main: #FAFAF9;
    --brand-darkest: #263628;
    --brand-dark: #4b6750;
    --brand-primary: #8ba88a;
    --brand-light: #acbe98;
    --brand-lightest: #c0ceb2;
    
    --text-primary: #050708;
    --text-secondary: #4b6750;
    --text-heading: #263628;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--brand-dark);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(250, 250, 249, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(69, 139, 133, 0.1);
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 101; /* Stay above dropdown */
}

/* Burger Icon */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--brand-dark);
    z-index: 101;
    padding: 0.5rem;
}
.burger-icon {
    width: 28px;
    height: 28px;
}

/* Nav Links Base (Mobile - Dropdown) */
.nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; 
    left: 0;
    width: 100%;
    background: var(--bg-main);
    padding: 0 5%;
    max-height: 0; /* Hidden by default */
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(69, 139, 133, 0.1);
    border-top: 1px solid rgba(69, 139, 133, 0.05);
}

.nav-links.active {
    max-height: 300px;
    padding: 1rem 5% 2rem 5%;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s;
    padding: 1rem 0;
    display: block;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(69, 139, 133, 0.1);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -1px; /* Align exactly with the border-bottom */
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--brand-primary);
    transition: width 0.3s ease;
}

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

.nav-links a:last-child {
    border-bottom: none;
}

.nav-links a:hover {
    color: var(--brand-primary);
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 4rem 5%;
    background: linear-gradient(135deg, var(--bg-main) 0%, var(--brand-lightest) 100%);
}

.hero-content {
    max-width: 100%;
    animation: fadeIn 1s ease-out forwards;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-heading);
}

.hero-title span {
    color: var(--brand-primary);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-image {
    display: block;
    margin-top: 3rem;
    margin-left: 0;
    width: 100%;
}

/* Combined Bubble Button (Classic Tail + Typing Morph) */
.btn-combined {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    /* Classic Tail shape */
    border-radius: 30px 30px 30px 0; 
    background-color: var(--brand-dark);
    color: white;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(75, 103, 80, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 0px; /* Changes on hover */
}

.typing-dots {
    display: flex;
    gap: 4px;
    opacity: 0;
    width: 0;
    transition: all 0.4s ease;
    overflow: hidden;
    margin-left: 0;
}

.typing-dots span {
    width: 5px;
    height: 5px;
    background-color: white;
    border-radius: 50%;
    animation: type 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

.btn-combined:hover {
    transform: translateY(-5px);
    /* Flip the tail and slightly expand */
    border-radius: 30px 30px 0 30px;
    background-color: var(--brand-darkest);
    box-shadow: 0 10px 20px rgba(38, 54, 40, 0.4);
    gap: 8px; /* Add space for dots */
}

.btn-combined:hover .typing-dots {
    opacity: 1;
    width: 20px;
    margin-left: 8px;
}

/* Elegant SVG styling */
.elegant-svg {
    width: 24px;
    height: 24px;
    color: currentColor;
    stroke-width: 1.2;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes type {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* --- MEDIUM SCREEN (Tablet) --- */
@media (min-width: 768px) {
    .navbar { padding: 1.2rem 5%; }
    .logo { font-size: 1.6rem; }
    
    .menu-toggle { display: none; } /* Hide burger */
    
    .nav-links { 
        position: static;
        flex-direction: row; 
        gap: 2.5rem; 
        background: transparent;
        padding: 0;
        max-height: none;
        overflow: visible;
        box-shadow: none;
        border: none;
        margin-left: auto;
        width: auto;
    }
    
    .nav-links.active { padding: 0; }
    
    .nav-links a {
        padding: 0.5rem 0;
        font-size: 1.1rem;
        border-bottom: none;
    }
    
    .hero { 
        padding: 5rem 5%; 
    }
    
    .hero-title { font-size: 3rem; }
}

/* --- LARGE SCREEN (Desktop) --- */
@media (min-width: 1024px) {
    .navbar { padding: 1.5rem 5%; }
    .logo { font-size: 1.8rem; }
    
    .hero { 
        flex-direction: row; 
        text-align: left; 
        padding: 6rem 5%; 
        justify-content: space-between;
        min-height: 80vh;
    }
    
    .hero-content { max-width: 50%; }
    .hero-title { font-size: 3.8rem; line-height: 1.1; }
    .hero-subtitle { font-size: 1.2rem; margin-bottom: 2.5rem; }
    
    .hero-image { 
        margin-left: 4rem; 
        margin-top: 0;
    }
}

/* --- ANIMATIONS (Scroll Reveal Engine) --- */
.reveal {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

/* Delays for staggering elements */
.reveal-delay-1 { transition-delay: 0.2s; }
.reveal-delay-2 { transition-delay: 0.4s; }
.reveal-delay-3 { transition-delay: 0.6s; }

/* --- SPACING & UTILITIES --- */
.section-padding {
    padding: 5rem 5%;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 8rem 10%; /* More generous whitespace on larger screens */
    }
}

/* --- PHASE 3 SECTIONS --- */
.approach-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
.approach-box {
    background: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(69, 139, 133, 0.05);
    text-align: center;
}
.approach-box h3 { margin-bottom: 1rem; color: var(--brand-primary); }

.services-teaser {
    position: relative;
    text-align: center;
    overflow: hidden;
}
.placeholder-bg {
    background-color: var(--brand-light); /* temporary bg */
    color: white;
}
.services-teaser-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(250, 250, 249, 0.95);
    padding: 3rem 2rem;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}
.services-teaser-content h2 { margin-bottom: 3rem; }
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.service-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}
.service-icon svg {
    width: 48px;
    height: 48px;
    color: var(--brand-primary);
}
.placeholder-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    z-index: 1;
    text-align: left;
}

@media (min-width: 768px) {
    .approach-grid { grid-template-columns: repeat(3, 1fr); }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .services-teaser-content { padding: 4rem; }
}

/* --- PHASE 4 SECTIONS (Inner Pages) --- */
.text-center { text-align: center; }
.placeholder-box {
    background-color: var(--brand-lightest);
    border: 2px dashed var(--brand-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    color: var(--brand-darkest);
}

/* Zigzag Layout (Services) */
.zigzag-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 5rem;
    align-items: center;
}
.zigzag-image {
    width: 100%;
    min-height: 300px;
}
.zigzag-text h2 { margin-bottom: 1rem; color: var(--text-heading); }

/* About Timeline */
.about-hero {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}
.profile-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    flex-shrink: 0;
}
.about-hero-text .subtitle {
    color: var(--brand-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
    border-left: 3px solid var(--brand-light);
}
.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}
.timeline-dot {
    position: absolute;
    left: -2.7rem;
    top: 0;
    width: 1rem;
    height: 1rem;
    background: var(--brand-primary);
    border-radius: 50%;
    border: 3px solid var(--bg-main);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(69, 139, 133, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.contact-link {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 500;
}

@media (min-width: 768px) {
    .zigzag-row {
        flex-direction: row;
        gap: 4rem;
    }
    .zigzag-row.reverse {
        flex-direction: row-reverse;
    }
    .zigzag-text, .zigzag-image {
        flex: 1;
    }
    .about-hero {
        flex-direction: row;
    }
    .timeline {
        padding-left: 0;
        border-left: none;
    }
    .timeline::after {
        content: '';
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 3px;
        background: var(--brand-light);
        transform: translateX(-50%);
    }
    .timeline-item {
        width: 50%;
        padding-right: 3rem;
        left: 0;
    }
    .timeline-item:nth-child(odd) {
        text-align: right;
    }
    .timeline-item:nth-child(even) {
        left: 50%;
        padding-right: 0;
        padding-left: 3rem;
        text-align: left;
    }
    .timeline-item .timeline-dot {
        left: auto;
        right: -0.65rem;
    }
    .timeline-item:nth-child(even) .timeline-dot {
        right: auto;
        left: -0.65rem;
    }
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- NEW UTILITIES EXTRACTED FROM INLINE STYLES --- */

/* Logo */
.logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

/* Active Nav Link */
.nav-links a.active {
    color: var(--brand-primary);
}

/* Page Subtitle */
.page-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 1rem auto 3rem;
}
.page-subtitle.dae-subtitle {
    max-width: 800px;
    margin-bottom: 2rem;
}
.page-subtitle.services-subtitle {
    margin-bottom: 4rem;
}

/* Timeline details */
.timeline-details {
    margin-top: 1rem;
    cursor: pointer;
    text-align: left;
    display: inline-block;
}
.timeline-details summary {
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: underline;
}
.timeline-details p {
    margin-top: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(69, 139, 133, 0.1);
}
.timeline-list {
    margin-top: 0.5rem;
    padding-left: 1.2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: inline-block;
    text-align: left;
    line-height: 1.6;
}

/* Buttons */
.btn-small {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--brand-primary);
    color: white;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}
.btn-small:hover {
    opacity: 0.9;
}
.btn-secondary {
    margin-top: 3rem;
    background-color: var(--brand-primary);
}
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    background-color: var(--brand-primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(69, 139, 133, 0.3);
    transition: transform 0.2s ease;
}
.btn-download:hover {
    transform: translateY(-3px);
}
.btn-download svg {
    width: 24px;
    height: 24px;
}

/* About Section */
.profile-photo {
    box-shadow: 0 15px 35px rgba(69,139,133,0.2);
}
h2.timeline-title {
    margin: 5rem 0 3rem;
}

/* Contact Section */
.contact-card .service-icon svg {
    width: 32px;
    height: 32px;
}
.contact-map {
    width: 100%;
    min-height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.contact-map iframe {
    border: 0;
}

/* DAE Section */
.intro-box {
    max-width: 900px;
    margin: 0 auto 4rem;
    background: rgba(69, 139, 133, 0.05);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(69, 139, 133, 0.1);
}
.intro-box h2 {
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}
.intro-box p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}
.intro-box p.last-p {
    margin-bottom: 0;
}
.pdf-viewer-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}
.pdf-download-wrapper {
    text-align: center;
    margin-bottom: 3rem;
}
#pdf-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
#loading-msg {
    text-align: center;
    color: var(--brand-primary);
    font-size: 1.2rem;
    margin: 3rem 0;
}
.spinner {
    width: 40px;
    height: 40px;
    animation: rotate 2s linear infinite;
    margin-bottom: 10px;
}
.spinner .path {
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

/* Index / Hero Elements */
.hero-image {
    flex: 1;
    min-height: 400px;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(69, 139, 133, 0.15);
}
.services-teaser-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
}

/* Services Page Zigzag */
.zigzag-row .service-icon {
    justify-content: flex-start;
}
.zigzag-image {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Coming Soon (public/index.html) */
.coming-soon-logo-img {
    height: 100px;
    width: auto;
    margin-bottom: 1.5rem;
}
.coming-soon-hero-title {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-heading);
}
.coming-soon-hero-subtitle {
    font-size: 1.5rem;
    color: var(--brand-primary);
    margin-bottom: 2.5rem;
    font-family: 'Outfit', sans-serif;
}
.coming-soon-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Specific DAE Page Styles */
.book-content h1 { font-size: 2.2rem; color: var(--brand-primary); margin: 3rem 0 1.5rem; border-bottom: 2px solid rgba(69, 139, 133, 0.2); padding-bottom: 0.5rem; }
.book-content h2 { font-size: 1.8rem; color: var(--brand-dark); margin: 2rem 0 1rem; }
.book-content h3 { font-size: 1.4rem; color: var(--brand-dark); margin: 1.5rem 0 1rem; }
.book-content p { margin-bottom: 1.2rem; color: var(--text-secondary); text-align: justify; line-height: 1.8; }
.book-content p:has(img) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
}
.book-content img { 
    max-width: 100%; 
    max-height: 200px;
    width: auto; 
    border-radius: 8px; 
    margin: 0; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); 
    object-fit: contain;
}
.book-content ul, .book-content ol { margin: 1rem 0 1.5rem 2rem; color: var(--text-secondary); line-height: 1.8; }
.book-content li { margin-bottom: 0.5rem; }
.book-content strong { color: var(--brand-dark); }
@media (max-width: 768px) {
    .book-content h1 { font-size: 1.8rem; }
    .book-content h2 { font-size: 1.5rem; }
    .book-content h3 { font-size: 1.2rem; }
    .book-content p { text-align: left; }
}
#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--brand-primary);
    color: white;
    cursor: pointer;
    width: 56px;
    height: 56px;
    display: none; /* controlled by JS */
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.3s;
}
#backToTopBtn svg {
    width: 24px;
    height: 24px;
    display: block;
}
#backToTopBtn:hover {
    background-color: var(--brand-dark) !important;
    transform: translateY(-3px) !important;
}
@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes dash { 0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; } 50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; } 100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; } }

.simple-copyright {
    text-align: center;
    font-size: 0.85rem;
    color: var(--brand-light); /* subtle */
    padding: 2rem 5% 1rem;
    margin-top: 2rem;
}
