/* ============================================
   Radicon School - Custom Styles
   ============================================ */

/* Font Imports Backup */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700;800&display=swap');

/* ============================================
   VARIABLES & COLOR DEFINITIONS
   ============================================ */

:root {
    --primary-50: #f0f5fb;
    --primary-100: #e0eaf6;
    --primary-200: #c1d5ed;
    --primary-300: #a2c0e5;
    --primary-400: #83abdc;
    --primary-500: #6496d3;
    --primary-600: #1B3A5C;
    --primary-700: #16324f;
    --primary-800: #112a42;
    --primary-900: #0c2235;

    --secondary-50: #fef5f0;
    --secondary-100: #fdeae0;
    --secondary-200: #fbd5c1;
    --secondary-300: #f9c0a2;
    --secondary-400: #f7ab83;
    --secondary-500: #f59664;
    --secondary-600: #E8722A;
    --secondary-700: #d96525;
    --secondary-800: #ca5820;
    --secondary-900: #bb4b1b;

    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(27, 58, 92, 0.05);
    --shadow-base: 0 1px 3px 0 rgba(27, 58, 92, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(27, 58, 92, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(27, 58, 92, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(27, 58, 92, 0.1);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #111827;
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
}

h3 {
    font-size: 1.875rem;
    font-weight: 600;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

h5 {
    font-size: 1.25rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: #4b5563;
    line-height: 1.75;
}

a {
    color: var(--secondary-600);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--secondary-700);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

@keyframes slideRight {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Animation utility classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

.animate-slide-down {
    animation: slideDown 0.6s ease-out;
}

.animate-slide-left {
    animation: slideLeft 0.6s ease-out;
}

.animate-slide-right {
    animation: slideRight 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease-out;
}

.animate-pulse-soft {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ============================================
   BUTTONS & FORMS
   ============================================ */

/* Primary Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    gap: 0.5rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--secondary-600);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--secondary-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--primary-600);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover:not(:disabled) {
    background-color: var(--secondary-50);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1f2937;
    font-size: 0.875rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-base);
    background-color: #ffffff;
    color: #111827;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--secondary-600);
    box-shadow: 0 0 0 3px rgba(232, 114, 42, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-error {
    display: block;
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-hint {
    display: block;
    color: #6b7280;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.form-success {
    padding: 0.75rem 1rem;
    background-color: #d1fae5;
    color: #065f46;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.form-error-message {
    padding: 0.75rem 1rem;
    background-color: #fee2e2;
    color: #991b1b;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.form-consent {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
    margin-top: 1rem;
}

/* ============================================
   NAVIGATION STYLES
   ============================================ */

/* Sticky Top Bar */
.sticky-top-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    background-color: var(--primary-600);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

/* Navigation Links */
nav a {
    color: #6b7280;
    font-weight: 500;
    transition: var(--transition-base);
}

nav a:hover {
    color: var(--secondary-600);
}

nav a.active {
    color: var(--secondary-600);
    border-bottom: 2px solid var(--secondary-600);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 30;
    padding-top: 80px;
}

.mobile-menu.open {
    display: block;
}

@media (max-width: 1024px) {
    .desktop-menu {
        display: none;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    padding: 6rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,100 600,300 T1200,300 L1200,600 L0,600 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 100% 100%;
    opacity: 0.5;
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   SECTION STYLES
   ============================================ */

.section {
    padding: 4rem 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    margin-bottom: 0.5rem;
}

.section-title p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-base);
    transition: var(--transition-base);
    border: 1px solid #f3f4f6;
}

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

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    background-color: #f3f4f6;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-600);
}

.card-text {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card-link {
    color: var(--secondary-600);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-base);
}

.card-link:hover {
    gap: 0.75rem;
}

/* ============================================
   GALLERY & LIGHTBOX
   ============================================ */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    cursor: pointer;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(27, 58, 92, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--secondary-600);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0.5rem;
}

.lightbox-close {
    position: absolute;
    top: -3rem;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition-base);
}

.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 0;
}

.lightbox-next {
    right: 0;
}

/* ============================================
   MODAL STYLES
   ============================================ */

.enquiry-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease-out;
}

.enquiry-modal-content {
    background-color: white;
    border-radius: 1rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease-out;
}

.enquiry-modal-header {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-600) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 1rem 1rem 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.enquiry-modal-form {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.enquiry-modal-form.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ============================================
   FLOATING BUTTONS
   ============================================ */

.floating-button {
    position: fixed;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 20;
    transition: var(--transition-base);
    border: none;
    color: white;
    font-size: 1.5rem;
}

.floating-button:hover {
    transform: scale(1.1);
}

.floating-enquiry {
    bottom: 2rem;
    right: 2rem;
    background-color: var(--secondary-600);
}

.floating-enquiry:hover {
    background-color: var(--secondary-700);
}

.floating-whatsapp {
    bottom: 2rem;
    left: 2rem;
    background-color: #25d366;
}

.floating-whatsapp:hover {
    background-color: #1faa51;
}

/* ============================================
   LOADING & SPINNERS
   ============================================ */

.spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(27, 58, 92, 0.1);
    border-top-color: var(--primary-600);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner-small {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 0.5rem;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    max-width: 400px;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideUp 0.3s ease-out;
    z-index: 50;
}

.toast.success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.toast.error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.toast.warning {
    background-color: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.toast.info {
    background-color: #dbeafe;
    color: #0c2340;
    border-left: 4px solid #3b82f6;
}

.toast-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
}

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition-base);
}

.toast-close:hover {
    opacity: 1;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-base);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate.fade {
    animation: fadeIn 0.6s ease-out forwards;
}

.scroll-animate.slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

.scroll-animate.slide-left {
    animation: slideLeft 0.6s ease-out forwards;
}

.scroll-animate.slide-right {
    animation: slideRight 0.6s ease-out forwards;
}

/* ============================================
   COUNTERS & STATS
   ============================================ */

.counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-600);
    font-family: 'Playfair Display', serif;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

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

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-600);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6b7280;
    font-size: 1rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 2rem 1rem;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .gallery-item {
        height: 200px;
    }

    .floating-button {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }

    .toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .counter {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .section {
        padding: 1.5rem 1rem;
    }

    .lightbox-close {
        top: -2rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    body {
        background: white;
    }

    .floating-button,
    .sticky-top-bar,
    nav,
    footer {
        display: none;
    }

    a {
        color: var(--primary-600);
    }
}

