:root {
    --green-950: #032117;
    --green-900: #063320;
    --green-800: #0b432c;
    --green-700: #0b5a38;
    --green-100: #e7f2e9;
    --gold-700: #a97909;
    --gold-500: #c99a25;
    --gold-200: #ecdca7;
    --cream: #fbf8ee;
    --paper: #fffdf7;
    --ink: #163126;
    --muted: #63746b;
    --line: rgba(20, 73, 48, .14);
    --shadow: 0 16px 42px rgba(4, 31, 21, .11);
    --radius: 18px;
    --font-body: "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background:
      radial-gradient(circle at 15% 0, rgba(199, 154, 37, .10), transparent 28rem),
      linear-gradient(180deg, #fffdf8 0%, #f5f2e8 100%);
    line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.top-strip { background: var(--green-950); color: rgba(255,255,255,.86); border-bottom: 1px solid rgba(236,220,167,.25); }
.top-strip-inner { min-height: 38px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 13px; }
.top-strip strong { color: var(--gold-200); font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 253, 247, .94); backdrop-filter: blur(14px); box-shadow: 0 8px 25px rgba(5, 37, 25, .08); }
.nav-wrap { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 220px; }
.brand img { width: 76px; max-height: 54px; object-fit: contain; border-radius: 10px; background: #fff; padding: 4px; box-shadow: 0 8px 18px rgba(4, 31, 21, .10); }
.brand strong { display: block; font-family: var(--font-display); letter-spacing: .07em; text-transform: uppercase; color: var(--green-800); font-size: 16px; line-height: 1.05; }
.brand small { color: var(--gold-700); text-transform: uppercase; letter-spacing: .18em; font-size: 10px; font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { padding: 9px 10px; border-radius: 999px; color: #244437; font-size: 13px; font-weight: 700; transition: .2s ease; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: #fff; background: var(--green-800); box-shadow: inset 0 -2px 0 rgba(201,154,37,.55); }
.nav-toggle { display: none; border: 0; width: 46px; height: 46px; border-radius: 14px; background: var(--green-800); padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 6px 0; background: #fff; transition: .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.hero { position: relative; overflow: hidden; padding: 56px 0 48px; color: #fff; background: var(--green-950); }
.hero::before, .dark-section::before, .page-hero::before {
    content: ""; position: absolute; inset: 0; opacity: .26;
    background-image: linear-gradient(120deg, rgba(201,154,37,.16), transparent 34%), url("../images/hero-landscape.jpg");
    background-size: cover; background-position: center;
}
.hero::after, .page-hero::after, .dark-section::after {
    content: ""; position: absolute; inset: 0;
    background:
      radial-gradient(circle at 85% 20%, rgba(201,154,37,.24), transparent 25rem),
      linear-gradient(90deg, rgba(3,33,23,.98) 0%, rgba(3,33,23,.87) 48%, rgba(3,33,23,.62) 100%);
}
.hero .container, .page-hero .container, .dark-section .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 38px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-200); text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 800; }
.eyebrow::before, .eyebrow::after { content: ""; width: 36px; height: 1px; background: var(--gold-500); }
h1, h2, h3, h4 { margin: 0; color: var(--green-900); line-height: 1.08; }
.hero h1, .page-hero h1, .dark-section h2, .dark-section h3 { color: #fff; }
h1 { font-family: var(--font-display); font-size: clamp(34px, 4.8vw, 58px); letter-spacing: .025em; text-transform: uppercase; }
h2 { font-family: var(--font-display); font-size: clamp(25px, 3.2vw, 40px); letter-spacing: .02em; }
h3 { font-size: 20px; }
p { margin: 0; }
.hero p { font-size: 16px; color: rgba(255,255,255,.86); max-width: 650px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 1px solid transparent; font-weight: 800; transition: .2s ease; font-size: 14px; }
.btn-primary { background: linear-gradient(135deg, var(--gold-500), #e2bd58); color: var(--green-950); box-shadow: 0 14px 36px rgba(0,0,0,.18); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { color: #fff; border-color: rgba(236,220,167,.55); background: rgba(255,255,255,.06); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.hero-card { border: 1px solid rgba(236,220,167,.35); padding: 12px; border-radius: 28px 8px 28px 8px; background: rgba(255,255,255,.06); box-shadow: 0 22px 52px rgba(0,0,0,.30); position: relative; max-width: 430px; justify-self: end; }
.hero-card img { border-radius: 28px 6px 28px 6px; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.hero-stamp { position: absolute; left: -18px; bottom: 34px; background: var(--paper); color: var(--green-900); border-radius: 18px; padding: 16px 18px; max-width: 250px; box-shadow: var(--shadow); border-left: 5px solid var(--gold-500); font-weight: 800; }
.contact-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.contact-pills span, .contact-pills a { display: inline-flex; gap: 8px; align-items: center; padding: 9px 13px; border: 1px solid rgba(236,220,167,.28); border-radius: 999px; color: rgba(255,255,255,.86); background: rgba(255,255,255,.06); font-size: 14px; }
.section { padding: 62px 0; }
.section-tight { padding: 42px 0; }
.section-head { max-width: 780px; margin-bottom: 34px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head .eyebrow { color: var(--gold-700); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 15.5px; margin-top: 12px; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: center; }
.split.reverse { grid-template-columns: 1.1fr .9fr; }
.visual-panel { position: relative; }
.image-frame { border-radius: 34px 4px 34px 4px; overflow: hidden; box-shadow: var(--shadow); border: 9px solid #fff; outline: 1px solid rgba(169,121,9,.18); }
.image-frame img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.quote-card { margin-top: -42px; margin-left: 24px; position: relative; z-index: 2; background: var(--green-900); color: #fff; border-radius: 24px 4px 24px 4px; padding: 22px; max-width: 360px; box-shadow: 0 22px 42px rgba(0,0,0,.18); border-bottom: 4px solid var(--gold-500); }
.quote-card p { font-weight: 800; }
.content-panel { background: rgba(255,255,255,.76); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.kicker { color: var(--gold-700); font-weight: 900; text-transform: uppercase; letter-spacing: .15em; font-size: 12px; margin-bottom: 12px; }
.leaf-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.leaf-list li { position: relative; padding-left: 28px; color: #244437; }
.leaf-list li::before { content: ""; position: absolute; left: 0; top: .54em; width: 13px; height: 13px; border-radius: 10px 0 10px 0; background: linear-gradient(135deg, var(--green-700), #91b65d); transform: rotate(-20deg); }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 999px; background: var(--green-100); color: var(--green-900); font-weight: 800; border: 1px solid rgba(11,90,56,.12); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.value-card, .department-card, .service-card, .image-card, .mini-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: 0 12px 30px rgba(5, 37, 25, .065); position: relative; overflow: hidden; }
.value-card::after, .department-card::after, .service-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 110px; height: 110px; border-radius: 50%; background: rgba(201,154,37,.10); }
.icon-circle, .department-icon { width: 58px; height: 58px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--green-800); color: #fff; border: 4px solid rgba(201,154,37,.35); font-size: 24px; margin-bottom: 18px; }
.value-card h3, .department-card h3 { margin-bottom: 10px; }
.value-card p, .department-card p, .service-card p, .mini-card p { color: var(--muted); }
.department-card { display: flex; flex-direction: column; min-height: 100%; }
.department-card .department-number { color: var(--gold-700); font-weight: 900; letter-spacing: .12em; margin-bottom: 8px; }
.department-card .btn { margin-top: auto; align-self: flex-start; padding: 9px 14px; font-size: 14px; }
.department-card:hover, .service-card:hover, .value-card:hover { transform: translateY(-5px); box-shadow: 0 22px 55px rgba(5, 37, 25, .13); }
.dark-section { position: relative; overflow: hidden; color: #fff; background: var(--green-950); padding: 62px 0; }
.dark-section p { color: rgba(255,255,255,.82); }
.dark-section .service-card, .dark-section .mini-card { background: rgba(255,255,255,.08); border-color: rgba(236,220,167,.20); color: #fff; }
.dark-section .service-card h3, .dark-section .mini-card h3 { color: #fff; }
.dark-section .service-card p, .dark-section .mini-card p { color: rgba(255,255,255,.75); }
.page-hero { position: relative; overflow: hidden; padding: 56px 0 50px; background: var(--green-950); color: #fff; }
.page-hero .breadcrumb { color: var(--gold-200); font-weight: 700; margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 760px; font-size: 16px; margin-top: 14px; }
.department-hero { padding: 48px 0; background: linear-gradient(180deg, var(--green-950), var(--green-900)); color: #fff; }
.department-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 42px; align-items: center; }
.department-hero h1 { color: #fff; }
.department-hero p { color: rgba(255,255,255,.84); font-size: 16px; margin-top: 14px; }
.dept-number-big { font-family: var(--font-display); font-size: 54px; color: var(--gold-500); line-height: 1; }
.dept-visual { border-radius: 34px 4px 34px 4px; overflow: hidden; border: 8px solid rgba(255,255,255,.16); box-shadow: 0 28px 80px rgba(0,0,0,.3); }
.dept-visual img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.service-section { border-top: 1px solid var(--line); padding-top: 34px; margin-top: 34px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
.service-number { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px; background: var(--gold-500); color: var(--green-950); font-weight: 900; margin-bottom: 14px; }
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 22px; counter-reset: steps; }
.timeline span { counter-increment: steps; background: var(--paper); border: 1px solid var(--line); padding: 16px 16px 16px 52px; border-radius: 18px; position: relative; font-weight: 800; box-shadow: 0 10px 30px rgba(5,37,25,.06); }
.timeline span::before { content: counter(steps); position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--green-800); color: #fff; font-size: 12px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.image-card { padding: 10px; border-radius: 26px; }
.image-card img { width: 100%; border-radius: 18px; aspect-ratio: 1/1; object-fit: cover; }
.org-chart { display: grid; gap: 18px; }
.org-top { display: grid; justify-items: center; gap: 14px; }
.org-box { background: var(--green-800); color: #fff; border-radius: 14px; padding: 14px 18px; text-align: center; font-weight: 900; box-shadow: 0 14px 35px rgba(5,37,25,.13); border-bottom: 4px solid var(--gold-500); width: min(420px, 100%); }
.org-box.gold { background: var(--gold-700); }
.org-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.org-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.org-panel h3 { background: var(--green-800); color: #fff; padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; }
.associates { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.associates span { padding: 14px 12px; border-radius: 16px; background: var(--green-100); color: var(--green-900); font-size: 13px; text-align: center; font-weight: 800; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.contact-list span { width: 32px; height: 32px; border-radius: 50%; background: var(--green-100); color: var(--green-900); display: inline-grid; place-items: center; flex: 0 0 auto; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 7px; color: var(--green-900); font-weight: 800; }
.form input, .form textarea, .form select { width: 100%; border: 1px solid rgba(11,90,56,.18); border-radius: 14px; padding: 13px 14px; font: inherit; background: #fff; color: var(--ink); }
.form textarea { min-height: 130px; resize: vertical; }
.form .full { grid-column: 1 / -1; }
.alert { padding: 14px 16px; border-radius: 14px; margin-bottom: 16px; font-weight: 700; }
.alert.success { background: #e4f5e9; color: #0b5a38; }
.alert.error { background: #fff2e8; color: #9b4b00; }
.site-footer { background: var(--green-950); color: rgba(255,255,255,.82); padding-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .75fr 1fr .95fr; gap: 32px; }
.footer-brand { display: flex; gap: 12px; align-items: center; color: #fff; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-weight: 900; }
.footer-brand img { width: 78px; border-radius: 10px; background: #fff; padding: 5px; }
.site-footer h3 { color: var(--gold-200); margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-links a:hover { color: var(--gold-200); }
.footer-values { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer-values span { border: 1px solid rgba(236,220,167,.28); color: var(--gold-200); padding: 6px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.footer-contact span { background: rgba(255,255,255,.10); color: var(--gold-200); }
.footer-bottom { border-top: 1px solid rgba(236,220,167,.16); margin-top: 48px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 14px; }
.reveal, .value-card, .department-card, .service-card, .image-card { opacity: 0; transform: translateY(16px); transition: .5s ease; }
.reveal.visible, .value-card.visible, .department-card.visible, .service-card.visible, .image-card.visible { opacity: 1; transform: none; }
@media (max-width: 1020px) {
    .main-nav { position: absolute; left: 18px; right: 18px; top: 120px; display: none; flex-direction: column; align-items: stretch; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 12px; box-shadow: var(--shadow); }
    .main-nav.open { display: flex; }
    .main-nav a { border-radius: 14px; }
    .nav-toggle { display: block; }
    .hero-grid, .split, .split.reverse, .department-hero-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
    .card-grid, .card-grid.two, .card-grid.four, .service-grid, .org-columns { grid-template-columns: repeat(2, 1fr); }
    .associates { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
    .container { width: min(100% - 24px, 1180px); }
    .top-strip { display: none; }
    .site-header { position: sticky; }
    .nav-wrap { min-height: 72px; }
    .brand img { width: 54px; }
    .brand strong { font-size: 15px; }
    .main-nav { top: 78px; left: 12px; right: 12px; }
    .hero, .page-hero, .department-hero { padding: 46px 0; }
    h1 { font-size: clamp(34px, 13vw, 52px); }
    h2 { font-size: clamp(28px, 9vw, 40px); }
    .hero p, .page-hero p, .department-hero p { font-size: 16px; }
    .hero-card { border-radius: 24px; }
    .hero-stamp { position: static; margin-top: 12px; max-width: none; }
    .section { padding: 56px 0; }
    .content-panel, .form { padding: 20px; }
    .card-grid, .card-grid.two, .card-grid.four, .service-grid, .org-columns, .form-grid, .associates { grid-template-columns: 1fr; }
    .timeline { grid-template-columns: 1fr; }
    .footer-bottom .container { flex-direction: column; }
}


/* Compact auth/navigation update */
.nav-divider { width: 1px; height: 24px; background: rgba(11,90,56,.18); margin: 0 4px; }
.main-nav a.nav-auth { border: 1px solid rgba(11,90,56,.16); background: rgba(255,255,255,.55); }
.main-nav a.nav-auth-primary { background: var(--green-800); color: #fff; border-color: var(--green-800); box-shadow: inset 0 -2px 0 rgba(201,154,37,.55); }
.main-nav a.nav-auth-primary:hover, .main-nav a.nav-auth-primary.active { background: var(--gold-500); color: var(--green-950); }

.auth-page main { background: radial-gradient(circle at 80% 12%, rgba(201,154,37,.16), transparent 26rem), linear-gradient(180deg, #fffdf7, #f5f1e4); }
.auth-section { padding: 38px 0 46px; }
.auth-shell { display: grid; grid-template-columns: minmax(300px, 430px) 1fr; gap: 24px; align-items: stretch; max-width: 980px; }
.auth-shell-small { max-width: 880px; grid-template-columns: minmax(300px, 410px) 1fr; }
.auth-card { background: rgba(255,255,255,.92); border: 1px solid rgba(11,90,56,.14); border-radius: 24px; padding: 26px; box-shadow: 0 18px 42px rgba(5,37,25,.12); }
.auth-logo { display: inline-flex; margin-bottom: 12px; }
.auth-logo img { width: 118px; max-height: 82px; object-fit: contain; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(5,37,25,.08); }
.auth-kicker { color: var(--gold-700); text-transform: uppercase; letter-spacing: .16em; font-weight: 900; font-size: 11px; }
.auth-card h1 { font-family: var(--font-display); color: var(--green-900); font-size: clamp(26px, 3.1vw, 34px); text-transform: none; letter-spacing: .01em; margin-top: 8px; }
.auth-note { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.auth-form { display: grid; gap: 13px; margin-top: 20px; }
.auth-form label { display: grid; gap: 6px; color: var(--green-900); font-weight: 800; font-size: 13px; }
.auth-form input { width: 100%; border: 1px solid rgba(11,90,56,.20); border-radius: 12px; padding: 11px 12px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; outline: none; }
.auth-form input:focus { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(201,154,37,.15); }
.auth-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.auth-row a, .auth-switch a { color: var(--green-800); font-weight: 900; }
.check-line { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; color: var(--muted) !important; font-weight: 700 !important; }
.check-line input { width: auto; }
.full-check { margin-top: 2px; }
.auth-submit { width: 100%; border: 0; cursor: pointer; margin-top: 2px; }
.auth-switch { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }
.auth-visual { position: relative; overflow: hidden; border-radius: 26px; min-height: 100%; background: var(--green-950); color: #fff; box-shadow: var(--shadow); isolation: isolate; }
.auth-visual::before { content: ""; position: absolute; inset: 0; background-image: url("../images/pdf-pages/page-25.jpg"); background-size: cover; background-position: center; opacity: .36; transform: scale(1.02); }
.register-visual::before { background-image: url("../images/pdf-pages/page-04.jpg"); }
.forgot-visual::before { background-image: url("../images/pdf-pages/page-26.jpg"); }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(3,33,23,.96), rgba(3,33,23,.58)); }
.auth-visual-inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; }
.auth-visual h2 { color: #fff; font-size: clamp(25px, 3vw, 36px); }
.auth-visual p { color: rgba(255,255,255,.82); margin-top: 12px; font-size: 15px; }
.auth-mini-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.auth-mini-list span { padding: 8px 10px; border-radius: 999px; color: var(--gold-200); border: 1px solid rgba(236,220,167,.35); background: rgba(255,255,255,.08); font-size: 12px; font-weight: 800; }

@media (max-width: 1120px) {
    .main-nav a { font-size: 12.5px; padding: 8px 8px; }
    .brand { min-width: auto; }
}

@media (max-width: 1020px) {
    .nav-divider { display: none; }
    .main-nav a.nav-auth, .main-nav a.nav-auth-primary { border-radius: 14px; text-align: center; }
    .hero-card { justify-self: start; max-width: 480px; }
    .auth-shell, .auth-shell-small { grid-template-columns: 1fr; max-width: 520px; }
    .auth-visual { min-height: 270px; }
}

@media (max-width: 700px) {
    body { font-size: 14px; }
    .container { width: min(100% - 22px, 1120px); }
    .brand img { width: 70px; max-height: 48px; }
    .brand strong { font-size: 13px; }
    .brand small { display: none; }
    .nav-toggle { width: 42px; height: 42px; border-radius: 12px; }
    .hero, .page-hero, .department-hero { padding: 34px 0; }
    h1 { font-size: clamp(30px, 10vw, 40px); }
    h2 { font-size: clamp(23px, 8vw, 31px); }
    h3 { font-size: 17px; }
    .hero p, .page-hero p, .department-hero p { font-size: 14.5px; }
    .hero-actions { gap: 10px; margin-top: 20px; }
    .btn { padding: 10px 15px; font-size: 13px; }
    .contact-pills span, .contact-pills a { font-size: 12px; padding: 8px 10px; }
    .hero-card { max-width: 360px; margin-inline: auto; }
    .hero-card img, .dept-visual img, .image-card img { aspect-ratio: 4/3; }
    .section { padding: 40px 0; }
    .section-tight { padding: 30px 0; }
    .section-head { margin-bottom: 24px; }
    .content-panel, .form, .auth-card { padding: 18px; border-radius: 18px; }
    .image-frame { border-width: 6px; border-radius: 22px 4px 22px 4px; }
    .quote-card { margin: 10px 0 0; padding: 16px; border-radius: 18px 4px 18px 4px; }
    .icon-circle, .department-icon { width: 46px; height: 46px; font-size: 20px; margin-bottom: 12px; }
    .dept-number-big { font-size: 42px; }
    .auth-section { padding: 22px 0 28px; }
    .auth-logo img { width: 98px; max-height: 70px; }
    .auth-card h1 { font-size: 26px; }
    .auth-two { grid-template-columns: 1fr; gap: 13px; }
    .auth-row { align-items: flex-start; flex-direction: column; }
    .auth-visual { min-height: 210px; border-radius: 18px; }
    .auth-visual-inner { padding: 20px; }
    .auth-visual h2 { font-size: 23px; }
    .site-footer { padding-top: 34px; }
}

@media (max-width: 420px) {
    .brand span { display: none; }
    .brand img { width: 82px; max-height: 52px; }
    .hero-card { max-width: 315px; }
    .auth-card { padding: 16px; }
    .auth-visual { display: none; }
}
.check-line input[type="checkbox"] { width: 16px; height: 16px; padding: 0; accent-color: var(--green-800); }

/* Fix: department cards inside dark sections must keep dark readable text on white cards */
.dark-section .department-card {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--line);
}
.dark-section .department-card h3 {
    color: var(--green-900);
}
.dark-section .department-card p,
.dark-section .department-card .leaf-list li {
    color: var(--muted);
}
.dark-section .department-card .department-number {
    color: var(--gold-700);
}
.dark-section .department-card .btn-primary {
    color: var(--green-950);
}
.dark-section .department-card .btn-primary:hover {
    color: #fff;
}

/* Fix: timeline / approach boxes inside dark sections must keep dark readable text on white boxes */
.dark-section .timeline span {
    background: var(--paper);
    color: var(--green-900);
    border-color: var(--line);
}
.dark-section .timeline span::before {
    color: #fff;
}

/* Company profile page + professional compact header update */
.container { width: min(1240px, calc(100% - 32px)); }
.top-strip-inner { min-height: 28px; font-size: 11.5px; gap: 8px 14px; }
.nav-wrap { min-height: 58px; gap: 10px; }
.brand { min-width: 170px; gap: 8px; flex: 0 0 auto; }
.brand img { width: 54px; max-height: 42px; padding: 3px; border-radius: 8px; }
.brand strong { font-size: 12.5px; letter-spacing: .055em; line-height: 1.05; }
.brand small { font-size: 8px; letter-spacing: .13em; line-height: 1.1; }
.main-nav { flex: 1 1 auto; justify-content: flex-end; gap: 2px; min-width: 0; }
.main-nav a { padding: 6px 7px; font-size: 11.5px; line-height: 1.1; border-radius: 999px; }
.main-nav a.nav-auth { padding-inline: 9px; }
.nav-divider { height: 18px; margin: 0 2px; }

.page-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(260px, .88fr);
    gap: 34px;
    align-items: center;
}
.page-hero-visual {
    border-radius: 28px 8px 28px 8px;
    overflow: hidden;
    border: 8px solid rgba(255,255,255,.16);
    box-shadow: 0 28px 80px rgba(0,0,0,.30);
    background: rgba(255,255,255,.08);
}
.page-hero-visual img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    background: #fff;
}
.company-profile-hero .page-hero-visual img { max-height: 520px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn-outline-green { background: #fff; color: var(--green-900); border-color: rgba(11,90,56,.28); }
.btn-outline-green:hover { background: var(--green-800); color: #fff; }
.profile-download-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: clamp(20px, 3vw, 30px);
    box-shadow: var(--shadow);
}
.profile-download-panel p { color: var(--muted); margin-top: 10px; max-width: 760px; }
.profile-download-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.company-profile-pages { display: grid; gap: 26px; }
.company-profile-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.company-profile-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(90deg, var(--green-950), var(--green-800));
    color: #fff;
}
.company-profile-card-head h3 { color: #fff; font-size: 15px; }
.company-profile-card-head span { color: var(--gold-200); font-size: 12px; font-weight: 900; white-space: nowrap; }
.company-profile-image-wrap { padding: 16px; background: #f7faf6; }
.company-profile-image {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(4,31,21,.10);
}
.floating-profile-download {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 120;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 16px;
    border-radius: 999px;
    background: var(--green-800);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(5,37,25,.25);
    border: 1px solid rgba(236,220,167,.28);
}
.floating-profile-download:hover { background: var(--gold-500); color: var(--green-950); }

@media (max-width: 1240px) {
    .brand { min-width: 150px; }
    .brand img { width: 48px; max-height: 38px; }
    .brand strong { font-size: 11.5px; }
    .brand small { font-size: 7.5px; letter-spacing: .11em; }
    .main-nav a { font-size: 10.7px; padding: 6px 5px; }
    .main-nav a.nav-auth { padding-inline: 7px; }
}

@media (max-width: 1120px) {
    .nav-wrap { min-height: 64px; }
    .brand { min-width: auto; }
    .brand img { width: 58px; max-height: 44px; }
    .brand strong { font-size: 13px; }
    .brand small { font-size: 8.5px; }
    .nav-toggle { display: block; }
    .nav-divider { display: none; }
    .main-nav {
        position: absolute;
        left: 18px;
        right: 18px;
        top: 92px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: 22px;
        padding: 12px;
        box-shadow: var(--shadow);
        z-index: 150;
    }
    .main-nav.open { display: flex; }
    .main-nav a { border-radius: 14px; font-size: 13px; padding: 11px 12px; text-align: center; }
    .main-nav a.nav-auth, .main-nav a.nav-auth-primary { border-radius: 14px; }
    .page-hero-inner { grid-template-columns: 1fr; }
    .page-hero-visual { max-width: 520px; justify-self: start; }
    .profile-download-panel { grid-template-columns: 1fr; }
    .profile-download-actions { justify-content: flex-start; }
}

@media (max-width: 700px) {
    .container { width: min(100% - 22px, 1240px); }
    .nav-wrap { min-height: 66px; }
    .brand img { width: 54px; max-height: 42px; }
    .brand strong { font-size: 12.5px; }
    .brand small { display: block; font-size: 7px; letter-spacing: .09em; }
    .main-nav { top: 76px; left: 12px; right: 12px; }
    .profile-actions, .profile-download-actions { flex-direction: column; }
    .profile-actions .btn, .profile-download-actions .btn { width: 100%; }
    .profile-download-panel { border-radius: 18px; text-align: center; }
    .profile-download-actions { justify-content: center; }
    .company-profile-pages { gap: 18px; }
    .company-profile-card { border-radius: 18px; }
    .company-profile-card-head { padding: 12px 13px; }
    .company-profile-card-head h3 { font-size: 13px; }
    .company-profile-image-wrap { padding: 8px; }
    .company-profile-image, .mobile-full-image { width: 100%; height: auto; max-height: none; object-fit: contain; object-position: center; border-radius: 12px; }
    .floating-profile-download { left: 12px; right: 12px; bottom: 12px; text-align: center; }
    body.profile-page { padding-bottom: 62px; }
}

/* Final image sizing fix: no cropping anywhere, with controlled desktop sizes */
.hero-card,
.image-frame,
.dept-visual,
.image-card,
.page-hero-visual,
.company-profile-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.hero-card img,
.image-frame img,
.dept-visual img,
.image-card img,
.page-hero-visual img,
.mobile-full-image {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
}

.hero-card img,
.page-hero-visual img {
    max-height: 420px !important;
}

.image-frame img,
.dept-visual img {
    max-height: 460px !important;
}

.image-card img {
    max-height: 320px !important;
    margin-inline: auto;
}

.company-profile-image-wrap {
    padding: 16px;
    background: #f7faf6;
}

.company-profile-image {
    width: auto !important;
    max-width: min(100%, 760px) !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 auto;
    object-fit: contain !important;
    object-position: center !important;
}

.company-profile-hero .page-hero-visual img {
    max-height: 420px !important;
}

@media (max-width: 700px) {
    .hero-card,
    .image-frame,
    .dept-visual,
    .image-card,
    .page-hero-visual,
    .company-profile-image-wrap {
        display: block;
        background: transparent;
    }

    .hero-card img,
    .image-frame img,
    .dept-visual img,
    .image-card img,
    .page-hero-visual img,
    .company-profile-image,
    .mobile-full-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        aspect-ratio: auto !important;
        object-fit: contain !important;
        object-position: center !important;
    }

    .company-profile-image-wrap {
        padding: 8px;
        background: #f7faf6;
    }
}

/* HD no-crop image update: keep files high resolution while controlling desktop display size */
.profile-image-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-decoration: none;
}

.company-profile-image {
    width: auto !important;
    max-width: min(100%, 860px) !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    image-rendering: auto;
}

.company-profile-image-wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 18px !important;
    background: #f7faf6 !important;
}

.hero-card img,
.image-frame img,
.dept-visual img,
.image-card img,
.page-hero-visual img,
.mobile-full-image {
    object-fit: contain !important;
    object-position: center !important;
    image-rendering: auto;
}

@media (max-width: 700px) {
    .profile-image-link {
        display: block;
    }
    .company-profile-image,
    .mobile-full-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center !important;
    }
    .company-profile-image-wrap {
        padding: 8px !important;
    }
}
