/* =========================================================================
   EAOY Site Core — data block styles
   Design tokens mirror the reference site the layout is modelled on.
   Scoped to .eaoy-* so the theme and Elementor keep control of everything else.
   ========================================================================= */

.eaoy-reg,
.eaoy-facts,
.eaoy-bars,
.eaoy-table,
.eaoy-flow,
.eaoy-shots,
.eaoy-review,
.eaoy-docs,
.eaoy-strip,
.eaoy-workforce,
.eaoy-turnover,
.eaoy-shot,
.eaoy-missing,
.eaoy-quote,
.eaoy-note {
    --eaoy-ink: #152721;
    --eaoy-muted: #5c6b64;
    --eaoy-soft: #f1f4f2;
    --eaoy-line: #dce4de;
    --eaoy-accent: #c4e864;
    --eaoy-dark: #173d31;
    --eaoy-dark-hover: #265642;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--eaoy-ink);
}

.eaoy-reg *,
.eaoy-facts *,
.eaoy-bars *,
.eaoy-table *,
.eaoy-flow *,
.eaoy-shots *,
.eaoy-review *,
.eaoy-docs *,
.eaoy-strip *,
.eaoy-workforce *,
.eaoy-turnover *,
.eaoy-shot *,
.eaoy-quote * {
    box-sizing: border-box;
}

/* -------------------------------------------------------------------------
   Register (certificates + audits)
   ---------------------------------------------------------------------- */

.eaoy-reg {
    margin: 0 0 72px;
}

.eaoy-reg:last-child {
    margin-bottom: 0;
}

.eaoy-reg__head {
    max-width: 720px;
    margin-bottom: 32px;
}

.eaoy-reg__title {
    margin: 0 0 10px;
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.18;
    color: var(--eaoy-ink);
}

.eaoy-reg__intro {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--eaoy-muted);
}

.eaoy-reg__list {
    display: grid;
    gap: 24px;
}

.eaoy-reg__item {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
    padding: 28px;
    border: 1px solid var(--eaoy-line);
    border-radius: 3px;
    background: #fff;
}

.eaoy-reg__media {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eaoy-reg__media img {
    width: 100%;
    height: auto;
    border: 1px solid var(--eaoy-line);
    border-radius: 2px;
    background: var(--eaoy-soft);
    display: block;
}

.eaoy-reg__kind {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 2px;
    background: var(--eaoy-soft);
    color: var(--eaoy-dark);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
}

.eaoy-reg__kind.is-audit {
    background: #fdf3e3;
    color: #8a5b12;
}

.eaoy-reg__body {
    min-width: 0;
}

.eaoy-reg__eyebrow {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--eaoy-muted);
}

.eaoy-reg__eyebrow:empty {
    display: none;
}

.eaoy-reg__name {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.eaoy-reg__status {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--eaoy-dark);
}

.eaoy-reg__fields {
    display: grid;
    grid-template-columns: minmax(120px, 190px) minmax(0, 1fr);
    gap: 0;
    margin: 0 0 18px;
    border-top: 1px solid var(--eaoy-line);
}

.eaoy-reg__fields dt,
.eaoy-reg__fields dd {
    margin: 0;
    padding: 9px 0;
    border-bottom: 1px solid var(--eaoy-line);
    font-size: 13px;
    line-height: 1.5;
}

.eaoy-reg__fields dt {
    color: var(--eaoy-muted);
    padding-right: 16px;
}

.eaoy-reg__fields dd {
    color: var(--eaoy-ink);
}

.eaoy-reg__note {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-left: 3px solid var(--eaoy-accent);
    background: var(--eaoy-soft);
    font-size: 13px;
    line-height: 1.6;
    color: var(--eaoy-ink);
}

.eaoy-reg__verify {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    margin: 0;
    font-size: 13px;
}

.eaoy-reg__lookup {
    color: var(--eaoy-muted);
}

.eaoy-reg__lookup code {
    padding: 2px 6px;
    border-radius: 2px;
    background: var(--eaoy-soft);
    font-size: 12px;
    color: var(--eaoy-ink);
}

.eaoy-reg__link {
    color: var(--eaoy-dark);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
}

.eaoy-reg__link:hover {
    color: var(--eaoy-dark-hover);
}

