:root {
    --navy-900: #0c2238;
    --navy-800: #0d2d49;
    --navy-700: #123a5e;
    --ink: #1f2430;
    --muted: #5d6774;
    --panel: #f3f3f3;
    --border: rgba(13, 45, 73, 0.18);
    --white: #ffffff;
    --soft: #e6e7ea;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #ededee;
    color: var(--ink);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(12, 34, 56, 0.12);
}

.navbar-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 105px;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-height: 90px;
}

.brand img {
    max-height: 75px;
    width: auto;
    filter: brightness(1.1);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--navy-900);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 10px 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, border-color 0.2s ease;
    border-bottom: 2px solid transparent;
    line-height: 1.2;
}

.main-nav a.active {
    border-color: var(--navy-900);
    color: var(--navy-900);
    opacity: 1;
}

.main-nav a:hover,
.main-nav a:focus {
    opacity: 1;
}

.hero-panel {
    background: #0d243b;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 0;
}

.hero-split {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    min-height: 270px;
    overflow: hidden;
}

.hero-image {
    min-height: 270px;
    background-image: url("/images/Brama.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) contrast(1.15) brightness(0.82) saturate(0.25);
}

.hero-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0c2238;
    padding: 28px 24px;
}

.hero-copy p {
    margin: 0;
    color: #ffffff;
    font-size: 0.96rem;
    line-height: 1.65;
    max-width: 560px;
    text-align: left;
    letter-spacing: 0.01em;
    text-wrap: pretty;
}

.page-shell {
    width: min(1175px, calc(100% - 32px));
    margin: 30px auto 44px;
}

.service-section {
    margin-top: 24px;
    background: rgba(255,255,255,0.15);
    border: 1px solid var(--border);
    padding: 18px 20px 14px;
}

.service-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 34px;
}

.service-list li {
    display: flex;
    align-items: flex-start;
}

.service-list a {
    color: var(--navy-700);
    font-weight: 600;
    line-height: 1.45;
    position: relative;
    padding-left: 14px;
}

.service-list a::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--navy-700);
}

.info-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    margin-top: 24px;
}

.info-card {
    background: rgba(255,255,255,0.3);
    border: 1px solid var(--border);
    padding: 20px 22px 18px;
}

.info-card h3 {
    margin: 0 0 14px;
    font-size: clamp(1.7rem, 1.8vw, 2rem);
    font-weight: 700;
    color: var(--navy-900);
}

.info-card p,
.info-card li {
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.7;
}

.info-card ol {
    margin: 10px 0 0 22px;
    padding: 0;
}

