/* ── PORTFOLIO LIGHT THEME ───────────────────────── */
body.page-portfolio-light {
    background-color: #f9f9f9;
    color: #00193c;
    background-image: 
        radial-gradient(circle, rgba(0,25,60,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Navbar clear background */
body.page-portfolio-light .navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
body.page-portfolio-light .logo-text { color: #00193c; }
body.page-portfolio-light .logo-text span { color: #00193c; opacity: 0.6; }

body.page-portfolio-light .nav-link { color: #48626e; }
body.page-portfolio-light .nav-link:hover,
body.page-portfolio-light .nav-link.active { color: #00193c; background: rgba(0,0,0,0.03); }
body.page-portfolio-light .menu-toggle span { background: #00193c; }

/* Buttons */
.btn-navy-solid {
    background-color: #00193c;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: background 0.3s;
}
.btn-navy-solid:hover { background-color: #002d62; color: #ffffff; }

.btn-gray-light {
    background-color: #e2e8f0;
    color: #00193c;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    text-decoration: none;
    transition: background 0.3s;
}
.btn-gray-light:hover { background-color: #cbd5e1; }

.btn-outline-light {
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-block;
    align-self: flex-start;
    transition: all 0.3s;
}
.btn-outline-light:hover { background: #fff; color: #00193c; }

/* Hero */
.portfolio-hero-light {
    padding-top: 140px;
    padding-bottom: 80px;
    overflow: hidden;
    background: url('images/hero.png') center/cover no-repeat;
    position: relative;
}
.portfolio-hero-light::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 25, 60, 0.85); /* Navy overlay */
    z-index: 0;
}
.portfolio-hero-light .container {
    position: relative;
    z-index: 1;
}
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-left {
    max-width: 500px;
}
.subheading-small {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #747781;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}
.hero-title-dark {
    font-size: clamp(3rem, 5vw, 4.25rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}
.hero-subtitle-dark {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}
.hero-actions-light {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual-container {
    position: relative;
    padding: 20px;
}
.hero-main-img-box {
    background: #fff;
    padding: 12px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.1);
    transform: rotate(3deg);
    transition: transform 0.5s;
}
.hero-main-img-box:hover {
    transform: rotate(0deg);
}
.hero-main-img-box img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: opacity 0.5s ease;
}
.hero-badge-dark {
    position: absolute;
    bottom: 10px;
    left: -20px;
    background-color: #00193c;
    color: #fff;
    padding: 24px 32px;
    box-shadow: 0 20px 40px rgba(0,25,60,0.25);
    display: flex;
    flex-direction: column;
    transform: rotate(-3deg);
    z-index: 2;
}
.hero-badge-dark .badge-number {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}
.hero-badge-dark .badge-text {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    opacity: 0.8;
}

/* Portfolio Header */
.portfolio-grid-section {
    padding: 80px 0;
    background-color: #f3f3f7; /* Very light gray to set off cards */
}
.portfolio-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(0,25,60,0.1);
    padding-bottom: 16px;
}
.dark-text { color: #00193c; }
.subheading-right {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #747781;
    text-transform: uppercase;
}

/* Grid Layout */
.pg-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}
.card-col-2 { grid-column: span 2; }
.card-col-1 { grid-column: span 1; }

/* Cards */
.pg-card {
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}
.pg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.pg-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.pg-card.card-featured { height: 400px; }
.pg-card.card-featured img {
    height: 100%;
    position: absolute;
    inset: 0;
}
.pg-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,25,60,0.95), transparent);
    color: #fff;
    z-index: 2;
}
.pg-card-overlay h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.pg-card-overlay p {
    font-size: 0.875rem;
    opacity: 0.9;
    max-width: 90%;
    line-height: 1.5;
}
.eyebrow {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    opacity: 0.8;
    display: block;
    margin-bottom: 8px;
    color: inherit;
}
.card-eyebrow {
    color: #F47920;
}
.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #00193c;
    margin-bottom: 8px;
}
.card-content p {
    font-size: 0.85rem;
    color: #48626e;
    line-height: 1.6;
    margin-bottom: 20px;
}
.view-link {
    margin-top: auto;
    font-size: 0.7rem;
    font-weight: 700;
    color: #F47920;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

/* Wide Card */
.pg-card-wide {
    display: flex;
    background: #00193c;
    color: #fff;
    margin-top: 30px;
}
.wide-content {
    padding: 60px 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.wide-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
}
.wide-content p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 30px;
    max-width: 480px;
}
.wide-image {
    flex: 1.2;
}
.wide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
}

/* CTA */
.portfolio-cta {
    padding: 100px 0;
    text-align: center;
    background-color: #f9f9f9;
}
.portfolio-cta h2 {
    color: #00193c;
    margin-bottom: 40px;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.1;
}
.stats-row {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 80px;
    flex-wrap: wrap;
}
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stat .val {
    font-size: 1.5rem;
    font-weight: 800;
    color: #00193c;
}
.stat .lbl {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #747781;
    margin-top: 4px;
}

@media (max-width: 1024px) {
    .pg-masonry { grid-template-columns: repeat(2, 1fr); }
    .card-col-2 { grid-column: span 1; }
    .pg-card.card-featured { height: 300px; }
}
@media (max-width: 768px) {
    .hero-split { grid-template-columns: 1fr; }
    .hero-visual-container { padding: 40px 20px; }
    .pg-masonry { grid-template-columns: 1fr; }
    .pg-card-wide { flex-direction: column; }
    .stats-row { gap: 40px; }
    .portfolio-header-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
}
