/* ==========================================================================
   Terraform Projects — FRP Pipe Fittings Manufacturing & Installation
   Brand palette drawn from the TFP logo: blue #1d4f9c · orange #e98a2b · steel
   ========================================================================== */

:root {
    --tf-blue:      #1d4f9c;
    --tf-blue-2:    #2f6ac0;
    --tf-navy:      #0c2142;
    --tf-navy-2:    #08172f;
    --tf-orange:    #e98a2b;
    --tf-orange-2:  #f2a14f;
    --tf-ink:       #1c2530;
    --tf-muted:     #5b6672;
    --tf-bg:        #f4f7fc;
    --tf-line:      #e2e8f1;
    --tf-radius:    1rem;
    --tf-shadow:    0 18px 45px -18px rgba(12, 33, 66, .35);
    --tf-head:      'Barlow Condensed', sans-serif;
    --tf-body:      'Barlow', sans-serif;
}

/* ---------- Base ---------- */
html, body {
    overflow-x: hidden; /* fallback for older browsers */
    overflow-x: clip;   /* clips without breaking position:sticky */
}
body {
    font-family: var(--tf-body);
    color: var(--tf-ink);
    background: #fff;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4 {
    font-family: var(--tf-head);
    font-weight: 600;
    letter-spacing: .015em;
    text-transform: uppercase;
    color: var(--tf-navy);
}

a { text-decoration: none; }

::selection { background: var(--tf-orange); color: #fff; }

.section { padding: 5.5rem 0; }
.section-alt { background: var(--tf-bg); }
.section-dark { background: linear-gradient(160deg, var(--tf-navy) 0%, var(--tf-navy-2) 100%); color: #cdd9ec; }
.section-dark h1, .section-dark h2, .section-dark h3,
.section-dark h4, .section-dark h5 { color: #fff; }

/* ---------- Shared bits ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--tf-head);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--tf-orange);
    margin-bottom: .75rem;
}
.eyebrow::before {
    content: '';
    width: 34px;
    height: 2px;
    background: var(--tf-orange);
}

.section-title {
    font-size: clamp(1.9rem, 3.2vw, 2.7rem);
    line-height: 1.12;
    margin-bottom: 1rem;
}

.lead-txt { color: var(--tf-muted); font-size: 1.06rem; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; letter-spacing: .02em; border-radius: .65rem; }

.btn-tf {
    background: linear-gradient(120deg, var(--tf-orange), var(--tf-orange-2));
    border: 0;
    color: #fff;
    box-shadow: 0 10px 24px -10px rgba(233, 138, 43, .7);
}
.btn-tf:hover, .btn-tf:focus {
    background: linear-gradient(120deg, #d67c20, var(--tf-orange));
    color: #fff;
    transform: translateY(-1px);
}

.btn-navy {
    background: var(--tf-navy);
    color: #fff;
}
.btn-navy:hover, .btn-navy:focus { background: var(--tf-blue); color: #fff; }

.btn-outline-light2 {
    border: 2px solid rgba(255, 255, 255, .55);
    color: #fff;
}
.btn-outline-light2:hover { background: #fff; color: var(--tf-navy); border-color: #fff; }

/* ---------- Top bar ---------- */
.topbar {
    background: var(--tf-navy-2);
    color: #aebdd6;
    font-size: .82rem;
    padding: .45rem 0;
}
.topbar i { color: var(--tf-orange); }
.topbar-tag { color: #d7e2f2; font-weight: 600; }
.topbar-social a {
    color: #aebdd6;
    margin-left: .8rem;
    transition: color .2s;
}
.topbar-social a:hover { color: var(--tf-orange); }

/* ---------- Navbar ---------- */
#mainNav {
    padding-top: .6rem;
    padding-bottom: .6rem;
    transition: box-shadow .3s, padding .3s;
}
#mainNav.navbar-scrolled { box-shadow: 0 8px 30px -12px rgba(12, 33, 66, .25); }

.brand-logo { height: 46px; width: auto; }

#mainNav .nav-link {
    font-family: var(--tf-head);
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--tf-navy);
    padding: .5rem .85rem;
    position: relative;
}
#mainNav .nav-link::after {
    content: '';
    position: absolute;
    left: .85rem;
    right: .85rem;
    bottom: .15rem;
    height: 2px;
    background: var(--tf-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s;
}
#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after { transform: scaleX(1); }
#mainNav .nav-link.active { color: var(--tf-orange); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 6rem 0 7rem;
    color: #eaf0fa;
    background:
        radial-gradient(900px 480px at 88% -10%, rgba(233, 138, 43, .28), transparent 60%),
        radial-gradient(700px 500px at -10% 110%, rgba(47, 106, 192, .35), transparent 55%),
        linear-gradient(155deg, var(--tf-navy) 0%, var(--tf-navy-2) 78%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M0 120 L120 0' stroke='%23ffffff' stroke-opacity='.045' stroke-width='1.5'/%3E%3Cpath d='M-30 150 L150 -30' stroke='%23ffffff' stroke-opacity='.03' stroke-width='1.5'/%3E%3C/svg%3E");
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #ffd9ae;
    background: rgba(233, 138, 43, .14);
    border: 1px solid rgba(233, 138, 43, .45);
    border-radius: 50rem;
    padding: .45rem 1rem;
    margin-bottom: 1.4rem;
}

.hero-title {
    font-size: clamp(2.6rem, 5.4vw, 4.3rem);
    font-weight: 700;
    line-height: 1.02;
    color: #fff;
    margin-bottom: 1.25rem;
}
.hero-title span { color: var(--tf-orange-2); }

.hero-lead {
    font-size: 1.13rem;
    color: #c3d2e8;
    max-width: 34rem;
    margin-bottom: 2rem;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    margin-top: 2.4rem;
    font-weight: 600;
    color: #d7e2f2;
}
.hero-points i { color: var(--tf-orange-2); margin-right: .35rem; }

/* Hero technical card */
.hero-card {
    position: relative;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(6px);
    border-radius: var(--tf-radius);
    padding: 1.1rem;
    box-shadow: var(--tf-shadow);
}
.pipe-xsec { display: block; width: 100%; max-width: 340px; margin: 0 auto; }
.hero-photo {
    display: block;
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: .7rem;
}
.hero-photo-cap {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-top: .9rem;
    font-size: .85rem;
    font-weight: 600;
    color: #c3d2e8;
}
.hero-photo-cap i { color: var(--tf-orange-2); }

.pipe-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1.1rem;
    margin-top: .9rem;
    font-size: .78rem;
    font-weight: 600;
    color: #c3d2e8;
}
.pipe-legend i {
    display: inline-block;
    width: .65rem;
    height: .65rem;
    border-radius: 50%;
    margin-right: .35rem;
}

