/* ============================================================
   Win Thin Group — Shared Stylesheet
   Firm Profile + Internship pages (responsive)
   ============================================================ */

:root {
    --primary: #004b87;      /* Deep corporate blue */
    --primary-dark: #063a66;
    --secondary: #009bdb;    /* Bright energetic blue */
    --accent: #8dc63f;       /* Growth green */
    --bg-light: #f4f7fa;
    --bg-soft: #e9f2f9;
    --text-dark: #2b3440;
    --text-muted: #5c6b7a;
    --white: #ffffff;
    --border: #dce5ee;
    --shadow-sm: 0 2px 8px rgba(0, 45, 90, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 45, 90, 0.12);
    --radius: 12px;
    --maxw: 1180px;
}

/* ---------- Reset & base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    color: var(--text-dark);
    line-height: 1.65;
    background: var(--white);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

/* ---------- Header / Nav ---------- */
header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem clamp(1rem, 4vw, 2rem);
    max-width: var(--maxw);
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand img { height: 38px; width: auto; }

.brand-name {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.15;
    white-space: nowrap;
}

.brand-name small {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.4px;
}

.nav-links {
    display: flex;
    gap: clamp(1rem, 2.4vw, 1.8rem);
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: color 0.25s ease;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { color: var(--secondary); }

.btn {
    display: inline-block;
    background: var(--secondary);
    color: var(--white) !important;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { background: var(--primary); transform: translateY(-2px); }

.btn-outline {
    background: transparent;
    color: var(--white) !important;
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.14); }

.btn-accent { background: var(--accent); }
.btn-accent:hover { background: #76b32a; }

.menu-toggle {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--primary);
    background: none;
    border: none;
    line-height: 1;
    padding: 4px 6px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: linear-gradient(120deg, rgba(0, 65, 115, 0.96) 20%, rgba(0, 155, 219, 0.82)),
        url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1600&q=80') center/cover;
    color: var(--white);
    text-align: center;
    padding: clamp(4.5rem, 12vh, 8rem) clamp(1rem, 4vw, 2rem);
}

.hero h1 {
    font-size: clamp(1.9rem, 4.6vw, 3.6rem);
    margin-bottom: 1.1rem;
    line-height: 1.18;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 720px;
    margin: 0 auto 2rem;
    opacity: 0.93;
}

.hero .hero-cta {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .cta-btn {
    background: var(--accent);
    color: var(--white);
    padding: 0.9rem 2.1rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 999px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.25s;
}

.hero .cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    background: #76b32a;
}

/* ---------- Sections ---------- */
section { padding: clamp(3rem, 7vw, 5rem) 0; }
section.alt { background: var(--bg-light); }

.section-header {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-header h2 {
    font-size: clamp(1.55rem, 3.4vw, 2.2rem);
    color: var(--primary);
    margin-bottom: 0.7rem;
    letter-spacing: -0.3px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.02rem;
}

/* ---------- Grids & cards ---------- */
.grid {
    display: grid;
    gap: 1.6rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.card h3 { color: var(--primary); font-size: 1.18rem; margin-bottom: 0.6rem; }
.card p { color: var(--text-muted); font-size: 0.97rem; }

.card .card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* Firm cards with logos */
.firm-card { border-top: 5px solid var(--secondary); text-align: left; }
.firm-card img.firm-logo { height: 58px; margin-bottom: 1.1rem; }

/* ---------- Legacy / about ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.about-text h3 {
    font-size: clamp(1.3rem, 2.6vw, 1.75rem);
    margin-bottom: 1rem;
    color: var(--secondary);
}

.about-text p { margin-bottom: 1rem; color: var(--text-muted); }

.about-image {
    background: linear-gradient(135deg, var(--bg-soft), var(--bg-light));
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    min-height: 240px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius);
    display: block;
}

/* Timeline */
.timeline {
    margin-top: 2.2rem;
    border-left: 3px solid var(--bg-soft);
    padding-left: 1.4rem;
    display: grid;
    gap: 1.1rem;
}

.timeline .tl-item { position: relative; }

.timeline .tl-item::before {
    content: '';
    position: absolute;
    left: calc(-1.4rem - 9px);
    top: 6px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--secondary);
    border: 2.5px solid var(--white);
    box-shadow: 0 0 0 2px var(--secondary);
}

.timeline .tl-year {
    font-weight: 800;
    color: var(--primary);
    margin-right: 8px;
}

.timeline .tl-text { color: var(--text-muted); font-size: 0.96rem; }

/* ---------- Values ---------- */
.values-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
}

.values-section .section-header h2,
.values-section .section-header p { color: var(--white); }

.values-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.value-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.85rem 1.7rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: clamp(0.95rem, 2vw, 1.08rem);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

/* ---------- Stats ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
    text-align: center;
}

.stat-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem 1rem;
    box-shadow: var(--shadow-sm);
}

.stat-item h4 { font-size: clamp(2rem, 4.5vw, 2.8rem); color: var(--secondary); margin-bottom: 0.3rem; }
.stat-item p { font-weight: 600; color: var(--text-muted); font-size: 0.93rem; }

.stats-total {
    text-align: center;
    margin-top: 1.8rem;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.stats-total b { color: var(--primary); font-size: 1.25rem; }

/* ---------- Leadership ---------- */
.leader-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6rem;
}

