/* Orient Fire Curtains custom homepage. Scoped to .ofc-home to avoid broad theme overrides. */
.ofc-home{--ofc-red:#d71920;--ofc-ink:#151515;--ofc-muted:#666;--ofc-line:#dedede;color:var(--ofc-ink);font-family:Arial,Helvetica,sans-serif;font-size:15px;line-height:1.55;background:#fff}
.ofc-home *{box-sizing:border-box}
.ofc-home img{display:block;max-width:100%;height:auto}
.ofc-home a{color:inherit;text-decoration:none}
.ofc-container{width:min(1200px,calc(100% - 48px));margin:0 auto}
.ofc-header{min-height:76px;padding:12px max(24px,calc((100% - 1200px)/2));display:flex;align-items:center;justify-content:space-between;gap:24px;background:#fff;position:relative;z-index:20}
.ofc-brand{display:flex;align-items:center;min-width:145px}.ofc-brand img{width:160px;max-height:58px;object-fit:contain}.ofc-brand-text{font-size:25px;font-weight:800;letter-spacing:-1px;line-height:1}.ofc-brand-text small{display:block;font-size:9px;letter-spacing:2px;font-weight:600}
.ofc-nav{display:flex;align-items:center;gap:clamp(12px,2vw,28px);font-size:12px}.ofc-nav>a:not(.ofc-header-cta):hover,.ofc-footer a:hover{color:var(--ofc-red)}
.ofc-header-cta{background:var(--ofc-red);color:#fff!important;padding:13px 17px;font-weight:700;white-space:nowrap}
.ofc-menu-toggle{display:none;background:none;border:0;font-size:25px}
.ofc-hero{min-height:430px;background-color:#333;background-size:cover;background-position:center;display:flex;align-items:center;color:#fff}
.ofc-hero-inner{padding-top:64px;padding-bottom:64px}.ofc-eyebrow{text-transform:uppercase;letter-spacing:3px;font-size:10px;font-weight:700;margin:0 0 12px;color:var(--ofc-red)}
.ofc-hero .ofc-eyebrow{color:#fff}.ofc-home h1,.ofc-home h2{font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-1.1px;line-height:1.08;margin:0 0 18px}
.ofc-home h1{font-size:clamp(42px,5vw,66px);max-width:580px}.ofc-home h2{font-size:clamp(30px,3.4vw,44px)}
.ofc-hero-copy{max-width:540px;font-size:16px;margin:0 0 24px}.ofc-actions{display:flex;flex-wrap:wrap;gap:12px}
.ofc-button{display:inline-flex;align-items:center;justify-content:center;gap:16px;background:var(--ofc-red);color:#fff!important;padding:13px 18px;font-size:12px;font-weight:700;line-height:1.3;border:1px solid var(--ofc-red)}
.ofc-button-outline{background:transparent;border-color:currentColor}.ofc-proof{background:#f7f7f6;border-bottom:1px solid #eee}.ofc-proof-grid{display:grid;grid-template-columns:repeat(5,1fr);padding:23px 0}
.ofc-proof-grid>div{padding:0 20px;border-right:1px solid #d6d6d6;display:flex;flex-direction:column;justify-content:center}.ofc-proof-grid>div:first-child{padding-left:0}.ofc-proof-grid>div:last-child{border:0}.ofc-proof strong{font-family:Georgia,serif;font-size:20px;font-weight:400}.ofc-proof span{font-size:11px;color:#555}
.ofc-section{padding:54px 0}.ofc-position-grid{display:grid;grid-template-columns:1fr 1.25fr;gap:64px;align-items:center}.ofc-position p:not(.ofc-eyebrow){color:#444}.ofc-position .ofc-button{margin-top:8px}
.ofc-position-image{display:grid;grid-template-columns:minmax(0,1fr) 160px;gap:24px;align-items:center}.ofc-position-image>img{width:100%;height:300px;object-fit:cover}.ofc-position-image ul{list-style:none;padding:0;margin:0}.ofc-position-image li{border-left:2px solid var(--ofc-red);padding:8px 0 8px 15px;margin:8px 0;font-size:12px}
.ofc-section-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:16px}.ofc-section-heading h2{margin-bottom:0}.ofc-text-link{color:var(--ofc-red)!important;font-size:12px;font-weight:700;white-space:nowrap}.ofc-intro{max-width:850px;color:#555;margin:0 0 22px}
.ofc-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.ofc-product-card{background:#f7f7f6;min-width:0}.ofc-card-image{height:175px;background:#e5e5e5;overflow:hidden}.ofc-card-image img{width:100%;height:100%;object-fit:cover}.ofc-card-content{padding:17px 16px 24px;position:relative}.ofc-card-content h3{font-size:16px;line-height:1.25;margin:0 0 8px}.ofc-card-content p{font-size:12px;color:#555;margin:0 0 10px}.ofc-card-content a{position:absolute;bottom:8px;right:14px;font-size:20px}.ofc-centered{text-align:center;margin:28px 0 0}
.ofc-why{background:#111;color:#fff;padding:44px 0}.ofc-why-heading{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:start}.ofc-why-heading h2{max-width:560px}.ofc-why-heading p{margin:0 0 12px;color:#ddd}.ofc-why-heading a{font-size:12px}.ofc-why-grid{display:grid;grid-template-columns:repeat(6,1fr);margin-top:30px}.ofc-why-grid>div{display:flex;align-items:center;gap:10px;padding:10px 12px;border-right:1px solid #555;font-size:11px}.ofc-why-grid>div:first-child{padding-left:0}.ofc-why-grid>div:last-child{border:0}.ofc-why-grid strong{font-size:23px;font-weight:400}
.ofc-project-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.ofc-project-card{background:#f7f7f6;padding-bottom:12px}.ofc-project-image{height:130px;background:#e5e5e5;overflow:hidden;margin-bottom:10px}.ofc-project-image img{width:100%;height:100%;object-fit:cover}.ofc-project-card h3,.ofc-project-card p,.ofc-project-card small{display:block;margin:0 12px}.ofc-project-card h3{font-size:13px;line-height:1.25}.ofc-project-card p{font-size:11px}.ofc-project-card small{font-size:10px;color:#555;margin-top:7px}
.ofc-architects{background:#faf9f7}.ofc-architects-grid{display:grid;grid-template-columns:.8fr 1fr 1.25fr;gap:30px;align-items:center}.ofc-drawing img{width:100%;max-height:250px;object-fit:contain}.ofc-architects p:not(.ofc-eyebrow){color:#555}.ofc-resource-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.ofc-resource-grid>div{min-height:92px;border:1px solid #eee;background:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;font-size:24px}.ofc-resource-grid span{font-size:10px;text-align:center}
.ofc-certifications{text-align:left;padding-top:38px;padding-bottom:38px}.ofc-certifications h2{font-size:34px}.ofc-certifications> .ofc-container>p:not(.ofc-eyebrow){max-width:900px;color:#555}.ofc-cert-grid{display:grid;grid-template-columns:repeat(5,1fr);margin-top:24px}.ofc-cert-grid>div{min-height:95px;display:flex;align-items:center;justify-content:center;flex-direction:column;border-right:1px solid #ddd;text-align:center;padding:10px}.ofc-cert-grid>div:last-child{border:0}.ofc-cert-grid strong{font-size:28px;line-height:1.2}.ofc-cert-grid span{font-size:11px}
.ofc-final-cta{background-color:#222;background-size:cover;background-position:center;color:#fff;padding:44px 0}.ofc-final-cta-inner{display:flex;align-items:center;justify-content:space-between;gap:40px}.ofc-final-cta h2{max-width:520px}.ofc-final-cta p:not(.ofc-eyebrow){max-width:530px;margin-bottom:0}.ofc-footer{background:#fff}.ofc-footer-main{display:grid;grid-template-columns:1.4fr repeat(3,1fr) 1.2fr;gap:25px;padding-top:32px;padding-bottom:30px}.ofc-footer-main>div{display:flex;flex-direction:column;gap:8px;font-size:11px}.ofc-footer-main>div:last-child{font-size:10px}.ofc-footer-bottom{border-top:1px solid #ddd;padding-top:16px;padding-bottom:16px;display:flex;justify-content:space-between;gap:20px;font-size:10px;color:#555}.ofc-footer-bottom a{margin-left:8px}
@media(max-width:1000px){.ofc-nav{gap:12px;font-size:11px}.ofc-product-grid{grid-template-columns:repeat(2,1fr)}.ofc-why-grid{grid-template-columns:repeat(3,1fr);row-gap:12px}.ofc-why-grid>div:nth-child(3){border-right:0}.ofc-architects-grid{grid-template-columns:1fr 1fr}.ofc-resource-grid{grid-column:1/-1}.ofc-footer-main{grid-template-columns:repeat(3,1fr)}.ofc-brand{grid-column:1/-1}}
@media(max-width:700px){.ofc-container{width:calc(100% - 32px)}.ofc-header{min-height:68px;padding:10px 16px;flex-wrap:wrap}.ofc-brand img{width:135px}.ofc-menu-toggle{display:block}.ofc-nav{display:none;flex-basis:100%;align-items:stretch;flex-direction:column;padding:8px 0 12px}.ofc-nav.is-open{display:flex}.ofc-nav>a{padding:9px 0}.ofc-nav>.ofc-header-cta{padding:12px 14px;text-align:center}.ofc-hero{min-height:460px;background-position:center}.ofc-hero-inner{padding-top:55px;padding-bottom:55px}.ofc-home h1{font-size:44px}.ofc-home h2{font-size:32px}.ofc-hero-copy{font-size:14px}.ofc-proof-grid{grid-template-columns:repeat(2,1fr);padding:12px 0}.ofc-proof-grid>div{padding:12px;border-right:0;border-bottom:1px solid #ddd}.ofc-proof-grid>div:first-child{padding-left:12px}.ofc-proof-grid>div:last-child{grid-column:1/-1;border-bottom:0}.ofc-section{padding:38px 0}.ofc-position-grid{grid-template-columns:1fr;gap:25px}.ofc-position-image{grid-template-columns:1fr}.ofc-position-image>img{height:240px}.ofc-position-image ul{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.ofc-section-heading{align-items:start;flex-direction:column;gap:10px}.ofc-product-grid{grid-template-columns:1fr}.ofc-card-image{height:220px}.ofc-why-heading{grid-template-columns:1fr;gap:10px}.ofc-why-grid{grid-template-columns:repeat(2,1fr)}.ofc-why-grid>div{border-right:0;padding:8px 4px}.ofc-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ofc-project-card:last-child{grid-column:1/-1}.ofc-project-image{height:140px}.ofc-architects-grid{grid-template-columns:1fr;gap:20px}.ofc-drawing img{max-height:180px}.ofc-resource-grid{grid-column:auto;grid-template-columns:repeat(2,1fr)}.ofc-certifications h2{font-size:30px}.ofc-cert-grid{grid-template-columns:repeat(2,1fr)}.ofc-cert-grid>div{border-right:0;border-bottom:1px solid #ddd}.ofc-cert-grid>div:last-child{grid-column:1/-1;border-bottom:0}.ofc-final-cta-inner{align-items:flex-start;flex-direction:column;gap:22px}.ofc-footer-main{grid-template-columns:repeat(2,1fr);gap:22px}.ofc-footer-main>div:last-child{grid-column:1/-1}.ofc-footer-bottom{flex-direction:column;gap:8px}.ofc-footer-bottom a{margin-left:0;margin-right:8px}}


/* Logo slider: inserted between the statistics bar and the next existing section. */
.ofc-logo-slider-section {
    width: 100%;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: 22px 0;
}
.ofc-logo-slider-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 54px;
    animation: ofc-logo-marquee 32s linear infinite;
}
.ofc-logo-slider-section:hover .ofc-logo-slider-track {
    animation-play-state: paused;
}
.ofc-logo-slide {
    flex: 0 0 150px;
    width: 150px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ofc-logo-slide img {
    max-width: 145px;
    max-height: 68px;
    width: auto;
    height: auto;
    object-fit: contain;
}
@keyframes ofc-logo-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (max-width: 700px) {
    .ofc-logo-slider-section { padding: 15px 0; }
    .ofc-logo-slider-track { gap: 30px; animation-duration: 24s; }
    .ofc-logo-slide { flex-basis: 112px; width: 112px; height: 62px; }
    .ofc-logo-slide img { max-width: 108px; max-height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
    .ofc-logo-slider-track { animation: none; }
}


/* Certification logo slider — styled to match the user's supplied About Us page code */
.ofc-home .ofc-certifications {
    margin-top: 0;
    overflow: hidden;
    background: #fff;
    padding: 18px 0 14px;
}
.ofc-home .ofc-cert-section-heading {
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0 0 12px;
    line-height: 1;
    color: #252525;
}
.ofc-home .ofc-cert-logo-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #ed1c2e;
    padding: 5px 0 12px;
}
.ofc-home .ofc-cert-logo-track {
    display: flex;
    width: max-content;
    animation: ofcCertLogoSlide 55s linear infinite;
    will-change: transform;
}
.ofc-home .ofc-cert-logo-slider:hover .ofc-cert-logo-track {
    animation-play-state: paused;
}
.ofc-home .ofc-cert-logo-group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
}
.ofc-home .ofc-certification {
    width: 115px;
    min-width: 115px;
    height: 67px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid #999;
    padding: 4px 9px;
    box-sizing: border-box;
}
.ofc-home .ofc-certification strong {
    display: block;
    font-size: 26px;
    line-height: 1.1;
    margin-bottom: 5px;
    color: #174a79;
}
.ofc-home .ofc-certification small {
    display: block;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
}
.ofc-home .ofc-certification .ofc-ul-logo { color: #e51b2b; font-size: 26px; font-weight: 800; }
.ofc-home .ofc-certification .ofc-warrington { color: #48688b; font-size: 15px; }
.ofc-home .ofc-certification .ofc-lab { color: #457c75; font-size: 26px; }
.ofc-home .ofc-certification .ofc-pasma { color: #b32332; font-size: 19px; }
.ofc-home .ofc-certification .ofc-ce { color: #333; font-size: 30px; letter-spacing: 2px; }
.ofc-home .ofc-certification .ofc-eu { color: #243c83; font-size: 26px; }
.ofc-home .ofc-certification .ofc-iso { color: #1470ad; font-size: 26px; }

@keyframes ofcCertLogoSlide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (max-width: 767px) {
    .ofc-home .ofc-certifications { padding-top: 15px; }
    .ofc-home .ofc-certification { width: 100px; min-width: 100px; }
}
@media (max-width: 380px) {
    .ofc-home .ofc-certification { width: 90px; min-width: 90px; }
}
@media (prefers-reduced-motion: reduce) {
    .ofc-home .ofc-cert-logo-track { animation: none; }
}


/* Seamless certification marquee: each of the two identical groups contains
   five full logo runs, keeping the next run in view on wide screens. */
.ofc-home .ofc-cert-logo-track {
    display: flex;
    width: max-content;
    align-items: center;
}
.ofc-home .ofc-cert-logo-group {
    display: flex;
    flex: 0 0 auto;
    width: max-content;
}
@keyframes ofcCertLogoSlide {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}
@media (max-width: 767px) {
    .ofc-home .ofc-cert-logo-track { animation-duration: 42s; }
}
