/* ==========================================================================
   EZYMAT homepage
   Scoped under .ez- so nothing here collides with the inherited theme.
   Palette and type come from global.css :root — do not hardcode brand colours.
   ========================================================================== */

.ez-section {
    padding: 110px 0;
    position: relative;
}

.ez-section--tight { padding: 80px 0; }

.ez-section--dark {
    background: var(--color-dark);
    color: var(--color-white);
}

.ez-section--black {
    background: #0a0809;
    color: var(--color-white);
}

.ez-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-family-base);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-one);
    margin-bottom: 18px;
}

.ez-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--color-one);
}

.ez-title {
    font-family: var(--font-family-heading);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin-bottom: 20px;
}

.ez-title em {
    font-style: normal;
    color: var(--color-one);
}

.ez-lead {
    font-size: 17px;
    line-height: 1.75;
    color: var(--color-three);
    max-width: 60ch;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.ez-hero {
    position: relative;
    min-height: min(88vh, 820px);
    display: flex;
    align-items: center;
    background: #0a0809;
    overflow: hidden;
}

.ez-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ez-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
}

/* Left-weighted scrim keeps the headline legible without flattening the photo. */
.ez-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(10, 8, 9, 0.94) 0%, rgba(10, 8, 9, 0.72) 42%, rgba(10, 8, 9, 0.25) 100%),
        linear-gradient(to top, rgba(10, 8, 9, 0.9) 0%, rgba(10, 8, 9, 0) 45%);
}

.ez-hero__inner {
    position: relative;
    z-index: 1;
    padding: 120px 0 70px;
    width: 100%;
}

.ez-hero__title {
    font-family: var(--font-family-heading);
    font-weight: 700;
    font-size: clamp(2.4rem, 5.4vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--color-white);
    margin-bottom: 22px;
    text-wrap: balance;
}

.ez-hero__title span { color: var(--color-one); }

.ez-hero__sub {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
    max-width: 46ch;
    margin-bottom: 34px;
}

/* --- Vehicle selector ---------------------------------------------------- */

.ez-finder {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 22px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    max-width: 660px;
}

.ez-finder__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 14px;
}

.ez-finder__row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 10px;
}

.ez-finder select {
    width: 100%;
    height: 52px;
    padding: 0 38px 0 14px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background-color: rgba(10, 8, 9, 0.72);
    color: var(--color-white);
    font-family: var(--font-family-base);
    font-size: 15px;
    font-weight: 500;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ez-finder select:hover:not(:disabled) { border-color: rgba(255, 255, 255, 0.4); }

.ez-finder select:focus-visible {
    outline: none;
    border-color: var(--color-one);
    box-shadow: 0 0 0 3px rgba(var(--color-one-rgb), 0.28);
}

.ez-finder select:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.ez-finder select option { background: #141113; color: #fff; }

.ez-finder__go {
    height: 52px;
    padding: 0 30px;
    border: 0;
    border-radius: 9px;
    background: var(--color-one);
    color: var(--color-white);
    font-family: var(--font-family-base);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.2s ease;
}

.ez-finder__go:hover:not(:disabled) {
    background: #b80005;
    transform: translateY(-1px);
}

.ez-finder__go:disabled { opacity: 0.45; cursor: not-allowed; }

.ez-finder__hint {
    margin: 12px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.ez-finder__hint a {
    color: var(--color-white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --- Hero trust strip ---------------------------------------------------- */

.ez-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 30px;
    margin-top: 30px;
    padding: 0;
    list-style: none;
}

.ez-hero__trust li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
}

.ez-hero__trust i { color: var(--color-one); font-size: 15px; }

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.ez-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    counter-reset: ezstep;
}

.ez-step {
    position: relative;
    padding: 34px 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.ez-step::before {
    counter-increment: ezstep;
    content: "0" counter(ezstep);
    display: block;
    font-family: var(--font-family-heading);
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    color: rgba(var(--color-one-rgb), 0.85);
    margin-bottom: 16px;
}

.ez-step h3 {
    font-family: var(--font-family-heading);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-white);
}

.ez-step p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-three);
    margin: 0;
}

/* --------------------------------------------------------------------------
   Custom-fit comparison
   -------------------------------------------------------------------------- */

.ez-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 44px;
}

.ez-compare__card {
    border-radius: 14px;
    padding: 32px 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ez-compare__card--them { background: rgba(255, 255, 255, 0.02); }

.ez-compare__card--us {
    background: linear-gradient(160deg, rgba(var(--color-one-rgb), 0.16), rgba(var(--color-one-rgb), 0.03));
    border-color: rgba(var(--color-one-rgb), 0.4);
}

.ez-compare__head {
    font-family: var(--font-family-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-white);
}

.ez-compare ul { list-style: none; padding: 0; margin: 0; }

.ez-compare li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-three);
    padding: 11px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.ez-compare li:first-child { border-top: 0; }

