/*
Theme Name: HMK Public
Theme URI: https://hmkadvocates.co.ke/
Author: GICT Systems
Description: Custom public website theme for HMK Advocates.
Version: 0.1.22
Text Domain: hmk-public
*/

:root {
    --hmk-navy: #08295f;
    --hmk-navy-deep: #061b3f;
    --hmk-blue: #13508f;
    --hmk-gold: #c8a13a;
    --hmk-gold-light: #ddc36f;
    --hmk-white: #ffffff;
    --hmk-off-white: #f7f8fa;
    --hmk-text: #192231;
    --hmk-muted: #667085;
    --hmk-border: #e5e7eb;
    --hmk-width: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--hmk-white);
    color: var(--hmk-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--hmk-blue);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--hmk-gold);
}

.hmk-container {
    width: min(var(--hmk-width), calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    background: var(--hmk-white);
    border-bottom: 1px solid var(--hmk-border);
}

.site-header__inner {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-title {
    margin: 0;
    color: var(--hmk-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.site-title a {
    color: inherit;
}

.site-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-navigation a {
    color: var(--hmk-text);
    font-size: 14px;
    font-weight: 600;
}

.site-main {
    min-height: 60vh;
}

.hmk-foundation {
    padding: 100px 0;
}

.hmk-foundation h1 {
    margin: 0 0 18px;
    color: var(--hmk-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.08;
}

.hmk-foundation p {
    max-width: 720px;
    margin: 0;
    color: var(--hmk-muted);
    font-size: 18px;
}

.site-footer {
    margin-top: 80px;
    padding: 36px 0;
    background: var(--hmk-navy-deep);
    color: rgba(255,255,255,.75);
    font-size: 14px;
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.site-footer strong {
    color: var(--hmk-white);
}

@media (max-width: 760px) {
    .site-header__inner {
        min-height: 74px;
    }

    .site-navigation {
        display: none;
    }

    .hmk-foundation {
        padding: 70px 0;
    }
}

/* =========================================================
   HMK Public 0.1.1 — Brand Logo
   ========================================================= */

.custom-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.custom-logo {
    width: auto;
    height: 66px;
    max-width: 280px;
    object-fit: contain;
}

@media (max-width: 760px) {
    .custom-logo {
        height: 54px;
        max-width: 220px;
    }
}

/* =========================================================
   HMK Public 0.1.2 — Homepage Hero
   ========================================================= */

.hmk-hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    background-color: var(--hmk-navy-deep);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--hmk-white);
}

.hmk-hero__content {
    max-width: 720px;
    padding: 110px 0;
}

.hmk-hero__eyebrow {
    margin: 0 0 18px;
    color: var(--hmk-gold-light);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hmk-hero h1 {
    max-width: 700px;
    margin: 0;
    color: var(--hmk-white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(46px, 6vw, 76px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -.035em;
}

.hmk-hero__intro {
    max-width: 620px;
    margin: 28px 0 0;
    color: rgba(255,255,255,.86);
    font-size: 18px;
    line-height: 1.75;
}

.hmk-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.hmk-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.hmk-button--gold {
    background: var(--hmk-gold);
    border-color: var(--hmk-gold);
    color: var(--hmk-navy-deep);
}

.hmk-button--gold:hover,
.hmk-button--gold:focus {
    background: var(--hmk-gold-light);
    border-color: var(--hmk-gold-light);
    color: var(--hmk-navy-deep);
}

.hmk-button--outline {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.65);
    color: var(--hmk-white);
}

.hmk-button--outline:hover,
.hmk-button--outline:focus {
    background: var(--hmk-white);
    border-color: var(--hmk-white);
    color: var(--hmk-navy);
}

.home .site-footer {
    margin-top: 0;
}

@media (max-width: 760px) {
    .hmk-hero {
        min-height: 610px;
        background-position: 62% center;
    }

    .hmk-hero__content {
        padding: 80px 0;
    }

    .hmk-hero h1 {
        font-size: clamp(40px, 12vw, 58px);
    }

    .hmk-hero__intro {
        font-size: 16px;
    }

    .hmk-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hmk-button {
        width: 100%;
    }
}

/* =========================================================
   HMK Public 0.1.3 — Homepage About
   ========================================================= */

.hmk-home-about {
    padding: 96px 0;
    background: var(--hmk-white);
}

.hmk-home-about__grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(50px, 8vw, 110px);
    align-items: start;
}

.hmk-section-kicker {
    margin: 0 0 16px;
    color: var(--hmk-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hmk-home-about h2 {
    max-width: 520px;
    margin: 0;
    color: var(--hmk-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.hmk-home-about__content {
    max-width: 650px;
}

.hmk-home-about__content > p {
    margin: 0 0 20px;
    color: var(--hmk-muted);
    font-size: 17px;
    line-height: 1.8;
}

.hmk-values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
}

.hmk-values span {
    padding: 8px 13px;
    border: 1px solid var(--hmk-border);
    border-radius: 999px;
    color: var(--hmk-navy);
    font-size: 13px;
    font-weight: 700;
}

.hmk-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--hmk-navy);
    font-weight: 700;
}

.hmk-text-link:hover,
.hmk-text-link:focus {
    color: var(--hmk-gold);
}

@media (max-width: 760px) {
    .hmk-home-about {
        padding: 70px 0;
    }

    .hmk-home-about__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hmk-home-about__content > p {
        font-size: 16px;
    }
}

/* =========================================================
   HMK Public 0.1.4 — Homepage Practice Areas
   ========================================================= */

.hmk-home-practices {
    padding: 96px 0;
    background: var(--hmk-off-white);
}

.hmk-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr);
    gap: 60px;
    align-items: end;
    margin-bottom: 48px;
}

.hmk-section-heading h2 {
    max-width: 650px;
    margin: 0;
    color: var(--hmk-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.hmk-section-heading > p {
    margin: 0;
    color: var(--hmk-muted);
    font-size: 16px;
    line-height: 1.75;
}

.hmk-practice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--hmk-border);
    border-left: 1px solid var(--hmk-border);
}

.hmk-practice-card {
    min-height: 245px;
    padding: 34px;
    background: var(--hmk-white);
    border-right: 1px solid var(--hmk-border);
    border-bottom: 1px solid var(--hmk-border);
}

.hmk-practice-card__number {
    display: block;
    margin-bottom: 30px;
    color: var(--hmk-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
}

.hmk-practice-card h3 {
    margin: 0 0 14px;
    color: var(--hmk-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
}

.hmk-practice-card p {
    margin: 0;
    color: var(--hmk-muted);
    font-size: 14px;
    line-height: 1.7;
}

.hmk-practices-link {
    margin-top: 34px;
}

@media (max-width: 900px) {
    .hmk-practice-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .hmk-home-practices {
        padding: 70px 0;
    }

    .hmk-section-heading {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-bottom: 34px;
    }

    .hmk-practice-grid {
        grid-template-columns: 1fr;
    }

    .hmk-practice-card {
        min-height: 0;
        padding: 28px;
    }
}

/* =========================================================
   HMK Public 0.1.5 — Homepage Team Preview
   ========================================================= */

.hmk-home-team {
    padding: 96px 0;
    background: var(--hmk-white);
}

.hmk-home-team__grid {
    display: grid;
    grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr);
    gap: clamp(50px, 8vw, 100px);
    align-items: center;
}

.hmk-home-team__image {
    overflow: hidden;
    background: var(--hmk-off-white);
}

.hmk-team-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.hmk-home-team__content h2 {
    max-width: 600px;
    margin: 0 0 22px;
    color: var(--hmk-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 500;
    line-height: 1.12;
}

.hmk-home-team__intro {
    max-width: 610px;
    margin: 0 0 30px;
    color: var(--hmk-muted);
    font-size: 17px;
    line-height: 1.8;
}

.hmk-team-names {
    margin-bottom: 30px;
    border-top: 1px solid var(--hmk-border);
}

.hmk-team-name {
    padding: 17px 0;
    border-bottom: 1px solid var(--hmk-border);
}

.hmk-team-name strong,
.hmk-team-name span {
    display: block;
}

.hmk-team-name strong {
    color: var(--hmk-navy);
    font-size: 16px;
}

.hmk-team-name span {
    margin-top: 3px;
    color: var(--hmk-muted);
    font-size: 13px;
}

@media (max-width: 760px) {
    .hmk-home-team {
        padding: 70px 0;
    }

    .hmk-home-team__grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .hmk-team-photo {
        max-height: 560px;
    }
}

/* =========================================================
   HMK Public 0.1.6 — Homepage Contact CTA
   ========================================================= */

.hmk-home-contact {
    background: var(--hmk-navy-deep);
    color: var(--hmk-white);
}

.hmk-home-contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
    min-height: 540px;
}

.hmk-home-contact__content {
    padding: 80px 70px 80px 0;
    align-self: center;
}

.hmk-home-contact h2 {
    max-width: 580px;
    margin: 0 0 22px;
    color: var(--hmk-white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 500;
    line-height: 1.1;
}

.hmk-home-contact__content > p {
    max-width: 580px;
    margin: 0 0 28px;
    color: rgba(255,255,255,.78);
    font-size: 17px;
    line-height: 1.75;
}

.hmk-office-details {
    margin: 0 0 32px;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,.16);
    border-bottom: 1px solid rgba(255,255,255,.16);
}

.hmk-office-details p {
    margin: 0 0 18px;
    color: rgba(255,255,255,.82);
    line-height: 1.7;
}

.hmk-office-details p:last-child {
    margin-bottom: 0;
}

.hmk-office-details strong {
    color: var(--hmk-gold-light);
}

.hmk-office-details a {
    color: var(--hmk-white);
}

.hmk-office-details a:hover,
.hmk-office-details a:focus {
    color: var(--hmk-gold-light);
}

.hmk-home-contact__image {
    min-height: 540px;
    overflow: hidden;
}

.hmk-office-photo {
    width: 100%;
    height: 100%;
    min-height: 540px;
    object-fit: cover;
}

@media (max-width: 800px) {
    .hmk-home-contact__grid {
        grid-template-columns: 1fr;
    }

    .hmk-home-contact__content {
        padding: 70px 0;
    }

    .hmk-home-contact__image,
    .hmk-office-photo {
        min-height: 440px;
    }
}

/* =========================================================
   HMK Public 0.1.7 — Homepage Refinement Pass A
   ========================================================= */

.hmk-hero {
    min-height: 600px;
}

.hmk-hero__content {
    padding: 88px 0;
    max-width: 680px;
}

.hmk-home-about {
    padding: 74px 0 52px;
}

.hmk-home-about__grid {
    gap: 42px;
}

.hmk-home-practices {
    padding: 52px 0 74px;
}

.hmk-section-heading {
    gap: 34px;
    margin-bottom: 34px;
}

.hmk-home-team {
    padding: 74px 0;
}

.hmk-home-team__grid {
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 44px;
    align-items: center;
}

.hmk-home-team__image {
    max-width: 360px;
    justify-self: start;
    overflow: hidden;
    border-radius: 22px;
}

.hmk-team-photo {
    width: 100%;
    aspect-ratio: 4 / 4.8;
    object-fit: cover;
    border-radius: 22px;
}

.hmk-home-team__content h2 {
    margin-bottom: 18px;
}

.hmk-home-team__intro {
    margin-bottom: 24px;
}

.hmk-team-names {
    margin-bottom: 24px;
}

.hmk-team-name {
    padding: 14px 0;
}

.hmk-team-name strong {
    font-size: 17px;
}

.hmk-team-name span {
    margin-top: 6px;
    color: var(--hmk-muted);
    font-size: 14px;
    line-height: 1.6;
}

.hmk-home-contact {
    padding: 74px 0;
}

.hmk-home-contact__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 380px);
    gap: 42px;
    align-items: center;
    min-height: 0;
}

.hmk-home-contact__content {
    padding: 0;
}

.hmk-home-contact__image {
    max-width: 380px;
    min-height: 0;
    justify-self: end;
    overflow: hidden;
    border-radius: 22px;
}

.hmk-office-photo {
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 22px;
}

.hmk-office-details {
    margin: 0 0 24px;
    padding: 18px 0;
}

.site-footer {
    margin-top: 0;
}

@media (max-width: 900px) {
    .hmk-home-team__grid,
    .hmk-home-contact__grid {
        grid-template-columns: 1fr;
    }

    .hmk-home-team__image,
    .hmk-home-contact__image {
        max-width: 420px;
        justify-self: start;
    }
}

@media (max-width: 760px) {
    .hmk-hero {
        min-height: 560px;
    }

    .hmk-hero__content {
        padding: 72px 0;
    }

    .hmk-home-about,
    .hmk-home-practices,
    .hmk-home-team,
    .hmk-home-contact {
        padding-top: 62px;
        padding-bottom: 62px;
    }

    .hmk-home-team__grid,
    .hmk-home-contact__grid,
    .hmk-home-about__grid,
    .hmk-section-heading {
        gap: 28px;
    }

    .hmk-home-team__image,
    .hmk-home-contact__image {
        max-width: 100%;
    }
}

/* =========================================================
   HMK Public 0.1.8 — Williamson House Brand Tint
   ========================================================= */

.hmk-home-contact__image {
    position: relative;
}

.hmk-home-contact__image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: rgba(8, 41, 95, .20);
    border-radius: 22px;
}

.hmk-office-photo {
    position: relative;
    z-index: 1;
    filter: saturate(.88) contrast(.96);
}

/* =========================================================
   HMK Public 0.1.9 — About Page Foundation
   ========================================================= */

.hmk-inner-hero {
    padding: 82px 0 72px;
    background:
        linear-gradient(
            135deg,
            var(--hmk-navy-deep) 0%,
            var(--hmk-navy) 100%
        );
    color: var(--hmk-white);
}

.hmk-inner-hero .hmk-section-kicker {
    color: var(--hmk-gold-light);
}

.hmk-inner-hero h1 {
    max-width: 850px;
    margin: 0;
    color: var(--hmk-white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: -.03em;
}

.hmk-inner-hero__intro {
    max-width: 690px;
    margin: 24px 0 0;
    color: rgba(255,255,255,.82);
    font-size: 18px;
    line-height: 1.75;
}

.hmk-about-firm {
    padding: 82px 0;
    background: var(--hmk-white);
}

.hmk-about-firm__grid {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
    gap: clamp(44px, 7vw, 90px);
    align-items: start;
}

.hmk-about-firm__heading {
    position: sticky;
    top: 40px;
}

.hmk-about-firm__heading h2 {
    max-width: 470px;
    margin: 0;
    color: var(--hmk-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.hmk-about-firm__content {
    max-width: 700px;
}

.hmk-about-firm__content p {
    margin: 0 0 22px;
    color: var(--hmk-muted);
    font-size: 17px;
    line-height: 1.82;
}

.hmk-about-firm__content p:first-child {
    color: var(--hmk-text);
    font-size: 18px;
}

.hmk-about-firm__content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 800px) {
    .hmk-inner-hero {
        padding: 64px 0 58px;
    }

    .hmk-inner-hero__intro {
        font-size: 16px;
    }

    .hmk-about-firm {
        padding: 64px 0;
    }

    .hmk-about-firm__grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hmk-about-firm__heading {
        position: static;
    }

    .hmk-about-firm__content p {
        font-size: 16px;
    }
}

/* =========================================================
   HMK Public 0.1.10 — About Purpose
   ========================================================= */

.hmk-about-purpose {
    padding: 76px 0;
    background: var(--hmk-off-white);
}

.hmk-about-purpose__intro {
    max-width: 700px;
    margin-bottom: 38px;
}

.hmk-about-purpose__intro h2 {
    margin: 0;
    color: var(--hmk-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.hmk-purpose-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 18px;
}

.hmk-purpose-card {
    padding: 32px;
    background: var(--hmk-white);
    border: 1px solid var(--hmk-border);
    border-radius: 14px;
}

.hmk-purpose-card__label {
    display: block;
    margin-bottom: 16px;
    color: var(--hmk-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hmk-purpose-card__statement {
    margin: 0;
    color: var(--hmk-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.45;
}

.hmk-core-values {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 28px;
    align-items: start;
    margin-top: 18px;
    padding: 30px 32px;
    background: var(--hmk-navy);
    border-radius: 14px;
}

.hmk-core-values .hmk-purpose-card__label {
    margin: 5px 0 0;
    color: var(--hmk-gold-light);
}

.hmk-core-values__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hmk-core-values__list span {
    padding: 8px 13px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    color: var(--hmk-white);
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 760px) {
    .hmk-about-purpose {
        padding: 62px 0;
    }

    .hmk-purpose-grid,
    .hmk-core-values {
        grid-template-columns: 1fr;
    }

    .hmk-purpose-card {
        padding: 26px;
    }

    .hmk-core-values {
        gap: 16px;
        padding: 26px;
    }
}

/* =========================================================
   HMK Public 0.1.11 — Practice Areas Foundation
   ========================================================= */

.hmk-practice-page {
    padding: 78px 0;
    background: var(--hmk-white);
}

.hmk-practice-detail {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
    gap: clamp(40px, 7vw, 86px);
    padding: 46px 0;
    border-bottom: 1px solid var(--hmk-border);
}

.hmk-practice-detail:first-child {
    padding-top: 0;
}

.hmk-practice-detail:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.hmk-practice-detail__heading span {
    display: block;
    margin-bottom: 14px;
    color: var(--hmk-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
}

.hmk-practice-detail__heading h2 {
    max-width: 470px;
    margin: 0;
    color: var(--hmk-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 3.4vw, 43px);
    font-weight: 500;
    line-height: 1.14;
    letter-spacing: -.02em;
}

.hmk-practice-detail__content {
    max-width: 700px;
}

.hmk-practice-detail__content p {
    margin: 0 0 18px;
    color: var(--hmk-muted);
    font-size: 16px;
    line-height: 1.78;
}

.hmk-practice-detail__content p:first-child {
    color: var(--hmk-text);
    font-size: 17px;
}

.hmk-practice-detail__content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 800px) {
    .hmk-practice-page {
        padding: 62px 0;
    }

    .hmk-practice-detail {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 38px 0;
    }

    .hmk-practice-detail__content p,
    .hmk-practice-detail__content p:first-child {
        font-size: 16px;
    }
}

/* =========================================================
   HMK Public 0.1.14 — Our Team Page
   ========================================================= */

.hmk-team-page {
    padding: 78px 0;
    background: var(--hmk-white);
}

.hmk-team-profile {
    display: grid;
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
    gap: clamp(38px, 7vw, 82px);
    align-items: center;
    padding: 0 0 66px;
    margin: 0 0 66px;
    border-bottom: 1px solid var(--hmk-border);
}

.hmk-team-profile:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.hmk-team-profile__image {
    max-width: 340px;
    overflow: hidden;
    border-radius: 22px;
}

.hmk-team-profile__photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 22px;
}

.hmk-team-profile__content {
    max-width: 720px;
}

.hmk-team-profile__content h2 {
    margin: 0 0 10px;
    color: var(--hmk-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.hmk-team-profile__role {
    margin: 0 0 24px;
    color: var(--hmk-gold);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.hmk-team-profile__content > p:not(.hmk-section-kicker):not(.hmk-team-profile__role) {
    margin: 0 0 18px;
    color: var(--hmk-muted);
    font-size: 16px;
    line-height: 1.78;
}

.hmk-team-profile__identity {
    width: 240px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background:
        linear-gradient(
            145deg,
            var(--hmk-navy-deep),
            var(--hmk-navy)
        );
}

.hmk-team-profile__identity span {
    color: var(--hmk-gold-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 68px;
    font-weight: 600;
    letter-spacing: -.04em;
}

.hmk-team-profile__contact {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--hmk-border);
}

.hmk-team-profile__contact p {
    margin: 0;
    color: var(--hmk-muted);
    line-height: 1.7;
}

.hmk-team-profile__contact strong {
    color: var(--hmk-navy);
}

.hmk-team-profile__contact a {
    color: var(--hmk-navy);
    font-weight: 600;
}

.hmk-team-profile__contact a:hover,
.hmk-team-profile__contact a:focus {
    color: var(--hmk-gold);
}

@media (max-width: 800px) {
    .hmk-team-page {
        padding: 62px 0;
    }

    .hmk-team-profile {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 52px;
        margin-bottom: 52px;
    }

    .hmk-team-profile__image {
        max-width: 380px;
    }

    .hmk-team-profile__identity {
        width: 220px;
    }
}

/* =========================================================
   HMK Public 0.1.15 — Contact Page
   ========================================================= */

.hmk-contact-page {
    padding: 76px 0;
    background: var(--hmk-off-white);
}

.hmk-contact-primary {
    display: grid;
    grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
    gap: clamp(40px, 7vw, 86px);
    padding: 42px;
    background: var(--hmk-white);
    border: 1px solid var(--hmk-border);
    border-radius: 18px;
}

.hmk-contact-primary__heading h2 {
    margin: 0;
    color: var(--hmk-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 4vw, 50px);
    font-weight: 500;
    line-height: 1.1;
}

.hmk-contact-primary__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 38px;
}

.hmk-contact-primary__details p {
    margin: 0;
    color: var(--hmk-muted);
    font-size: 15px;
    line-height: 1.75;
}

.hmk-contact-primary__details strong {
    color: var(--hmk-navy);
}

.hmk-contact-primary__details a {
    color: var(--hmk-navy);
    font-weight: 600;
}

.hmk-contact-primary__details a:hover,
.hmk-contact-primary__details a:focus {
    color: var(--hmk-gold);
}

.hmk-contact-branches {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 24px;
}

.hmk-contact-branch {
    padding: 32px;
    background: var(--hmk-white);
    border: 1px solid var(--hmk-border);
    border-radius: 18px;
}

.hmk-contact-branch h3 {
    margin: 0 0 22px;
    color: var(--hmk-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 500;
}

.hmk-contact-branch p {
    margin: 0 0 18px;
    color: var(--hmk-muted);
    font-size: 15px;
    line-height: 1.7;
}

.hmk-contact-branch p:last-child {
    margin-bottom: 0;
}

.hmk-contact-branch a {
    color: var(--hmk-navy);
    font-weight: 600;
}

.hmk-contact-branch a:hover,
.hmk-contact-branch a:focus {
    color: var(--hmk-gold);
}

@media (max-width: 800px) {
    .hmk-contact-page {
        padding: 62px 0;
    }

    .hmk-contact-primary {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 30px;
    }

    .hmk-contact-primary__details {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .hmk-contact-branches {
        grid-template-columns: 1fr;
    }

    .hmk-contact-branch {
        padding: 28px;
    }
}

/* =========================================================
   HMK Public 0.1.17 — Contact Form
   ========================================================= */

.hmk-contact-form-section {
    padding: 0 0 80px;
    background: var(--hmk-off-white);
}

.hmk-contact-form-section__heading {
    max-width: 720px;
    margin-bottom: 34px;
}

.hmk-contact-form-section__heading h2 {
    margin: 0 0 14px;
    color: var(--hmk-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.hmk-contact-form-section__heading > p:last-child {
    margin: 0;
    color: var(--hmk-muted);
    font-size: 16px;
    line-height: 1.7;
}

.hmk-contact-form {
    max-width: 900px;
    padding: 38px;
    background: var(--hmk-white);
    border: 1px solid var(--hmk-border);
    border-radius: 18px;
}

.hmk-contact-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.hmk-form-field {
    margin-bottom: 24px;
}

.hmk-form-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--hmk-navy);
    font-size: 14px;
    font-weight: 700;
}

.hmk-form-field input,
.hmk-form-field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #cfd5df;
    border-radius: 8px;
    background: var(--hmk-white);
    color: var(--hmk-text);
    font: inherit;
    line-height: 1.5;
    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.hmk-form-field textarea {
    min-height: 170px;
    resize: vertical;
}

.hmk-form-field input:focus,
.hmk-form-field textarea:focus {
    outline: none;
    border-color: var(--hmk-blue);
    box-shadow: 0 0 0 3px rgba(19, 80, 143, .10);
}

.hmk-form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.hmk-recaptcha {
    margin: 4px 0 26px;
}

.hmk-contact-form__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hmk-contact-form__actions button {
    border: 0;
    cursor: pointer;
}

.hmk-contact-form__notice {
    margin: 0;
    color: var(--hmk-muted);
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 800px) {
    .hmk-contact-form-section {
        padding-bottom: 64px;
    }

    .hmk-contact-form {
        padding: 28px;
    }

    .hmk-contact-form__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 390px) {
    .hmk-recaptcha {
        transform: scale(.90);
        transform-origin: left top;
        margin-bottom: 8px;
    }
}

/* HMK Public 0.1.18 — Contact Form Status */

.hmk-contact-form__status {
    max-width: 900px;
    margin: 0 0 22px;
    padding: 15px 18px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.hmk-contact-form__status--success {
    background: #edf7f1;
    border: 1px solid #b9dcc7;
    color: #245b3a;
}

.hmk-contact-form__status--error {
    background: #fff4f2;
    border: 1px solid #ebc3bd;
    color: #7b3027;
}

/* =========================================================
   HMK Public 0.1.19 — Inner Hero Image System
   ========================================================= */

.hmk-inner-hero--image {
    position: relative;
    overflow: hidden;
    background-color: var(--hmk-navy-deep);
    background-image: var(--hmk-hero-bg-image);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.hmk-inner-hero--image::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(6, 31, 72, .84),
            rgba(8, 41, 95, .62)
        );
}

.hmk-inner-hero--image > .hmk-container {
    position: relative;
    z-index: 1;
}

.hmk-inner-hero--image .hmk-section-kicker,
.hmk-inner-hero--image h1,
.hmk-inner-hero--image .hmk-inner-hero__intro {
    color: #fff;
}

.hmk-inner-hero--image .hmk-section-kicker {
    opacity: .92;
}

.hmk-inner-hero--image .hmk-inner-hero__intro {
    max-width: 760px;
    opacity: .94;
}

/* HMK Public 0.1.20 — Practice Areas Hero */

.hmk-inner-hero--practice {
    background-position: center 46%;
}

/* HMK Public 0.1.21 — Our Team Hero */

.hmk-inner-hero--team {
    background-position: center;
}

/* HMK Public 0.1.22 — Contact Us Hero */

.hmk-inner-hero--contact {
    background-position: center 52%;
}
