/* ===== Template 02 — Premium Redesign ===== */

/* ---- Scroll-reveal animations ---- */
@keyframes t2FadeUp   { from { opacity:0; transform:translateY(36px); } to { opacity:1; transform:translateY(0); } }
@keyframes t2FadeLeft { from { opacity:0; transform:translateX(-36px); } to { opacity:1; transform:translateX(0); } }
@keyframes t2FadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes t2ScalePop { from { opacity:0; transform:scale(0.88); } to { opacity:1; transform:scale(1); } }
@keyframes t2Shine {
    0%   { left:-60%; }
    100% { left:130%; }
}

.t2-anim          { opacity:0; }
.t2-anim.t2-on    { animation: t2FadeUp  0.72s cubic-bezier(.23,1,.32,1) forwards; }
.t2-anim-l.t2-on  { animation: t2FadeLeft 0.72s cubic-bezier(.23,1,.32,1) forwards; }
.t2-anim-s.t2-on  { animation: t2ScalePop 0.6s cubic-bezier(.23,1,.32,1) forwards; }

.t2-d1 { animation-delay:.08s!important }
.t2-d2 { animation-delay:.18s!important }
.t2-d3 { animation-delay:.28s!important }
.t2-d4 { animation-delay:.38s!important }
.t2-d5 { animation-delay:.48s!important }
.t2-d6 { animation-delay:.58s!important }
.t2-d7 { animation-delay:.68s!important }
.t2-d8 { animation-delay:.78s!important }
.t2-d9 { animation-delay:.88s!important }


/* ══════════════════════════════════════════════
   SECTION A — COMPANY INTRO
══════════════════════════════════════════════ */
.t2-intro-block {
    background: #0b1826;
    position: relative;
    overflow: hidden;
}

/* Subtle dot-grid background */
.t2-intro-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(220,41,30,.16) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

/* Diagonal red accent shard */
.t2-intro-shard {
    position: absolute;
    top: 0; right: 0;
    width: 42%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(220,41,30,.07) 100%);
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
    pointer-events: none;
    z-index: 0;
}

.t2-intro-inner {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 520px;
}

/* ---- Left brand panel ---- */
.t2-intro-brand {
    width: 42%;
    flex-shrink: 0;
    padding: 72px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(220,41,30,.25);
    position: relative;
}

.t2-intro-brand::after {
    content: '';
    position: absolute;
    top: 0; right: -1px;
    width: 4px; height: 80px;
    background: #dc291e;
}

.t2-intro-brand img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: .9;
    margin-bottom: 34px;
}

.t2-intro-brand h1 {
    color: #fff;
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -.5px;
    margin: 0 0 6px;
}

.t2-intro-brand h1 em {
    color: #dc291e;
    display: block;
    font-style: normal;
}

.t2-intro-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 20px;
}

.t2-intro-divider span { flex:1; height:1px; background:rgba(220,41,30,.4); }
.t2-intro-divider b { color: #dc291e; font-size: .7rem; line-height:1; }

.t2-intro-brand p {
    color: rgba(255,255,255,.62);
    font-size: .98rem;
    font-weight: 500;
    line-height: 1.55;
    margin: 0;
}

/* ---- Right text panel ---- */
.t2-intro-text {
    flex: 1;
    padding: 72px 56px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.t2-intro-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #dc291e;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 22px;
}
.t2-intro-label::before {
    content: '';
    display: inline-block;
    width: 28px; height: 2px;
    background: #dc291e;
}

.t2-intro-text p {
    color: rgba(255,255,255,.68);
    font-size: 1.04rem;
    line-height: 1.88;
    margin: 0 0 18px;
}
.t2-intro-text p:last-of-type { margin-bottom: 0; }

/* Stats row */
.t2-stats-row {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    border-top: 1px solid rgba(255,255,255,.06);
    margin-top: 42px;
}

.t2-sstat {
    text-align: center;
    padding: 22px 12px;
    border-right: 1px solid rgba(255,255,255,.06);
    position: relative;
}
.t2-sstat:last-child { border-right: none; }

.t2-sstat strong {
    display: block;
    font-size: 2.1rem;
    font-weight: 900;
    color: #dc291e;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 6px;
}

.t2-sstat span {
    color: rgba(255,255,255,.42);
    font-size: .73rem;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-weight: 600;
}


/* ══════════════════════════════════════════════
   SECTION B — WHY PAN AMERICAN
══════════════════════════════════════════════ */
.t2-why-block {
    background: #101e2e;
    padding: 92px 0 80px;
    position: relative;
    overflow: hidden;
}

/* Giant ghost word */
.t2-why-ghost {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 17vw;
    font-weight: 900;
    color: rgba(255,255,255,.022);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    letter-spacing: -6px;
    line-height: 1;
}

.t2-why-header {
    text-align: center;
    margin-bottom: 62px;
    position: relative;
    z-index: 1;
}

.t2-eyebrow-tag {
    display: inline-block;
    color: #dc291e;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 14px;
    position: relative;
}
.t2-eyebrow-tag::before,
.t2-eyebrow-tag::after {
    content: '';
    display: inline-block;
    width: 22px; height: 1.5px;
    background: #dc291e;
    vertical-align: middle;
    margin: 0 10px;
    opacity: .7;
}

.t2-why-header h2 {
    color: #fff;
    font-size: 2.7rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 12px;
    line-height: 1.05;
}

.t2-why-header p {
    color: rgba(255,255,255,.38);
    font-size: .94rem;
    max-width: 360px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Feature cards */
.t2-feat-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 18px;
    padding: 32px 26px 28px;
    margin-bottom: 24px;
    height: calc(100% - 24px);
    position: relative;
    overflow: hidden;
    transition: transform .32s ease, background .32s ease, border-color .32s ease, box-shadow .32s ease;
    cursor: default;
    z-index: 1;
}

/* Shine sweep */
.t2-feat-card::after {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent);
    transform: skewX(-20deg);
    transition: left 0s;
    pointer-events: none;
}