.ez-compare li i { font-size: 16px; line-height: 1.5; flex-shrink: 0; }
.ez-compare__card--them li i { color: #6d6d6d; }
.ez-compare__card--us li i { color: var(--color-one); }
.ez-compare__card--us li { color: rgba(255, 255, 255, 0.9); }

/* --------------------------------------------------------------------------
   Customisation
   -------------------------------------------------------------------------- */

.ez-custom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 46px;
}

.ez-custom__card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 30px 28px;
    background: rgba(255, 255, 255, 0.03);
}

.ez-custom__card h3 {
    font-family: var(--font-family-heading);
    font-size: 19px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 8px;
}

.ez-custom__card p {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--color-three);
    margin-bottom: 20px;
}

.ez-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ez-swatch {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.ez-addons { list-style: none; padding: 0; margin: 0; }

.ez-addons li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.86);
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.ez-addons li:first-child { border-top: 0; }
.ez-addons span { color: var(--color-one); font-weight: 600; white-space: nowrap; }

.ez-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.ez-logos img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    padding: 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* --------------------------------------------------------------------------
   Materials / split feature
   -------------------------------------------------------------------------- */

.ez-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ez-split__media img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}

.ez-specs { list-style: none; padding: 0; margin: 30px 0 0; }

.ez-specs li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ez-specs li:first-child { border-top: 0; }

.ez-specs i {
    color: var(--color-one);
    font-size: 18px;
    line-height: 1.45;
    flex-shrink: 0;
}

.ez-specs strong {
    display: block;
    font-family: var(--font-family-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 3px;
}

.ez-specs p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--color-three); }

/* --------------------------------------------------------------------------
   Category tiles
   -------------------------------------------------------------------------- */

.ez-cats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 44px;
}

.ez-cat {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 180px;
    padding: 26px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.ez-cat:hover {
    border-color: rgba(var(--color-one-rgb), 0.6);
    transform: translateY(-3px);
}

.ez-cat h3 {
    font-family: var(--font-family-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-white);
    margin: 0 0 6px;
}

.ez-cat span { font-size: 14px; color: var(--color-three); }

.ez-cat i {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 20px;
    color: var(--color-one);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.ez-cat:hover i { opacity: 1; transform: translateX(0); }

/* --------------------------------------------------------------------------
   Factory band
   -------------------------------------------------------------------------- */

.ez-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 46px;
}

.ez-fact {
    padding: 26px 22px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.ez-fact strong {
    display: block;
    font-family: var(--font-family-heading);
    font-size: 30px;
    font-weight: 700;
    color: var(--color-one);
    line-height: 1;
    margin-bottom: 8px;
}

.ez-fact span { font-size: 14px; line-height: 1.6; color: var(--color-three); }

/* --------------------------------------------------------------------------
   Closing CTA
   -------------------------------------------------------------------------- */

.ez-cta {
    text-align: center;
    padding: 90px 40px;
    border-radius: 20px;
    background: linear-gradient(150deg, rgba(var(--color-one-rgb), 0.22), rgba(var(--color-one-rgb), 0.04));
    border: 1px solid rgba(var(--color-one-rgb), 0.34);
}

.ez-cta .ez-title { margin-left: auto; margin-right: auto; }
.ez-cta .ez-lead { margin: 0 auto 32px; }

.ez-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 54px;
    padding: 0 34px;
    border-radius: 9px;
    background: var(--color-one);
    color: var(--color-white);
    font-family: var(--font-family-base);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.18s ease;
}

.ez-btn:hover { background: #b80005; color: var(--color-white); transform: translateY(-1px); }

.ez-btn--ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.ez-btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--color-white); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
    .ez-section { padding: 76px 0; }
    .ez-steps,
    .ez-custom,
    .ez-cats { grid-template-columns: 1fr 1fr; }
    .ez-split { grid-template-columns: 1fr; gap: 40px; }
    .ez-facts { grid-template-columns: 1fr 1fr; }
    .ez-finder__row { grid-template-columns: 1fr 1fr; }
    .ez-finder__go { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
    .ez-section { padding: 60px 0; }
    .ez-hero { min-height: 0; }
    .ez-hero__inner { padding: 130px 0 60px; }
    .ez-steps,
    .ez-custom,
    .ez-cats,
    .ez-compare,
    .ez-facts { grid-template-columns: 1fr; }
    .ez-finder { padding: 18px; }
    .ez-finder__row { grid-template-columns: 1fr; }
    .ez-cta { padding: 60px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .ez-cat,
    .ez-cat i,
    .ez-btn,
    .ez-finder__go { transition: none; }
    .ez-cat:hover,
    .ez-btn:hover,
    .ez-finder__go:hover:not(:disabled) { transform: none; }
}