.float-chip {
    position: absolute;
    background: #fff;
    color: var(--tf-navy);
    border-radius: .8rem;
    padding: .7rem 1rem;
    box-shadow: var(--tf-shadow);
    line-height: 1.15;
}
.float-chip strong {
    display: block;
    font-family: var(--tf-head);
    font-size: 1.25rem;
    color: var(--tf-orange);
}
.float-chip span { font-size: .76rem; color: var(--tf-muted); font-weight: 600; }
.chip-a { top: 8%; left: -4%; }
.chip-b { bottom: 6%; right: -4%; }

/* ---------- Stats strip ---------- */
.stats {
    margin-top: -3.4rem;
    position: relative;
    z-index: 2;
}
.stats-inner {
    background: #fff;
    border-radius: var(--tf-radius);
    box-shadow: var(--tf-shadow);
    padding: 2.2rem 1.5rem;
}
.stat { text-align: center; padding: .4rem 0; }
.stat-num {
    font-family: var(--tf-head);
    font-size: 2.9rem;
    font-weight: 700;
    color: var(--tf-blue);
    line-height: 1;
}
.stat-plus {
    font-family: var(--tf-head);
    font-size: 2rem;
    font-weight: 700;
    color: var(--tf-orange);
}
.stat p {
    margin: .4rem 0 0;
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--tf-muted);
}

