/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --green:        #1a365d;
    --green-dark:   #112240;
    --green-light:  #4a7ab5;
    --tan:          #c8a96e;
    --dark:         #231f20;
    --mid-dark:     #1a365d;
    --off-white:    #f4f5f7;
    --light:        #e2e5ea;
    --text-dark:    #231f20;
    --text-mid:     #3d4a5c;
    --text-light:   #7a8899;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    background-color: var(--off-white);
    color: var(--text-dark);
    line-height: 1.6;
}
img { max-width: 100%; height: auto; }
ul  { list-style: none; }
a   { text-decoration: none; color: inherit; }


/* ============================================================
   HEADER
   ============================================================ */
.cat-header {
    background-color: var(--dark);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    z-index: 200;
    border-bottom: 3px solid var(--green);
}
.cat-header-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.4em;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
}
.cat-header-logo em { font-style: normal; color: var(--green-light); }
.cat-header-tag {
    font-size: .7em;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255,255,255,.38);
}


/* ============================================================
   HERO
   ============================================================ */
.cat-hero {
	background: linear-gradient(140deg, #231f20db 0%, #1a365db8 50%, #0e1e3a 100%), url(/imageserver/Reusable/envision/envision-hero.jpg);
	padding: 80px 40px 70px;
	position: relative;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.cat-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-55deg, transparent, transparent 50px, rgba(255,255,255,.014) 50px, rgba(255,255,255,.014) 51px);
}
.cat-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 60px;
}
.cat-hero-content { flex: 1; }
.cat-hero-eyebrow {
    font-size: .7em;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--green-light);
    margin-bottom: 14px;
}
.cat-hero h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.8em, 5vw, 4.4em);
    font-weight: 800;
    line-height: 1em;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 18px;
}
.cat-hero h1 em { font-style: normal; color: var(--tan); }
.cat-hero-sub {
    font-style: italic;
    font-size: 1.35em;
    font-weight: 300;
    color: rgba(255,255,255,.55);
    display: block;
    margin-top: 4px;
}
.cat-hero-desc {
    font-size: 1em;
    font-weight: 300;
    color: rgba(255,255,255,.7);
    max-width: 560px;
    line-height: 1.75em;
    margin-bottom: 28px;
}
.cat-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}
.cat-hero-pill {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.75);
    font-size: .72em;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 14px;
}
/* Award badge */
.cat-hero-badge {
    flex-shrink: 0;
    width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.cat-hero-badge-ring {
    width: 175px;
    height: 175px;
    border-radius: 50%;
    border: 3px solid var(--tan);
    background: rgba(255,255,255,.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    gap: 4px;
}
.cat-hero-badge-ring p {
    font-size: .6em;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.65);
    line-height: 1.4em;
}
.cat-hero-badge-ring strong {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1em;
    font-weight: 800;
    color: var(--tan);
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1.1em;
}


/* ============================================================
   "THE ENVISION DIFFERENCE" BAND
   ============================================================ */
.diff-band {
    background-color: var(--green-dark);
    padding: 50px 40px;
}
.diff-band-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.diff-band-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .72em;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--green-light);
    margin-bottom: 20px;
    text-align: center;
}
.diff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}
.diff-item {
    background: rgba(255,255,255,.05);
    padding: 28px 26px;
    text-align: center;
}
.diff-item-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    stroke: var(--tan);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.diff-item h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1em;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 8px;
}
.diff-item p {
    font-size: .82em;
    color: rgba(255,255,255,.5);
    line-height: 1.55em;
}


/* ============================================================
   COLLECTIONS
   ============================================================ */
.collections-section {
    padding: 70px 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.collections-intro {
    margin-bottom: 50px;
}
.sec-label {
    font-size: .7em;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 8px;
}
.sec-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.1em;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1em;
}
.sec-divider {
    display: block;
    width: 44px;
    height: 3px;
    background-color: var(--green);
    margin-bottom: 14px;
}
.sec-desc {
    font-size: .95em;
    color: var(--text-mid);
    max-width: 620px;
}

/* Collection cards — one per row, horizontal layout */
.collection-card {
    background: #fff;
    border: 1px solid var(--light);
    margin-bottom: 30px;
    overflow: hidden;
}
.collection-card:last-child { margin-bottom: 0; }

