/*
Theme Name: Texrivo Sourcing
Theme URI: https://texrivo.com
Author: Texrivo
Description: Lightweight bilingual-ready English B2B fabric sourcing theme for Texrivo. Includes inquiry and service pages.
Version: 2.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: texrivo
*/
:root{--navy:#183443;--navy2:#0d2938;--gold:#b69a73;--cream:#f7f5f0;--ink:#25343a;--muted:#607079;--line:#e6e1d8}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--ink);font:16px/1.65 system-ui,-apple-system,Segoe UI,Arial,sans-serif}h1,h2,h3{font-family:Georgia,'Times New Roman',serif;line-height:1.16;letter-spacing:-.02em;margin:0 0 18px}h1{font-size:clamp(2.5rem,5vw,4.5rem)}h2{font-size:clamp(2rem,3.5vw,3rem)}h3{font-size:1.45rem}p{margin:0 0 16px}a{color:inherit}img{max-width:100%;height:auto}button,input,textarea,select{font:inherit}.wrap{width:min(1160px,calc(100% - 40px));margin:auto}.section{padding:85px 0}.section.alt{background:var(--cream)}.eyebrow{color:#a78350;font-size:.78rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;margin-bottom:10px}.muted{color:var(--muted)}.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}.header-inner{min-height:94px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;min-width:160px}.brand img{width:195px;max-height:80px;object-fit:contain}.brand-text{font-size:1.8rem;font-weight:850;letter-spacing:.06em;color:var(--navy)}.menu{display:flex;align-items:center;gap:24px}.menu a{text-decoration:none;font-size:.9rem;font-weight:650}.menu a:hover{color:#a78350}.btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:1px solid transparent;border-radius:8px;padding:13px 21px;font-weight:750;line-height:1.3;cursor:pointer;transition:transform .2s,background .2s}.btn:hover{transform:translateY(-2px)}.btn.gold{background:var(--gold);color:#fff}.btn.navy{background:var(--navy);color:#fff}.btn.outline{border-color:#fff;color:#fff}.btn.light{background:#fff;color:var(--navy)}.btn.disabled{opacity:.7;cursor:default}.menu-toggle{display:none;background:transparent;border:1px solid var(--line);border-radius:6px;padding:8px 12px;color:var(--navy)}.hero{background:linear-gradient(110deg,#102f40 0%,#183443 58%,#3b4d50 100%);color:#fff;position:relative;overflow:hidden}.hero:after{content:'';position:absolute;right:-120px;top:-110px;width:540px;height:540px;border:90px solid rgba(182,154,115,.10);border-radius:48% 52% 62% 38%;transform:rotate(30deg);pointer-events:none}.hero-grid{min-height:590px;display:grid;grid-template-columns:1.15fr .85fr;align-items:center;gap:50px;padding:85px 0}.hero h1{max-width:730px}.hero p{max-width:590px;color:#e2e9eb;font-size:1.13rem}.hero .eyebrow{color:#e0bb7f}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.hero-art{position:relative;min-height:340px;border:1px solid #57707b;border-radius:22px;background:linear-gradient(135deg,#d4c2a9,#f8efe2 30%,#a9b3b5 31%,#dce3e3 53%,#c8a875 54%,#f5e5cb 80%);overflow:hidden;box-shadow:0 20px 60px #091e2a66}.hero-art:before,.hero-art:after{content:'';position:absolute;width:160%;height:105px;left:-25%;transform:rotate(-28deg);border-radius:100%;box-shadow:0 10px 30px #0002}.hero-art:before{top:25%;background:linear-gradient(90deg,#173a4d,#1b5366,#0d2c40)}.hero-art:after{top:56%;background:linear-gradient(90deg,#caa46d,#f6e6c6,#b68d56)}.hero-note{position:absolute;bottom:16px;left:20px;background:#ffffffed;color:var(--navy);padding:10px 15px;border-radius:6px;font-weight:750;font-size:.85rem;z-index:2}.section-intro{max-width:720px;margin-bottom:34px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.card{border:1px solid var(--line);border-radius:14px;background:#fff;padding:27px}.card .number{font-size:.8rem;font-weight:800;color:#a78350;margin-bottom:14px}.card p{color:var(--muted);font-size:.96rem}.service-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}.service{padding:38px;border-radius:16px;background:#fff;border:1px solid var(--line)}.service .tag{display:inline-block;color:#8e6d3e;font-size:.8rem;font-weight:800;margin-bottom:16px}.service ul{padding-left:20px;color:var(--muted)}.service li{margin-bottom:6px}.service .btn{margin-top:8px}.fabric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.fabric{min-height:225px;border-radius:14px;padding:24px;display:flex;flex-direction:column;justify-content:end;overflow:hidden;color:#fff;background:linear-gradient(145deg,#546e7a,#1d3745);position:relative}.fabric:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(110deg,transparent 0 8px,#ffffff0b 8px 9px)}.fabric:nth-child(2){background:linear-gradient(145deg,#b6a99c,#796b64)}.fabric:nth-child(3){background:linear-gradient(145deg,#dec7a5,#a17f5c)}.fabric:nth-child(4){background:linear-gradient(145deg,#7c8791,#344b56)}.fabric h3,.fabric p{position:relative;z-index:1}.fabric p{font-size:.87rem;margin:0}.why{background:var(--navy);color:#fff}.why p{color:#d5e0e5}.why-grid{display:grid;grid-template-columns:1fr 1fr;gap:65px;align-items:center}.proof{border:1px solid #66808c;border-radius:14px;padding:30px;background:#ffffff0a}.proof div{padding:12px 0;border-bottom:1px solid #ffffff25}.proof div:last-child{border:0}.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.step{padding:20px 10px}.step b{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#f0e6d8;color:#987447;margin-bottom:20px}.step p{color:var(--muted)}.cta{background:linear-gradient(120deg,#0d2b3a,#254656);color:#fff}.cta p{color:#dce5e9}.footer{background:#102a38;color:#d7e0e3;padding:50px 0}.footer-grid{display:flex;justify-content:space-between;gap:35px;flex-wrap:wrap}.footer a{color:#d7e0e3}.footer small{color:#b7c5cb}.page-head{background:var(--navy);color:#fff;padding:75px 0}.page-head p{color:#dbe5e8;max-width:740px}.page-content{padding:70px 0;max-width:860px}.form{display:grid;gap:14px;max-width:650px}.form label{font-weight:700}.form input,.form textarea,.form select{width:100%;border:1px solid #cfd7da;border-radius:8px;padding:12px;background:#fff}.form textarea{min-height:150px}.notice{padding:14px 18px;border:1px solid #bfd7c2;background:#f2faf3;border-radius:8px}.error{border-color:#dcb4b4;background:#fff5f5}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:900px){.menu{gap:12px}.menu a{font-size:.78rem}.brand img{width:160px}.hero-grid{gap:25px}.fabric-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.header-inner{min-height:74px}.brand img{width:155px}.menu-toggle{display:block}.menu{display:none;position:absolute;top:74px;left:0;right:0;background:#fff;padding:22px;box-shadow:0 14px 20px #0002;flex-direction:column;align-items:stretch}.menu.open{display:flex}.menu a{font-size:1rem}.hero-grid{grid-template-columns:1fr;min-height:unset;padding:65px 0}.hero-art{min-height:220px}.section{padding:60px 0}.cards,.service-grid,.why-grid{grid-template-columns:1fr}.fabric-grid,.steps{grid-template-columns:repeat(2,1fr)}.why-grid{gap:20px}.footer-grid{display:block}.page-head{padding:55px 0}}@media(max-width:420px){.fabric-grid,.steps{grid-template-columns:1fr}.actions .btn{width:100%}}

/* V2 visual enhancements: locally bundled original textile illustrations */
.brand img{width:220px;max-height:86px}.header-inner{min-height:100px}.hero-art{background:#d6c4aa}.hero-art:before,.hero-art:after{display:none}.hero-art>img{display:block;width:100%;height:100%;min-height:340px;object-fit:cover}.service{overflow:hidden;padding-top:0}.service-photo{display:block;width:calc(100% + 76px);max-width:none;height:210px;object-fit:cover;margin:0 -38px 28px}.fabric{background:#183443!important;isolation:isolate}.fabric:before{z-index:1;background:linear-gradient(0deg,rgba(10,32,43,.88),rgba(10,32,43,.04) 72%)}.fabric>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .4s}.fabric:hover>img{transform:scale(1.045)}.fabric h3,.fabric p{z-index:2}.hero-note{z-index:3}@media(max-width:900px){.brand img{width:180px}}@media(max-width:700px){.brand img{width:165px}.header-inner{min-height:78px}.hero-art>img{min-height:240px}.service-photo{height:190px}}

/* Texrivo Header V3 */
:root {
    --navy: #102F40;
    --gold: #BD955C;
    --cream: #F8F5EF;
}

.site-header .header-inner {
    min-height: 88px;
    gap: 18px;
}

.site-header .brand {
    flex-shrink: 0;
    min-width: 0;
}

.site-header .brand img {
    display: block;
    width: 165px;
    max-height: 70px;
    object-fit: contain;
}

.site-header .menu {
    gap: 18px;
}

.site-header .menu a {
    white-space: nowrap;
}

.site-header .menu .header-whatsapp {
    background: #BD955C;
    color: #fff;
    padding: 12px 20px;
    border-radius: 7px;
}

@media (max-width: 900px) {
    .site-header .menu {
        gap: 10px;
    }

    .site-header .menu a {
        font-size: .78rem;
    }
}

@media (max-width: 700px) {
    .site-header .header-inner {
        min-height: 74px;
    }

    .site-header .brand img {
        width: 125px;
    }

    .site-header .menu {
        top: 74px;
        gap: 14px;
    }

    .site-header .menu .header-whatsapp {
        text-align: center;
        width: 100%;
    }
}

/* Texrivo Homepage Hero Banner V3 */
.hero.hero-home {
    background:
        linear-gradient(
            90deg,
            rgba(8, 35, 49, 0.18),
            rgba(8, 35, 49, 0) 65%
        ),
        url("/wp-content/themes/texrivo-theme/assets/hero-desktop.webp") center center / cover no-repeat;
    color: #fff;
    min-height: 650px;
    display: flex;
    align-items: center;
}

/* Remove old decorative overlay */
.hero.hero-home::after {
    display: none;
}

.hero-home-content {
    width: min(1160px, calc(100% - 40px));
    padding: 100px 0;
}

.hero-home-copy {
    max-width: 650px;
}

.hero-home h1 {
    font-size: clamp(2.7rem, 4.5vw, 4.2rem);
    line-height: 1.12;
    margin-bottom: 24px;
    color: #fff;
}

.hero-home p {
    max-width: 580px;
    color: #f0f4f5;
    font-size: 1.08rem;
    line-height: 1.7;
}

.hero-home .eyebrow {
    color: #e4bd82;
}

.hero-home .actions {
    margin-top: 32px;
}

.hero-home .btn.gold {
    background: #BD955C;
    color: #fff;
}

.hero-home .btn.outline {
    border: 1px solid #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

/* Mobile Hero */
@media (max-width: 700px) {
    .hero.hero-home {
        background:
            linear-gradient(
                180deg,
                rgba(8, 35, 49, 0.15),
                rgba(8, 35, 49, 0.10)
            ),
            url("/wp-content/themes/texrivo-theme/assets/hero-mobile.webp") center center / cover no-repeat;
        min-height: 680px;
        align-items: flex-start;
    }

    .hero-home-content {
        padding: 72px 0 100px;
    }

    .hero-home-copy {
        max-width: 100%;
    }

    .hero-home h1 {
        font-size: clamp(2.25rem, 8vw, 3rem);
        line-height: 1.13;
    }

    .hero-home p {
        font-size: 1rem;
        line-height: 1.65;
    }

    .hero-home .actions {
        gap: 12px;
    }

    .hero-home .actions .btn {
        width: 100%;
    }
}

/* Hero Banner readability adjustment */
@media (min-width: 701px) {
    .hero.hero-home {
        background-image:
            linear-gradient(
                90deg,
                rgba(8, 35, 49, 0.68) 0%,
                rgba(8, 35, 49, 0.48) 28%,
                rgba(8, 35, 49, 0.12) 55%,
                rgba(8, 35, 49, 0) 75%
            ),
            url("/wp-content/themes/texrivo-theme/assets/hero-desktop.webp");
    }

    .hero-home-copy {
        max-width: 570px;
    }

    .hero-home h1 {
        font-size: clamp(2.7rem, 4vw, 3.8rem);
    }

    .hero-home p {
        max-width: 530px;
    }
}

/* Mobile Hero refinement */
@media (max-width: 700px) {
    .hero.hero-home {
        background-image:
            linear-gradient(
                180deg,
                rgba(8, 35, 49, 0.38) 0%,
                rgba(8, 35, 49, 0.48) 48%,
                rgba(8, 35, 49, 0.08) 100%
            ),
            url("/wp-content/themes/texrivo-theme/assets/hero-mobile.webp");
    }

    .hero-home h1 {
        font-size: clamp(2rem, 7.5vw, 2.6rem);
        line-height: 1.16;
    }

    .hero-home p {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .hero-home .btn.outline {
        background: rgba(8, 35, 49, 0.55);
    }
}
/* Texrivo five-service minimal section */
.texrivo-services { background: #F8F5EF; }
.texrivo-services-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 26px;
}
.texrivo-service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    color: #102F40;
    text-decoration: none;
    min-width: 0;
}
.texrivo-service-icon {
    width: 46px;
    height: 46px;
    flex: none;
    color: #BD955C;
    transition: transform .2s ease;
}
.texrivo-service-text { display: flex; flex-direction: column; gap: 9px; }
.texrivo-service-text strong { font: bold 1.1rem/1.3 Georgia, serif; }
.texrivo-service-text > span { color: #607079; font-size: .9rem; line-height: 1.55; }
.texrivo-service-item:hover .texrivo-service-icon,
.texrivo-service-item:focus-visible .texrivo-service-icon { transform: translateY(-3px); }
.texrivo-service-item:focus-visible { outline: 2px solid #BD955C; outline-offset: 8px; }
@media (max-width: 900px) {
    .texrivo-services-grid { gap: 18px; }
    .texrivo-service-text strong { font-size: 1rem; }
}
@media (max-width: 700px) {
    .texrivo-services-grid { grid-template-columns: 1fr; gap: 26px; }
    .texrivo-service-item { flex-direction: row; text-align: left; align-items: flex-start; gap: 20px; }
    .texrivo-service-icon { width: 38px; height: 38px; }
    .texrivo-service-text { gap: 5px; }
}

/* Why Texrivo V3: responsive market image and four advantages */
.section.why {
    background: #102F40;
    color: #fff;
}
.section.why .why-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(28px, 4vw, 60px);
}
.section.why .why-image,
.section.why .why-content { min-width: 0; }
.section.why .why-image picture { display: block; }
.section.why .why-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}
.section.why .why-content h2 { color: #fff; }
.section.why .why-content p { color: #d5e0e5; }
.section.why .why-benefits { margin-top: 24px; }
.section.why .why-benefit {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 13px 0;
    border-top: 1px solid rgba(255,255,255,.2);
}
.section.why .why-benefit strong {
    color: #e0bb7f;
    font-size: 1rem;
    line-height: 1.4;
}
.section.why .why-benefit span {
    color: #d5e0e5;
    font-size: .93rem;
    line-height: 1.55;
}
@media (max-width: 767px) {
    .section.why .why-grid { grid-template-columns: 1fr; gap: 28px; }
    .section.why .why-image img { aspect-ratio: 3 / 4; }
    .section.why .why-benefits { margin-top: 18px; }
}

/* Why Texrivo V4: taller desktop image only; mobile remains unchanged */
@media (min-width: 768px) {
    .section.why .why-image img {
        aspect-ratio: 9 / 10;
        object-fit: cover;
        object-position: center center;
    }
}


/* How We Work V2: four illustrated steps, scoped to homepage */
.section.texrivo-process { background: #F8F5EF; }
.texrivo-process .section-intro { max-width: none; margin-bottom: 24px; }
.texrivo-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}
.texrivo-process-step {
    position: relative;
    min-width: 0;
    text-align: center;
}
.texrivo-process-visual {
    width: min(100%, 180px);
    margin: 0 auto 18px;
    position: relative;
}
.texrivo-process-visual img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 50%;
}
.texrivo-process-number {
    position: absolute;
    top: 1px;
    left: 1px;
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border: 2px solid #F8F5EF;
    border-radius: 50%;
    background: #BD955C;
    color: #fff;
    font-weight: 800;
    line-height: 1;
}
.texrivo-process-step h3 {
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    line-height: 1.3;
    margin-bottom: 9px;
    color: #102F40;
}
.texrivo-process-step p {
    color: #607079;
    font-size: .94rem;
    line-height: 1.55;
    max-width: 260px;
    margin: 0 auto;
}
@media (min-width: 901px) {
    .texrivo-process-step:not(:first-child)::before {
        content: '⟶';
        position: absolute;
        top: 62px;
        left: -32px;
        width: 32px;
        text-align: center;
        font: 32px/1 Georgia, serif;
        color: #BD955C;
    }
}
@media (max-width: 900px) {
    .texrivo-process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
}
@media (max-width: 700px) {
    .texrivo-process-grid { grid-template-columns: 1fr; gap: 34px; }
    .texrivo-process .section-intro { margin-bottom: 28px; }
    .texrivo-process-visual { width: min(54vw, 180px); margin-bottom: 14px; }
    .texrivo-process-step h3 { font-size: 1.25rem; }
    .texrivo-process-step p { max-width: 310px; }
}

/* How We Work V3: reduce excess bottom whitespace on desktop only */
@media (min-width: 901px) {
    .section.texrivo-process { padding-bottom: 55px; }
}

/* Footer refinement: navigation links only */
.footer-grid a {
    text-decoration: none;
    transition: color .2s ease;
}
.footer-grid a:hover,
.footer-grid a:focus-visible {
    color: #BD955C;
}
.footer-grid a:focus-visible {
    outline: 2px solid #BD955C;
    outline-offset: 3px;
}


/* Fabrics page: six image cards; scoped to avoid homepage changes */
.texrivo-fabrics-page .texrivo-fabrics-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.texrivo-fabrics-page .texrivo-fabric-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.texrivo-fabrics-page .texrivo-fabric-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
}
.texrivo-fabrics-page .texrivo-fabric-card-body {
    padding: 24px 25px 26px;
    flex: 1;
}
.texrivo-fabrics-page .texrivo-fabric-card .number {
    margin-bottom: 10px;
    color: #BD955C;
}
.texrivo-fabrics-page .texrivo-fabric-card h3 {
    color: #102F40;
    margin-bottom: 12px;
}
.texrivo-fabrics-page .texrivo-fabric-card p { margin-bottom: 0; }
@media (max-width: 900px) {
    .texrivo-fabrics-page .texrivo-fabrics-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 700px) {
    .texrivo-fabrics-page .texrivo-fabrics-cards {
        grid-template-columns: 1fr;
    }
    .texrivo-fabrics-page .texrivo-fabric-card-body { padding: 22px; }
}


/* Sourcing Services page: five icon cards, centered final row */
.texrivo-services-page .texrivo-services-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}
.texrivo-services-page .texrivo-service-card {
    flex: 0 1 calc((100% - 44px) / 3);
    min-width: 0;
    padding: 28px;
}
.texrivo-services-page .texrivo-service-card-icon {
    display: block;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    color: #BD955C;
}
.texrivo-services-page .texrivo-service-card .number {
    color: #BD955C;
    margin-bottom: 10px;
}
.texrivo-services-page .texrivo-service-card h3 { color: #102F40; }
@media (max-width: 900px) {
    .texrivo-services-page .texrivo-service-card {
        flex-basis: calc((100% - 22px) / 2);
    }
}
@media (max-width: 700px) {
    .texrivo-services-page .texrivo-service-card {
        flex-basis: 100%;
    }
}

/* Sourcing Services: center inquiry button on desktop/tablet only. */
@media (min-width: 701px) {
    .texrivo-services-page .actions {
        justify-content: center;
    }
}


/* Market Tour page only: balanced two-by-two cards and outline icons */
.texrivo-market-tour-page .texrivo-market-tour-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    max-width: 920px;
    margin-inline: auto;
}
.texrivo-market-tour-page .texrivo-market-tour-card {
    min-width: 0;
    padding: 30px;
}
.texrivo-market-tour-page .texrivo-market-tour-icon {
    display: block;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    color: #BD955C;
}
.texrivo-market-tour-page .texrivo-market-tour-card .number {
    color: #BD955C;
    margin-bottom: 10px;
}
.texrivo-market-tour-page .texrivo-market-tour-card h3 {
    color: #102F40;
}
@media (min-width: 701px) {
    .texrivo-market-tour-page .actions {
        justify-content: center;
    }
}
@media (max-width: 700px) {
    .texrivo-market-tour-page .texrivo-market-tour-cards {
        grid-template-columns: 1fr;
    }
}


/* How It Works page only: balanced 2x2 steps with outline icons */
.texrivo-how-page .texrivo-how-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    max-width: 920px;
    margin-inline: auto;
}
.texrivo-how-page .texrivo-how-card {
    min-width: 0;
    padding: 30px;
}
.texrivo-how-page .texrivo-how-icon {
    display: block;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    color: #BD955C;
}
.texrivo-how-page .texrivo-how-card .number {
    color: #BD955C;
    margin-bottom: 10px;
}
.texrivo-how-page .texrivo-how-card h3 { color: #102F40; }
@media (min-width: 701px) {
    .texrivo-how-page .actions { justify-content: center; }
}
@media (max-width: 700px) {
    .texrivo-how-page .texrivo-how-cards { grid-template-columns: 1fr; }
}

/* About Us page: editorial two-column layout; isolated from other pages */
.texrivo-about-page .texrivo-about-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
}
.texrivo-about-page .texrivo-about-image,
.texrivo-about-page .texrivo-about-content { min-width: 0; }
.texrivo-about-page .texrivo-about-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
}
.texrivo-about-page .texrivo-about-content h2 { color: #102F40; font-size: clamp(1.8rem, 3vw, 2.65rem); }
.texrivo-about-page .texrivo-about-content > p { color: #607079; }
.texrivo-about-page .texrivo-about-points { margin-top: 22px; }
.texrivo-about-page .texrivo-about-point {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid #e6e1d8;
}
.texrivo-about-page .texrivo-about-point-icon { color: #BD955C; font-size: 1.25rem; line-height: 1.5; }
.texrivo-about-page .texrivo-about-point h3 { color: #102F40; font-size: 1.16rem; margin: 0 0 5px; }
.texrivo-about-page .texrivo-about-point p { color: #607079; font-size: .94rem; line-height: 1.55; margin: 0; }
.texrivo-about-page .texrivo-about-actions { justify-content: center; margin-top: 34px; }
@media (max-width: 767px) {
  .texrivo-about-page .texrivo-about-layout { grid-template-columns: 1fr; gap: 28px; }
  .texrivo-about-page .texrivo-about-image img { aspect-ratio: 4 / 3; }
  .texrivo-about-page .texrivo-about-actions .btn { width: 100%; }
}

/* Remote Fabric Sourcing page – isolated layout */
.tr-sourcing{background:#fff;color:#102F40}
.tr-sourcing .wrap{width:min(1080px,calc(100% - 40px))}
.tr-sourcing h1,.tr-sourcing h2,.tr-sourcing h3{color:inherit}
.tr-sourcing h2{font-size:clamp(1.7rem,3vw,2.45rem);margin-bottom:12px}
.tr-sourcing .eyebrow{color:#BD955C;font-size:.75rem;letter-spacing:.12em}
.tr-sourcing-hero{background:#102F40;color:#fff;padding:56px 0 16px}
.tr-sourcing-hero h1{font-size:clamp(2.15rem,4.1vw,3.75rem);max-width:930px;margin:0 0 15px}
.tr-sourcing-hero p{color:#e2e9eb;max-width:850px;line-height:1.65;margin-bottom:22px}
.tr-sourcing .tr-wide-button{display:flex;width:100%;padding:15px 24px;background:#BD955C;color:#fff}
.tr-sourcing-hero-photo{margin-top:18px;border-radius:12px;overflow:hidden;background:#d8d2c7}
.tr-sourcing-hero-photo img{display:block;width:100%;aspect-ratio:2.2/1;object-fit:cover}
.tr-sourcing-services{padding:55px 0 38px;background:#F8F5EF}
.tr-section-lead{color:#607079;margin-bottom:24px}
.tr-service-list{display:grid;gap:20px}
.tr-service-row{display:grid;grid-template-columns:175px minmax(0,1fr);gap:24px;align-items:center}
.tr-service-row>img{display:block;width:175px;height:112px;object-fit:cover;border-radius:9px}
.tr-service-copy h3{font-size:1.2rem;margin:0 0 7px;color:#102F40}
.tr-service-copy p{font-size:.94rem;color:#607079;line-height:1.55;margin:0}
.tr-scope-note{font-size:.78rem;color:#607079;margin:25px 0 0}
.tr-sourcing-choices{padding:55px 0;background:#fff}
.tr-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:22px}
.tr-choice-card{border:1px solid #e6e1d8;border-radius:12px;overflow:hidden;background:#fff}
.tr-choice-card>img,.tr-market-placeholder{display:block;width:100%;aspect-ratio:1.8/1;object-fit:cover}
.tr-market-placeholder{display:grid;place-items:center;text-align:center;padding:25px;background:linear-gradient(135deg,#d5c1a3 0%,#9eaaa8 45%,#25495a 100%);color:#fff}
.tr-market-placeholder span{font-size:.9rem;letter-spacing:.16em;font-weight:800;text-shadow:0 1px 5px #0005}
.tr-choice-body{padding:20px 22px 22px}
.tr-choice-body h3{font-size:1.3rem;margin:0 0 6px}
.tr-choice-body p{color:#607079;font-size:.92rem;margin:0 0 12px}
.tr-choice-body a{color:#9b7442;font-weight:750;text-decoration:none}
.tr-choice-body a:hover{text-decoration:underline}
.tr-sourcing-process{background:#F8F5EF;padding:50px 0}
.tr-process-list{display:grid;gap:14px;margin-top:20px}
.tr-process-item{display:grid;grid-template-columns:42px minmax(0,1fr);gap:15px;align-items:start}
.tr-process-item>span{display:grid;place-items:center;background:#102F40;color:#fff;border-radius:6px;width:38px;height:38px;font-weight:800;font-size:.86rem}
.tr-process-item h3{font-size:1.08rem;margin:0 0 3px}
.tr-process-item p{color:#607079;font-size:.92rem;margin:0}
.tr-sourcing-bottom{background:#102F40;color:#fff;padding:50px 0}
.tr-sourcing-bottom h2{color:#fff}
.tr-sourcing-bottom p{color:#dce5e9;max-width:900px;margin-bottom:24px}
@media(max-width:700px){
 .tr-sourcing .wrap{width:calc(100% - 32px)}
 .tr-sourcing-hero{padding:42px 0 15px}
 .tr-sourcing-hero h1{font-size:clamp(2rem,8vw,2.7rem)}
 .tr-sourcing-hero-photo img{aspect-ratio:1.55/1}
 .tr-sourcing-services,.tr-sourcing-choices{padding:42px 0}
 .tr-service-row{grid-template-columns:105px minmax(0,1fr);gap:14px;align-items:start}
 .tr-service-row>img{width:105px;height:105px}
 .tr-service-copy h3{font-size:1rem;line-height:1.32}
 .tr-service-copy p{font-size:.84rem;line-height:1.45}
 .tr-choice-grid{grid-template-columns:1fr;gap:18px}
 .tr-sourcing-process,.tr-sourcing-bottom{padding:42px 0}
}
@media(max-width:390px){.tr-service-row{grid-template-columns:88px minmax(0,1fr);gap:11px}.tr-service-row>img{width:88px;height:96px}}


/* Sourcing Services desktop refinement: wider content and larger thumbnails only */
@media (min-width: 901px) {
  .tr-sourcing .wrap {
    width: min(1240px, calc(100% - 64px));
  }
  .tr-sourcing .tr-service-row {
    grid-template-columns: 225px minmax(0, 1fr);
    gap: 30px;
  }
  .tr-sourcing .tr-service-row > img {
    width: 225px;
    height: 145px;
  }
  .tr-sourcing .tr-service-list {
    gap: 24px;
  }
}

/* Sourcing Services: compact centered CTA buttons */
.tr-sourcing .tr-wide-button {
  display: flex;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  padding: 14px 28px;
  text-align: center;
}
@media (min-width: 701px) {
  .tr-sourcing-hero .tr-wide-button { min-width: 280px; }
  .tr-sourcing-bottom .tr-wide-button { min-width: 220px; }
}

/* Sourcing Services: align both CTA buttons with left-aligned copy */
.tr-sourcing .tr-wide-button {
  margin-left: 0;
  margin-right: 0;
}

/* Texrivo Header Social Icons — official image assets */
.site-header .header-social {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.site-header .header-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 3px;
    border-radius: 5px;
    text-decoration: none;
    transition: opacity .2s ease;
}
.site-header .header-social a:hover { opacity: .75; }
.site-header .header-social a:focus-visible {
    outline: 2px solid #BD955C;
    outline-offset: 2px;
}
.site-header .header-social img {
    display: block;
    width: 24px;
    height: 24px;
    max-width: none;
    object-fit: contain;
}
/* Switch to mobile navigation before the full header becomes cramped. */
@media (min-width: 701px) and (max-width: 1190px) {
    .site-header .header-inner { min-height: 74px; }
    .site-header .menu-toggle { display: block; }
    .site-header .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 22px;
        box-shadow: 0 14px 20px #0002;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .site-header .menu.open { display: flex; }
    .site-header .menu a { font-size: 1rem; }
    .site-header .menu .header-whatsapp { text-align: center; }
}
@media (max-width: 1190px) {
    .site-header .header-social { justify-content: center; }
}


/* Texrivo footer official social icons */
.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 16px;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 5px;
}
.footer-social img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.footer-social a:focus-visible {
    outline: 2px solid #BD955C;
    outline-offset: 3px;
}

/* Social icons beside Menu when navigation is collapsed */
.header-mobile-actions { display: none; }
@media (max-width: 1190px) {
    .site-header .header-mobile-actions {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-left: auto;
        flex-shrink: 0;
    }
    .site-header .header-social-mobile {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .site-header .header-social-mobile a {
        width: 28px;
        height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .site-header .header-social-mobile img {
        width: 24px;
        height: 24px;
        object-fit: contain;
    }
    /* Prevent duplicated icons in expanded menu */
    .site-header .menu > .header-social { display: none; }
}
@media (max-width: 420px) {
    .site-header .header-inner { gap: 8px; }
    .site-header .header-mobile-actions { gap: 7px; }
    .site-header .header-social-mobile { gap: 5px; }
    .site-header .header-social-mobile a { width: 26px; height: 26px; }
    .site-header .header-social-mobile img { width: 22px; height: 22px; }
    .site-header .menu-toggle { padding: 7px 9px; white-space: nowrap; }
}
