@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

:root {
    --ink: #16323f;
    --muted: #5d6f78;
    --line: #d5e8e3;
    --paper: #eef7f4;
    --white: #ffffff;
    --teal: #0f766e;
    --teal-dark: #0b5f58;
    --navy: #14333d;
    --orange: #d45a2a;
    --orange-dark: #b9481d;
    --c-orange: #0f766e;
    --c-yellow: #eef7f4;
    --c-accent: #d45a2a;
}

* { box-sizing: border-box; }

body.front-body {
    margin: 0;
    min-height: 100vh;
    background: var(--paper);
    color: var(--ink);
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
}

a { color: var(--teal-dark); }

.front-topbar {
    background: var(--navy);
    color: #dbe7e4;
    font-size: 13px;
    font-weight: 500;
}

.front-topbar a { color: #fff; text-decoration: none; }
.front-topbar .inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.front-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.front-header .inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.front-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
    min-width: 0;
}

.front-brand img,
.front-brand .seal {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 97% 8%;
    border: 2px solid #f3d2b6;
    box-shadow: 0 6px 16px rgba(20, 51, 61, .12);
    background: #fff;
}

.front-brand img.is-custom {
    object-fit: contain;
    object-position: center;
    background: #fff;
    padding: 4px;
}

.front-brand h1 {
    margin: 0;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.25;
    font-weight: 700;
}

.front-brand small {
    display: block;
    color: var(--teal);
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-top: 2px;
}

.front-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.front-nav a {
    text-decoration: none;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 999px;
}

.front-nav a:hover,
.front-nav a.active {
    background: #e8f4f1;
    color: var(--teal-dark);
}

.front-nav a.cta {
    background: var(--teal);
    color: #fff;
}

.front-nav a.cta:hover { background: var(--teal-dark); color: #fff; }

.front-hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 20px 8px;
}

.front-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    align-items: center;
}

.front-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e7f4f0;
    color: var(--teal-dark);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.front-hero h2 {
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.15;
    margin: 0 0 14px;
    color: var(--navy);
}

.front-hero p.lead {
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 22px;
    max-width: 36rem;
}

.front-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn-counsel {
    background: var(--teal);
    color: #fff;
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-counsel:hover { background: var(--teal-dark); color: #fff; }

.btn-ghost {
    background: #fff;
    color: var(--navy);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 700;
    text-decoration: none;
}

.btn-ghost:hover { background: #e8f4f1; color: var(--teal-dark); }

.front-photo {
    position: relative;
}

.front-photo img {
    width: 100%;
    height: 390px;
    object-fit: cover;
    object-position: 6% 18%;
    border-radius: 28px;
    box-shadow: 0 24px 50px rgba(20, 51, 61, .18);
}

.front-photo img.is-custom {
    object-position: center;
}

.front-photo-card {
    position: absolute;
    left: 18px;
    bottom: 18px;
    background: rgba(255,255,255,.94);
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: 0 10px 24px rgba(20,51,61,.12);
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
}

.front-news {
    max-width: 1180px;
    margin: 12px auto 0;
    padding: 0 20px;
}

.front-news-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: 0 8px 20px rgba(20,51,61,.04);
}

.front-news-bar span {
    flex: 0 0 auto;
    background: var(--orange);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 6px 10px;
}

.front-news-bar marquee {
    font-weight: 600;
    color: var(--ink);
}

.front-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 20px 56px;
}

.front-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1.15fr;
    gap: 18px;
}

.counsel-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 32px rgba(20,51,61,.06);
    min-height: 100%;
}

.counsel-card h3 {
    font-family: Fraunces, Georgia, serif;
    font-size: 1.35rem;
    margin: 0 0 8px;
}

.counsel-card p {
    color: var(--muted);
    margin-bottom: 16px;
}

.icon-pill {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8f4f1;
    color: var(--teal);
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.icon-pill.orange { background: #fde8d6; color: var(--orange-dark); }

.counsel-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--navy);
    font-weight: 700;
    padding: 11px 12px;
    border-radius: 12px;
    background: #f4f8f7;
    margin-bottom: 8px;
}

