/* =========================================================
   Personnel Network - Public Site Stylesheet
   ========================================================= */

:root {
    --navy:        #0d2147;
    --navy-dark:   #081629;
    --navy-mid:    #1a3a6b;
    --teal:        #007b7b;
    --teal-light:  #00a4a4;
    --teal-pale:   #e6f7f7;
    --white:       #ffffff;
    --bg:          #f8fafc;
    --bg-shaded:   #eff3f8;   /* tinted section background - clearly darker than white */
    --text:        #1e293b;
    --muted:       #64748b;
    --border:      #e2e8f0;
    --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
    --shadow-md:   0 4px 16px rgba(0,0,0,.1);
    --shadow-lg:   0 8px 32px rgba(0,0,0,.12);
    --radius:      8px;
    --radius-lg:   16px;
    --transition:  0.2s ease;
    --max-w:       1200px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Make the HTML `hidden` attribute reliable even on elements with an explicit display (e.g. .btn) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-light); }
ul { list-style: none; }

/* ── Container ── */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}
.btn--primary:hover { background: var(--teal-light); border-color: var(--teal-light); color: var(--white); }

.btn--navy {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.btn--navy:hover { background: var(--navy-mid); border-color: var(--navy-mid); color: var(--white); }

.btn--outline {
    background: transparent;
    color: var(--teal);
    border-color: var(--teal);
}
.btn--outline:hover { background: var(--teal); color: var(--white); }

.btn--outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn--outline-white:hover { background: var(--white); color: var(--navy); }

.btn--sm { padding: 8px 18px; font-size: .875rem; }
.btn--lg { padding: 16px 36px; font-size: 1.05rem; }

/* ── Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 136px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--navy);
    flex-shrink: 0;
}
.logo:hover { opacity: .85; }
.logo__mark { height: 120px; width: auto; object-fit: contain; }

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: block;
    padding: 8px 14px;
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 500;
    font-size: .9rem;
    transition: all var(--transition);
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--teal); background: var(--teal-pale); }

.nav-link--cta {
    background: var(--navy);
    color: var(--white) !important;
    margin-left: 8px;
}
.nav-link--cta:hover { background: var(--navy-mid); }
/* On its own page, the Contact CTA takes the same look as other links' hover/active */
.nav-link--cta.active { background: var(--teal-pale); color: var(--teal) !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
    background: var(--navy);
    color: var(--white);
    overflow: hidden;
    position: relative;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 480px;
    gap: 48px;
}

.hero-content { padding: 72px 0; }

.hero-eyebrow {
    display: inline-block;
    background: var(--teal);
    color: var(--white);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -.5px;
}
.hero h1 span { color: var(--teal-light); }

.hero-lead {
    font-size: 1.1rem;
    color: rgba(255,255,255,.8);
    margin-bottom: 12px;
    font-style: italic;
}
.hero-sub {
    font-size: .95rem;
    color: rgba(255,255,255,.65);
    margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 40px 0;
}
.hero-image img {
    width: 100%;
    max-width: 520px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    opacity: .9;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    color: var(--white);
    padding: 56px 0;
    text-align: center;
}
.page-hero h1 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -.3px;
}
.page-hero p {
    font-size: 1.05rem;
    color: rgba(255,255,255,.75);
    margin: 0 auto;
}

/* ── Sections ── */
.section { padding: 80px 0; }
.section--bg { background: var(--bg-shaded); }
.section--teal { background: var(--teal-pale); }
.section--navy { background: var(--navy); color: var(--white); }

.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-eyebrow {
    display: inline-block;
    color: var(--teal);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -.3px;
    margin-bottom: 14px;
}
.section--navy .section-title { color: var(--white); }
.section-desc {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}
.section--navy .section-desc { color: rgba(255,255,255,.7); }

/* ── Cards ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 1024px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .card-grid { grid-template-columns: 1fr; }
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--teal-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    float: left;
    margin: 0 16px 10px 0;
    color: var(--teal);
}
.card-icon svg { width: 28px; height: 28px; }

.card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}
.card p { color: var(--muted); font-size: .95rem; line-height: 1.65; }

/* ── About Section ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.about-content { }
.about-content h2,
.about-heading {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
    letter-spacing: -.3px;
}
.about-heading { margin-bottom: 28px; }
.about-content p { color: var(--muted); margin-bottom: 14px; line-height: 1.75; }
.about-content p:last-child { margin-bottom: 0; }
.about-highlight {
    font-weight: 600;
    color: var(--teal);
    font-style: italic;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-top: 32px;
}
.stat-box {
    background: var(--teal-pale);
    border-radius: var(--radius);
    padding: 18px 10px;
    text-align: center;
}
.stat-box .stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--teal);
    line-height: 1;
    display: block;
    margin-bottom: 4px;
}
.stat-box .stat-label { font-size: .82rem; color: var(--navy); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }

.about-image img {
    border-radius: var(--radius-lg);
    width: 100%;
    object-fit: cover;
    max-height: 420px;
    box-shadow: var(--shadow-lg);
}

/* ── Steps ── */
.steps { display: flex; flex-direction: column; gap: 0; counter-reset: step; }
.step {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }

