/* ==========================================================================
   A Plus Learning Centre - Core Stylesheet (style.css)
   ========================================================================== */

/* Google Fonts Import: Lora (Headings) + Roboto (Body) */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Roboto:wght@300;400;500;600;700&display=swap');

/* CSS Variables for Premium Brand Guidelines */
:root {
    --primary-green: #004631;
    --primary-green-rgb: 0, 70, 49;
    --accent-yellow: #FFDE59;
    --accent-yellow-rgb: 255, 222, 89;
    --bg-white: #FFFFFF;
    --text-black: #000000;
    --text-dark: #121212;
    --text-muted: #4A4A4A;
    --bg-light: #F8FAF8;
    --bg-green-light: rgba(0, 70, 49, 0.04);
    
    /* Typography — Lora for headings, Roboto for body */
    --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
    --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 70, 49, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 70, 49, 0.08), 0 4px 6px -2px rgba(0, 70, 49, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0, 70, 49, 0.12), 0 10px 10px -5px rgba(0, 70, 49, 0.04);
    --shadow-premium: 0 30px 60px -15px rgba(0, 70, 49, 0.25);
    
    /* Border Radius */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-muted);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 400;
}

/* Headings use Lora for premium editorial feel */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-black);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

ul {
    list-style: none;
}

button, input, select, textarea {
    font-family: var(--font-body);
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

p {
    font-family: var(--font-body);
    line-height: 1.75;
}

/* Base Layout Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Button & UI Accent Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-yellow);
    color: var(--primary-green);
    border-color: var(--accent-yellow);
}

.btn-primary:hover {
    background-color: var(--bg-white);
    color: var(--primary-green);
    border-color: var(--bg-white);
    box-shadow: 0 10px 20px -5px rgba(255, 222, 89, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--bg-white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--bg-white);
    transform: translateY(-2px);
}

.btn-outline-green {
    background-color: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-outline-green:hover {
    background-color: var(--primary-green);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 70, 49, 0.3);
}

/* Animations */
@keyframes float-slow {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes float-medium {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-3deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

.animate-float-medium {
    animation: float-medium 5s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Utilities */
.section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

@media (max-width: 768px) {
    .section-padding {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

.text-center { text-align: center; }
.text-white { color: var(--bg-white); }
.text-green { color: var(--primary-green); }
.text-yellow { color: var(--accent-yellow); }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #002c1f;
}