/* ---------- About preview ---------- */
.about-visual { position: relative; }
.about-panel {
    background:
        radial-gradient(500px 300px at 100% 0%, rgba(233, 138, 43, .18), transparent 60%),
        linear-gradient(160deg, var(--tf-navy), var(--tf-blue));
    border-radius: var(--tf-radius);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    box-shadow: var(--tf-shadow);
    position: relative;
    overflow: hidden;
}
.about-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Ccircle cx='70' cy='70' r='46' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='14'/%3E%3C/svg%3E");
}
.about-panel img {
    width: min(280px, 70%);
    background: #fff;
    border-radius: .9rem;
    padding: 1.2rem;
    position: relative;
    z-index: 1;
}
/* Photo variant: image fills the panel */
.about-panel.has-photo { padding: 0; min-height: 430px; }
.about-panel.has-photo img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    padding: 0;
    background: none;
    border-radius: 0;
    object-fit: cover;
}
.exp-badge {
    position: absolute;
    right: -1rem;
    bottom: 2rem;
    background: linear-gradient(120deg, var(--tf-orange), var(--tf-orange-2));
    color: #fff;
    border-radius: var(--tf-radius);
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: .8rem;
    box-shadow: 0 16px 36px -14px rgba(233, 138, 43, .65);
}
.exp-badge strong {
    font-family: var(--tf-head);
    font-size: 2.6rem;
    line-height: 1;
}
.exp-badge span {
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ---------- Check list ---------- */
.check-list {
    list-style: none;
    padding: 0;
    margin: 1.4rem 0 1.8rem;
}
.check-list.two-col { columns: 2; }
.check-list li {
    break-inside: avoid;
    margin-bottom: .7rem;
    font-weight: 600;
    color: var(--tf-ink);
}
.check-list i { color: var(--tf-orange); margin-right: .5rem; }

/* ---------- Product cards ---------- */
.prod-card {
    display: block;
    height: 100%;
    background: #fff;
    border: 1px solid var(--tf-line);
    border-radius: var(--tf-radius);
    padding: 1.7rem 1.5rem 1.4rem;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.prod-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tf-orange), var(--tf-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s;
}
.prod-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--tf-shadow);
    border-color: transparent;
    color: inherit;
}
.prod-card:hover::before { transform: scaleX(1); }

.prod-icon {
    display: inline-flex;
    width: 74px;
    height: 74px;
    border-radius: 1rem;
    background: var(--tf-bg);
    border: 1px solid var(--tf-line);
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    transition: background .25s;
}
.prod-card:hover .prod-icon { background: #fff3e4; }
.fit-svg { width: 46px; height: 46px; }

.prod-card h5 { font-size: 1.3rem; margin-bottom: .35rem; }
.prod-card .spec {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--tf-blue);
    display: block;
    margin-bottom: .55rem;
}
.prod-card p { font-size: .92rem; color: var(--tf-muted); margin-bottom: 1rem; }
.prod-more {
    font-size: .85rem;
    font-weight: 700;
    color: var(--tf-orange);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.prod-more i { transition: transform .2s; }
.prod-card:hover .prod-more i { transform: translateX(4px); }

/* Product card with photo */
.prod-card.has-img { padding: 0; }
.prod-media {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: calc(var(--tf-radius) - 1px) calc(var(--tf-radius) - 1px) 0 0;
    background: var(--tf-bg);
}
.prod-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s;
}
.prod-card:hover .prod-media img { transform: scale(1.07); }
.media-icon {
    position: absolute;
    right: .9rem;
    bottom: .9rem;
    width: 52px;
    height: 52px;
    border-radius: .8rem;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 8px 20px -8px rgba(12, 33, 66, .5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.media-icon .fit-svg { width: 32px; height: 32px; }
.prod-card.has-img .prod-body { padding: 1.35rem 1.5rem 1.3rem; }

/* ---------- Photo gallery ---------- */
.gal-item {
    position: relative;
    display: block;
    border-radius: var(--tf-radius);
    overflow: hidden;
    box-shadow: 0 12px 30px -18px rgba(12, 33, 66, .4);
}
.gal-item img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
    transition: transform .45s;
}
.gal-item:hover img { transform: scale(1.06); }
.gal-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.8rem .95rem .75rem;
    background: linear-gradient(transparent, rgba(8, 23, 47, .88));
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
}
.gal-cap i { color: var(--tf-orange-2); margin-right: .35rem; }

