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

body {
    font-family: 'Lucida Console', Monaco, 'Courier New', monospace;
    background-color: white;
    overflow-x: hidden;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: white;
}

.logo {
    height: 60px;
    width: auto;
    max-width: 100%;
}

nav ul {
    display: flex;
    list-style: none;
    gap: clamp(10px, 2vw, 30px);
}

nav a {
    text-decoration: none;
    color: #333;
    font-size: clamp(14px, 1.8vw, 26px);
    font-weight: 600;
    white-space: nowrap;
}

nav a:hover,
nav a.active {
    color: #2563eb;
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 120px 20px 60px;
}

.hero-image {
    max-width: 489px;
    width: auto;
    height: auto;
    max-height: 69vh;
}

.tagline {
    position: absolute;
    right: 6%;
    bottom: -22px;
    font-size: 47px;
    font-weight: 813;
    color: black;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.it-text {
    font-size: 1.6em;
}

/* Page Header (for subpages) */
.page-header {
    background: #2563eb;
    color: white;
    padding: 80px 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Page Title (left-aligned, no banner) */
.page-title {
    font-size: 3rem;
    color: #333;
    margin-bottom: 40px;
    margin-left: 0;
    padding-left: 0;
    text-align: left;
}

/* Page Title Full Width (outside container, at page edge) */
.page-title-full {
    font-family: 'Courier New', Courier, monospace;
    font-size: 3rem;
    color: #333;
    margin: 0;
    padding: 80px 40px 40px;
    text-align: left;
}

/* Content Section */
.content-section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.content-section p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Service Items */
.service-item {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e7eb;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.service-item p {
    color: #666;
}

/* About Intro Section */
.about-intro-section {
    padding: 80px 40px 40px;
    max-width: 1200px;
    margin: 110px auto 0;
}

.about-intro-section p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* About Section */
.about-section {
    padding: 60px 40px 0;
    padding-top: 80px;
    max-width: none;
    margin-top: 110px;
}

.about-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.about-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.about-section > p,
.about-section-inner > p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
    width: 100%;
    max-width: none;
    margin-bottom: 15px;
    text-align: left;
}

.like-fruit {
    font-weight: 700;
    font-size: 2.2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 0;
    padding: 60px max(40px, calc((100% - 1120px) / 2 + 40px));
    background: #e8f4fc;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    box-sizing: border-box;
}

.about-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.about-card p {
    color: #666;
    line-height: 1.6;
}

/* About Card with Image */
.about-card-link {
    text-decoration: none;
    display: block;
}

.about-card-image {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.about-card-image:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.about-card-image img {
    width: 100%;
    height: 279px;
    object-fit: contain;
    padding: 20px;
    filter: grayscale(100%) opacity(0.5);
    transition: filter 0.3s ease;
}

.about-card-image:hover img {
    filter: grayscale(0%) opacity(1);
}

/* Mobile scroll-triggered color state for card images */
.about-card-image.color-active img {
    filter: grayscale(0%) opacity(1);
}

.about-card-image {
    display: flex;
    flex-direction: column;
}

.about-card-title {
    font-size: 1.8rem;
    color: #333;
    text-align: center;
    padding: 30px 30px 0;
    margin: 0;
}

.about-card-content {
    padding: 20px 30px 30px;
}

.about-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.about-card-content p {
    color: #666;
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

.about-card-content p:last-child {
    margin-bottom: 0;
}

/* Fruit Equation */
.fruit-equation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    height: 279px;
}

.fruit-equation .fruit-small {
    width: auto;
    height: 170px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.5);
    transition: filter 0.3s ease;
}

.about-card-image:hover .fruit-equation .fruit-small {
    filter: grayscale(0%) opacity(1);
}

/* Mobile scroll-triggered color state */
.fruit-equation.color-active .fruit-small {
    filter: grayscale(0%) opacity(1);
}

.fruit-symbol {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.about-card-image:hover .fruit-symbol {
    opacity: 1;
}

/* Mobile scroll-triggered color state for symbols */
.fruit-equation.color-active .fruit-symbol {
    opacity: 1;
}

/* Fruity title colors for index cards */
.about-card-title .fruity-black {
    color: #333;
}

.about-card-title .fruity-orange {
    color: #f97316;
}

/* Local Partner Section */
.local-partner-section {
    padding: 80px 40px;
    background: url('../images/manchester.png') top center / cover no-repeat;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    box-sizing: border-box;
}

.local-partner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.76);
}

.local-partner-section h2,
.local-partner-section p {
    position: relative;
    z-index: 1;
}

.local-partner-section h2,
.local-partner-section p {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.local-partner-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.local-partner-section p {
    font-size: 1.2rem;
    color: white;
    line-height: 1.8;
}

.local-partner-section .contact-link {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.local-partner-section .contact-link:hover {
    opacity: 0.8;
}

/* Logo Carousel */
.vendors-section {
    padding: 60px 20px;
    background: white;
}

.vendors-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
}

.logo-carousel-container {
    overflow: hidden;
    padding: 20px 0;
}

.logo-carousel {
    display: flex;
    gap: 60px;
    animation: scroll 60s linear infinite;
    width: fit-content;
}

.logo-slide {
    flex-shrink: 0;
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.logo-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.logo-carousel:hover {
    animation-play-state: paused;
}

.logo-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-260px * 9));
    }
}