.step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    font-weight: 700;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.step-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.step-body p { color: var(--muted); font-size: .93rem; }

/* ── CTA Banner ── */
.cta-banner {
    background: linear-gradient(135deg, var(--teal) 0%, #005e5e 100%);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    text-align: center;
    color: var(--white);
}
.cta-banner h2 { font-size: 2rem; font-weight: 700; margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,.85); margin-bottom: 28px; font-size: 1.05rem; }
.cta-banner .btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Register-on-database callout (home page) ── */
.register-callout {
    display: flex;
    align-items: center;
    gap: 28px;
    background: var(--teal-pale);
    border-left: 4px solid var(--teal);
    border-radius: var(--radius);
    padding: 28px 32px;
}
.register-callout__text { flex: 1 1 auto; }
.register-callout h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}
.register-callout p { color: var(--navy); margin: 0; font-size: .95rem; line-height: 1.7; }
.register-callout .btn { flex: 0 0 auto; }

/* ── Team Cards ── */
.team-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    align-items: stretch;
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* The photo keeps the source 3:4 ratio and is top-aligned rather than stretched
   to the bio's height — a tall bio used to make the box taller than 3:4, and
   `cover` then cropped the sides (cutting off off-centre faces). `contain` is
   the belt-and-braces guard for any photo that isn't exactly 3:4. */
.team-card__photo {
    flex: 0 0 260px;
    width: 260px;
    align-self: flex-start;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    object-position: top center;
    background: var(--bg);
    display: block;
}

.team-card__body {
    padding: 32px 36px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.team-card__title {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--teal);
    margin-bottom: 6px;
}
.team-card__name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}
.team-card__linkedin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .83rem;
    color: var(--muted);
    margin-bottom: 16px;
    font-weight: 500;
}
.team-card__linkedin:hover { color: var(--teal); }
.team-card__bio { font-size: .93rem; color: var(--muted); line-height: 1.7; }
.team-card__bio p + p { margin-top: 10px; }

/* ── Vacancies ── */
.vacancy-group { margin-bottom: 48px; }
.vacancy-group:last-child { margin-bottom: 0; }

.vacancy-location {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--teal);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--teal-pale);
}
.vacancy-location svg { flex-shrink: 0; }

.vacancy-list { display: flex; flex-direction: column; gap: 12px; }

.vacancy-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    gap: 16px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.vacancy-item:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); }

.vacancy-item__title {
    font-weight: 600;
    color: var(--navy);
    font-size: 1rem;
}
.vacancy-item__meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.vacancy-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    background: var(--teal-pale);
    color: var(--teal);
    font-size: .75rem;
    font-weight: 600;
}

.vacancy-no-jobs {
    text-align: center;
    padding: 0 24px 64px;
    color: var(--muted);
}
.vacancy-no-jobs svg { margin: 0 auto 20px; opacity: .4; }
.vacancy-no-jobs h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 8px; }

/* ── Forms ── */
.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    max-width: 680px;
    margin: 0 auto;
}

.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}
.form-label span { color: #e53e3e; margin-left: 3px; }

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: .95rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0,123,123,.12);
}
textarea.form-control { resize: vertical; min-height: 130px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.radio-group { display: flex; gap: 24px; margin-top: 4px; }
.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: .93rem;
    color: var(--text);
}
.radio-label input[type=radio] { accent-color: var(--teal); width: 16px; height: 16px; }

.form-submit { margin-top: 28px; }

.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: .93rem;
    font-weight: 500;
}
.alert--success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert--error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ── Content Page ── */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}
.content-main { }
.content-sidebar { }