@media (max-width: 860px) {
    .eaoy-reg__item {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    .eaoy-reg__media img {
        max-width: 240px;
    }
    .eaoy-reg__fields {
        grid-template-columns: 1fr;
    }
    .eaoy-reg__fields dt {
        padding-bottom: 0;
        border-bottom: 0;
    }
    .eaoy-reg__fields dd {
        padding-top: 2px;
    }
}

/* -------------------------------------------------------------------------
   Facts definition list
   ---------------------------------------------------------------------- */

.eaoy-facts {
    margin: 0;
    border-top: 1px solid var(--eaoy-line);
}

.eaoy-facts__row {
    display: grid;
    grid-template-columns: minmax(140px, 240px) minmax(0, 1fr);
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--eaoy-line);
}

.eaoy-facts__row dt {
    font-size: 14px;
    font-weight: 600;
    color: var(--eaoy-muted);
}

.eaoy-facts__row dd {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

@media (max-width: 700px) {
    .eaoy-facts__row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* -------------------------------------------------------------------------
   Share bars
   ---------------------------------------------------------------------- */

.eaoy-bars {
    display: grid;
    gap: 14px;
}

.eaoy-bars__row {
    display: grid;
    grid-template-columns: minmax(110px, 170px) minmax(0, 1fr) 52px;
    align-items: center;
    gap: 16px;
}

.eaoy-bars__name {
    font-size: 14px;
    color: var(--eaoy-ink);
}

.eaoy-bars__track {
    display: block;
    height: 10px;
    border-radius: 2px;
    background: var(--eaoy-soft);
    overflow: hidden;
}

.eaoy-bars__fill {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: var(--eaoy-dark);
}

.eaoy-bars__value {
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    color: var(--eaoy-dark);
}

.eaoy-bars__caption {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--eaoy-muted);
}

@media (max-width: 620px) {
    .eaoy-bars__row {
        grid-template-columns: 1fr 52px;
        gap: 6px 12px;
    }
    .eaoy-bars__track {
        grid-column: 1 / -1;
    }
}

/* -------------------------------------------------------------------------
   Tables
   ---------------------------------------------------------------------- */

.eaoy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.eaoy-table th,
.eaoy-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--eaoy-line);
    vertical-align: top;
}

.eaoy-table thead th {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--eaoy-muted);
    border-bottom: 2px solid var(--eaoy-dark);
}

.eaoy-table tbody tr:hover {
    background: var(--eaoy-soft);
}

.eaoy-table tr.is-muted td {
    color: var(--eaoy-muted);
}

.eaoy-table__group th {
    padding-top: 22px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--eaoy-dark);
    border-bottom: 1px solid var(--eaoy-dark);
    background: transparent;
}

.eaoy-table__num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.eaoy-customers td:first-child {
    font-weight: 600;
}

.eaoy-customers__rank {
    display: inline-block;
    width: 20px;
    margin-right: 8px;
    font-size: 12px;
    font-weight: 400;
    color: var(--eaoy-muted);
}

@media (max-width: 640px) {
    .eaoy-table th,
    .eaoy-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
}

/* -------------------------------------------------------------------------
   Process flow
   ---------------------------------------------------------------------- */

.eaoy-flow {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--eaoy-line);
}

.eaoy-flow__step {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--eaoy-line);
}

.eaoy-flow__num {
    font-size: 12px;
    font-weight: 600;
    color: var(--eaoy-muted);
    font-variant-numeric: tabular-nums;
}

.eaoy-flow__label {
    font-size: 15px;
}

.eaoy-flow__tag {
    padding: 4px 10px;
    border-radius: 2px;
    background: var(--eaoy-soft);
    color: var(--eaoy-dark);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.eaoy-flow__step.is-outsourced .eaoy-flow__tag {
    background: #fdf3e3;
    color: #8a5b12;
}

/* -------------------------------------------------------------------------
   Factory gallery
   ---------------------------------------------------------------------- */

.eaoy-shots {
    display: grid;
    grid-template-columns: repeat(var(--shots-cols, 3), minmax(0, 1fr));
    gap: 20px;
}

.eaoy-shots__item {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eaoy-shots__item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 3px;
    background: var(--eaoy-soft);
    display: block;
}

.eaoy-shots__item figcaption {
    font-size: 13px;
    line-height: 1.5;
    color: var(--eaoy-muted);
}

@media (max-width: 860px) {
    .eaoy-shots {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 520px) {
    .eaoy-shots {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------------------------------
   Review points
   ---------------------------------------------------------------------- */

.eaoy-review {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1px;
    background: var(--eaoy-line);
    border: 1px solid var(--eaoy-line);
    border-radius: 3px;
    overflow: hidden;
}

.eaoy-review__item {
    padding: 24px;
    background: #fff;
}

.eaoy-review__item h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.eaoy-review__item p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--eaoy-muted);
}

/* -------------------------------------------------------------------------
   Supporting declarations
   ---------------------------------------------------------------------- */

.eaoy-docs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.eaoy-docs__item {
    padding: 18px;
    border: 1px solid var(--eaoy-line);
    border-radius: 3px;
    background: #fff;
}

.eaoy-docs__name {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}

.eaoy-docs__note {
    display: block;
    font-size: 13px;
    line-height: 1.55;
    color: var(--eaoy-muted);
}

/* -------------------------------------------------------------------------
   Compliance strip
   ---------------------------------------------------------------------- */

.eaoy-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.eaoy-strip__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 18px;
    border: 1px solid var(--eaoy-line);
    border-radius: 3px;
    background: #fff;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.eaoy-strip__item:hover {
    border-color: var(--eaoy-dark);
    background: var(--eaoy-soft);
}

.eaoy-strip__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--eaoy-ink);
}