.counsel-link:hover { background: #e8f4f1; color: var(--teal-dark); }

.front-form label {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 4px;
}

.front-form .form-control,
.front-form .form-select {
    border: 1px solid #d7e3df;
    border-radius: 12px;
    min-height: 44px;
    text-transform: none;
    font-weight: 500;
}

.front-form .form-control::placeholder {
    text-transform: none;
    color: #94a3b8;
}

.front-form .form-control:focus,
.front-form .form-select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 .2rem rgba(15,118,110,.15);
}

.front-submit {
    width: 100%;
    background: var(--orange);
    border: 0;
    color: #fff;
    font-weight: 700;
    border-radius: 12px;
    min-height: 44px;
}

.front-submit:hover { background: var(--orange-dark); color: #fff; }

.front-hint { font-size: 12px; color: var(--muted); margin-top: 8px; }

.front-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 22px;
}

.step {
    background: #fff;
    border-radius: 18px;
    padding: 16px 18px;
    border: 1px solid var(--line);
}

.step b { color: var(--teal); display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }

.front-page {
    max-width: 1180px;
    margin: 0 auto 24px;
    padding: 24px 20px 48px;
}

.front-page-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 14px 32px rgba(20,51,61,.06);
}

.front-footer {
    background:
        radial-gradient(700px 180px at 0% 0%, rgba(13, 148, 136, 0.22), transparent 55%),
        radial-gradient(500px 160px at 100% 10%, rgba(220, 122, 58, 0.16), transparent 50%),
        linear-gradient(180deg, #102830 0%, #14333d 48%, #0d1f26 100%);
    color: #c9d9d5;
    margin-top: 72px;
    padding-top: 28px;
}

.footer-cta {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 8px;
    position: relative;
    z-index: 2;
}

.footer-cta-inner {
    background: linear-gradient(135deg, #0f766e 0%, #0f5f5a 55%, #dc7a3a 140%);
    color: #fff;
    border-radius: 22px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-shadow: 0 18px 40px rgba(15, 118, 110, .28);
}

.footer-cta-inner strong {
    display: block;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.footer-cta-inner span { opacity: .92; font-size: .95rem; }

.footer-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.front-footer .footer-cta-actions a,
.front-footer .footer-cta-actions a:hover {
    background: #fff;
    color: #115e59;
    text-decoration: none;
    font-weight: 800;
    border-radius: 999px;
    padding: 10px 18px;
    border: 1px solid #fff;
    white-space: nowrap;
    line-height: 1.2;
}

.front-footer .footer-cta-actions a:hover {
    background: #ecfdf5;
    color: #0f766e;
}

.front-footer .footer-cta-actions a.ghost,
.front-footer .footer-cta-actions a.ghost:hover {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,.55);
}

.front-footer .footer-cta-actions a.ghost:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.front-footer .inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 20px 28px;
    display: grid;
    grid-template-columns: 1.4fr .9fr 1fr 1fr;
    gap: 28px;
}

.footer-brand img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 97% 8%;
    border: 2px solid rgba(243, 210, 182, .7);
    margin-bottom: 12px;
    background: #fff;
}

.footer-brand img.is-custom {
    object-fit: contain;
    object-position: center;
    padding: 4px;
}

.front-footer h4 {
    color: #fff;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.12rem;
    margin: 0 0 14px;
}

.footer-brand p {
    margin: 0;
    line-height: 1.6;
    color: #c5d5d1;
}