.leader-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    display: flex;
    flex-direction: column;
}

.leader-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.leader-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    object-position: top center;
    display: block;
    background: var(--bg-soft);
}

.leader-card .leader-body { padding: 1.1rem 1.2rem 1.3rem; }

.leader-card h3 { color: var(--primary); font-size: 1.05rem; margin-bottom: 2px; }
.leader-card .quals { color: var(--secondary); font-size: 0.78rem; font-weight: 600; margin-bottom: 6px; }
.leader-card .role { color: var(--text-muted); font-size: 0.88rem; font-weight: 600; line-height: 1.45; }

/* ---------- Sector chips ---------- */
.chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    max-width: 900px;
    margin: 0 auto;
}

.chip {
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--primary);
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.93rem;
    box-shadow: var(--shadow-sm);
}

/* ---------- Steps (how to apply) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; counter-reset: step; }

.step {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.step .step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.step h3 { color: var(--primary); font-size: 1.08rem; margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Checklist ---------- */
.checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem 2rem;
    max-width: 880px;
    margin: 0 auto;
}

.checklist li {
    position: relative;
    padding-left: 2rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.98rem;
}

.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 1.35rem;
    height: 1.35rem;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
}

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(120deg, var(--primary-dark), var(--secondary));
    color: var(--white);
    text-align: center;
    border-radius: var(--radius);
    padding: clamp(2.4rem, 6vw, 3.6rem) clamp(1.2rem, 4vw, 3rem);
}

.cta-band h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-bottom: 0.8rem; }
.cta-band p { max-width: 620px; margin: 0 auto 1.8rem; opacity: 0.93; }

/* ---------- Contact cards ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}

.contact-card h3 { color: var(--primary); font-size: 1.05rem; margin-bottom: 0.7rem; }
.contact-card p, .contact-card li { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 0.35rem; }
.contact-card b { color: var(--text-dark); }

/* ---------- Footer ---------- */
footer {
    background: #14212e;
    color: #b8c4cf;
    padding: clamp(2.6rem, 6vw, 4rem) 0 1.6rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.2rem;
}

.footer-col h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 1.1rem; }
.footer-col p, .footer-col li { font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer-col a:hover { color: var(--secondary); }
.footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 1rem; }
.footer-brand img { height: 34px; }

.footer-bottom {
    text-align: center;
    padding-top: 1.6rem;
    margin-top: 2.4rem;
    border-top: 1px solid #2a3a49;
    font-size: 0.85rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 992px) {
    .grid-4, .leader-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-3, .steps, .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.4rem 0 1rem;
        box-shadow: 0 12px 16px rgba(0, 0, 0, 0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.32s ease-in-out;
    }

    .nav-links.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }

    .nav-links li { width: 100%; }

    .nav-links a {
        display: block;
        padding: 0.85rem 1.4rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-links a.btn {
        margin: 0.8rem 1.4rem 0;
        text-align: center;
        border-bottom: none;
    }

    .about-grid, .grid-2 { grid-template-columns: 1fr; }
    .about-image { order: -1; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .checklist { grid-template-columns: 1fr; }
    .brand-name small { display: none; }
}

@media (max-width: 560px) {
    .grid-3, .grid-4, .leader-grid, .steps, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
    .brand img { height: 32px; }
    .brand-name { font-size: 1rem; }
    .card, .step { padding: 1.4rem; }
    .leader-card img { height: 260px; }
}

@media (max-width: 380px) {
    .stats-grid { grid-template-columns: 1fr; }
}
