/* ========================================
   PARK COMMUNITY SCHOOL - MAIN STYLESHEET
   Foundation 6 - Updated December 2025
   ======================================== */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    /* Brand Colors */
    --school-green: #a3cd42;
    --school-green-dark: #8fb332;
    --learning-orange: #F58220;
    --parent-blue: #1E7AB9;
    --misc-pink: #EE3A80;
    
    /* UI Colors */
    --text-dark: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-dark: #333333;
    --border-light: #e0e0e0;
    --border-lighter: #f0f0f0;
    
    /* Functional Colors */
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    
    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    
    /* Gradients */
    --gradient-green: linear-gradient(135deg, #a3cd42, #8fb332);
    --gradient-orange: linear-gradient(135deg, #F58220, #e07520);
    --gradient-blue: linear-gradient(135deg, #1E7AB9, #4a9fd4);
    --gradient-pink: linear-gradient(135deg, #EE3A80, #d42e6b);
}

/* ========================================
   FONTS
   ======================================== */


/* ========================================
   BASE STYLES
   ======================================== */
*,
*:before,
*:after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    font-family: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    color: var(--text-dark);
    line-height: 1.6;
}

body * {
    font-family: 'Inter', 'Open Sans', sans-serif;
}

a {
    color: var(--school-green);
    transition: var(--transition);
}

a:hover {
    color: var(--school-green-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Open Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
    color: var(--text-dark);
    line-height: 1.3;
}

/* ========================================
   LAYOUT COMPONENTS
   ======================================== */

/* Main Content Section */
.main-content {
    padding: 3rem 0;
    background: var(--bg-light);
}

.main-content.white-bg {
    background: var(--bg-white);
}

/* Content Area */
.content-area {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-lighter);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-title.green { color: var(--school-green); }
.section-title.orange { color: var(--learning-orange); }
.section-title.blue { color: var(--parent-blue); }
.section-title.pink { color: var(--misc-pink); }

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   CARD COMPONENTS
   ======================================== */

/* Standard Card */
.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    border: 1px solid var(--border-lighter);
}

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

.card h3, .card h4 {
    color: var(--parent-blue);
    border-bottom: 2px solid var(--border-lighter);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Info Card */
.info-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-lighter);
    text-align: center;
    transition: var(--transition);
}

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

/* Feature Card */
.feature-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-lighter);
    height: 100%;
}

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

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--school-green);
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ========================================
   GRID LAYOUTS
   ======================================== */

/* Generic Grid */
.grid {
    display: grid;
    gap: 1.5rem;
}

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

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Resource Grid */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

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

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

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-green {
    background: var(--school-green);
    color: white;
}

.btn-green:hover {
    background: var(--school-green-dark);
    color: white;
}

.btn-orange {
    background: var(--learning-orange);
    color: white;
}

.btn-orange:hover {
    background: #e07520;
    color: white;
}

.btn-blue {
    background: var(--parent-blue);
    color: white;
}

.btn-blue:hover {
    background: #1a6a9e;
    color: white;
}

.btn-pink {
    background: var(--misc-pink);
    color: white;
}

.btn-pink:hover {
    background: #d42e6b;
    color: white;
}

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

.btn-outline:hover {
    background: var(--school-green);
    color: white;
}

/* Button with icon */
.btn i {
    margin-right: 0.5rem;
}

/* ========================================
   HERO SECTIONS
   ======================================== */

.hero-section {
    padding: 3rem 0;
    color: white;
    text-align: center;
}

.hero-section.green { background: var(--gradient-green); }
.hero-section.orange { background: var(--gradient-orange); }
.hero-section.blue { background: var(--gradient-blue); }
.hero-section.pink { background: var(--gradient-pink); }

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   BANNERS & ALERTS
   ======================================== */

.alert-banner {
    padding: 1rem 0;
    text-align: center;
    font-weight: 600;
}

.alert-banner.danger {
    background: var(--danger);
    color: white;
}

.alert-banner.warning {
    background: var(--warning);
    color: var(--text-dark);
}

.alert-banner.info {
    background: var(--info);
    color: white;
}

.alert-banner.success {
    background: var(--success);
    color: white;
}

.alert-banner i {
    margin-right: 0.5rem;
}

/* ========================================
   SIDEBAR
   ======================================== */

.sidebar {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-lighter);
}

.sidebar.sticky {
    position: sticky;
    top: 2rem;
}

.sidebar h4 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: var(--parent-blue);
}

.sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.sidebar-nav a:hover {
    background: var(--bg-light);
    color: var(--school-green);
}

.sidebar-nav a.active {
    background: var(--school-green);
    color: white;
}

/* ========================================
   TABLES
   ======================================== */