.collection-card-header {
    display: flex;
    align-items: stretch;
    background: var(--dark);
    min-height: 110px;
}
.collection-card-accent {
    width: 5px;
    flex-shrink: 0;
}
.collection-card-header-body {
    flex: 1;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.collection-tier {
    font-size: .65em;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--green-light);
    margin-bottom: 5px;
}
.collection-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2em;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1em;
    margin-bottom: 4px;
}
.collection-tagline {
    font-size: .82em;
    color: rgba(255,255,255,.48);
    font-weight: 300;
}
.collection-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-shrink: 0;
}
.col-badge {
    font-size: .62em;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.6);
    white-space: nowrap;
}
.col-badge-hi {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}
.col-badge-blue {
    background: #1a6a96;
    border-color: #1a6a96;
    color: #fff;
}

.collection-card-body {
    display: flex;
    gap: 0;
}
.collection-desc-col {
    flex: 1;
    padding: 28px 32px;
    border-right: 1px solid var(--light);
}
.collection-desc {
    font-size: .92em;
    color: var(--text-mid);
    line-height: 1.75em;
    margin-bottom: 18px;
}
.collection-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.col-spec {
    font-size: .68em;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-mid);
    background: var(--off-white);
    border: 1px solid var(--light);
    padding: 4px 10px;
}

.collection-colors-col {
    width: 260px;
    flex-shrink: 0;
    padding: 28px 22px;
    border-right: 1px solid var(--light);
}
.colors-label {
    font-size: .65em;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 14px;
}
.swatch-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.swatch {
    cursor: pointer;
}
.swatch-chip {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 2px;
    border: 2px solid transparent;
    margin-bottom: 5px;
    transition: border-color .2s, transform .2s;
    overflow: hidden;
    position: relative;
}
.swatch-chip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.swatch:hover .swatch-chip {
    border-color: var(--green);
    transform: scale(1.04);
}
.swatch-chip-magnify {
    position: absolute;
    inset: 0;
    background: rgba(26,54,93,.0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.swatch:hover .swatch-chip-magnify {
    background: rgba(26,54,93,.25);
}
.swatch-chip-magnify svg {
    opacity: 0;
    transition: opacity .2s;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}
.swatch:hover .swatch-chip-magnify svg { opacity: 1; }
.swatch-name {
    font-size: .65em;
    font-weight: 600;
    color: var(--text-mid);
    line-height: 1.3em;
    letter-spacing: .02em;
}
.cool-tread {
    display: inline-block;
    font-size: .58em;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    background: #1a6a96;
    padding: 1px 5px;
    margin-top: 3px;
}

/* Lifestyle photo column */
.collection-photo-col {
    width: 280px;
    flex-shrink: 0;
    overflow: hidden;
    background: #ccc;
    position: relative;
}
.collection-photo-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.collection-photo-placeholder {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}
.collection-photo-placeholder svg {
    stroke: rgba(255,255,255,.2);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
}
.collection-photo-placeholder p {
    font-size: .65em;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.25);
}

/* -- Swatch popup modal -- */
.swatch-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20,20,28,.8);
    z-index: 600;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(6px);
}
.swatch-modal-backdrop.open { display: flex; }