.info-box {
    background: var(--teal-pale);
    border: 1px solid #b2e0e0;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}
.info-box h2, .info-box h4 { color: var(--navy); font-size: .95rem; margin-bottom: 8px; }
.info-box p { color: var(--muted); font-size: .88rem; line-height: 1.6; }

.fb-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}
.fb-box h4 { color: var(--navy); font-size: .88rem; margin-bottom: 8px; }
.fb-box p { color: var(--muted); font-size: .82rem; margin-bottom: 16px; }
.fb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1877f2;
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .88rem;
}
.fb-btn:hover { background: #1558b0; color: var(--white); }

/* ── Footer ── */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,.75);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 16px;
}
.footer-logo img { height: 44px; width: auto; object-fit: contain; filter: brightness(0) invert(1); }
.footer-logo:hover { color: var(--white); }

.footer-about {
    font-size: .88rem;
    line-height: 1.65;
    margin-bottom: 20px;
    color: rgba(255,255,255,.6);
}
.footer-about p { margin: 0 0 .75rem; }
.footer-about p:last-child { margin-bottom: 0; }
.footer-about ul, .footer-about ol { margin: 0 0 .75rem 1.1rem; padding: 0; }
.footer-about a { color: rgba(255,255,255,.85); text-decoration: underline; }
.footer-about a:hover { color: var(--teal-light); }

.footer-fb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.7);
    font-size: .85rem;
    font-weight: 500;
}
.footer-fb:hover { color: var(--white); }

.footer-heading {
    color: var(--white);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
    color: rgba(255,255,255,.65);
    font-size: .88rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--teal-light); }

.footer-links--contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .88rem;
    color: rgba(255,255,255,.65);
    margin-bottom: 8px;
}
.footer-links--contact svg { flex-shrink: 0; margin-top: 2px; opacity: .6; }
.footer-links--contact a { color: rgba(255,255,255,.65); }
.footer-links--contact a:hover { color: var(--teal-light); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: .82rem;
    color: rgba(255,255,255,.4);
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Vacancy Detail ── */
.vacancy-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.vacancy-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--teal-pale);
    color: var(--teal);
    border-radius: 100px;
    font-size: .83rem;
    font-weight: 600;
}
.vacancy-meta-badge--muted {
    background: #f1f5f9;
    color: var(--muted);
}

.vacancy-description {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 28px;
    line-height: 1.7;
    color: var(--text);
    font-size: .9rem;
    font-weight: 400;
}
.vacancy-description p { margin-bottom: 10px; }
.vacancy-description p:last-child { margin-bottom: 0; }
.vacancy-description strong { font-weight: 600; }
.vacancy-description ul, .vacancy-description ol { padding-left: 20px; margin-bottom: 10px; }
.vacancy-description li { margin-bottom: 3px; }

.vacancy-apply-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
    margin-bottom: 32px;
}