.styled-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.styled-table th {
    background: var(--school-green);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.styled-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.styled-table tr:last-child td {
    border-bottom: none;
}

.styled-table tr:hover {
    background: var(--bg-light);
}

/* ========================================
   FORMS
   ======================================== */

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--school-green);
    box-shadow: 0 0 0 3px rgba(163, 205, 66, 0.2);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Font weights */
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-normal { font-weight: 400; }

/* Text colors */
.text-green { color: var(--school-green); }
.text-orange { color: var(--learning-orange); }
.text-blue { color: var(--parent-blue); }
.text-pink { color: var(--misc-pink); }
.text-muted { color: var(--text-muted); }

/* Background colors */
.bg-light { background: var(--bg-light); }
.bg-white { background: var(--bg-white); }
.bg-dark { background: var(--bg-dark); color: white; }

/* Spacing */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }

/* Display */
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

/* Flexbox utilities */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Borders */
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }

/* Shadows */
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ========================================
   NAVIGATION (Foundation 6)
   ======================================== */

.title-bar {
    background-color: var(--bg-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar {
    background-color: var(--bg-dark);
    padding: 15px 0;
}

.top-bar ul {
    background-color: var(--bg-dark);
}

.top-bar a {
    color: #ffffff;
    padding: 0.7rem 1rem;
}

.top-bar a:hover {
    color: var(--school-green);
}

.top-bar img {
    height: 60px;
    width: auto;
    margin-right: 20px;
}

.dropdown.menu > li > a {
    padding: 0.7rem 1rem;
    font-size: 1rem;
}

.dropdown.menu > li.is-dropdown-submenu-parent > a::after {
    display: none;
}

.dropdown.menu .is-dropdown-submenu {
    background-color: var(--bg-dark);
    border: none;
}

.dropdown.menu .is-dropdown-submenu a {
    color: #ffffff;
    padding: 0.7rem 1rem;
}

.dropdown.menu .is-dropdown-submenu a:hover {
    background-color: #444444;
    color: var(--school-green);
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background-color: var(--bg-dark);
    color: #ffffff;
    padding: 60px 0 30px;
}

footer a {
    color: #ffffff;
}

footer a:hover {
    color: var(--school-green);
}

.main-logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 25px;
}

.main-logos-container .main-logo {
    max-height: 80px;
    width: auto;
}

.footer-logos-section {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 40px;
    padding-top: 40px;
}

.footer-logos-title {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #ffffff;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.logo-container img {
    max-height: 80px;
    max-width: 120px;
    width: auto;
    height: auto;
}

.logo-container iframe {
    height: 100px;
    width: 100px;
}

.social-links {
    margin: 30px 0;
    text-align: center;
}

.social-links a {
    font-size: 1.5rem;
    margin: 0 10px;
    display: inline-block;
    color: #ffffff;
}

.social-links a:hover {
    color: var(--school-green);
}

.footer-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-links a {
    margin: 0 15px;
}

.footer-links .divider {
    color: rgba(255, 255, 255, 0.3);
}

.cookie-pref-btn {
    background: none;
    border: none;
    text-decoration: underline;
    color: #cccccc;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 10px;
}

.cookie-pref-btn:hover {
    color: #ffffff;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-dark);
    color: #ffffff;
    padding: 15px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.cookie-banner a {
    color: var(--school-green);
}

/* ========================================
   TEAM MEMBERS
   ======================================== */

.team-member-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-lighter);
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.team-member-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--school-green);
}

