/* Wroxton CE Primary School Theme */
/* Custom styles - no framework */

:root {
    --sky-light: #B4D8E7;
    --sky-dark: #2D7F82;
    --teal-deep: #267A7E;
    --navy-blue: #1A4971;
    --tree-green: #4A7C59;
    --grass-green: #3C8B6B;
    --orange-warm: #D96B2B;
    --yellow-bright: #F2C94C;
    --white-pure: #FFFFFF;
    --gray-soft: #F5F5F5;
    --text-dark: #333333;
    --text-blue: #2A6496;
    --link-orange: #C65D24;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.65;
    color: var(--text-dark);
    background: var(--sky-dark);
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Courgette', cursive;
    color: var(--navy-blue);
    font-weight: normal;
}

.school-title {
    font-family: 'Courgette', cursive;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--navy-blue);
    text-shadow: 1px 1px 2px rgba(255,255,255,0.3);
    margin-bottom: 0.3rem;
}

.school-motto {
    font-family: 'Courgette', cursive;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--orange-warm);
}

/* Hero section with illustrated header */
.site-hero {
    background: linear-gradient(180deg, var(--sky-light) 0%, #91C8D8 50%, var(--teal-deep) 100%);
    position: relative;
    overflow: hidden;
    min-height: 520px;
    padding-top: 1.5rem;
}

.site-hero.home-hero {
    min-height: 520px;
}

.hero-header {
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-illustration {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    height: 340px;
}

/* Navigation within illustration */
.main-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0;
    z-index: 20;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
    margin: 0 -8px;
}

.nav-child:hover {
    transform: translateY(-5px);
}

.child-figure {
    width: 70px;
    height: 100px;
}

.nav-sign {
    font-family: 'Courgette', cursive;
    font-size: 0.95rem;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    display: inline-block;
    margin-top: -25px;
    position: relative;
    z-index: 5;
}

.nav-sign.green { background: #4CAF50; color: white; }
.nav-sign.yellow { background: #FFD54F; color: #333; }
.nav-sign.blue { background: #42A5F5; color: white; }
.nav-sign.red { background: #E57373; color: white; }
.nav-sign.orange { background: #FF8A65; color: white; }

/* School badge/logo */
.school-badge {
    width: 70px;
    height: 70px;
    margin: 0.5rem auto;
}

/* Clouds decoration */
.cloud {
    position: absolute;
    background: white;
    border-radius: 50px;
    opacity: 0.9;
}

.cloud-1 { width: 120px; height: 40px; top: 15%; left: 5%; }
.cloud-2 { width: 100px; height: 35px; top: 8%; right: 10%; }
.cloud-3 { width: 80px; height: 30px; top: 25%; right: 3%; }

/* Page content area */
.content-wrapper {
    background: var(--teal-deep);
    padding: 2rem 1rem 3rem;
}

.content-card {
    background: var(--white-pure);
    max-width: 850px;
    margin: 0 auto;
    padding: 2rem 2.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-heading {
    font-family: 'Courgette', cursive;
    font-size: 1.8rem;
    color: var(--text-blue);
    margin-bottom: 0.5rem;
}

.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--text-blue);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--link-orange);
}

/* Content sections */
.section-title {
    font-family: 'Courgette', cursive;
    color: var(--text-blue);
    font-size: 1.4rem;
    text-align: center;
    margin: 1.5rem 0 1rem;
}

.intro-text {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.bible-verse {
    text-align: center;
    font-style: italic;
    font-size: 1.1rem;
    margin: 2rem 0;
    color: var(--text-dark);
}

/* Links styling */
a {
    color: var(--text-blue);
}

a:hover {
    color: var(--link-orange);
}

/* What's On sidebar */
.whats-on-board {
    background: var(--navy-blue);
    color: white;
    padding: 1rem 1.2rem;
    border-radius: 4px;
    max-width: 220px;
}

.whats-on-board h3 {
    color: white;
    text-transform: uppercase;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 1rem;
}

.event-item {
    margin-bottom: 0.8rem;
}

.event-date {
    color: #E57373;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
}

.event-title {
    font-size: 0.9rem;
}

/* Footer */
.site-footer {
    background: var(--teal-deep);
    padding: 1.5rem 1rem 2rem;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 2rem;
    align-items: start;
}

.search-box {
    display: flex;
    gap: 0;
}

.search-box input {
    padding: 0.5rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 3px 0 0 3px;
    font-size: 0.9rem;
    width: 180px;
}

.search-box button {
    background: var(--orange-warm);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
    font-size: 0.9rem;
}

.search-box button:hover {
    background: var(--link-orange);
}

.footer-info {
    color: white;
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-info a {
    color: #ADD8E6;
}

.visitor-count {
    color: white;
    font-family: 'Courgette', cursive;
    font-size: 1.1rem;
    text-align: right;
}

.login-btn {
    display: inline-block;
    background: white;
    color: var(--text-dark);
    padding: 0.4rem 1.2rem;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.login-btn:hover {
    background: var(--gray-soft);
    color: var(--text-dark);
}

.footer-bottom {
    max-width: 1000px;
    margin: 1rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
}

.footer-bottom a {
    color: #ADD8E6;
}

/* Social links */
.social-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    color: white;
    text-decoration: none;
    transition: background 0.2s;
}

.social-links a:hover {
    background: rgba(255,255,255,0.3);
}

/* Documents/Downloads list */
.documents-section {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--gray-soft);
    border-radius: 4px;
}

.documents-section h4 {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.doc-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    color: var(--text-blue);
    text-decoration: none;
    font-size: 0.9rem;
}

.doc-link:hover {
    color: var(--link-orange);
}

.doc-icon {
    width: 20px;
    height: 20px;
    fill: #E74C3C;
}

/* External links section */
.links-section h4 {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    margin: 1.5rem 0 0.5rem;
}

.ext-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
}

.link-icon {
    width: 18px;
    height: 18px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .site-hero {
        min-height: 350px;
    }
    
    .hero-illustration {
        height: 280px;
    }
    
    .main-nav {
        gap: 0;
    }
    
    .nav-child {
        margin: 0 -12px;
    }
    
    .child-figure {
        width: 55px;
        height: 80px;
    }
    
    .nav-sign {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .visitor-count {
        text-align: center;
    }
    
    .search-box {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .school-title {
        font-size: 1.5rem;
    }
    
    .school-motto {
        font-size: 0.9rem;
    }
    
    .nav-child {
        margin: 0 -15px;
    }
    
    .child-figure {
        width: 45px;
        height: 65px;
    }
    
    .nav-sign {
        font-size: 0.7rem;
    }
}

/* Dropdown Navigation */
.main-nav {
    position: relative;
    z-index: 100;
}

.nav-child {
    position: relative;
    cursor: pointer;
    padding-bottom: 10px;
}

.nav-sign::after {
    content: "";
}

.nav-dropdown {
    display: none;
}

/* Horizontal Menu Bar */
.menu-bar {
    background: #1A4971;
    padding: 0;
    position: relative;
    z-index: 200;
}

.menu-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-bar > ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.menu-bar > ul > li {
    position: relative;
    list-style: none;
}

.menu-bar > ul > li > a {
    display: block;
    padding: 0.9rem 1.3rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.menu-bar > ul > li > a:hover,
.menu-bar > ul > li:hover > a {
    background: #2A6496;
}

.menu-bar > ul > li > a::after {
    content: " ▾";
    font-size: 0.7em;
    opacity: 0.7;
}

.menu-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-radius: 0 0 4px 4px;
    z-index: 300;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-bar > ul > li:hover .menu-submenu {
    display: block;
}

.menu-submenu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-submenu a {
    display: block;
    padding: 0.7rem 1.2rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.menu-submenu li:last-child a {
    border-bottom: none;
}

.menu-submenu a:hover {
    background: #f0f7ff;
    color: #1A4971;
}

@media (max-width: 600px) {
    .menu-bar > ul {
        flex-direction: column;
        align-items: stretch;
    }
    
    .menu-bar > ul > li > a {
        text-align: center;
        padding: 0.7rem 1rem;
    }
    
    .menu-submenu {
        position: static;
        box-shadow: none;
        background: #2A6496;
    }
    
    .menu-submenu a {
        color: white;
        border-bottom-color: rgba(255,255,255,0.1);
        padding-left: 2rem;
    }
    
    .menu-submenu a:hover {
        background: #3A7AB6;
        color: white;
    }
}

/* Blogroll / News section */
.blogroll {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

.blogroll-title {
    font-family: 'Courgette', cursive;
    color: white;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Blog post article styles */
.intro-text h3 {
    color: var(--blue-dark);
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-family: 'Courgette', cursive;
}

.intro-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.news-item {
    background: var(--white-pure);
    border-radius: 4px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-item-date {
    font-size: 0.8rem;
    color: #C65D24;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.news-item-title {
    font-family: 'Courgette', cursive;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.news-item-title a {
    color: var(--text-blue);
    text-decoration: none;
}

.news-item-title a:hover {
    color: var(--link-orange);
}

.news-item-excerpt {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 1rem;
}

.news-item-excerpt a {
    color: var(--text-blue);
}

.news-item-excerpt a:hover {
    color: var(--link-orange);
}

.read-more {
    display: inline-block;
    color: var(--link-orange);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Homepage specific styles */
.home-hero {
    position: relative;
}

/* Video embed */
.video-embed {
    margin: 1.5rem 0;
    text-align: center;
}

.video-embed iframe {
    max-width: 100%;
    border-radius: 4px;
}

/* Uniform list styling */
.uniform-list {
    margin: 1rem 0;
}

.uniform-list dt {
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 1rem;
}

.uniform-list dd {
    margin-left: 1.5rem;
    line-height: 1.8;
}

/* Calendar placeholder */
.calendar-notice {
    background: var(--gray-soft);
    padding: 1.5rem;
    border-radius: 4px;
    text-align: center;
    margin: 1rem 0;
}

/* Contact info styling */
.contact-block {
    margin: 1rem 0;
}

.contact-block strong {
    color: var(--link-orange);
}

.address-block {
    margin: 1rem 0;
    line-height: 1.8;
}

/* Image styling */
.content-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}

/* Archive notice banner */
.archive-notice {
    background: linear-gradient(135deg, #1A4971 0%, #2A6496 100%);
    color: white;
    padding: 1rem 1.5rem;
    text-align: center;
    position: relative;
    z-index: 100;
    border-bottom: 3px solid #F4D03F;
}

.archive-notice p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.archive-notice strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.archive-notice a {
    color: #F4D03F;
    font-weight: 600;
    text-decoration: underline;
}

.archive-notice a:hover {
    color: #FFF;
}

.archive-notice .notice-icon {
    display: inline-block;
    margin-right: 0.5rem;
    vertical-align: middle;
}

@media screen and (max-width: 600px) {
    .archive-notice {
        padding: 0.8rem 1rem;
    }
    
    .archive-notice p {
        font-size: 0.85rem;
    }
    
    .archive-notice strong {
        font-size: 1rem;
    }
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--navy-blue);
    color: white;
    padding: 0.5rem 1rem;
    z-index: 100;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* Cookie notice */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navy-blue);
    color: white;
    padding: 1rem;
    display: none;
    z-index: 1000;
}

.cookie-banner.visible {
    display: block;
}

.cookie-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    font-size: 0.9rem;
}

.cookie-btn {
    background: var(--orange-warm);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
}

.cookie-btn:hover {
    background: var(--link-orange);
}

.cookie-btn.secondary {
    background: transparent;
    border: 1px solid white;
}

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