.vacancy-share { margin-top: 8px; }
.vacancy-share__label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 10px;
}
.vacancy-share__buttons { display: flex; gap: 10px; flex-wrap: wrap; }

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: var(--radius);
    font-size: .83rem;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    transition: opacity var(--transition);
}
.share-btn:hover { opacity: .85; color: var(--white); }
.share-btn--facebook  { background: #1877f2; }
.share-btn--twitter   { background: #000; }
.share-btn--linkedin  { background: #0077b5; }
.share-btn--whatsapp  { background: #25d366; }
.share-btn--email     { background: var(--navy); }
.share-btn--copy      { background: var(--teal); }
button.share-btn      { border: none; cursor: pointer; font-family: inherit; }
.share-btn svg        { width: 15px; height: 15px; flex-shrink: 0; }

/* vacancy list item actions (View Details + Apply Now) */
.vacancy-item__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* location filter on the vacancies list */
.vacancy-filter { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.vacancy-filter label { font-size: .85rem; font-weight: 600; color: var(--navy); }
.vacancy-filter__select {
    padding: 9px 14px; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--white); color: var(--navy); font-size: .9rem; font-family: inherit;
    cursor: pointer; min-width: 220px;
}
.vacancy-filter__select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-pale); }

/* ── Utilities ── */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0  { margin-bottom: 0 !important; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .about-grid    { grid-template-columns: 1fr; gap: 40px; }
    .about-image   { order: -1; }
    .content-layout { grid-template-columns: 1fr; }
    .footer-grid   { grid-template-columns: 1fr 1fr; }
    .hero-inner    { grid-template-columns: 1fr; }
    .hero-image    { display: none; }
    .hero-content  { padding: 56px 0; }
}

/* The desktop nav needs ~1040px (6 nowrap links = 755px + logo + padding),
   so it must collapse to the hamburger well above the phone breakpoint. */
@media (max-width: 1080px) {
    .nav-toggle  { display: flex; }
    .site-header { position: relative; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        padding: 16px;
        z-index: 99;
    }
    .site-nav.open { display: block; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
    .nav-link--cta { margin-left: 0; text-align: center; }
}

/* Below the desktop width the rows stack. The photos are 3:4, so the stacked
   photo keeps that ratio and is never cropped; capped so it can't dominate.
   (A narrow side-column against a tall bio crops the face badly, hence stacking.) */
@media (max-width: 900px) {
    .team-card        { flex-direction: column; }
    .team-card__photo {
        flex: 0 0 auto;
        width: 100%;
        max-width: 280px;
        aspect-ratio: 3/4;
        min-height: 0;
        margin: 20px auto 0;
        border-radius: var(--radius-lg);
    }
    /* 5 stat tiles: two per row, the odd one out spans the full width */
    .about-stats { grid-template-columns: 1fr 1fr; }
    .about-stats .stat-box:last-child:nth-child(odd) { grid-column: span 2; }

    .register-callout { flex-direction: column; align-items: flex-start; gap: 20px; }

    .team-card__body  { padding: 24px 24px 28px; text-align: center; }
    .team-card__linkedin { justify-content: center; }
    /* paragraphs read better ranged left */
    .team-card__bio   { text-align: left; margin-top: 18px; }
}

@media (max-width: 680px) {
    .header-inner { height: 90px; }
    .logo__mark   { height: 72px; }

    .hero-content  { padding: 40px 0; }
    .section       { padding: 48px 0; }
    .page-hero     { padding: 36px 0; }
    .form-row      { grid-template-columns: 1fr; }
    .footer-grid   { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .cta-banner    { padding: 36px 20px; }
    .cta-banner h2 { font-size: 1.5rem; }
    .form-card     { padding: 24px 16px; }
    .about-stats   { grid-template-columns: 1fr 1fr; }
    .register-callout { padding: 24px 20px; }
    .container     { padding: 0 16px; }

    /* vacancy list item - stack on mobile */
    .vacancy-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .vacancy-item__actions {
        width: 100%;
    }
    .vacancy-item__actions .btn {
        flex: 1;
        justify-content: center;
        text-align: center;
    }

    /* vacancy detail */
    .vacancy-apply-cta { flex-direction: column; }
    .vacancy-apply-cta .btn { text-align: center; justify-content: center; }
    .vacancy-description { padding: 20px 16px; }
    .share-btn { font-size: .78rem; padding: 8px 12px; }
}

@media (max-width: 420px) {
    .vacancy-share__buttons { gap: 6px; }
    .share-btn { padding: 8px 10px; }
    .share-btn svg { display: none; }
}


/* Vacancy description - restore list markers (the global reset removes them) */
.vacancy-description ul { list-style: disc; padding-left: 1.4rem; margin: 0 0 1rem; }
.vacancy-description ol { list-style: decimal; padding-left: 1.4rem; margin: 0 0 1rem; }
.vacancy-description li { margin-bottom: .35rem; line-height: 1.6; }
.vacancy-description ul ul { list-style: circle; margin: .35rem 0; }


/* ── Policy pages (privacy / terms) ──
   Content for these pages comes from the CMS, so these rules must live here
   rather than in the page template: the template's own <style> only renders on
   the no-CMS-content fallback. The TinyMCE content_style in
   app/views/admin/cms/edit.php mirrors these so the editor previews the result. */
.policy-wrap {
    max-width: 860px;
    margin: 0 auto;
    font-size: .97rem;
    line-height: 1.75;
    color: #1a202c;
}
.policy-wrap h2 {
    font-size: 1.2rem;
    color: var(--navy);
    margin: 2.25rem 0 .65rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid var(--teal-pale);
    font-weight: 700;
}
.policy-wrap h3 {
    font-size: 1rem;
    color: var(--navy);
    margin: 1.5rem 0 .5rem;
    font-weight: 700;
}
.policy-wrap p { margin: 0 0 1rem; }
.policy-wrap ul, .policy-wrap ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
    list-style: revert;
}
.policy-wrap li { margin-bottom: .35rem; }
.policy-wrap hr {
    border: 0;
    border-top: 1px solid #dde3ec;
    margin: 1em 0;
}
.policy-wrap a { color: var(--teal); text-decoration: underline; }
.policy-wrap a:hover { color: var(--navy); }

.policy-meta {
    background: var(--teal-pale);
    border: 1px solid #b2d8d8;
    border-left: 4px solid var(--teal);
    border-radius: 6px;
    padding: .85rem 1.25rem;
    margin-bottom: 2rem;
    font-size: .9rem;
    color: #2d4a4a;
}
.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.25rem;
    font-size: .93rem;
}
.policy-table td {
    padding: .5rem .75rem;
    border: 1px solid #dde3ec;
    vertical-align: top;
}
.policy-table tr:nth-child(odd) td { background: #f8fafc; }
.policy-table td:first-child { font-weight: 600; color: #4a5568; width: 38%; }
.policy-notice {
    background: #fffbeb;
    border: 1px solid #f6d860;
    border-left: 4px solid #d69e2e;
    border-radius: 6px;
    padding: .85rem 1.25rem;
    margin: 2rem 0;
    font-size: .875rem;
    color: #744210;
    font-style: italic;
}
.policy-placeholder {
    background: #fed7d7;
    color: #c53030;
    font-weight: 600;
    padding: 0 .2rem;
    border-radius: 3px;
}

/* ---------- Google Reviews (homepage) ---------- */
.gr-badge {
    display: inline-flex; align-items: center; gap: 10px;
    margin-top: 18px; padding: 10px 18px;
    background: var(--white); border: 1px solid var(--border); border-radius: 999px;
    box-shadow: var(--shadow-sm); font-size: .95rem; color: var(--text);
}
.gr-badge__num { font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.gr-badge__count { color: var(--teal); font-weight: 600; text-decoration: none; }
.gr-badge__count:hover { text-decoration: underline; }
.gr-stars { display: inline-flex; gap: 1px; line-height: 1; }
.gr-star { color: #d1d5db; font-size: 1.15rem; }
.gr-star.is-on { color: #fbbc04; }
.gr-star.is-half { background: linear-gradient(90deg, #fbbc04 50%, #d1d5db 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gr-stars--sm .gr-star { font-size: .95rem; }
/* carousel: scroll-snap track, 3 / 2 / 1 cards per view */
.gr-carousel { position: relative; padding: 0 56px; }
.gr-track {
    display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding: 6px 2px 10px;   /* room for the card hover lift / shadow */
}
.gr-track::-webkit-scrollbar { display: none; }
.gr-track:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: var(--radius); }
.gr-slide { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; }
@media (max-width: 1024px) { .gr-slide { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 640px)  { .gr-slide { flex-basis: 100%; } .gr-carousel { padding: 0 44px; } }
.gr-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
    background: var(--white); color: var(--navy); font-size: 1rem; line-height: 1; cursor: pointer;
    box-shadow: var(--shadow-sm); display: inline-flex; align-items: center; justify-content: center;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.gr-nav:hover { background: var(--teal); color: var(--white); border-color: var(--teal); box-shadow: var(--shadow-md); }
.gr-nav--prev { left: 0; }
.gr-nav--next { right: 0; }
.gr-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.gr-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: var(--muted); cursor: pointer; transition: background var(--transition), transform var(--transition); }
.gr-dot.is-active { background: var(--teal); transform: scale(1.2); }
.gr-carousel--single .gr-nav, .gr-carousel--single .gr-dots,
.gr-carousel--static .gr-nav, .gr-carousel--static .gr-dots { display: none; }
.gr-carousel--single, .gr-carousel--static { padding: 0; }
@media (prefers-reduced-motion: reduce) { .gr-track { scroll-behavior: auto; } }
.gr-card {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 26px 26px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px;
    transition: box-shadow var(--transition), transform var(--transition);
}
.gr-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.gr-card__head { display: flex; align-items: center; gap: 12px; }
.gr-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.gr-avatar--initial { display: inline-flex; align-items: center; justify-content: center; background: var(--teal-pale); color: var(--teal); font-weight: 700; font-size: 1.1rem; }
.gr-author { font-weight: 600; color: var(--navy); }
.gr-author a { color: inherit; text-decoration: none; }
.gr-author a:hover { color: var(--teal); }
.gr-meta { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.gr-when { color: var(--muted); font-size: .82rem; }
.gr-text { color: var(--text); font-size: .95rem; line-height: 1.65; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.gr-text.is-open { display: block; -webkit-line-clamp: none; overflow: visible; }
.gr-more { background: none; border: 0; padding: 0; margin-top: -6px; align-self: flex-start;
    color: var(--teal); font-weight: 600; font-size: .9rem; cursor: pointer; }
.gr-more:hover { text-decoration: underline; }
.gr-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