.team-member-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.team-member-card .role {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Legacy team member styling */
.team-member-container {
    text-align: center;
}

.team-member-container .team-member {
    border-radius: 50%;
    display: block;
    width: 150px;
    height: 150px;
    margin: 0 auto 0.5rem;
    object-fit: cover;
    border: 4px solid var(--school-green);
}

.team-member-container p {
    margin-top: 5px;
}

/* ========================================
   MISCELLANEOUS
   ======================================== */

/* Notification bar */
section.page-notification {
    background-color: var(--school-green);
    text-align: center;
}

section.page-notification p {
    margin: 0;
    padding: 2px;
    color: white;
}

/* Tick and Cross marks */
.cross-mark {
    color: var(--danger);
    font-size: 18px;
}

.tick-mark {
    color: var(--success);
    font-size: 18px;
}

/* Borders */
.border-grey-radius {
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Fixed size elements */
.fixed-size-100 {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    max-width: 100px;
    max-height: 100px;
}

/* HR Logo */
.hr-logo {
    position: relative;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Mobile (up to 767px) */
@media screen and (max-width: 767px) {
    .main-content {
        padding: 2rem 0;
    }
    
    .content-area {
        padding: 1.5rem;
        border-radius: var(--radius);
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Grids collapse to single column or two columns */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .resource-grid {
        grid-template-columns: 1fr;
    }
    
    /* Cards */
    .card, .info-card, .feature-card {
        padding: 1.25rem;
    }
    
    /* Team members */
    .team-member-card img {
        width: 80px;
        height: 80px;
    }
    
    .team-member-container .team-member {
        width: 100px;
        height: 100px;
    }
    
    /* Sidebar */
    .sidebar {
        margin-top: 2rem;
        position: static;
    }
    
    /* Fixed size elements */
    .fixed-size-100 {
        width: 80px;
        height: 80px;
        min-width: 80px;
        min-height: 80px;
        max-width: 80px;
        max-height: 80px;
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Hide on mobile */
    .hide-on-mobile {
        display: none !important;
    }
    
    .text-center-mobile {
        text-align: center !important;
    }
}

/* Tablet (768px to 1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-member-container .team-member {
        width: 120px;
        height: 120px;
    }
}

/* Desktop (1024px and up) */
@media screen and (min-width: 1024px) {
    .hide-on-desktop {
        display: none !important;
    }
}

/* ========================================
   DESKTOP DROPDOWN STYLES
   ======================================== */
@media screen and (min-width: 640px) {
    .dropdown.menu .submenu {
        display: none;
        position: absolute;
        background-color: var(--bg-dark);
        min-width: 200px;
        list-style: none;
        margin: 0;
        padding: 0;
        z-index: 100;
        top: 100%;
        left: 0;
    }
    
    .dropdown.menu .has-submenu:hover > .submenu {
        display: block;
    }
    
    .dropdown.menu .submenu li {
        list-style: none;
    }
    
    .dropdown.menu .submenu li a {
        display: block;
        padding: 0.7rem 1rem;
        color: #ffffff;
        white-space: nowrap;
    }
    
    .dropdown.menu .submenu li a:hover {
        background-color: #444;
        color: var(--school-green);
    }
    
    .dropdown.menu .has-submenu {
        position: relative;
    }
    
    .dropdown.menu .has-submenu > .parent-link {
        display: flex;
        align-items: center;
    }
    
    .dropdown.menu .has-submenu > .parent-link::after {
        content: '';
        display: inline-block;
        width: 0;
        height: 0;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 5px solid #ffffff;
        margin-left: 8px;
        position: static;
        transform: none;
    }
    
    .dropdown.menu .has-submenu:hover > .parent-link::after {
        border-top-color: var(--school-green);
    }
}

/* ========================================
   MOBILE DROPDOWN STYLES
   ======================================== */
@media screen and (max-width: 639px) {
    .dropdown.menu {
        flex-direction: column;
        width: 100%;
    }
    
    .dropdown.menu > li {
        width: 100%;
        list-style: none;
    }
    
    .dropdown.menu > li > a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #444;
        color: #ffffff;
    }
    
    .dropdown.menu .submenu {
        display: none;
        list-style: none;
        margin: 0;
        padding: 0;
        background-color: #2a2a2a;
        position: static !important;
        width: 100% !important;
    }
    
    .dropdown.menu .has-submenu.is-open > .submenu {
        display: block;
    }
    
    .dropdown.menu .submenu li {
        list-style: none;
    }
    
    .dropdown.menu .submenu li a {
        display: block;
        padding: 0.8rem 1rem 0.8rem 2rem;
        color: #ffffff;
        border-bottom: 1px solid #3a3a3a;
        border-left: 3px solid var(--school-green);
    }
    
    .dropdown.menu .submenu li a:hover {
        background-color: #444;
        color: var(--school-green);
    }
    
    .dropdown.menu .has-submenu > .parent-link {
        position: relative;
        display: block;
    }
    
    .dropdown.menu .has-submenu > .parent-link::after {
        content: '+' !important;
        display: block !important;
        width: auto !important;
        height: auto !important;
        border: none !important;
        position: absolute !important;
        right: 1rem !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 1.2rem !important;
        font-weight: bold !important;
        color: var(--school-green) !important;
        margin-left: 0 !important;
    }
    
    .dropdown.menu .has-submenu.is-open > .parent-link {
        background-color: var(--school-green);
        color: var(--bg-dark);
    }
    
    .dropdown.menu .has-submenu.is-open > .parent-link::after {
        content: '-' !important;
        color: var(--bg-dark) !important;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .top-bar,
    .title-bar,
    footer,
    .cookie-banner,
    .btn,
    .social-links {
        display: none !important;
    }
    
    .main-content {
        padding: 0;
    }
    
    .card, .content-area {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}