.eaoy-strip__note {
    font-size: 11px;
    color: var(--eaoy-muted);
}

/* -------------------------------------------------------------------------
   Workforce
   ---------------------------------------------------------------------- */

.eaoy-workforce {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.eaoy-workforce__col h3 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.eaoy-workforce__list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--eaoy-line);
}

.eaoy-workforce__list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--eaoy-line);
    font-size: 14px;
}

.eaoy-workforce__list li span {
    color: var(--eaoy-muted);
}

.eaoy-workforce__list li b {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.eaoy-workforce__list--two {
    columns: 1;
}

.eaoy-workforce__total {
    display: flex;
    justify-content: space-between;
    margin: 12px 0 0;
    font-size: 14px;
    font-weight: 600;
}

/* -------------------------------------------------------------------------
   Turnover
   ---------------------------------------------------------------------- */

.eaoy-turnover {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    background: var(--eaoy-line);
    border: 1px solid var(--eaoy-line);
    border-radius: 3px;
    overflow: hidden;
}

.eaoy-turnover__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 18px;
    background: #fff;
}

.eaoy-turnover__year {
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--eaoy-muted);
}

.eaoy-turnover__value {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--eaoy-dark);
}

/* -------------------------------------------------------------------------
   Utility
   ---------------------------------------------------------------------- */

.eaoy-note {
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--eaoy-muted);
}

/* -------------------------------------------------------------------------
   Captioned photographs
   ---------------------------------------------------------------------- */

.eaoy-shot {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
}

.eaoy-shot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 3px;
    background: var(--eaoy-soft);
}

.eaoy-shot figcaption {
    font-size: 13px;
    line-height: 1.55;
    color: var(--eaoy-muted);
}

/* Lookbook grid: references arrive in wildly different aspect ratios, so a
   uniform crop is what makes the row read as a collection rather than as a
   pile of unrelated photographs. */
.eaoy-shot-grid--portrait .eaoy-shot img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.eaoy-missing {
    display: grid;
    place-items: center;
    min-height: 180px;
    padding: 20px;
    border: 1px dashed var(--eaoy-line);
    border-radius: 3px;
    background: var(--eaoy-soft);
    font-size: 13px;
    color: var(--eaoy-muted);
    text-align: center;
}

/* -------------------------------------------------------------------------
   Enquiry form
   ---------------------------------------------------------------------- */

.eaoy-quote {
    max-width: 640px;
}

.eaoy-quote__fallback {
    margin: 0;
    padding-left: 18px;
    font-size: 15px;
    line-height: 1.7;
}

.quote-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.quote-form input:not([type="checkbox"]),
.quote-form select,
.quote-form textarea {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--eaoy-line);
    border-radius: 3px;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    color: var(--eaoy-ink);
}

.quote-form input:not([type="checkbox"]):focus,
.quote-form select:focus,
.quote-form textarea:focus {
    outline: 2px solid var(--eaoy-dark);
    outline-offset: 1px;
    border-color: var(--eaoy-dark);
}

.quote-form textarea {
    resize: vertical;
}

.quote-form p {
    margin: 0 0 20px;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400 !important;
}

.checkbox-label input {
    flex-shrink: 0;
    margin-top: 5px;
}

.form-notice {
    margin-bottom: 24px;
    padding: 16px 20px;
    border: 1px solid var(--eaoy-line);
    border-left: 4px solid var(--eaoy-ink);
    border-radius: 3px;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.form-notice p {
    margin: 0;
}

.form-notice p + p {
    margin-top: 8px;
}

.form-notice--success {
    border-color: #c2e2c7;
    background: #edf7ee;
    color: #1d5c2a;
}

.form-notice--error {
    border-color: #f3c2cb;
    background: #fdecef;
    color: #8c1024;
}

.form-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%);
    white-space: nowrap !important;
    border: 0 !important;
}