.t2-feat-card:hover::after {
    animation: t2Shine .55s ease forwards;
}

/* Top red bar */
.t2-feat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #dc291e, #ff6b5b);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}

.t2-feat-card:hover::before { transform: scaleX(1); }

.t2-feat-card:hover {
    transform: translateY(-9px);
    background: rgba(220,41,30,.08);
    border-color: rgba(220,41,30,.3);
    box-shadow: 0 22px 54px rgba(0,0,0,.35), 0 0 0 1px rgba(220,41,30,.08);
}

.t2-feat-icon {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #dc291e, #a81a14);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 6px 18px rgba(220,41,30,.35);
    transition: transform .3s ease, box-shadow .3s ease;
}

.t2-feat-card:hover .t2-feat-icon {
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 10px 26px rgba(220,41,30,.45);
}

.t2-feat-icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.t2-feat-card h4 {
    color: #fff;
    font-size: .97rem;
    font-weight: 700;
    line-height: 1.42;
    margin: 0;
}

/* Ghost number background */
.t2-feat-ghost-num {
    position: absolute;
    bottom: -6px;
    right: 14px;
    font-size: 5.5rem;
    font-weight: 900;
    color: rgba(255,255,255,.025);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    letter-spacing: -3px;
}


/* ══════════════════════════════════════════════
   SECTION C — EXPERT QUOTE
══════════════════════════════════════════════ */
.t2-quote-block {
    overflow: hidden;
    background: #fff;
}

.t2-quote-inner {
    display: flex;
    min-height: 320px;
}

/* Left dark accent panel */
.t2-quote-panel {
    background: #0b1826;
    width: 300px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.t2-quote-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(220,41,30,.22) 1.5px, transparent 1.5px);
    background-size: 22px 22px;
}

.t2-quote-panel-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 28px;
}

.t2-quote-vert {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    color: rgba(255,255,255,.07);
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    display: block;
    margin-bottom: 22px;
    user-select: none;
}

.t2-quote-badge {
    width: 62px;
    height: 62px;
    background: #dc291e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 0 0 10px rgba(220,41,30,.14);
}

.t2-quote-badge svg {
    width: 26px;
    height: 26px;
    fill: #fff;
}

.t2-quote-panel-label {
    color: #dc291e;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
}

/* Right text area */
.t2-quote-body {
    flex: 1;
    padding: 62px 70px;
    display: flex;
    align-items: center;
    background: #fff;
    position: relative;
}

.t2-quote-body::before {
    content: '\201C';
    position: absolute;
    top: 16px; left: 46px;
    font-size: 11rem;
    line-height: 1;
    color: rgba(220,41,30,.07);
    font-family: Georgia, serif;
    pointer-events: none;
}

.t2-quote-content { position: relative; z-index: 1; }

.t2-quote-sublabel {
    color: #dc291e;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    display: block;
    margin-bottom: 20px;
}

.t2-quote-content p {
    color: #253545;
    font-size: 1.18rem;
    line-height: 1.88;
    font-style: italic;
    margin: 0;
    border-left: 4px solid #dc291e;
    padding-left: 26px;
}


/* ══════════════════════════════════════════════
   SECTION D — SERVICING PORTS
══════════════════════════════════════════════ */
.t2-ports-block {
    background: #0b1826;
    overflow: hidden;
}