.footer-links,
.footer-help {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li,
.footer-help li { margin-bottom: 8px; }

.footer-links a,
.footer-help li {
    color: #d7e6e2;
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 600;
}

.footer-links a:hover { color: #fff; }

.footer-links i,
.footer-help i { color: #5eead4; margin-top: 3px; }

.footer-mini-btn {
    display: inline-flex;
    margin-top: 10px;
    background: rgba(255,255,255,.08);
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 13px;
}

.footer-mini-btn:hover { background: rgba(255,255,255,.16); color: #fff; }

.footer-contact {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 12px 14px;
    color: #fff;
    text-decoration: none;
    margin-bottom: 10px;
}

.footer-contact i {
    color: #fdba74;
    font-size: 1.05rem;
    margin-top: 2px;
}

.front-footer a { color: #fff; text-decoration: none; }

.front-footer .copy {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 14px 20px 18px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #9bb4ae;
    max-width: 1180px;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .front-hero-grid,
    .front-cards,
    .front-steps,
    .front-footer .inner {
        grid-template-columns: 1fr;
    }
    .footer-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 12px;
    }
    .front-photo img { height: 260px; }
    .front-header .inner { flex-direction: column; align-items: flex-start; }
    .front-nav { width: 100%; }
}

/* Consortium public site */
.c-header {
    background: #fff;
    padding: 16px 16px 14px;
    border-bottom: 1px solid #d7ece7;
    box-shadow: 0 8px 24px rgba(15, 118, 110, .06);
}

.c-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-decoration: none;
    color: #1a1a1a;
    max-width: 980px;
    margin: 0 auto;
    text-align: left;
}

.c-brand img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    background: #fff;
    flex: 0 0 auto;
    border-radius: 50%;
    border: 3px solid #d7ece7;
    box-shadow: 0 8px 18px rgba(15, 118, 110, .12);
    padding: 4px;
}

.c-brand img.is-custom {
    object-fit: contain;
}

.c-brand-text {
    min-width: 0;
}

.c-brand h1 {
    margin: 0;
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #14333d;
}

.c-brand p {
    margin: 6px 0 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f766e;
}

.c-nav {
    background: linear-gradient(90deg, #0b5f58 0%, #0f766e 55%, #1a8a80 100%);
    box-shadow: 0 6px 16px rgba(11, 95, 88, .25);
}

.c-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    min-height: 46px;
    align-items: center;
}

.c-nav-inner a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 999px;
    letter-spacing: .03em;
}

.c-nav-inner a:hover,
.c-nav-inner a.active {
    background: rgba(255,255,255,.18);
    color: #fff;
    text-decoration: none;
}

.c-welcome {
    text-align: center;
    padding: 22px 16px 8px;
    font-size: 1.18rem;
    font-weight: 700;
    color: #14333d;
}

.c-home {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 16px 40px;
}

.c-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}

.c-panel {
    background: #fff;
    border: 1px solid #d7ece7;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 118, 110, .08);
}

.c-panel-head {
    background: linear-gradient(90deg, #0f766e, #14867d);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 10px 16px;
}

.c-panel-body {
    padding: 8px 0;
}

.c-info-list {
    list-style: none;
    margin: 0;
    padding: 6px 16px 12px;
}

.c-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #eef6f3;
    color: #16323f;
    line-height: 1.45;
}

.c-info-list li:last-child { border-bottom: 0; }

.c-info-list a {
    color: #16323f;
    text-decoration: none;
    font-weight: 600;
}

.c-info-list a:hover { color: #0f766e; text-decoration: underline; }

.c-tick {
    color: #0f766e;
    font-weight: 800;
    flex: 0 0 auto;
    margin-top: 1px;
}

.c-new {
    background: #d45a2a;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    margin-left: 6px;
    white-space: nowrap;
    border-radius: 999px;
    padding: 2px 7px;
}

.c-services a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    color: #16323f;
    text-decoration: none;
    border-bottom: 1px solid #eef6f3;
    font-weight: 600;
}

.c-services a:last-child { border-bottom: 0; }

.c-services a:hover {
    background: #eef7f4;
    color: #0f766e;
}

.c-services i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #e7f4f0;
    color: #0f766e;
    font-size: 1rem;
}

.c-footer {
    background: #14333d;
    margin-top: 28px;
}

.c-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #c9d9d5;
}

.c-footer-inner a { color: #5eead4; text-decoration: none; font-weight: 700; }

.front-page {
    background: transparent;
}

.front-page-card {
    border-radius: 16px;
    border-color: #d7ece7;
    box-shadow: 0 12px 28px rgba(15, 118, 110, .08);
}

@media (max-width: 800px) {
    .c-grid { grid-template-columns: 1fr; }
    .c-brand { flex-direction: row; }
    .c-brand h1 { font-size: 1.15rem; }
    .c-brand p { font-size: .95rem; }
    .c-brand img { width: 72px; height: 72px; }
}