/* ---------- Side photo panel (services etc.) ---------- */
.photo-panel {
    position: relative;
    border-radius: var(--tf-radius);
    overflow: hidden;
    box-shadow: var(--tf-shadow);
    height: 100%;
    min-height: 340px;
}
.photo-panel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.photo-panel .photo-tag {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    background: rgba(12, 33, 66, .9);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    border-radius: .6rem;
    padding: .55rem .9rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.photo-panel .photo-tag i { color: var(--tf-orange-2); }

/* CTA card inside product grid */
.prod-card-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    border-radius: var(--tf-radius);
    padding: 1.8rem;
    background: linear-gradient(150deg, var(--tf-navy), var(--tf-blue));
    color: #d7e2f2;
}
.prod-card-cta h4 { color: #fff; }

/* ---------- Filter chips ---------- */
.filter-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.filter-chips .chip {
    border: 1px solid var(--tf-line);
    background: #fff;
    color: var(--tf-muted);
    font-weight: 600;
    font-size: .85rem;
    border-radius: 50rem;
    padding: .45rem 1.15rem;
    cursor: pointer;
    transition: all .2s;
}
.filter-chips .chip:hover { border-color: var(--tf-blue); color: var(--tf-blue); }
.filter-chips .chip.active {
    background: var(--tf-blue);
    border-color: var(--tf-blue);
    color: #fff;
}

/* ---------- Service cards ---------- */
.svc-card {
    height: 100%;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--tf-radius);
    padding: 1.8rem;
    transition: transform .25s, background .25s, border-color .25s;
}
.svc-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, .09);
    border-color: rgba(233, 138, 43, .55);
}
.svc-icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    border-radius: .9rem;
    background: linear-gradient(135deg, var(--tf-orange), var(--tf-orange-2));
    color: #fff;
    font-size: 1.5rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
}
.svc-card h4 { font-size: 1.35rem; margin-bottom: .5rem; }
.svc-card p { color: #aebdd6; font-size: .93rem; margin: 0; }

/* Light service variant (services page rows) */
.svc-panel {
    background: #fff;
    border: 1px solid var(--tf-line);
    border-radius: var(--tf-radius);
    padding: 2.2rem;
    height: 100%;
    box-shadow: 0 12px 34px -22px rgba(12, 33, 66, .3);
}
.svc-panel .svc-icon { margin-bottom: 1.3rem; }
.svc-panel ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}
.svc-panel li { margin-bottom: .55rem; color: var(--tf-muted); font-size: .94rem; }
.svc-panel li i { color: var(--tf-orange); margin-right: .5rem; }

/* ---------- Feature tiles (why choose us) ---------- */
.feature-tile {
    display: flex;
    gap: 1rem;
    padding: 1.15rem;
    border-radius: var(--tf-radius);
    border: 1px solid var(--tf-line);
    background: #fff;
    height: 100%;
    transition: transform .25s, box-shadow .25s;
}
.feature-tile:hover { transform: translateY(-4px); box-shadow: var(--tf-shadow); }
.feature-tile .ft-icon {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    border-radius: .8rem;
    background: #eaf1fb;
    color: var(--tf-blue);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-tile h5 { font-size: 1.15rem; margin-bottom: .25rem; }
.feature-tile p { font-size: .88rem; color: var(--tf-muted); margin: 0; }

/* Standards card */
.standards-card {
    background: linear-gradient(160deg, var(--tf-navy), var(--tf-blue));
    border-radius: var(--tf-radius);
    padding: 2.2rem;
    color: #cdd9ec;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.standards-card::after {
    content: '';
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 220px;
    height: 220px;
    border: 26px solid rgba(255, 255, 255, .06);
    border-radius: 50%;
}
.standards-card h4 { color: #fff; }
.std-chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.2rem; position: relative; z-index: 1; }
.std-chips span {
    border: 1px solid rgba(255, 255, 255, .35);
    color: #eaf0fa;
    font-size: .82rem;
    font-weight: 600;
    border-radius: 50rem;
    padding: .4rem .95rem;
}

/* ---------- Process ---------- */
.process { counter-reset: step; }
.process-step { position: relative; text-align: center; padding: 0 .75rem; }
.process-step .step-dot {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--tf-line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--tf-head);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--tf-blue);
    position: relative;
    z-index: 1;
    transition: all .25s;
}
.process-step:hover .step-dot {
    background: var(--tf-orange);
    border-color: var(--tf-orange);
    color: #fff;
}
.process-step h5 { font-size: 1.2rem; }
.process-step p { font-size: .88rem; color: var(--tf-muted); margin: 0; }

