/*
Theme Name: Skooli
Theme URI: https://skooli.africa
Author: Skooli Team
Author URI: https://skooli.africa
Description: A professional education logistics WordPress theme for Skooli - transforming education logistics across Africa through ethical, efficient, and faithful service delivery.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: skooli
Tags: education, business, custom-colors, custom-menu, editor-style, featured-images, full-width-template, theme-options, threaded-comments, translation-ready
*/

/* ============================================
   CSS CUSTOM PROPERTIES (COLOR SCHEME)
   ============================================ */

:root {
    /* Skooli core color palette */
    /* Emerald Green - primary brand color */
    --primary: #009B77;
    --primary-foreground: #FFFFFF;

    /* Gold - accent color */
    --accent: #E6C200;
    --accent-foreground: #002617;

    /* Skooli Cream - background */
    --background: #FCE6AE;
    --card: #FFFFFF;

    /* Neutral */
    --foreground: #002617;
    --card-foreground: var(--foreground);

    --popover: #FFFFFF;
    --popover-foreground: var(--foreground);

    --secondary: var(--accent);
    --secondary-foreground: var(--accent-foreground);

    --muted: #FFF7EB;
    --muted-foreground: var(--foreground);

    --destructive: #E53E3E;
    --destructive-foreground: #FFFFFF;

    --border: rgba(0, 0, 0, 0.06);
    --input: #FFFFFF;
    --ring: rgba(0, 155, 119, 0.15);

    --radius: 0.625rem;
}

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

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

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--background);
    color: var(--foreground);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 200ms ease-in-out;
}

a:hover {
    opacity: 0.8;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 5rem 1rem;
}

@media (min-width: 768px) {
    .section {
        padding: 6rem 1.5rem;
    }
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 200ms ease-in-out;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

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

.card {
    background-color: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 200ms ease-in-out;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* ============================================
   RESPONSIVE GRID
   ============================================ */

.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {

    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   UTILITIES
   ============================================ */

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

.text-balance {
    text-wrap: balance;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.bg-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.bg-white {
    background-color: #FFFFFF;
}

.text-muted {
    color: var(--muted-foreground);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.sr-only {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (max-width: 768px) {

    input,
    select {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.custom-logo-link img,
.custom-logo {
    height: 2.5rem !important;
    width: auto !important;
    max-height: 2.5rem !important;
}

.main-navigation {
    display: none;
}

@media (min-width: 768px) {
    .main-navigation {
        display: flex !important;
    }
}