/* about.css */

.compost-cycle {
    padding: 3.5rem 0 3.25rem;
    background: #ffffff;
}

.compost-cycle__layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(520px, 1.2fr);
    align-items: center;
    gap: 3rem;
}

.compost-cycle__heading {
    max-width: 42rem;
    margin: 0;
    text-align: left;
}

.compost-cycle__heading .home-section-title {
    margin-bottom: 0.75rem;
}

.compost-cycle__intro {
    max-width: 30rem;
    margin: 0;
    color: #64736d;
    font-size: 0.95rem;
    line-height: 1.7;
}

.compost-cycle__eyebrow {
    margin: 0 0 0.65rem;
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.compost-cycle__diagram {
    position: relative;
    width: min(100%, 600px);
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto;
}

@media (max-width: 1023px) {
    .compost-cycle__layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .compost-cycle__heading {
        max-width: 42rem;
        margin: 0 auto;
        text-align: center;
    }

    .compost-cycle__intro {
        margin-right: auto;
        margin-left: auto;
    }
}

.compost-cycle__route {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.compost-cycle__route-base {
    fill: none;
    stroke: rgba(15, 118, 110, 0.22);
    stroke-width: 1.2;
    stroke-dasharray: 2 7;
}

.compost-cycle__route-active {
    fill: none;
    stroke: rgba(15, 118, 110, 0.52);
    stroke-width: 1.5;
    stroke-linecap: round;
}

.compost-cycle__moving-dot {
    fill: #5b9b67;
}

.compost-cycle__center,
.compost-cycle__stage-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 118, 110, 0.25);
    background: #ffffff;
    box-shadow: 0 14px 30px -24px rgba(15, 23, 42, 0.5);
}

.compost-cycle__center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 108px;
    height: 108px;
    gap: 0.45rem;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    flex-direction: column;
}

.compost-cycle__center svg,
.compost-cycle__stage-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: #0f766e;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.compost-cycle__center span {
    color: #0f766e;
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.compost-cycle__stage {
    --stage-angle: 0deg;
    --stage-distance: 210px;
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    width: 50px;
    height: 50px;
    color: #17231e;
    overflow: visible;
    transform: translate(-50%, -50%) rotate(var(--stage-angle)) translateY(calc(var(--stage-distance) * -1)) rotate(calc(var(--stage-angle) * -1));
}

.compost-cycle__stage:nth-of-type(1) { --stage-angle: 0deg; }
.compost-cycle__stage:nth-of-type(2) { --stage-angle: 40deg; }
.compost-cycle__stage:nth-of-type(3) { --stage-angle: 80deg; }
.compost-cycle__stage:nth-of-type(4) { --stage-angle: 120deg; }
.compost-cycle__stage:nth-of-type(5) { --stage-angle: 160deg; }
.compost-cycle__stage:nth-of-type(6) { --stage-angle: 200deg; }
.compost-cycle__stage:nth-of-type(7) { --stage-angle: 240deg; }
.compost-cycle__stage:nth-of-type(8) { --stage-angle: 280deg; }
.compost-cycle__stage:nth-of-type(9) { --stage-angle: 320deg; }

.compost-cycle__stage:nth-of-type(1),
.compost-cycle__stage:nth-of-type(5) {
    flex-direction: column;
    text-align: center;
}

.compost-cycle__stage:nth-of-type(n + 2):nth-of-type(-n + 4) {
    flex-direction: row;
}

.compost-cycle__stage:nth-of-type(n + 6) {
    flex-direction: row-reverse;
    text-align: right;
}

.compost-cycle__stage-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border-radius: 50%;
    background: #fbfcf8;
}

.compost-cycle__stage h3 {
    margin: 0;
    color: #163b31;
    font-size: 0.8rem;
    font-weight: 700;
}

.compost-cycle__stage p {
    width: 125px;
    max-width: 125px;
    margin: 0.3rem 0 0;
    color: #64736d;
    font-size: 0.62rem;
    line-height: 1.4;
}

.compost-cycle__stage--top p,
.compost-cycle__stage--bottom p {
    width: 160px;
    max-width: 160px;
}