@media (min-width: 992px) {
    .process::before {
        content: '';
        position: absolute;
        top: 32px;
        left: 12%;
        right: 12%;
        height: 2px;
        background: repeating-linear-gradient(90deg, var(--tf-line) 0 10px, transparent 10px 18px);
    }
    .process { position: relative; }
}

/* ---------- Industries ---------- */
.ind-chip {
    display: flex;
    align-items: center;
    gap: .8rem;
    background: #fff;
    border: 1px solid var(--tf-line);
    border-radius: var(--tf-radius);
    padding: 1rem 1.2rem;
    font-weight: 600;
    color: var(--tf-navy);
    height: 100%;
    transition: transform .2s, box-shadow .2s;
}
.ind-chip:hover { transform: translateY(-4px); box-shadow: var(--tf-shadow); }
.ind-chip i {
    font-size: 1.35rem;
    color: var(--tf-orange);
}

/* ---------- Testimonials ---------- */
.testi-card {
    background: #fff;
    border: 1px solid var(--tf-line);
    border-radius: var(--tf-radius);
    padding: 2.4rem;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 14px 38px -24px rgba(12, 33, 66, .35);
}
.testi-card .stars { color: var(--tf-orange); font-size: 1.05rem; margin-bottom: 1rem; }
.testi-card blockquote {
    font-size: 1.18rem;
    font-weight: 500;
    color: var(--tf-ink);
    margin-bottom: 1.3rem;
}
.testi-card .t-name { font-weight: 700; color: var(--tf-navy); }
.testi-card .t-role { font-size: .85rem; color: var(--tf-muted); }

/* ---------- Carousel dots ---------- */
.testi-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50rem;
    background: #c3d0e2;
    padding: 0;
    transition: all .25s;
}
.testi-dots button.active { width: 30px; background: var(--tf-orange); }