.swatch-modal {
    background: #fff;
    max-width: 720px;
    width: 100%;
    position: relative;
    animation: swatchModalIn .28s ease;
    overflow: hidden;
}
@keyframes swatchModalIn {
    from { opacity: 0; transform: scale(.96) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.swatch-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    background: var(--dark);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background .2s;
}
.swatch-modal-close:hover { background: var(--green); }
.swatch-modal-close svg {
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    width: 16px;
    height: 16px;
}
.swatch-modal-img {
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    background: var(--light);
    position: relative;
}
.swatch-modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.swatch-modal-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.swatch-modal-body {
    padding: 22px 26px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.swatch-modal-collection {
    font-size: .68em;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 4px;
}
.swatch-modal-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.6em;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-dark);
    line-height: 1em;
}
.swatch-modal-nav {
    display: flex;
    gap: 8px;
}
.swatch-modal-nav-btn {
    width: 36px;
    height: 36px;
    background: var(--off-white);
    border: 1px solid var(--light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s;
}
.swatch-modal-nav-btn:hover { background: var(--green); border-color: var(--green); }
.swatch-modal-nav-btn:hover svg { stroke: #fff; }
.swatch-modal-nav-btn svg {
    stroke: var(--text-mid);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    width: 14px;
    height: 14px;
}


/* ============================================================
   FAQ / COMPOSITE DECKING INFO
   ============================================================ */
.faq-section {
    background: var(--off-white);
    border-top: 1px solid var(--light);
    border-bottom: 1px solid var(--light);
    padding: 65px 40px;
}
.faq-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.faq-header { margin-bottom: 36px; }
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.faq-item {
    background: #fff;
    padding: 24px 26px;
    border-left: 4px solid var(--green);
}
.faq-question {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.05em;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.faq-answer {
    font-size: .88em;
    color: var(--text-mid);
    line-height: 1.65em;
}


/* ============================================================
   WARRANTY BAND
   ============================================================ */
.warranty-band {
    background: var(--dark);
    padding: 60px 40px;
    border-top: 3px solid var(--green);
}
.warranty-band-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}
.warranty-copy { flex: 1; }
.warranty-copy .sec-label { color: var(--green-light); }
.warranty-copy .sec-title { color: #fff; }
.warranty-copy p {
    font-size: .92em;
    color: rgba(255,255,255,.58);
    line-height: 1.7em;
    margin-top: 14px;
}
.warranty-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 360px;
    flex-shrink: 0;
}
.warranty-stat {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.09);
    padding: 22px 18px;
    text-align: center;
}
.warranty-stat-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.8em;
    font-weight: 800;
    color: var(--tan);
    line-height: 1em;
    margin-bottom: 4px;
}
.warranty-stat-label {
    font-size: .65em;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    line-height: 1.5em;
}


/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
    padding: 60px 40px;
}
.cta-band-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.cta-band-content h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2em;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.1em;
    margin-bottom: 10px;
}
.cta-band-content p {
    font-size: .9em;
    color: rgba(255,255,255,.72);
    max-width: 460px;
}
.cta-btn {
    flex-shrink: 0;
    display: inline-block;
    background: #fff;
    color: var(--green-dark);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .9em;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 14px 32px;
    transition: background .25s, color .25s;
    white-space: nowrap;
}
.cta-btn:hover { background: var(--dark); color: #fff; }


/* ============================================================
   FOOTER
   ============================================================ */
.cat-footer {
    background: #111510;
    padding: 26px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.cat-footer p { font-size: .72em; color: rgba(255,255,255,.25); }
.cat-footer a {
    font-size: .72em;
    color: rgba(255,255,255,.36);
    transition: color .2s;
}
.cat-footer a:hover { color: var(--green-light); }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .cat-hero-inner { flex-direction: column; gap: 30px; }
    .cat-hero-badge { flex-direction: row; width: 100%; }
    .diff-grid { grid-template-columns: repeat(3, 1fr); }
    .collection-card-body { flex-direction: column; }
    .collection-colors-col { width: 100%; border-right: none; border-top: 1px solid var(--light); }
    .collection-photo-col { width: 100%; min-height: 260px; }
    .collection-photo-placeholder { min-height: 220px; }
    .swatch-grid { grid-template-columns: repeat(4, 1fr); }
    .faq-grid { grid-template-columns: 1fr; }
    .warranty-band-inner { flex-direction: column; align-items: flex-start; }
    .warranty-stats { width: 100%; }
}
@media (max-width: 768px) {
    .cat-hero { padding: 60px 24px 50px; }
    .collections-section, .faq-section, .warranty-band, .cta-band { padding: 50px 24px; }
    .diff-band { padding: 40px 24px; }
    .diff-grid { grid-template-columns: 1fr; gap: 2px; }
    .collection-card-header-body { flex-direction: column; align-items: flex-start; }
    .collection-desc-col { padding: 24px; }
    .collection-colors-col { padding: 24px; }
    .cta-band-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 540px) {
    .cat-header { padding: 0 20px; }
    .cat-header-tag { display: none; }
    .swatch-grid { grid-template-columns: repeat(3, 1fr); }
    .warranty-stats { grid-template-columns: repeat(2, 1fr); }
    .cat-footer { flex-direction: column; padding: 22px 24px; }
}

/* ============================================================
   GSAP — initial hidden states (set before JS runs)
   ============================================================ */