.compost-cycle__stage-copy {
    position: absolute;
    flex: 0 0 125px;
    width: 125px;
}

.compost-cycle__stage:nth-of-type(1) .compost-cycle__stage-copy,
.compost-cycle__stage:nth-of-type(5) .compost-cycle__stage-copy {
    top: 58px;
    left: 50%;
    transform: translateX(-50%);
}

.compost-cycle__stage:nth-of-type(n + 2):nth-of-type(-n + 4) .compost-cycle__stage-copy {
    top: 50%;
    left: 62px;
    transform: translateY(-50%);
    text-align: left;
}

.compost-cycle__stage:nth-of-type(n + 6) .compost-cycle__stage-copy {
    top: 50%;
    right: 62px;
    transform: translateY(-50%);
}

.compost-cycle__stage:nth-of-type(6) .compost-cycle__stage-copy {
    right: 84px;
}

@media (max-width: 639px) {
    .compost-cycle { padding: 2.75rem 0 2.5rem; }
    .compost-cycle__diagram {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        width: 100%;
        height: auto;
    }
    .compost-cycle__route { display: none; }
    .compost-cycle__center {
        position: static;
        grid-column: 1 / -1;
        grid-row: 1;
        margin: 0 auto 0.5rem;
        transform: none;
    }
    .compost-cycle__stage {
        position: static;
        display: flex;
        width: auto;
        height: auto;
        min-width: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 0.45rem;
        text-align: left;
        transform: none;
    }
    .compost-cycle__stage:nth-of-type(1),
    .compost-cycle__stage:nth-of-type(5) { width: auto; text-align: left; }
    .compost-cycle__stage-copy {
        position: static;
        right: auto;
        flex: 0 1 auto;
        width: auto;
        transform: none !important;
    }
    .compost-cycle__stage-icon { width: 42px; height: 42px; flex-basis: 42px; }
    .compost-cycle__center { width: 88px; height: 88px; }
    .compost-cycle__stage p,
    .compost-cycle__stage--top p,
    .compost-cycle__stage--bottom p { width: auto; max-width: 15rem; }
    .compost-cycle__stage-copy { flex: 0 1 auto; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .compost-cycle__moving-dot { display: none; }
}

.about-highlights-section { padding: 2.25rem 0; }
.about-highlights-grid { display: grid; gap: 1rem; grid-template-columns: repeat(1, 1fr); }
.about-highlight-card { padding: 1.25rem; border-radius: 12px; }
@media (min-width: 768px) { .about-highlights-grid { grid-template-columns: repeat(3, 1fr); } }

.about-features-section { padding: calc(2.5rem * 0.7) 0; }
.about-section-heading { max-width: 52rem; margin: 0 auto 1.25rem; text-align: center; }
.about-features-grid { display: grid; gap: 1rem; grid-template-columns: repeat(1,1fr); }
@media (min-width: 640px) { .about-features-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .about-features-grid { grid-template-columns: repeat(3,1fr); } }

/* Prose width */
.prose-site { max-width: 70ch; line-height: 1.75; color: #475569; }

/* Sidebar: disable sticky on small screens */
@media (max-width: 1023px) { .sidebar-sticky, .about-sidebar { position: static; top: auto; } }

/* Responsive adjustments for About page */
@media (max-width: 1024px) {
    /* keep layout responsive for feature grids and content layout */
}

.about-highlight-card,
.about-feature-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.5rem;
    background: #ffffff;
    box-shadow: 0 18px 45px -30px rgba(15, 23, 42, 0.22);
}

.about-highlight-card {
    padding: 1.5rem;
}

.about-highlight-card__title,
.about-feature-card__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

.about-highlight-card__description,
.about-feature-card__description {
    margin: 0.75rem 0 0;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #64748b;
}

.about-section-heading {
    max-width: 48rem;
    margin: 0 auto 2rem;
    text-align: center;
}

.about-section-heading__title {
    /* Uses global h2 typography system for consistency */
}

.about-section-heading__subtitle {
    margin: 0;
    font-size: 1rem;
    line-height: 1.75;
    color: #475569;
}

.about-features-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .about-features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .about-features-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.about-feature-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    transition: transform 240ms ease, box-shadow 240ms ease;
}

