/* About page styles */
.about-consultation-strip {
    background: #341C02;
    color: #fff;
    padding: 18px 40px;
    text-align: center;
}

.about-consultation-strip p {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 920px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.about-consultation-strip a {
    color: #FFD166;
    text-decoration: underline;
    text-underline-offset: 5px;
    white-space: nowrap;
}

.about-story-section {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 76px clamp(22px, 4vw, 44px) 86px;
    background: #fff;
}

.about-page-title {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 42px;
    color: #2c2c2c;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.about-page-title::after {
    content: "";
    display: block;
    width: 86px;
    height: 4px;
    margin: 18px auto 0;
    background: #8B6F47;
}

.about-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: clamp(34px, 5vw, 60px);
    align-items: stretch;
}

.about-story-copy {
    min-width: 0;
}

.about-story-copy h2,
.about-team-preview h2,
.about-story-callout h2 {
    font-size: 30px;
    line-height: 1.15;
    margin-bottom: 18px;
    color: #2c2c2c;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-story-copy p,
.about-team-text,
.about-story-callout p {
    font-size: 17px;
    line-height: 1.7;
    color: #2b2b2b;
}

.about-story-copy p + p {
    margin-top: 18px;
}

.about-story-callout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 5px solid #8B6F47;
    padding: 30px 28px;
    background: #f7f5f2;
    box-shadow: 0 12px 30px rgba(52, 28, 2, 0.08);
}

.about-story-callout p {
    font-size: 17px;
    margin-bottom: 22px;
}

.about-team-preview {
    margin-top: 68px;
    padding-top: 46px;
    border-top: 1px solid #e2d7ca;
}

.about-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
    margin: 28px 0 34px;
}

.about-team-member {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    color: #341C02;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #e2d7ca;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.about-team-member:hover {
    transform: translateY(-3px);
    border-color: #8B6F47;
    box-shadow: 0 12px 28px rgba(52, 28, 2, 0.12);
}

.about-team-member img {
    display: block;
    width: 100%;
    max-width: none;
    height: 300px;
    margin: 0;
    object-fit: cover;
    object-position: top center;
}

.about-team-member span {
    display: block;
    padding: 15px 12px 17px;
}

.practice-heading-band {
    background: #341C02;
    color: #fff;
    padding: 42px 40px;
    text-align: center;
}

.practice-heading-band h2 {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    font-size: 34px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.practice-heading-band h2::after {
    content: "";
    width: 78px;
    height: 3px;
    background: #FFD166;
}

.practice-tabs-section {
    display: block;
    padding: 42px 0 82px;
    background: #f7f5f2;
}

.practice-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
}

.practice-tab {
    position: relative;
    min-height: 220px;
    border: 1px solid #d8c9b8;
    border-radius: 4px;
    overflow: hidden;
    color: #fff;
    background: #1c120a;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 10px 24px rgba(52, 28, 2, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.practice-tab img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.36;
    filter: grayscale(35%);
    transition: opacity 0.2s ease, transform 0.25s ease;
}

.practice-tab::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(52, 28, 2, 0.52), rgba(52, 28, 2, 0.72));
}

.practice-tab span {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 220px;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    white-space: normal;
}

.practice-tab:hover {
    transform: translateY(-3px);
    border-color: #8B6F47;
    box-shadow: 0 14px 30px rgba(52, 28, 2, 0.15);
}

.practice-tab:hover img,
.practice-tab.active img {
    opacity: 0.58;
    transform: scale(1.04);
}

.practice-tab.active::after {
    background: linear-gradient(rgba(52, 28, 2, 0.42), rgba(52, 28, 2, 0.74));
    box-shadow: inset 0 -6px 0 #FFD166;
}

.practice-tab-panel {
    max-width: 1120px;
    margin: 38px auto 0;
    padding: 34px clamp(22px, 4vw, 38px);
    background: #fff;
    border-top: 5px solid #8B6F47;
    box-shadow: 0 14px 34px rgba(52, 28, 2, 0.1);
}

.practice-panel-label {
    margin-bottom: 8px;
    color: #6d5739;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.practice-tab-panel h3 {
    margin-bottom: 16px;
    color: #222;
    font-size: 36px;
    line-height: 1.1;
    text-transform: uppercase;
}

.practice-tab-panel > p:not(.practice-panel-label) {
    max-width: 980px;
    color: #222;
    font-size: 17px;
    line-height: 1.75;
}

.practice-panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 30px 0;
}

.practice-panel-grid > div {
    border-left: 4px solid #d8c9b8;
    padding: 4px 0 4px 18px;
}

.practice-panel-grid h4 {
    margin-bottom: 10px;
    color: #341C02;
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.practice-panel-grid p,
.practice-panel-grid li {
    color: #333;
    font-size: 16px;
    line-height: 1.72;
}

.practice-panel-grid ul {
    margin-left: 20px;
}

@media (max-width: 900px) {
    .about-consultation-strip p {
        font-size: 17px;
    }

    .about-story-grid,
    .about-team-grid,
    .practice-panel-grid {
        grid-template-columns: 1fr;
    }

    .about-story-callout {
        border-top: 5px solid #8B6F47;
        padding: 28px 24px;
    }

    .practice-tabs {
        grid-template-columns: repeat(2, 1fr);
    }

    .practice-tab,
    .practice-tab span {
        min-height: 190px;
    }

    .practice-tab span {
        font-size: 20px;
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .about-consultation-strip {
        padding: 20px 16px;
    }

    .about-consultation-strip p {
        font-size: 18px;
    }

    .about-story-section {
        padding: 50px 16px 58px;
    }

    .about-page-title {
        font-size: 42px;
        margin-bottom: 32px;
    }

    .about-story-copy h2,
    .about-team-preview h2,
    .about-story-callout h2 {
        font-size: 28px;
    }

    .about-story-copy p,
    .about-team-text,
    .about-story-callout p {
        font-size: 16px;
    }

    .about-team-grid {
        gap: 30px;
    }

    .about-team-member img {
        height: 320px;
        object-fit: cover;
    }

    .practice-heading-band {
        padding: 36px 16px;
    }

    .practice-heading-band h2 {
        font-size: 28px;
    }

    .practice-tabs {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .practice-tab,
    .practice-tab span {
        min-height: 132px;
    }

    .practice-tab span {
        font-size: 19px;
        overflow-wrap: anywhere;
    }

    .practice-tab-panel {
        margin-top: 28px;
        padding: 28px 18px;
    }

    .practice-tab-panel h3 {
        font-size: 29px;
    }

    .practice-tab-panel > p:not(.practice-panel-label) {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .about-consultation-strip p {
        display: flex;
        max-width: 100%;
        font-size: 16px;
    }

    .about-consultation-strip a {
        white-space: normal;
    }

    .about-page-title {
        font-size: 34px;
    }

    .about-team-member img {
        height: auto;
        max-height: 300px;
        object-fit: contain;
        background: #f4f1ed;
    }

    .practice-tab,
    .practice-tab span {
        min-height: 118px;
    }

    .practice-tab span {
        font-size: 17px;
        padding: 16px;
    }

    .practice-tab-panel h3 {
        font-size: 26px;
    }
}
