/* ================================================
   BR PUBLIC SCHOOL - MAIN STYLESHEET
   Inspired by Excellence-Showcase Design
   ================================================ */

/* ============ CSS VARIABLES ============ */
:root {
    /* Navy palette – richer, deeper */
    --primary-dark: #0f1a2e;
    --primary: #162d50;
    --primary-light: #1e3a5f;
    --primary-lighter: #eef2f7;

    /* Gold palette – warmer */
    --secondary: #c5a059;
    --secondary-light: #d4b87a;
    --secondary-dark: #a8872e;
    --gold: #c5a059;
    --gold-dark: #a8872e;
    --gold-light: #d4b87a;

    --white: #ffffff;
    --surface: #f5f7fa;

    /* Neutrals */
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #2d3436;
    --gray-900: #1a1a2e;

    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows – layered system from excellence-showcase */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 0 0 1px rgba(0,0,0,0.03), 0 2px 4px rgba(0,0,0,0.05), 0 12px 24px -4px rgba(0,0,0,0.08);
    --shadow-lg: 0 0 0 1px rgba(0,0,0,0.03), 0 4px 8px rgba(0,0,0,0.08), 0 20px 32px -4px rgba(0,0,0,0.12);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);

    /* Radii – tighter, more refined */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.625rem;
    --radius-full: 50%;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);

    --container-max: 1280px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--surface);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

/* ============ SECTION HEADERS ============ */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-divider {
    width: 64px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto;
    border-radius: 1px;
    position: relative;
}

.section-divider::before,
.section-divider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 10px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.section-divider::before {
    left: -16px;
}

.section-divider::after {
    right: -16px;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gold);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(197,160,89,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(197,160,89,0.4);
    filter: brightness(1.08);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.35);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}

.btn-white {
    background: var(--white);
    color: var(--primary-dark);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
}

/* ============ GOLD GRADIENT TEXT ============ */
.text-gold-gradient {
    background: linear-gradient(135deg, #c5a059, #d4b87a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}