/*
 * Lingfield Primary School Custom Styles
 * Purple: #522E6C (primary)
 * Lime Green: #AACD41 (accent)
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* ====================
   CSS Variables
==================== */
:root {
    --lingfield-purple: #522E6C;
    --lingfield-purple-dark: #3d1f4f;
    --lingfield-green: #AACD41;
    --lingfield-text-dark: #333333;
    --lingfield-text-light: #666666;
    --font-main: 'Poppins', sans-serif;
}

/* ====================
   Global Styles
==================== */
body {
    font-family: var(--font-main);
    font-weight: 400;
    line-height: 1.6;
    color: var(--lingfield-text-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
}

h2 {
    font-size: 2rem;
    color: var(--lingfield-purple);
}

h3 {
    font-size: 1.5rem;
    color: var(--lingfield-purple);
}

h5 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--lingfield-purple);
}

/* ====================
   Info Bar
==================== */
.value-image {
    cursor:pointer;
}
.value-image:hover {
    opacity:0.8;
}
.values-box {
    display:none;
    background-color:var(--lingfield-purple);
    border-radius:18px;
    border-width:0px;
}
.values-box * {
    color:white !important;
}
.values-box p {
    font-weight:600;
}

.info-bar {
    background-color: var(--lingfield-purple);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
}

.info-bar a {
    color: white;
    text-decoration: none;
}

.info-bar a:hover {
    color: var(--lingfield-green);
}

.info-bar p {
    margin: 0;
}

/* ====================
   Header - Static & Transparent
==================== */
.home-header {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 700px;
}

.home-header.backstretch {
    background: transparent;
    overflow:hidden;
}

.subpage-header {
    position: relative;
    background-color: var(--lingfield-purple);
    min-height: 420px;
    background-image:url(../img/sub-page-header-image.webp);
}


.home-header .text-area,
.subpage-header .text-area {
    position: relative;
    z-index: 10;
    padding: 20px 0;
}

.iron-logo {
    max-height: 150px;
    width: auto;
    padding-left:10px;
}

.top-bar {
    background: transparent;
}

.top-bar .button {
    background-color: var(--lingfield-purple);
    color: white;
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}

.top-bar .button:hover {
    background-color: var(--lingfield-green);
}

.top-bar .menu a {
    color: white;
    font-weight: 600;
    padding: 15px 20px;
} 
.menu .active>a {
    background: #853a75;
    color: #fefefe;
}

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

.hero-title-wrapper {
    padding: 100px 0 60px;
}