.t2-ports-wrap {
    display: flex;
    min-height: 0;
}

/* Left red gradient panel */
.t2-ports-left {
    flex: 1;
    background: linear-gradient(140deg, #dc291e 0%, #9e1810 100%);
    padding: 14px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 93% 0, 100% 100%, 0 100%);
}

.t2-ports-left::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 380px; height: 380px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
    pointer-events: none;
}

.t2-ports-left::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 280px; height: 280px;
    background: rgba(0,0,0,.12);
    border-radius: 50%;
    pointer-events: none;
}

.t2-ports-content { position: relative; z-index: 1; max-width: 440px; }

.t2-ports-eyebrow {
    color: rgba(255,255,255,.65);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    display: block;
    margin-bottom: 6px;
}

.t2-ports-left h2 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -.5px;
    margin-bottom: 8px;
}

.t2-ports-left p {
    color: rgba(255,255,255,.82);
    font-size: 1.02rem;
    line-height: 1.84;
    margin: 0;
}

/* Right port cards */
.t2-ports-right {
    width: 42%;
    flex-shrink: 0;
    padding: 14px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.t2-ports-right h5 {
    color: rgba(255,255,255,.35);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 22px;
}

.t2-port-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px 18px;
    border-radius: 12px;
    margin-bottom: 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
    cursor: default;
}

.t2-port-row:hover {
    background: rgba(220,41,30,.14);
    border-color: rgba(220,41,30,.38);
    transform: translateX(7px);
}

.t2-port-row:last-child { margin-bottom: 0; }

.t2-port-pin-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    background: #dc291e;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(220,41,30,.35);
}

.t2-port-pin-icon svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

.t2-port-row-info strong {
    display: block;
    color: #fff;
    font-size: .93rem;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.2;
}

.t2-port-row-info span {
    color: rgba(255,255,255,.38);
    font-size: .73rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.t2-port-badge {
    margin-left: auto;
    background: rgba(220,41,30,.2);
    color: #ff6b5b;
    font-size: .66rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
    flex-shrink: 0;
}


/* ── Expert block (replaces port list in t2-ports-right) ── */
.t2-expert-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.t2-expert-icon {
    width: 56px;
    height: 56px;
    background: #dc291e;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(220,41,30,.4);
    flex-shrink: 0;
}

.t2-expert-icon svg {
    width: 28px;
    height: 28px;
    stroke: #fff;
}

.t2-expert-block h5 {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    margin: 0;
    line-height: 1.35;
}

.t2-expert-block p {
    color: rgba(255,255,255,.65);
    font-size: .97rem;
    line-height: 1.8;
    margin: 0;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1199px) {
    .t2-intro-brand   { padding: 60px 40px; }
    .t2-intro-text    { padding: 60px 44px 48px; }
    .t2-ports-left    { padding: 12px 40px; }
    .t2-ports-right   { padding: 12px 34px; }
    .t2-quote-body    { padding: 56px 50px; }
    .t2-why-ghost     { font-size: 19vw; }
}

@media (max-width: 991px) {
    .t2-intro-inner   { flex-direction: column; min-height: auto; }
    .t2-intro-brand   { width: 100%; clip-path: none; padding: 52px 36px; border-right: none; border-bottom: 1px solid rgba(220,41,30,.25); }
    .t2-intro-brand::after { display: none; }
    .t2-intro-text    { padding: 48px 36px 40px; }
    .t2-stats-row     { grid-template-columns: repeat(2,1fr); }
    .t2-sstat         { border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); }
    .t2-sstat:last-child, .t2-sstat:nth-child(2) { border-bottom: none; }

    .t2-ports-wrap    { flex-direction: column; }
    .t2-ports-left    { clip-path: none; width: 100%; padding: 12px 28px; }
    .t2-ports-right   { width: 100%; padding: 12px 28px; }

    .t2-quote-inner   { flex-direction: column; }
    .t2-quote-panel   { width: 100%; min-height: 160px; }
    .t2-quote-vert    { writing-mode: horizontal-tb; transform: none; font-size: 2.5rem; margin-bottom: 14px; }
    .t2-quote-body    { padding: 46px 36px; }
    .t2-quote-body::before { font-size: 7rem; top: 8px; left: 20px; }
}

@media (max-width: 767px) {
    .t2-intro-brand h1   { font-size: 1.7rem; }
    .t2-sstat strong     { font-size: 1.7rem; }
    .t2-why-header h2    { font-size: 2rem; }
    .t2-ports-left h2    { font-size: 1.2rem; }
    .t2-quote-content p  { font-size: 1.05rem; }
    .t2-feat-card        { height: auto; }
}
