/* --- Variables --- */
:root {
    --color-primary: #A04000;    /* Terracotta */
    --color-secondary: #F4B400;  /* Harvest Gold */
    --color-success: #2E7D32;    /* Green */
    --color-cream: #FFF8E1;
    --font-heading: 'Merriweather', serif;
    --font-body: 'Open Sans', sans-serif;
}

/* --- Global Typography & Overrides --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; 
}

body {
    font-family: var(--font-body);
    color: #333;
}

.font-head {
    font-family: var(--font-heading);
}

.bg-cream { background-color: var(--color-cream); }
.bg-black { background-color: #111; }
.bg-white-10 { background-color: rgba(255,255,255,0.1); }
.text-white-90 { color: rgba(255,255,255,0.9); }

/* --- Colors & Buttons --- */
.text-primary-custom { color: var(--color-primary) !important; }
.text-success-custom { color: var(--color-success) !important; }
.text-gold { color: var(--color-secondary) !important; }

.btn-primary-custom {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transition: all 0.3s;
}
.btn-primary-custom:hover {
    background-color: #803000;
    border-color: #803000;
    transform: translateY(-2px);
}

.btn-gold {
    background-color: var(--color-secondary);
    color: #000;
    border: none;
    transition: all 0.3s;
}
.btn-gold:hover {
    background-color: #d49b00;
    transform: translateY(-2px);
}

.ls-2 { letter-spacing: 2px; }
.hover-gold:hover { color: var(--color-secondary) !important; transition: 0.3s; }

/* --- Navbar --- */
.navbar { transition: all 0.3s; }
.navbar-brand { font-size: 1.4rem; }
.nav-link { font-weight: 600; color: #444 !important; transition: 0.3s; }
.nav-link.active, .nav-link:hover { color: var(--color-primary) !important; }

/* --- Hero Carousel --- */
.carousel-item {
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    bottom: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* --- Principle & Team Cards --- */
.principle-card, .team-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--color-secondary) !important;
}

.team-card {
    border-radius: 15px;
    border-bottom: 4px solid transparent;
}

.shadow-hover:hover, .team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(160, 64, 0, 0.15) !important;
}

.team-card:hover {
    border-bottom: 4px solid var(--color-primary);
}

/* Icons and Images */
.icon-circle {
    width: 70px; height: 70px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.icon-square {
    width: 50px; height: 50px;
    border-radius: 8px; 
}

.img-wrapper {
    width: 120px; height: 120px;
    position: relative;
}

.border-gold {
    border: 3px solid var(--color-secondary);
    padding: 3px;
    background-color: #fff;
}

/* --- Animations --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-down { animation: fadeDown 1s ease forwards; }
.animate-fade-up { animation: fadeUp 1s ease forwards; opacity: 0; }
.delay-100 { animation-delay: 0.1s; transition-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; transition-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; transition-delay: 0.4s; }

/* --- Floating Action Button (Message) --- */
.btn-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    background-color: var(--color-secondary);
    color: #333;
    border-radius: 50px;
    padding: 15px 25px; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
    animation: pulse 2s infinite;
}

.btn-fab:hover {
    background-color: #e0a800;
    transform: scale(1.05);
    color: #000;
    animation: none;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(244, 180, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(244, 180, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 180, 0, 0); }
}

/* Responsive */
@media (max-width: 768px) {
    .btn-fab { width: 60px; height: 60px; padding: 0; border-radius: 50%; }
    .carousel-caption h1 { font-size: 2.5rem; }
    .hero-overlay { background: rgba(0,0,0,0.5); }
}