/* ---------- CTA band ---------- */
.cta-band {
    background:
        radial-gradient(600px 300px at 90% 0%, rgba(255, 255, 255, .22), transparent 60%),
        linear-gradient(115deg, var(--tf-orange) 0%, #d67c20 100%);
    color: #fff;
    padding: 3.4rem 0;
}
.cta-title { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-band p { color: rgba(255, 255, 255, .9); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    position: relative;
    padding: 4.6rem 0;
    color: #fff;
    background:
        radial-gradient(700px 320px at 85% 0%, rgba(233, 138, 43, .3), transparent 60%),
        linear-gradient(150deg, var(--tf-navy) 0%, var(--tf-navy-2) 100%);
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M0 120 L120 0' stroke='%23ffffff' stroke-opacity='.05' stroke-width='1.5'/%3E%3C/svg%3E");
}
.page-hero-title {
    color: #fff;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 700;
}
.page-hero .breadcrumb-item a { color: #9fb4d4; }
.page-hero .breadcrumb-item a:hover { color: var(--tf-orange-2); }
.page-hero .breadcrumb-item.active { color: var(--tf-orange-2); font-weight: 600; }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: #6d84a8; }

/* ---------- Projects ---------- */
.proj-card {
    background: #fff;
    border: 1px solid var(--tf-line);
    border-radius: var(--tf-radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
}
.proj-card:hover { transform: translateY(-6px); box-shadow: var(--tf-shadow); }

.proj-top {
    position: relative;
    padding: 1.6rem;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}
.proj-top.tone-blue   { background: linear-gradient(140deg, var(--tf-blue), #163c78); }
.proj-top.tone-orange { background: linear-gradient(140deg, var(--tf-orange), #c96f18); }
.proj-top.tone-navy   { background: linear-gradient(140deg, var(--tf-navy), #050f20); }

.proj-top .watermark {
    position: absolute;
    right: -14px;
    bottom: -18px;
    width: 120px;
    height: 120px;
    opacity: .22;
}
.proj-top .watermark .fit-svg { width: 100%; height: 100%; }
.proj-top .watermark .fit-svg * { stroke: #fff !important; fill: none !important; }
.proj-top .watermark .fit-svg rect { fill: #fff !important; stroke: none !important; }

.proj-sector {
    align-self: flex-start;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 50rem;
    padding: .3rem .8rem;
    position: relative;
    z-index: 1;
}
.proj-year {
    color: #fff;
    font-family: var(--tf-head);
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}
.proj-body { padding: 1.5rem; flex: 1; }
.proj-body h5 { font-size: 1.3rem; margin-bottom: .4rem; }
.proj-loc { font-size: .82rem; font-weight: 600; color: var(--tf-orange); text-transform: uppercase; letter-spacing: .05em; }
.proj-body p { font-size: .9rem; color: var(--tf-muted); margin: .7rem 0 0; }

/* ---------- FRP wall cross-section card ---------- */
.xsec-card {
    background: #fff;
    border: 1px solid var(--tf-line);
    border-radius: var(--tf-radius);
    padding: 2rem;
    box-shadow: var(--tf-shadow);
}
.xsec-card .pipe-xsec { max-width: 300px; }
.xsec-card .pipe-legend { color: var(--tf-muted); }

.wall-layers { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.wall-layers li { display: flex; gap: 1rem; margin-bottom: 1.2rem; }
.wall-layers .dot {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-top: .3rem;
    box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--tf-line);
}
.wall-layers h5 { font-size: 1.15rem; margin-bottom: .2rem; }
.wall-layers p { font-size: .9rem; color: var(--tf-muted); margin: 0; }

/* ---------- Spec table ---------- */
.spec-table { border-radius: var(--tf-radius); overflow: hidden; box-shadow: var(--tf-shadow); }
.spec-table table { margin: 0; }
.spec-table thead th {
    background: var(--tf-navy);
    color: #fff;
    font-family: var(--tf-head);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 1.02rem;
    border: 0;
    padding: 1rem 1.2rem;
}
.spec-table tbody td { padding: .9rem 1.2rem; vertical-align: middle; }
.spec-table tbody tr:nth-child(even) { background: var(--tf-bg); }
.spec-table tbody tr:hover { background: #eaf1fb; }

/* ---------- Timeline (about) ---------- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--tf-line);
}
.timeline-item { position: relative; padding-bottom: 1.8rem; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--tf-orange);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--tf-orange);
}
.timeline-item .t-year {
    font-family: var(--tf-head);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--tf-blue);
}
.timeline-item h5 { font-size: 1.2rem; margin: .1rem 0 .3rem; }
.timeline-item p { font-size: .9rem; color: var(--tf-muted); margin: 0; }

/* ---------- Value cards ---------- */
.value-card {
    background: #fff;
    border: 1px solid var(--tf-line);
    border-radius: var(--tf-radius);
    padding: 2rem;
    height: 100%;
    text-align: center;
    transition: transform .25s, box-shadow .25s;
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--tf-shadow); }
.value-card .vc-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    background: #eaf1fb;
    color: var(--tf-blue);
    font-size: 1.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.value-card h4 { font-size: 1.35rem; }
.value-card p { font-size: .92rem; color: var(--tf-muted); margin: 0; }

/* ---------- Contact ---------- */
.info-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--tf-line);
    border-radius: var(--tf-radius);
    padding: 1.25rem 1.35rem;
    height: 100%;
    transition: transform .2s, box-shadow .2s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--tf-shadow); }
.info-card i {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: .8rem;
    background: linear-gradient(135deg, var(--tf-blue), var(--tf-blue-2));
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.info-card h6 { font-size: 1.1rem; margin-bottom: .2rem; }
.info-card p { font-size: .9rem; color: var(--tf-muted); margin: 0; }

.quote-card {
    background: #fff;
    border-radius: var(--tf-radius);
    box-shadow: var(--tf-shadow);
    padding: 2.4rem;
    border-top: 5px solid var(--tf-orange);
}

.form-label { font-weight: 600; font-size: .88rem; color: var(--tf-navy); }
.form-control, .form-select {
    border: 1px solid var(--tf-line);
    border-radius: .6rem;
    padding: .7rem .9rem;
    font-size: .95rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--tf-blue);
    box-shadow: 0 0 0 .2rem rgba(29, 79, 156, .14);
}

/* Decorative map panel */
.map-panel {
    border-radius: var(--tf-radius);
    min-height: 320px;
    height: 100%;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(4px 4px at 20% 30%, rgba(29,79,156,.35) 50%, transparent 51%),
        radial-gradient(4px 4px at 70% 60%, rgba(29,79,156,.3) 50%, transparent 51%),
        radial-gradient(4px 4px at 45% 80%, rgba(29,79,156,.3) 50%, transparent 51%),
        radial-gradient(4px 4px at 85% 25%, rgba(29,79,156,.28) 50%, transparent 51%),
        repeating-linear-gradient(0deg, transparent 0 39px, rgba(29,79,156,.09) 39px 40px),
        repeating-linear-gradient(90deg, transparent 0 39px, rgba(29,79,156,.09) 39px 40px),
        linear-gradient(150deg, #eaf1fb, #dbe7f7);
}
.map-pin {
    position: absolute;
    top: 46%;
    left: 52%;
    transform: translate(-50%, -100%);
    color: var(--tf-orange);
    font-size: 3rem;
    filter: drop-shadow(0 10px 12px rgba(12,33,66,.35));
}
.map-tag {
    position: absolute;
    top: 46%;
    left: 52%;
    transform: translate(12px, -104%);
    background: var(--tf-navy);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    border-radius: .5rem;
    padding: .4rem .7rem;
    white-space: nowrap;
}

/* ---------- FAQ ---------- */
.faq .accordion-item {
    border: 1px solid var(--tf-line);
    border-radius: .8rem !important;
    overflow: hidden;
    margin-bottom: .8rem;
}
.faq .accordion-button {
    font-family: var(--tf-head);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: .03em;
    color: var(--tf-navy);
    text-transform: uppercase;
    padding: 1.1rem 1.3rem;
}
.faq .accordion-button:not(.collapsed) {
    background: #eaf1fb;
    color: var(--tf-blue);
    box-shadow: none;
}
.faq .accordion-button:focus { box-shadow: none; border-color: var(--tf-line); }
.faq .accordion-body { color: var(--tf-muted); font-size: .94rem; }

/* ---------- Footer ---------- */
.footer {
    background: var(--tf-navy-2);
    color: #93a5c2;
    padding-top: 4.5rem;
}
.footer-logo {
    height: 46px;
    background: #fff;
    border-radius: .6rem;
    padding: .35rem .7rem;
}
.footer-about { font-size: .92rem; max-width: 30rem; }
.footer-title {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 1.1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: #93a5c2; font-size: .92rem; transition: color .2s, padding-left .2s; }
.footer-links a:hover { color: var(--tf-orange-2); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .8rem; font-size: .9rem; }
.footer-contact i { color: var(--tf-orange); font-size: 1.05rem; line-height: 1.4; }
.footer-social a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.22);
    color: #cdd9ec;
    align-items: center;
    justify-content: center;
    margin-right: .5rem;
    transition: all .2s;
}
.footer-social a:hover { background: var(--tf-orange); border-color: var(--tf-orange); color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 1.2rem 0;
    font-size: .83rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: space-between;
}

/* ---------- Back to top ---------- */
.to-top {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--tf-orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 12px 26px -10px rgba(233, 138, 43, .8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all .3s;
    z-index: 1050;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--tf-navy); color: #fff; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991.98px) {
    .hero { padding: 4.5rem 0 6rem; }
    .float-chip { display: none; }
    .check-list.two-col { columns: 1; }
    .exp-badge { right: 1rem; }
}
@media (max-width: 575.98px) {
    .section { padding: 4rem 0; }
    .stats-inner { padding: 1.6rem 1rem; }
    .stat-num { font-size: 2.2rem; }
}

/* ---------- Language switcher ---------- */
.lang-flag {
    display: inline-block;
    width: 1.25rem;
    height: .95rem;
    margin-right: .5rem;
    border-radius: .18rem;
    box-shadow: 0 0 0 1px rgba(12, 33, 66, .15);
    vertical-align: -2px;
}
.lang-toggle { display: inline-flex; align-items: center; }
.dropdown-menu .dropdown-item.active {
    background: #eaf1fb;
    color: var(--tf-blue);
    font-weight: 600;
}

/* Taller photo for the catalog cards */
.prod-media.lg { height: 235px; }

/* Contact info strip inside the map panel */
.map-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, .94);
    padding: 1.1rem 1.35rem;
}
.map-body h6 { color: var(--tf-navy); }
.map-body .footer-contact li { color: var(--tf-ink); }

/* Wall-layer text on dark sections */
.section-dark .wall-layers p { color: #aebdd6; }
.section-dark .wall-layers h5 { color: #fff; }

/* ---------- Arabic typography ---------- */
html[lang="ar"] {
    --tf-head: 'Cairo', 'Barlow Condensed', sans-serif;
    --tf-body: 'Tajawal', 'Barlow', sans-serif;
}
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] h4, html[lang="ar"] h5, html[lang="ar"] h6,
html[lang="ar"] .section-title, html[lang="ar"] .hero-title {
    text-transform: none;
    letter-spacing: 0;
}
/* letter-spacing breaks Arabic glyph joining — neutralise it */
html[lang="ar"] .eyebrow, html[lang="ar"] .hero-badge,
html[lang="ar"] #mainNav .nav-link, html[lang="ar"] .stat p,
html[lang="ar"] .prod-card .spec, html[lang="ar"] .prod-more,
html[lang="ar"] .proj-sector, html[lang="ar"] .proj-loc,
html[lang="ar"] .faq .accordion-button {
    letter-spacing: 0;
}

/* ---------- RTL overrides ---------- */
[dir="rtl"] .check-list i,
[dir="rtl"] .svc-panel li i { margin-right: 0; margin-left: .5rem; }
[dir="rtl"] .hero-points i,
[dir="rtl"] .gal-cap i,
[dir="rtl"] .pipe-legend i { margin-right: 0; margin-left: .35rem; }
[dir="rtl"] .topbar-social a { margin-left: 0; margin-right: .8rem; }
[dir="rtl"] .footer-social a { margin-right: 0; margin-left: .5rem; }
[dir="rtl"] .lang-flag { margin-right: 0; margin-left: .5rem; }

[dir="rtl"] .chip-a { left: auto; right: -4%; }
[dir="rtl"] .chip-b { right: auto; left: -4%; }
[dir="rtl"] .exp-badge { right: auto; left: -1rem; }
[dir="rtl"] .media-icon { right: auto; left: .9rem; }
[dir="rtl"] .standards-card::after { right: auto; left: -60px; }
[dir="rtl"] .proj-top .watermark { right: auto; left: -14px; }
[dir="rtl"] .photo-panel .photo-tag { left: auto; right: 1rem; }
[dir="rtl"] .to-top { right: auto; left: 1.4rem; }
[dir="rtl"] .map-tag { transform: translate(-12px, -104%); }

[dir="rtl"] .timeline { padding-left: 0; padding-right: 2rem; }
[dir="rtl"] .timeline::before { left: auto; right: 7px; }
[dir="rtl"] .timeline-item::before { left: auto; right: -2rem; }

[dir="rtl"] #mainNav .nav-link::after,
[dir="rtl"] .prod-card::before { transform-origin: right; }
[dir="rtl"] .prod-card:hover .prod-more i { transform: translateX(-4px); }
[dir="rtl"] .footer-links a { transition: color .2s, padding-right .2s; }
[dir="rtl"] .footer-links a:hover { padding-left: 0; padding-right: 4px; }
[dir="rtl"] .bi-arrow-right { display: inline-block; transform: scaleX(-1); }

@media (max-width: 991.98px) {
    [dir="rtl"] .exp-badge { left: 1rem; }
}
