/* ============================================================
   Inner page styles for About, Contact and FAQ  (css/pages.css)
   Depends on the shared tokens in css/main.css
   ============================================================ */

/* ============ ABOUT ============ */

/* Story block: text + photo side by side */
.about-story {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.about-story .eyebrow {
    display: inline-block;
    color: var(--herb);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.about-story h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.about-story p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 26px;
}

.about-story-photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
}

.about-story-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stats band */
.stats-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 auto 10px auto;
    border-radius: 50%;
    background: var(--herb-soft);
    color: var(--herb);
}

/* Stats cycle through the food palette */
.stats-grid .stat-item:nth-child(2) .stat-icon { background: var(--butter-soft); color: var(--butter); }
.stats-grid .stat-item:nth-child(3) .stat-icon { background: var(--chili-soft); color: var(--chili); }
.stats-grid .stat-item:nth-child(4) .stat-icon { background: var(--amber-soft); color: var(--amber); }

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--amber);
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 600;
}

/* Values cards */
.values-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.value-card {
    padding: 32px 26px;
}

.value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--herb-soft);
    color: var(--herb);
    margin-bottom: 16px;
    transition: transform 0.25s ease;
}

.value-card:hover .value-icon { transform: scale(1.1) rotate(-4deg); }

/* The four values each wear their own food colour */
.values-grid .value-card:nth-child(2) .value-icon { background: var(--chili-soft); color: var(--chili); }
.values-grid .value-card:nth-child(3) .value-icon { background: var(--butter-soft); color: var(--butter); }
.values-grid .value-card:nth-child(4) .value-icon { background: var(--amber-soft); color: var(--amber); }

.value-card h3 {
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.value-card p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.6;
}

/* Team cards with initials avatars */
.team-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.team-card {
    padding: 36px 26px;
    text-align: center;
}

.team-photo {
    width: 84px;
    height: 84px;
    margin: 0 auto 18px auto;
    border-radius: 50%;
    overflow: hidden;
    background: var(--amber-soft);
    border: 2px solid rgba(255, 167, 51, 0.5);
}

/* Each founder gets a differently-coloured ring */
.team-grid .team-card:nth-child(2) .team-photo { border-color: rgba(168, 208, 124, 0.55); }
.team-grid .team-card:nth-child(3) .team-photo { border-color: rgba(255, 122, 92, 0.55); }

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.team-role {
    font-size: 0.82rem;
    color: var(--amber);
    font-weight: 600;
}

/* Small centered call-to-action used by About & FAQ */
.cta-inline {
    text-align: center;
    padding: 20px 0 30px 0;
}

.cta-inline h2 {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.about-intro-section {
    padding-top: 24px;
}

/* ============ CONTACT ============ */

.contact-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 28px 100px 28px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 26px;
    align-items: start;
}

.contact-info,
.contact-form {
    padding: 38px 36px;
}

.contact-info h2,
.contact-form h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.night-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--amber-soft);
    border: 1px solid rgba(255, 167, 51, 0.4);
    color: var(--amber);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 10px;
    margin-bottom: 24px;
}

.contact-list {
    list-style: none;
    margin-bottom: 26px;
}

.contact-list li {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.detail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 12px;
    background: var(--herb-soft);
    border: 1px solid rgba(168, 208, 124, 0.25);
    color: var(--herb);
}

/* Contact details cycle through the food palette */
.contact-list li:nth-child(2) .detail-icon { background: var(--butter-soft); border-color: rgba(255, 217, 138, 0.25); color: var(--butter); }
.contact-list li:nth-child(3) .detail-icon { background: var(--chili-soft); border-color: rgba(255, 122, 92, 0.25); color: var(--chili); }
.contact-list li:nth-child(4) .detail-icon { background: var(--amber-soft); border-color: rgba(255, 167, 51, 0.25); color: var(--amber); }

.detail-label {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 3px;
}

.detail-value {
    font-size: 0.94rem;
    line-height: 1.5;
}

.detail-value a {
    color: var(--cream);
    text-decoration: none;
}

.detail-value a:hover {
    color: var(--amber);
}

.form-intro {
    font-size: 0.92rem;
    color: var(--muted);
    margin-bottom: 24px;
}

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

.form-field {
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 7px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-1);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--cream);
    outline: none;
    transition: border-color 0.2s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--muted);
    opacity: 0.7;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--amber);
}

.form-field textarea {
    min-height: 130px;
    resize: vertical;
}

.form-submit-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.form-success {
    display: none;
    color: var(--mint);
    font-size: 0.9rem;
    font-weight: 700;
}

.form-success.visible {
    display: inline;
}

/* ============ FAQ ============ */

.faq-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 28px 90px 28px;
}

.faq-tabs {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.faq-category {
    margin-bottom: 38px;
}

.faq-category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--amber);
    margin-bottom: 14px;
}

/* FAQ sections cycle through the food palette */
.faq-category:nth-of-type(2) .faq-category-title { color: var(--herb); }
.faq-category:nth-of-type(3) .faq-category-title { color: var(--chili); }
.faq-category:nth-of-type(4) .faq-category-title { color: var(--butter); }

.faq-category-title svg {
    flex-shrink: 0;
}

.faq-item {
    margin-bottom: 10px;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.faq-item:hover {
    transform: translateY(-1px) scale(1.005);
}

.faq-item.card:hover {
    transform: none;   /* accordions shouldn't lift like cards */
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--cream);
    text-align: left;
    cursor: pointer;
}

.faq-icon {
    display: flex;
    color: var(--amber);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 20px 18px 20px;
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.65;
}

/* ============ Responsive ============ */
@media (max-width: 992px) {
    .about-story,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

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

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

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
    }
}

@media (max-width: 576px) {
    .values-grid,
    .form-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Smaller type on the About blocks, with more room between them */
    .about-story { gap: 28px; }
    .about-story h2 { font-size: clamp(1.4rem, 6.5vw, 1.8rem); }
    .about-story p { font-size: 0.94rem; margin-bottom: 22px; }

    .stats-grid { gap: 28px 20px; }
    .stat-icon { width: 34px; height: 34px; }
    .stat-number { font-size: clamp(1.6rem, 7vw, 2.1rem); }
    .stat-label { font-size: 0.84rem; }

    .values-grid { gap: 16px; }
    .value-card { padding: 24px 20px; }
    .value-icon { width: 42px; height: 42px; margin-bottom: 14px; }
    .value-card h3 { font-size: 0.96rem; }
    .value-card p { font-size: 0.84rem; }

    .team-grid { gap: 18px; }
    .team-card { padding: 28px 22px; }
    .team-photo { width: 72px; height: 72px; }

    .contact-info,
    .contact-form { padding: 24px 22px; }
    .night-badge { font-size: 0.72rem; }
    .contact-info h2,
    .contact-form h2 { font-size: 1.14rem; }
    .contact-list li { margin-bottom: 17px; }
    .detail-icon { width: 36px; height: 36px; min-width: 36px; }

    .faq-container { padding-bottom: 64px; }
    .faq-category { margin-bottom: 30px; }
    .faq-category-title { font-size: 1rem; }
    .faq-question { padding: 16px 18px; font-size: 0.92rem; }
    .faq-item { margin-bottom: 12px; }
}