.hero-title-wrapper h1 {
    color: white;
    font-size: 3rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.subpage-header h1 {
    color: white;
    font-size: 2.5rem;
    padding: 60px 0 40px;
}

/* ====================
   Off-Canvas Menu
==================== */
.off-canvas {
    background-color: var(--lingfield-purple);
}

.side-logo {
    max-width: 200px;
    margin: 20px auto;
    display: block;
}

.off-canvas .menu a {
    color: white;
    padding: 15px 20px;
    font-weight: 600;
}

.off-canvas .menu a:hover {
    color: var(--lingfield-green);
    background-color: rgba(255,255,255,0.1);
}

/* ====================
   Hero Section with Trees
==================== */
.header-swoosh {
    position:absolute;
    bottom:0;
    width:100%;
    z-index: 10;
}
.hero-section {
    position: relative;
    min-height: 200px;
    z-index: 5;
    margin-top: 4rem;
}

.hero-tree {
    position: absolute;
    top: 0;
    width: 320px;
    height: auto;
    z-index: 6;
}

.hero-tree-left {
    left: -100px;
}

.hero-tree-right {
    right: -100px;
}

.hero-tagline-overlay {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 7;
    max-width: 600px;
    width: 90%;
}

.hero-tagline-overlay img {
    width: 100%;
    height: auto;
}

/* ====================
   Welcome Section
==================== */
.welcome-section {
    padding: 80px 0;
    background-color: white;
}

.welcome-section h2 {
    font-size: 2.5rem;
    color: var(--lingfield-purple);
    margin-bottom: 20px;
    line-height: 1.3;
}

.title-underline {
    width: 100%;
    max-width: 90%;
    height: 20px;
    background-image: url(../img/titles-underline.svg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    margin: 0px 0 20px 0;
}

.title-underline-center {
    width: 200px;
    height: 4px;
    background-image: url('../img/titles-underline.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    margin: 20px auto 30px;
}

.welcome-image-round {
    width: 300px;
    height: 300px;
    object-fit: cover;
}

/* ====================
   Value Cards Section
==================== */
.values-cards-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.value-card {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    margin-bottom: 30px;
}

.value-card img {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 1.5rem;
    color: var(--lingfield-purple);
    margin-bottom: 15px;
}

.value-card p {
    color: var(--lingfield-text-light);
    line-height: 1.8;
}

/* ====================
   Values Toggle Section
==================== */
.values-section {
    padding: 80px 0;
    background-color: white;
    background-image:url(../img/linfield-sub-page-background-tree.svg);
    background-position:bottom left;
    background-size:50%;
    background-repeat:no-repeat;
}

.values-section h2 {
    font-size: 2.5rem;
    color: var(--lingfield-purple);
}

.values-layout {
    position: relative;
    max-width: 1250px;
}

.values-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.value-item {
    position: relative;
    text-align: center;
    cursor: pointer;
    min-height: 180px;
}

.value-front {
    transition: opacity 0.3s ease;
}

.value-front img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 4px solid var(--lingfield-green);
    object-fit: cover;
}

.value-back {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.value-item.active .value-front {
    opacity: 0;
}

.value-item.active .value-back {
    opacity: 1;
}

.value-back h3 {
    font-size: 1.2rem;
    color: var(--lingfield-purple);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.value-back p {
    font-size: 0.9rem;
    color: var(--lingfield-text-dark);
    line-height: 1.6;
}

/* ====================
   School Calendar Section
==================== */
.school-calendar-section {
    padding: 60px 0;
    background-color: #853a75;
    color: white;
}

.school-calendar-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0px;
}
.school-calendar-section .title-underline {
    max-width:350px;
}

.calendar-item {
    text-align: center;
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.calendar-item:hover {
    transform: translateY(-5px);
}

.calendar-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #3d1c55;
    margin: 0 auto 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 4px solid #3d1c55;
}
.calendar-circle:hover {
    border: 4px solid var(--lingfield-green);
}

.calendar-date {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.calendar-month {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.calendar-event {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.calendar-item:hover .calendar-event {
    color: var(--lingfield-green);
}

/* ====================
   Feedback Feed Section
==================== */
.feedback-feed-section {
    padding: 60px 0;
    background-color: var(--lingfield-purple);
}
.feedback-feed-section .facebook-holder {
        background-color: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.feedback-feed-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0px;
}
.feedback-feed-section .title-underline-center {
    width: 350px;
    height: 9px;
    margin: 0px auto 30px;
}

.feedback-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.feedback-card:hover {
    transform: translateY(-5px);
}

.feedback-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* ====================
   Get In Touch Section
==================== */
.get-in-touch-section {
    padding:  0 0 50px 0;
    background-color: var(--lingfield-purple);
}
.get-in-touch-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0px;
    text-align: center;
}
.get-in-touch-section .title-underline-center {
    width: 350px;
    height: 9px;
    margin: 0px auto 30px;
}

.contact-form-wrapper {
    background-color: white;
    padding: 20px 50px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border:2px solid var(--lingfield-green);
}
.contact-form-wrapper .frm_form_fields h3 {
    display: none;
}
.contact-form-wrapper .frm_form_field {
    margin:0 !important;
}
.frm_style_formidable-style.with_frm_style .frm_section_heading {
    margin-top:0;
}
.contact-form-wrapper .with_frm_style input[type=text], .contact-form-wrapper .with_frm_style input[type=email], .contact-form-wrapper .with_frm_style input[type=tel], .contact-form-wrapper .with_frm_style textarea {
    border: 2px solid var(--lingfield-purple);
}
.contact-form-wrapper .with_frm_style textarea {
    min-height: 153px;
}

.contact-form-wrapper h2 {
    color: var(--lingfield-purple);
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.contact-form label {
    display: block;
    font-weight: 600;
    color: var(--lingfield-text-dark);
    margin-bottom: 8px;
    font-size: 1rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: var(--font-main);
    font-size: 1rem;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--lingfield-purple);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form button {
    background-color: var(--lingfield-purple);
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: var(--lingfield-green);
}

/* ====================
   Page Content Section
==================== */
.page-content {
    padding-top:2rem;
    padding-bottom:3rem;
    border-bottom:4px solid var(--lingfield-green);
    background-image:url(../img/linfield-sub-page-background-tree.svg);
    background-position:bottom right;
    background-size:50%;
    background-repeat:no-repeat;
}
.page-content h1, .page-content h2, .page-content h4 {
    color:#3d1c55;
}
.page-content h3, .page-content h5 {
    color:#853a75;
}
.page-content h2 {
    font-size:2.4rem;
}
.page-content h3 {
    font-size:2rem;
}
.page-content table tbody tr:first-child {
    background-color: #853a75 !important;
    color:#fff;
}
.page-content .wp-block-table td {
    border:0px solid white;
}
.page-content ul li::marker {
    color:var(--lingfield-purple);
}
.page-content .wp-block-coblocks-accordion-item__title:not(.has-background) {
    background-color:var(--lingfield-purple);
    color:#fff;
}
.page-content blockquote {
    margin: 0 0 1rem;
    padding: 0 1.25rem 0 1.25rem;
    border-left: 6px solid var(--lingfield-purple);
}

.wp-block-file {
    background: var(--lingfield-purple);
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 6px;
    display: inline-block !important;
    width: 100%;
    margin-bottom:0.5rem;
}
.wp-block-file a {
    color:#fff !important;
}
.wp-block-file a:nth-child(1) {
    float: left;
    padding: 0.5em 1em;
}
.wp-block-file a:nth-child(2) {
    float:right;
    background-color:var(--lingfield-green);
    margin-right:10px;
    border-radius:4px;
}

/* ====================
   Footer
==================== */
.footer {
    background-color: white;
}
.footer-block {
    padding:1rem 0;
}

.footer h5 {
    color: var(--lingfield-purple);
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer p {
    color: var(--lingfield-text-dark);
    line-height: 1.5;
    font-size:0.9rem;
}

.footer a {
    color: var(--lingfield-purple);
    text-decoration: none;
    word-wrap:break-word;
}
.footer h4 {
    color: var(--lingfield-purple);
    text-decoration: none;
    font-size:1.2rem;
}

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

.footer strong {
    color: var(--lingfield-purple);
}

.footer img {
    max-width: 100%;
    height: auto;
}

.dpo-information p {
    font-size: 0.8rem;
    color: var(--lingfield-text-light);
    margin-bottom: 10px;
}

.footer-bottom {
    background-color: #853a75;
    color: white;
    padding: 20px 0;
    font-size: 0.9rem;
    padding-bottom:0;
}
.footer-bottom-links {
    padding-bottom:20px;
    padding-top:0;
}

.footer-bottom a {
    color: white;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--lingfield-green);
}

/* ====================
   Buttons
==================== */
.button,
button {
    background-color: var(--lingfield-purple);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    cursor: pointer;
    font-family: var(--font-main);
}

.button:hover,
button:hover {
    background-color: var(--lingfield-green);
}

/* ====================
   Responsive Design
==================== */
@media screen and (max-width: 768px) {
    .hero-tree {
        width: 250px;
    }

    .hero-tree-left {
        left: -50px;
    }

    .hero-tree-right {
        right: -50px;
    }

    .hero-tagline-overlay {
        max-width: 400px;
        top: 30px;
    }

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

    .welcome-section h2,
    .values-section h2,
    .school-calendar-section h2,
    .feedback-feed-section h2 {
        font-size: 2rem;
    }

    .welcome-image-round {
        width: 200px;
        height: 200px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .values-background-tree {
        width: 300px;
    }

    .calendar-circle {
        width: 120px;
        height: 120px;
    }

    .calendar-date {
        font-size: 2.5rem;
    }

    .calendar-month {
        font-size: 1rem;
    }

    .feedback-card img {
        height: 150px;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }
}

@media screen and (max-width: 640px) {
    .hero-tree {
        width: 150px;
    }

    .hero-tree-left {
        left: -30px;
    }

    .hero-tree-right {
        right: -30px;
    }

    .hero-tagline-overlay {
        max-width: 300px;
        top: 20px;
    }

    .iron-logo {
        max-height: 80px;
    }

    .value-front img {
        width: 120px;
        height: 120px;
    }

    .value-item {
        min-height: 150px;
    }
}

@media screen and (max-width: 480px) {
    .hero-tree-left,
    .hero-tree-right {
        display: none;
    }

    .hero-title-wrapper {
        padding: 60px 0 40px;
    }

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

    .welcome-section,
    .values-section,
    .get-in-touch-section {
        padding: 40px 0;
    }

    .school-calendar-section,
    .feedback-feed-section {
        padding: 40px 0;
    }
}
