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

@import url('https://fonts.googleapis.com/css2?family=Andika:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* ====================
   CSS Variables
==================== */
:root {
    --lingfield-purple: #b5182f;
    --lingfield-purple-dark: #3d1f4f;
    --lingfield-green: #468ccc;
    --lingfield-text-dark: #333333;
    --lingfield-text-light: #666666;
    --font-main: "Andika", sans-serif;
}

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

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: 460px;
    background-image:url(../img/sub-page-header-image.webp);
}


.home-header .text-area,
.subpage-header .text-area {
    position: relative;
    z-index: 11;
    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: #9e1219;
    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;
    text-shadow: 0px 0px 26px rgba(38,54,99,0.79);
}

/* ====================
   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:-3px;
    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: 20px 0;
    background-color: white;
    margin-top: -1px;
    position: relative;
}

.quick-section {
    padding: 80px 0;
    background-color: white;
}
.quick-section .grid-x {
    background-color:#263663;
    color:white;
    padding:2rem;
    border-radius:36px;
}
.quick-section .grid-x h2 {
    color:white;
}
.quick-section .grid-x a {
    font-size:1.6rem;
    color:white;
    margin-bottom: 1.6rem;
    display: block;
    margin-top: 1rem;
    
}
.quick-section .grid-x a:hover {
    animation: wobble 0.6s ease-in-out;
}
@keyframes wobble {
  0%   { transform: rotate(0deg); }
  15%  { transform: rotate(-6deg); }
  30%  { transform: rotate(5deg); }
  45%  { transform: rotate(-4deg); }
  60%  { transform: rotate(3deg); }
  75%  { transform: rotate(-2deg); }
  90%  { transform: rotate(1deg); }
  100% { transform: rotate(0deg); }
}

.quick-section .grid-x a i {
    color:#468ccc;
}
.quick-section .grid-x .cell:nth-child(2) {
    border-bottom:1px solid #929bb1;
    border-right:1px solid #929bb1;
}
.quick-section .grid-x .cell:nth-child(3) {
    border-bottom:1px solid #929bb1;
    border-left:1px solid #929bb1;
}
.quick-section .grid-x .cell:nth-child(4) {
    border-top:1px solid #929bb1;
    border-right:1px solid #929bb1;
}
.quick-section .grid-x .cell:nth-child(5) {
    border-top:1px solid #929bb1;
    border-left:1px solid #929bb1;
}

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

.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: 100%;
    height: auto;
    object-fit: cover;
}

.accreds-slider .slick-slide img {
    max-width: 66%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}

.accreds-slider .slick-slide {
    padding: 0 1rem;
    position: relative;
    min-height: 200px;
}

/* ====================
   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: #b5182f;
    background: linear-gradient(0deg,rgb(255, 255, 255) 32%, rgb(181, 24, 47) 32%, rgb(181, 24, 47) 71%, rgb(181, 24, 47) 98%);
}
.values-section .circle-wrapper:hover {
    animation: wobble 0.6s ease-in-out;
}
.values-section img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius:50%;
        border: 2px solid #b5182f;
    outline: 12px solid #ffffff;
    width: calc(100% - 28px);
    margin-left: 8px;
}

.values-section h2 {
    font-size: 2.5rem;
    color: white;
}
.values-section p {
    color:white;
    margin-bottom:2rem;
}

.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: 0px 0;
    background-color: #468ccc;
    color: white;
}
.school-calendar-section .calimg {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
}
.school-calendar-section .topline {
    margin-top:-2px;
    margin-bottom:40px;
}
.school-calendar-section .botline {
    margin-top:34px;
    margin-bottom:-2px;
}

.circle-wrapper {
    position:relative;
}
.circle-wrapper .overlap-text {
    position:absolute;
    bottom:0;
    width:100%;
}
.circle-wrapper .overlap-text .button {
    margin-bottom:2rem;
}
.circle-wrapper .overlap-text h2 {
    text-shadow:
    0 0 4px #000,
    0 0 10px #93c5fd,
    0 0 20px #60a5fa,
    0 0 40px #3b82f6,
    0 0 70px #2563eb,
    0 0 100px #1d4ed8,
    0 0 140px #1e40af,
    0 0 200px #1e3a8a;
    line-height: 0.9;
    margin-bottom: 0.5rem;
}
.circle-wrapper .overlap-text h3 {
    text-shadow:
    0 0 4px #000,
    0 0 10px #93c5fd,
    0 0 20px #60a5fa,
    0 0 40px #3b82f6,
    0 0 70px #2563eb,
    0 0 100px #1d4ed8,
    0 0 140px #1e40af,
    0 0 200px #1e3a8a;
    line-height: 0.9;
    margin-bottom: 2.5rem;
    color: white;
    font-size: 2rem;
}

.school-calendar-section .grid-container.full {
    position:relative;
}
.school-calendar-section .grid-container.full::before {
    position:absolute;
    content: " ";
    right:0;
        top: 46%;
    width: 80%;
    height: 4px;
    background-color:white;
    z-index:0;
}

.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: #b5182f;
    margin: 0 auto 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 4px solid #b5182f;
    margin-top:1.5rem;
}
.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 !important;
    font-weight: 600;
    font-size: 1.1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}
.calendar-event:hover {
    color:#b5182f !important;
}

.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;
    background-image:url(../img/roman-road-shield-subpage.svg);
    background-position:bottom right;
    background-size:30%;
    background-repeat:no-repeat;
}
.page-content h1,  .page-content h4 {
    color:#b5182f;
}
.page-content h2 {
    color:#263a6e;
}
.page-content h3, .page-content h5 {
    color:#468ccc;
}
.page-content h2 {
    font-size:2.4rem;
}
.page-content h3 {
    font-size:2rem;
}
.page-content table tbody tr:first-child {
    background-color: #b5182f !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: #b5182f;
}
.footer-block {
    padding:1rem 0;
}

.footer h5 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer p {
    color:white;
    line-height: 1.5;
    font-size:0.9rem;
}

.footer a {
    color: white;
    text-decoration: none;
    word-wrap:break-word;
}
.footer h4 {
    color: white;
    text-decoration: none;
    font-size:1.2rem;
}
.footer h3 {
    color: white;
    text-decoration: none;
    font-size:1.2rem;
}

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


.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: #263663;
    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;
    }

    .school-calendar-section .grid-container.full::before {
        display:none;
    }

    .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) {
    .values-section {
        padding: 80px 0;
        background: #b5182f;
    }
    .values-section .circle-wrapper {
        margin-bottom:2rem;
    }
    .hero-tree {
        width: 150px;
    }
    .quick-section .grid-x .cell {
        border-width:0px !important;


    }

    .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;
    }

}