.info-card a {
    color: var(--navy-700);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.label {
    font-weight: 700;
    margin-top: 18px;
    margin-bottom: 10px;
}

.inline-link {
    margin-top: 16px;
}

.phones {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 4px 0;
}

.phones a {
    display: inline-block;
}

.closing-cta {
    margin-top: 28px;
    padding: 0 6px;
}

.closing-cta h3 {
    margin: 0;
    font-size: clamp(1.2rem, 1.3vw, 1.8rem);
    line-height: 1.5;
    font-weight: 700;
    color: var(--navy-900);
}

.subpage-shell.contact-shell {
    margin-top: 20px;
    grid-template-columns: minmax(0, 1fr);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 24px;
    align-items: start;
}

.contact-details {
    background: rgba(255,255,255,0.2);
    border: 1px solid var(--border);
    padding: 22px;
}

.contact-details h3,
.contact-form h3 {
    margin: 0 0 16px;
    color: var(--navy-900);
    font-size: clamp(1.5rem, 2vw, 2.1rem);
    line-height: 1.25;
}

.contact-details p,
.contact-details li,
.contact-details a {
    color: var(--ink);
    line-height: 1.8;
    font-size: 1rem;
}

.contact-details strong {
    color: var(--navy-900);
}

.contact-details a {
    text-decoration: underline;
}

.contact-company-data {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.contact-company-data div {
    min-width: 0;
}

.contact-company-data dt {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.contact-company-data dd {
    margin: 3px 0 0;
    color: var(--navy-900);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.contact-form {
    background: rgba(255,255,255,0.2);
    border: 1px solid var(--border);
    padding: 22px;
}

.contact-map {
    margin-top: 24px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.2);
}

.contact-map-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
}

.contact-map-heading h2 {
    margin: 0;
    color: var(--navy-900);
    font-size: 1.35rem;
    line-height: 1.3;
}

.contact-map-heading a {
    color: var(--navy-700);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 380px;
    border: 0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.contact-honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-field label {
    display: block;
    color: var(--navy-900);
    font-weight: 700;
    font-size: 0.95rem;
}

.form-field input,
.form-field textarea {
    width: 100%;
    border: 1px solid rgba(12, 34, 56, 0.18);
    background: #ffffff;
    color: var(--ink);
    padding: 11px 12px;
    font: inherit;
    resize: vertical;
    min-height: 44px;
}

.form-field textarea {
    min-height: 150px;
}

.contact-consent {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    margin: 4px 0 18px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.contact-consent input {
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    accent-color: var(--navy-900);
}

.contact-consent label {
    cursor: pointer;
}

.contact-consent a {
    color: var(--navy-700);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-consent span {
    grid-column: 2;
    color: #a72525;
}

.contact-form button {
    border: none;
    background: var(--navy-900);
    color: #ffffff;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.contact-form button:hover {
    opacity: 0.94;
}

.form-success {
    margin: 18px 0 0;
    background: #edf8ee;
    border: 1px solid #b8dfba;
    color: #1d4d2b;
    padding: 12px 14px;
    font-weight: 600;
}

.validation-summary {
    margin: 18px 0 0;
    color: #a72525;
    font-weight: 600;
}

.site-footer {
    background: var(--navy-900);
    color: rgba(255,255,255,0.85);
    padding: 22px 0 26px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.footer-copy {
    font-weight: 600;
}

.footer-address {
    text-align: right;
    line-height: 1.7;
}

.subpage-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 28px auto 70px;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.subpage-shell.news-shell {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 28px;
}

.news-list {
    margin-top: 20px;
    border-top: 1px solid var(--border);
}

.news-item {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 24px;
    padding: 22px 6px;
    border-bottom: 1px solid var(--border);
}

.news-item time,
.news-detail time {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.news-item h2 {
    margin: 0 0 8px;
    color: var(--navy-900);
    font-size: 1.35rem;
    line-height: 1.35;
}

.news-item p {
    margin: 0 0 10px;
    color: var(--ink);
    line-height: 1.7;
    white-space: pre-line;
}

.news-item h2 a:hover,
.news-read-more:hover,
.news-back:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-read-more,
.news-back {
    color: var(--navy-700);
    font-weight: 700;
}

.news-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}

.news-pagination a {
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid var(--border);
    color: var(--navy-900);
    font-weight: 600;
}

.news-pagination a[aria-current="page"] {
    background: var(--navy-900);
    color: #ffffff;
}

.news-notice,
.news-detail {
    margin-top: 20px;
    padding: 24px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.2);
}

.news-detail h1 {
    margin: 12px 0 24px;
    color: var(--navy-900);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.25;
}

.news-detail time {
    display: block;
    margin-top: 24px;
}

.news-lead {
    margin: 0 0 20px;
    color: var(--navy-900);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.6;
}

.news-content {
    color: var(--ink);
    font-size: 1.05rem;
    line-height: 1.85;
    white-space: pre-line;
}

.news-content--markdown {
    white-space: normal;
}

.news-content--markdown h2 {
    margin: 1.6rem 0 0.7rem;
    color: var(--navy-900);
    font-size: 1.35rem;
    line-height: 1.4;
}

.news-content--markdown p {
    margin: 0 0 1rem;
}

.news-content--markdown a {
    color: var(--navy-700);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-content--markdown > :last-child {
    margin-bottom: 0;
}

.news-source {
    margin: 20px 0 0;
    font-size: 0.95rem;
}

.news-source a {
    color: var(--navy-700);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-bookmarks {
    padding: 8px 0 0;
}

.page-bookmarks ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.22);
}

.page-bookmarks li {
    border-bottom: 1px solid var(--border);
}

.page-bookmarks li:last-child {
    border-bottom: none;
}

.page-bookmarks a {
    display: block;
    padding: 12px 14px;
    color: var(--navy-900);
    font-weight: 600;
    text-decoration: none;
}

.page-bookmarks li.active a {
    background: var(--navy-900);
    color: #ffffff;
}

.page-main-panel {
    min-width: 0;
}

.page-feature-block {
    display: grid;
    grid-template-columns: 1.2fr 0.75fr;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.14);
    overflow: hidden;
}

.page-feature-image {
    min-height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(100%) contrast(1.1) brightness(0.8) saturate(0.35);
}

.page-feature-text {
    background: var(--navy-900);
    color: #ffffff;
    padding: 20px 22px;
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.page-feature-block--team {
    grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
}

.page-feature-block--team .page-feature-image {
    min-height: 180px;
}

.page-feature-copy {
    background: var(--navy-900);
    color: #ffffff;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid rgba(255,255,255,0.1);
}

.page-feature-copy strong {
    display: block;
    font-size: clamp(1.65rem, 2.4vw, 2.5rem);
    line-height: 1.08;
    text-transform: lowercase;
    letter-spacing: -0.04em;
}

.page-feature-copy span {
    display: block;
    margin-top: 10px;
    font-size: 1.02rem;
    line-height: 1.6;
    font-weight: 600;
}

.about-page,
.team-page {
    margin-top: 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
    padding: 22px 24px 24px;
}

.about-page h1,
.team-page h1 {
    margin: 0 0 20px;
    font-size: clamp(2.2rem, 3vw, 3rem);
    line-height: 1.2;
    color: var(--navy-900);
}

.privacy-page h2 {
    margin: 28px 0 8px;
    color: var(--navy-900);
    font-size: 1.3rem;
    line-height: 1.35;
}

.privacy-page a {
    color: var(--navy-700);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-review-note {
    margin-top: 28px !important;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--muted) !important;
    font-size: 0.9rem !important;
}

.about-page p,
.team-page p {
    color: var(--ink);
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-page p {
    margin: 0 0 18px;
}

.contact-strip {
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--navy-900);
    font-weight: 600;
    line-height: 1.8;
}

.contact-strip a {
    color: var(--navy-700);
    text-decoration: underline;
}

.team-group {
    margin-top: 24px;
}

.team-group h2 {
    margin: 0 0 18px;
    color: var(--navy-900);
    font-size: clamp(1.5rem, 1.7vw, 2rem);
}

.team-page .person-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(460px, auto);
    align-items: stretch;
    gap: 16px;
}

.team-page .person-grid.single-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.person-card {
    background: rgba(255,255,255,0.24);
    border: 1px solid var(--border);
    display: flex;
    min-width: 0;
    min-height: 460px;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    text-align: center;
}

.person-card img {
    width: 100%;
    max-width: 200px;
    height: 250px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    background: #ececec;
    margin-bottom: 10px;
    border: 1px solid rgba(12, 34, 56, 0.08);
    flex: 0 0 auto;
}

.person-placeholder {
    width: 100%;
    max-width: 200px;
    height: 250px;
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dfeaf7, #f3f7fb);
    color: var(--navy-900);
    font-weight: 700;
    padding: 12px;
    border: 1px solid rgba(12, 34, 56, 0.08);
    margin-bottom: 10px;
    text-align: center;
    flex: 0 0 auto;
}

.person-card h3 {
    margin: 0 0 6px;
    color: var(--navy-900);
    font-size: 1.08rem;
    line-height: 1.4;
    min-height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-wrap: anywhere;
}

.person-card p {
    margin: 0;
    color: var(--ink);
    font-size: 0.96rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.person-profile-link {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: auto;
    padding: 7px 10px;
    border-top: 1px solid var(--border);
    color: var(--navy-700);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.person-profile-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.team-profile-back {
    display: inline-block;
    margin: 8px 0 24px;
    color: var(--navy-700);
    font-weight: 600;
}

.team-profile-page {
    max-width: 920px;
}

.team-profile-header {
    display: grid;
    grid-template-columns: minmax(200px, 270px) minmax(0, 1fr);
    align-items: start;
    gap: 30px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.team-profile-header--text-only {
    grid-template-columns: minmax(0, 1fr);
}

.team-profile-header img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 1px solid rgba(12, 34, 56, 0.08);
}

.team-profile-header h1 {
    margin: 4px 0 18px;
    color: var(--navy-900);
    font-size: 2.2rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.team-profile-role {
    color: var(--muted);
    font-weight: 600;
}

.team-profile-header p {
    margin: 0 0 8px;
    overflow-wrap: anywhere;
}

.team-profile-header a {
    color: var(--navy-700);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.team-profile-biography {
    color: var(--ink);
    font-size: 1.05rem;
    line-height: 1.85;
}

.team-profile-biography p {
    margin: 0 0 18px;
}

.team-profile-biography h2 {
    margin: 30px 0 12px;
    color: var(--navy-900);
    font-size: 1.45rem;
    line-height: 1.4;
}

.team-profile-biography a {
    color: var(--navy-700);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 1024px) {
    .subpage-shell {
        grid-template-columns: 1fr;
    }

    .page-bookmarks {
        order: 2;
    }

    .page-main-panel {
        order: 1;
    }

    .page-feature-block {
        grid-template-columns: 1fr;
    }

    .team-page .person-grid,
    .team-page .person-grid.single-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .team-page .person-grid,
    .team-page .person-grid.single-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-profile-header {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .team-profile-header img {
        max-width: 260px;
    }

    .team-profile-header h1 {
        font-size: 1.8rem;
    }

    .news-item {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .contact-grid,
    .form-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 520px) {
    .team-page .person-grid,
    .team-page .person-grid.single-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .navbar-shell {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 0;
    }

    .main-nav {
        justify-content: flex-start;
        gap: 16px 22px;
    }

    .hero-split {
        grid-template-columns: 1fr;
    }

    .hero-image {
        min-height: 230px;
    }

    .service-list,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-address {
        text-align: left;
    }
}

@media (max-width: 560px) {
    .main-nav {
        gap: 12px 16px;
    }

    .main-nav a {
        font-size: 0.85rem;
    }

    .hero-image {
        min-height: 180px;
    }
}