/* Contact Form Section */
.contact-section {
    padding: 80px 40px;
    background: #f5f5f5;
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.contact-description {
    text-align: center;
    color: #666;
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    background: #2563eb;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #1e40af;
}

/* Contact Info Cards */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-info-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.contact-info-card p {
    color: #666;
    margin: 0;
}

.contact-info-card a {
    color: #2563eb;
    text-decoration: none;
}

.contact-info-card a:hover {
    text-decoration: underline;
}

/* Contact Table */
.contact-table {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    border-bottom: 1px solid #e5e7eb;
}

.contact-row:last-child {
    border-bottom: none;
}

.contact-label {
    padding: 20px 25px;
    font-weight: 700;
    color: #333;
    background: #f9fafb;
}

.contact-value {
    padding: 20px 25px;
    color: #555;
}

.contact-value a {
    color: #2563eb;
    text-decoration: none;
}

.contact-value a:hover {
    text-decoration: underline;
}

/* Expandable Service Cards */
.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.services-intro h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.services-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.services-intro p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.services-intro .five-a-day {
    font-size: 1.8rem;
    margin-top: 25px;
    text-align: left;
    margin-left: calc(-50vw + 50%);
    padding-left: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.service-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

.service-card-header {
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9fafb;
}

.service-card-title {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.service-card-title .fruity-label {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f97316;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card-title .fruity-label .fruity-black {
    color: #333;
}

.service-card-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.service-card.expanded .service-card-toggle {
    transform: rotate(45deg);
}

.service-card-summary {
    padding: 0 30px 20px;
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.service-card-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: white;
}

.service-card.expanded .service-card-details {
    max-height: 500px;
    padding: 20px 30px 30px;
    border-top: 1px solid #e5e7eb;
}

.service-card-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card-details ul li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
    line-height: 1.5;
}

.service-card-details ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
}

.service-card-details .cta-link {
    display: inline-block;
    margin-top: 20px;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.service-card-details .cta-link:hover {
    text-decoration: underline;
}

.btn-quiz {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 24px;
    background: #f97316;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-quiz:hover {
    background: #ea580c;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 60px 40px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
}

.footer-section p {
    color: #d1d5db;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #9ca3af;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1184px) {
    header {
        flex-direction: column;
        gap: 20px;
        padding: 15px 20px;
    }

    .logo {
        height: 40px;
    }

    nav ul {
        gap: 15px;
    }

    nav a {
        font-size: 13px;
    }

    .hero {
        flex-direction: column;
        align-items: center;
    }

    .hero-image {
        max-width: 379px;
    }

    .tagline {
        position: static;
        font-size: 40px;
        text-align: center;
        margin-top: 35px;
    }

    .page-header {
        padding: 60px 20px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1.1rem;
    }

    .page-title-full {
        font-size: 2rem;
        padding: 60px 20px 30px;
    }

    .content-section {
        padding: 60px 20px;
    }

    .about-intro-section {
        padding: 60px 20px 30px;
        margin-top: 40px;
    }

    .about-section {
        padding: 40px 20px;
        margin-top: 40px;
    }

    .about-grid {
        padding: 40px 20px;
    }

    .about-section h2 {
        font-size: 2rem;
    }

    .local-partner-section {
        padding: 60px 20px;
    }

    .local-partner-section h2 {
        font-size: 2rem;
    }

    .fruit-equation {
        flex-wrap: wrap;
        height: auto;
        padding: 20px 10px;
        gap: 5px;
    }

    .fruit-equation .fruit-small {
        height: 100px;
    }

    .fruit-symbol {
        font-size: 1.2rem;
        padding: 0 5px;
    }

    .logo-carousel {
        gap: 40px;
        animation: scroll 45s linear infinite;
    }

    .logo-slide {
        width: 150px;
        height: 80px;
    }

    .contact-section {
        padding: 60px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .footer {
        padding: 40px 20px 20px;
    }
}

/* Mobile breakpoint for fruit equation - wrap = juice to next line */
@media (max-width: 800px) {
    .fruit-equation {
        display: grid;
        grid-template-columns: auto auto auto;
        justify-content: center;
        align-items: center;
        gap: 8px;
        height: auto;
        padding: 20px 10px;
    }

    /* Second row: = juice spans 3 columns, centered */
    .fruit-equation .fruit-symbol:nth-child(4) {
        grid-column: 1;
        grid-row: 2;
        justify-self: end;
    }

    .fruit-equation .fruit-small:nth-child(5) {
        grid-column: 2 / 4;
        grid-row: 2;
        justify-self: start;
    }
}

/* Form Messages */
.form-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.form-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* reCAPTCHA container */
#contact-recaptcha {
    margin-bottom: 20px;
}

/* Very small screens (iPhone SE etc) */
@media (max-width: 392px) {
    nav ul {
        gap: 8px;
    }

    nav a {
        font-size: 11px;
    }
}
