/* --- BRAND COLORS (The "Kaya" Palette) --- */
:root {
    --primary: #0F4C3A;       /* Deep Emerald */
    --secondary: #1D2825;     /* Dark Charcoal */
    --accent: #C5A059;        /* Muted Gold */
    --bg-light: #F9F7F2;      /* Cream/Rice Paper */
    --text-dark: #333333;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

/* --- SKIP LINK (Accessibility) --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 0 0 4px 4px;
}
.skip-link:focus {
    top: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, .logo, .meaning-highlight {
    font-family: 'Fraunces', serif;
}

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(255, 255, 255, 0.98);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    color: var(--primary);
    letter-spacing: 0.18em;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(15, 76, 58, 0.18);
}

.logo-mark svg {
    width: 100%;
    height: 100%;
    display: block;
}

.logo-text {
    position: relative;
}

.logo-text::after {
    content: '.';
    color: var(--accent);
    margin-left: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    position: relative;
}

/* Underline hover effect */
.nav-links a:not(.btn-gold)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
}
.nav-links a:not(.btn-gold):hover::after {
    width: 100%;
}

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

/* Active page indicator */
.nav-links a.nav-active {
    color: var(--accent);
}

.btn-gold {
    padding: 12px 28px;
    background-color: var(--accent);
    color: var(--white) !important;
    border-radius: 2px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
    transition: transform 0.2s, background-color 0.3s !important;
}

.btn-gold:hover {
    background-color: #b08d4b;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--secondary);
}

/* --- HERO SECTION --- */
.hero {
    height: 60vh; /* Reduced for sub-pages, override in inline css or specific class for index */
    min-height: 400px;
    background: linear-gradient(135deg, rgba(15, 76, 58, 0.9), rgba(29, 40, 37, 0.7)), 
                url('https://images.unsplash.com/photo-1563911302283-d2bc129e7c1f?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    position: relative;
}

.hero-full {
    height: 90vh;
}

.hero-content {
    max-width: 900px;
    opacity: 0; /* JS handles fade in */
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.hero-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 300;
    color: rgba(255,255,255,0.95);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- THE "MEANING" BAR --- */
.meaning-bar {
    background: var(--primary);
    color: var(--white);
    padding: 50px 5%;
    text-align: center;
    position: relative;
}
.meaning-text {
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.8;
}
.meaning-highlight { color: var(--accent); font-weight: 600; }

/* --- SECTIONS --- */
.section {
    padding: 80px 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.separator {
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    margin: 0 auto 20px auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    padding: 50px 30px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.03);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    
    /* Animation setup */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s, transform 0.3s;
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 25px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.card p {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
}

/* --- TEAM SECTION --- */
.team-card {
    text-align: center;
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 4px;
    transition: 0.4s;
    opacity: 0;
    transform: translateY(30px);
}

.team-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.team-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 25px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent);
}

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

.team-card h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.team-title {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.team-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
}

.team-social a {
    color: var(--primary);
    font-size: 1.2rem;
    transition: 0.3s;
}

.team-social a:hover {
    color: var(--accent);
}

/* --- HISTORY TIMELINE --- */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--accent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-container.left {
    left: 0;
    text-align: right;
}

.timeline-container.right {
    left: 50%;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 3px solid var(--primary);
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--white);
    border: 4px solid var(--accent);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-container.right::after {
    left: -10px;
}

.timeline-date {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.timeline-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary);
}

/* --- CONTACT SECTION --- */
.contact-section {
    background-color: var(--secondary);
    color: var(--white);
    padding: 90px 5%;
    text-align: center;
    background-image: linear-gradient(rgba(29, 40, 37, 0.9), rgba(29, 40, 37, 0.9)), url("https://www.transparenttextures.com/patterns/cubes.png");
}

.form-box {
    max-width: 500px;
    margin: 50px auto 0 auto;
    text-align: left;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

input, textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid transparent;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    transition: 0.3s;
}

input::placeholder, textarea::placeholder {
    color: rgba(255,255,255,0.5);
}

input:focus, textarea:focus {
    outline: none;
    background: rgba(255,255,255,0.15);
    border-color: var(--accent);
}

button[type="submit"] {
    width: 100%;
    padding: 18px;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

button[type="submit"]:hover {
    background-color: var(--white);
    color: var(--secondary);
    transform: translateY(-2px);
}

/* --- FOOTER --- */
footer {
    background: #111;
    color: #777;
    padding: 50px 5%;
    text-align: center;
    font-size: 0.9rem;
    border-top: 3px solid var(--primary);
    margin-top: auto;
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    color: var(--white);
    font-size: 1.2rem;
    margin: 0 10px;
    transition: 0.3s;
}

.social-links a:hover { color: var(--accent); }

/* --- INLINE STYLE REPLACEMENTS --- */
.btn-inline {
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

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

.mt-50 {
    margin-top: 50px;
}

.text-muted {
    color: #555;
}

/* About page "Who We Are" section */
.about-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.about-heading {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-separator {
    margin: 0 0 20px 0;
}

.about-text {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-image {
    max-width: 100%;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

/* Contact page styles */
.contact-grid {
    grid-template-columns: 1fr 1fr;
}

.contact-heading {
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-intro {
    margin-bottom: 30px;
    color: #555;
}

.contact-detail {
    margin-bottom: 20px;
}

.contact-detail h3 {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 5px;
}

.contact-detail h3 i {
    color: var(--accent);
    width: 30px;
}

.contact-detail p {
    margin-left: 35px;
    color: #555;
    word-break: break-all;
}

.contact-detail a {
    color: var(--primary); /* Deep Emerald */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.contact-detail a:hover {
    color: var(--accent); /* Muted Gold */
}

.contact-form-box {
    margin-top: 0;
}

.contact-form input,
.contact-form textarea {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid #ddd;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
}

/* Services CTA */
.services-cta-subtitle {
    margin: 20px 0 30px 0;
    color: rgba(255,255,255,0.8);
}

/* Section background variants */
.section-white {
    background-color: var(--white);
}

/* Form labels (accessibility) */
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--secondary);
}

.contact-form .form-group label {
    color: var(--secondary);
}

/* Honeypot spam protection */
.form-hidden {
    position: absolute;
    left: -9999px;
    overflow: hidden;
    height: 0;
}

/* --- BACK TO TOP BUTTON --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.8rem; }
    
    .hamburger { display: block; }
    
    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        background: var(--white);
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 30px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links a {
        padding: 10px 0;
        display: block;
    }

    .hero { background-attachment: scroll; /* Disable parallax on mobile for performance */ }

    /* Timeline Mobile */
    .timeline::after {
        left: 31px;
    }
    
    .timeline-container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-container.left {
        text-align: left;
    }
    
    .timeline-container::after {
        left: 21px; /* Align dot with the vertical line */
    }
    
    .timeline-container.right {
        left: 0;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