.about-features-section {
    padding-bottom: calc(1.25rem * 0.7);
}

.about-features-section + .container-site.section-padding {
    padding-top: calc(2rem * 0.7);
}

.about-content-layout {
    margin-top: 1.5rem;
}

.about-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 60px -32px rgba(15, 23, 42, 0.28);
}

.about-feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    flex-shrink: 0;
    border-radius: 1rem;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.about-feature-card__icon svg,
.about-feature-card__icon img.about-feature-card__svg,
.about-feature-card__svg {
    width: 2.625rem !important;
    height: 2.625rem !important;
    max-width: 2.625rem !important;
    max-height: 2.625rem !important;
    object-fit: contain;
}

.about-feature-card__content {
    min-width: 0;
}

.about-intro {
    max-width: 48rem;
    margin: 0 auto 3rem;
    text-align: center;
}

.about-intro--center {
    text-align: center;
}

.about-content-block {
    margin-top: 3rem;
}

.about-content-layout {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 1024px) {
    .about-content-layout {
        grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
        align-items: start;
    }
}

.about-content-column {
    min-width: 0;
}

.about-section-title {
    margin: 2rem 0 0.75rem;
    /* Uses global h2 typography system for consistency */
}

.about-section-title:first-of-type {
    margin-top: 0;
}

.about-export-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

@media (min-width: 640px) {
    .about-export-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.about-export-card,
.about-sidebar-card {
    display: block;
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 16px 40px -28px rgba(15, 23, 42, 0.2);
    color: inherit;
    text-decoration: none;
}

.about-export-card__label,
.about-sidebar-card__label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f766e;
}

.about-export-card__meta {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.875rem;
    color: #64748b;
}

.about-sidebar {
    display: grid;
    gap: 1rem;
    position: sticky;
    top: 110px;
    align-self: start;
    min-width: 0;
    max-height: calc(100vh - 126px);
    overflow-y: auto;
    scrollbar-width: thin;
}

@media (max-width: 1023px) {
    .about-sidebar {
        position: static;
        top: auto;
        max-height: none;
        overflow-y: visible;
    }
}

.about-sidebar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem;
    text-align: center;
}

.about-sidebar-card__icon {
    width: 2rem;
    height: 2rem;
    color: #0f766e;
}

@media (max-width: 639px) {
    .inquiry-form-card {
        padding: 1.25rem;
    }
}

.inquiry-form-card {
    width: 100%;
    padding: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 45px -32px rgba(15, 23, 42, 0.28);
}

@media (min-width: 640px) {
    .inquiry-form-card {
        padding: 2rem;
    }
}

.inquiry-form-card .inquiry-form {
    display: grid;
    gap: 1rem;
}

.inquiry-form-card .inquiry-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.inquiry-form-card .inquiry-form__field--full {
    width: 100%;
}

.inquiry-form-card .inquiry-form__label {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.inquiry-form-card .inquiry-form__input,
.inquiry-form-card .inquiry-form__textarea {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    height: 52px;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    font: inherit;
}

.inquiry-form-card .inquiry-form__textarea {
    min-height: 150px;
    height: auto;
    resize: vertical;
}

.inquiry-form-card .inquiry-form__input:focus,
.inquiry-form-card .inquiry-form__textarea:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.inquiry-form-card .inquiry-form__actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 0.25rem;
}

.inquiry-form-card .inquiry-form__submit {
    width: 100%;
}

@media (min-width: 640px) {
    .inquiry-form-card .inquiry-form__submit {
        width: auto;
    }
}

.inquiry-form-card .inquiry-form__error {
    margin: 0;
    font-size: 0.8rem;
    color: #dc2626;
}

.inquiry-form-card .inquiry-form__intro,
.inquiry-form-card .inquiry-form__heading {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
}

.inquiry-form-card .inquiry-form__intro {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}
