
/* =========================================================
   EK TAX CONSULTANTS
   Complete responsive multi-page stylesheet
   Brand: Deep navy, red, white and charcoal
   ========================================================= */

:root {
    --navy: #0c234c;
    --navy-dark: #071a39;
    --navy-light: #173a70;
    --red: #cd2739;
    --red-dark: #a91f30;
    --ink: #171d29;
    --muted: #687386;
    --pale: #f4f6fa;
    --line: #e5e9f0;
    --white: #ffffff;

    --font: "DM Sans", Arial, sans-serif;
    --display: "Manrope", "DM Sans", sans-serif;

    --header-height: 88px;
    --mobile-header-height: 72px;
    --topbar-height: 38px;
}

/* RESET AND GLOBAL STYLES */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}

body.menu-open,
body.nav-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

.container {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}

section[id],
article[id],
.service-detail[id] {
    scroll-margin-top: 120px;
}

[hidden] {
    display: none !important;
}

.container > *,
.hero-grid > *,
.intro-grid > *,
.about-intro-grid > *,
.practice-grid > *,
.contact-grid > *,
.footer-main > * {
    min-width: 0;
}

/* TOP BAR */

.topbar {
    position: relative;
    z-index: 110;
    background: var(--navy-dark);
    color: #dbe4f3;
    font-size: 12px;
}

.topbar-inner {
    min-height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar a {
    color: #fff;
    overflow-wrap: anywhere;
}

.topbar-icon {
    display: inline-block;
    margin-right: 7px;
    color: #f15a68;
}

/* HEADER AND DESKTOP NAVIGATION */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10010;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(12, 35, 76, 0.08);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.nav-wrap {
    position: relative;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: block;
    width: 208px;
    min-width: 0;
    flex: 0 1 208px;
}

.brand img {
    width: 100%;
    height: 62px;
    object-fit: contain;
    object-position: left center;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 27px;
    min-width: 0;
}

.main-nav > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    color: #454e5f;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

.main-nav > a:hover,
.main-nav > a.active,
.main-nav > a[aria-current="page"] {
    color: var(--red);
}

.main-nav .nav-contact {
    justify-content: center;
    padding: 12px 16px;
    background: var(--red);
    color: white;
    border-radius: 3px;
}

.main-nav .nav-contact:hover,
.main-nav .nav-contact.active,
.main-nav .nav-contact[aria-current="page"] {
    background: var(--navy);
    color: white;
}

.nav-contact span {
    margin-left: 9px;
}

/* HAMBURGER BUTTON */

.menu-toggle {
    display: none;
    position: relative;
    z-index: 10030;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border: 1px solid #e3e8f0;
    border-radius: 4px;
    background: white;
    color: var(--navy);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.menu-toggle span {
    display: block;
    width: 23px;
    height: 2px;
    margin: 0;
    border-radius: 2px;
    background: var(--navy);
    transform-origin: center;
    transition:
        transform 0.25s ease,
        opacity 0.2s ease,
        background 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.menu-toggle[aria-expanded="true"] span {
    background: var(--red);
}

.menu-toggle:hover {
    border-color: #cbd5e4;
}

/* BUTTONS AND SMALL LABELS */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.eyebrow > span {
    width: 23px;
    height: 2px;
    flex: 0 0 auto;
    background: var(--red);
}

.section-label {
    display: block;
    margin-bottom: 18px;
    color: var(--red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.light-label {
    color: #ef9aa4;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    max-width: 100%;
    padding: 14px 19px;
    border: 0;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn span {
    font-size: 16px;
}

.btn-red {
    background: var(--red);
    color: white;
}

.btn-red:hover {
    background: var(--red-dark);
}

.btn-white {
    background: white;
    color: var(--navy);
}

.btn-white:hover {
    background: #edf1f8;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
}

.text-link span {
    color: var(--red);
    font-size: 18px;
    transition: transform 0.2s ease;
}

.text-link:hover span {
    transform: translateX(4px);
}

/* HOMEPAGE HERO */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 610px;
    overflow: hidden;
    background: linear-gradient(
        112deg,
        #f1f4f9 0%,
        #ffffff 55%,
        #f2f5fa 100%
    );
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(1160px, calc(100% - 48px));
    grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
    align-items: center;
    gap: clamp(38px, 6vw, 78px);
    margin-inline: auto;
    padding-top: 76px;
    padding-bottom: 82px;
}

.hero-copy {
    min-width: 0;
    max-width: 570px;
}

.hero h1,
.page-hero h1 {
    margin: 22px 0;
    color: var(--navy);
    font: 800 clamp(40px, 4.5vw, 62px)/1.12 var(--display);
    letter-spacing: -0.055em;
    overflow-wrap: anywhere;
}

.hero h1 em,
.page-hero h1 em,
.section-pad h2 em,
.section-heading h2 em,
.services-lead h2 em,
.cta-band h2 em {
    color: var(--red);
    font-style: normal;
}

.hero-copy > p {
    max-width: 490px;
    margin: 0;
    color: #626d7e;
    font-size: 15px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 31px;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 43px;
}

.proof-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid #dbe1eb;
    border-radius: 50%;
    background: white;
    color: var(--red);
    font: 800 12px var(--display);
}

.hero-proof p {
    margin: 0;
    color: var(--navy);
    font-size: 12px;
    line-height: 1.5;
}

.hero-proof p span {
    color: #7a8493;
    font-size: 11px;
}

/* HERO VISUAL */

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 510px;
    min-width: 0;
    min-height: 425px;
    justify-self: end;
    padding: 32px 36px;
    overflow: visible;
    border-radius: 5px;
    background: linear-gradient(
        145deg,
        rgba(13, 43, 89, 0.91),
        rgba(7, 26, 57, 0.98)
    );
    box-shadow: 0 28px 60px rgba(12, 35, 76, 0.15);
    color: white;
}

.hero-visual::before {
    position: absolute;
    top: 0;
    right: 0;
    width: 7px;
    height: 100%;
    border-radius: 0 5px 5px 0;
    background: var(--red);
    content: "";
}

.visual-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #aabbd4;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.visual-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 5px #ffffff12;
}

.visual-icon {
    display: grid;
    width: 90px;
    height: 90px;
    margin-top: 35px;
    place-items: center;
    border: 1px solid #ffffff20;
    border-radius: 50%;
    color: #dce6f6;
}

.visual-icon svg {
    width: 68px;
    height: 68px;
}

.visual-kicker {
    margin: 28px 0 7px;
    color: #b9c7db;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.hero-visual h2 {
    margin: 0;
    color: white;
    font: 800 clamp(25px, 2.5vw, 31px)/1.25 var(--display);
    letter-spacing: -0.04em;
}

.hero-visual h2 span {
    opacity: 0.76;
}

.visual-bottom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 33px;
    color: #bdcbe0;
    font-size: 8px;
    letter-spacing: 0.12em;
}

.visual-bottom i {
    width: 3px;
    height: 3px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--red);
}

.floating-note {
    position: absolute;
    right: -24px;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    max-width: calc(100% + 24px);
    padding: 15px 18px;
    border-radius: 4px;
    background: white;
    box-shadow: 0 12px 35px #081b3830;
    color: var(--navy);
}

.note-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #edf3fb;
    color: var(--red);
    font-weight: 800;
}

.floating-note strong,
.floating-note small {
    display: block;
}

.floating-note strong {
    font-size: 11px;
}

.floating-note small {
    margin-top: 2px;
    color: #7b8491;
    font-size: 9px;
}

.hero-shape {
    position: absolute;
    border: 1px solid #dfe5ef;
    border-radius: 50%;
    pointer-events: none;
}

.hero-shape-one {
    top: -170px;
    right: -270px;
    width: 520px;
    height: 520px;
}

.hero-bottom-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32%;
    height: 4px;
    background: var(--red);
}

/* GENERAL SECTIONS */

.section-pad {
    padding: 94px 0;
}

.intro-grid,
.about-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 85px;
}

.section-pad h2,
.section-heading h2,
.services-lead h2 {
    margin: 0;
    color: var(--navy);
    font: 800 clamp(30px, 3.3vw, 43px)/1.22 var(--display);
    letter-spacing: -0.045em;
}

.intro-text p,
.long-copy p {
    margin: 0 0 17px;
    color: #687386;
    font-size: 14px;
    line-height: 1.95;
}

.intro-text .text-link {
    margin-top: 12px;
}

.services-preview {
    background: var(--pale);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 38px;
}

.section-heading .text-link {
    margin-bottom: 7px;
}

/* SERVICE CARDS */

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    position: relative;
    min-width: 0;
    min-height: 280px;
    padding: 28px 27px 30px;
    border: 1px solid #e8ebf1;
    background: white;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #d3dbea;
    box-shadow: 0 16px 35px #0c234c0d;
}

.card-number {
    color: #a5adba;
    font: 700 11px var(--display);
}

.service-icon {
    display: grid;
    width: 44px;
    height: 44px;
    margin: 25px 0 17px;
    place-items: center;
    border-radius: 4px;
    background: #f9edf0;
    color: var(--red);
    font-size: 25px;
}

.service-card h3 {
    margin: 0 0 10px;
    color: var(--navy);
    font: 800 18px var(--display);
    letter-spacing: -0.025em;
}

.service-card p {
    max-width: 300px;
    margin: 0;
    color: #737e8f;
    font-size: 12px;
    line-height: 1.85;
}

.card-arrow {
    position: absolute;
    top: 26px;
    right: 26px;
    color: var(--red);
    font-size: 19px;
}

/* CALL TO ACTION */

.cta-band {
    position: relative;
    overflow: hidden;
    padding: 64px 0;
    background: var(--navy);
    color: white;
}

.cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-band h2 {
    margin: 0;
    color: white;
    font: 800 clamp(29px, 3.5vw, 42px)/1.25 var(--display);
    letter-spacing: -0.04em;
}

/* INNER PAGE HEROES */

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 75px 0 52px;
    background: linear-gradient(110deg, #f4f7fb, white 72%);
}

.page-hero::after {
    position: absolute;
    top: -205px;
    right: -115px;
    width: 430px;
    height: 430px;
    border: 1px solid #dfe5ef;
    border-radius: 50%;
    box-shadow: 0 0 0 48px #eaf0f8aa, 0 0 0 96px #eaf0f855;
    content: "";
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    margin: 19px 0 14px;
    font-size: clamp(39px, 4.5vw, 56px);
}

.page-hero p {
    max-width: 590px;
    margin: 0;
    color: #667286;
    font-size: 14px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 34px;
    color: #778294;
    font-size: 11px;
}

.breadcrumbs a {
    color: var(--navy);
    font-weight: 700;
}

.breadcrumbs span {
    color: var(--red);
}

/* ABOUT AND PRACTICE PROFILE */

.about-intro-grid h2 {
    font-size: 39px;
}

.accent-rule {
    width: 52px;
    height: 3px;
    margin-top: 28px;
    background: var(--red);
}

.practice-section {
    background: var(--navy);
    color: white;
}

.practice-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 85px;
}

.practice-aside {
    position: sticky;
    top: 130px;
    align-self: start;
}

.practice-aside h2 {
    margin: 0 0 18px;
    color: white;
    font: 800 38px/1.25 var(--display);
    letter-spacing: -0.04em;
}

.practice-aside h2 em {
    color: #ef7b89;
    font-style: normal;
}

.practice-aside p {
    margin-bottom: 27px;
    color: #b8c7dc;
    font-size: 13px;
}

.practice-copy p {
    margin: 0 0 19px;
    color: #d1dbea;
    font-size: 13px;
    line-height: 2;
}

.values-section {
    background: #f7f8fb;
}

.values-section h2 {
    margin-bottom: 38px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.values-grid > div {
    min-width: 0;
    padding: 25px 26px;
    border: 1px solid var(--line);
    background: white;
}

.values-grid span {
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
}

.values-grid h3 {
    margin: 17px 0 8px;
    color: var(--navy);
    font: 800 18px var(--display);
}

.values-grid p {
    margin: 0;
    color: #707b8b;
    font-size: 12px;
    line-height: 1.85;
}

/* FULL SERVICES PAGE */

.services-lead {
    max-width: 690px;
    margin-bottom: 35px;
}

.services-lead > p {
    margin: 17px 0 0;
    color: #6b7688;
    font-size: 14px;
    line-height: 1.9;
}

.service-detail {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr) 45px;
    align-items: start;
    gap: 22px;
    padding: 35px 0;
    border-top: 1px solid var(--line);
    scroll-margin-top: 130px;
}

.detail-number {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    background: #f8edf0;
    color: var(--red);
    font: 800 13px var(--display);
}

.detail-main {
    min-width: 0;
}

.detail-main h2 {
    margin: 0 0 10px;
    color: var(--navy);
    font: 800 24px var(--display);
    letter-spacing: -0.03em;
}

.detail-main > p {
    max-width: 790px;
    margin: 0 0 18px;
    color: #6b7688;
    font-size: 13px;
    line-height: 1.9;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #465164;
    font-size: 12px;
}

.checkmark {
    flex: 0 0 auto;
    color: var(--red);
    font-weight: 800;
}

.detail-link {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    color: var(--red);
    font-size: 18px;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.detail-link:hover {
    border-color: var(--red);
    background: var(--red);
    color: white;
}

.service-note {
    margin-top: 30px;
    padding: 27px 30px;
    border-left: 3px solid var(--red);
    background: #f4f6fa;
}

.service-note strong {
    color: var(--navy);
    font: 800 16px var(--display);
}

.service-note p {
    margin: 5px 0 13px;
    color: #6b7688;
    font-size: 12px;
}

/* PROCEDURES AND BENEFITS */

.benefit-list {
    border-top: 1px solid var(--line);
}

.benefit-row {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) 30px;
    align-items: start;
    gap: 24px;
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
}

.benefit-number {
    padding-top: 4px;
    color: var(--red);
    font: 800 13px var(--display);
}

.benefit-row h3 {
    margin: 0 0 8px;
    color: var(--navy);
    font: 800 20px var(--display);
}

.benefit-row p {
    max-width: 850px;
    margin: 0;
    color: #697487;
    font-size: 13px;
    line-height: 1.95;
}

.benefit-mark {
    color: #c5cbd5;
    font-size: 22px;
}

/* CONTACT PAGE */

.contact-section {
    background: #f8f9fb;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: 65px;
}

.contact-info h2 {
    margin: 0 0 17px;
    color: var(--navy);
    font: 800 38px/1.2 var(--display);
    letter-spacing: -0.04em;
}

.contact-info h2 em {
    color: var(--red);
    font-style: normal;
}

.contact-info > p {
    margin: 0 0 28px;
    color: #6a7587;
    font-size: 13px;
    line-height: 1.9;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid #e2e6ed;
}

.contact-method-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #e7eaf0;
    border-radius: 3px;
    background: white;
    color: var(--red);
    font-size: 19px;
}

.contact-method small,
.contact-method strong {
    display: block;
}

.contact-method small {
    color: #8892a1;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.contact-method strong {
    overflow-wrap: anywhere;
    color: var(--navy);
    font-size: 12px;
}

.contact-arrow {
    margin-left: auto;
    color: var(--red);
}

.contact-note {
    margin-top: 23px;
    padding: 20px 22px;
    background: #eef2f8;
}

.contact-note strong {
    color: var(--navy);
    font: 800 13px var(--display);
}

.contact-note p {
    margin: 6px 0 0;
    color: #6d788a;
    font-size: 11px;
    line-height: 1.8;
}

/* CONTACT FORM */

.contact-form-wrap {
    min-width: 0;
    padding: 34px 35px;
    border: 1px solid #e9edf3;
    background: white;
    box-shadow: 0 12px 40px #0c234c08;
}

.form-heading {
    margin-bottom: 24px;
}

.form-heading .section-label {
    margin-bottom: 8px;
}

.form-heading h2 {
    margin: 0;
    color: var(--navy);
    font: 800 26px var(--display);
}

.contact-form label {
    display: block;
    margin: 0 0 7px;
    color: #344054;
    font-size: 11px;
    font-weight: 800;
}

.contact-form label span {
    color: var(--red);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    display: block;
    width: 100%;
    min-width: 0;
    margin-bottom: 17px;
    padding: 12px 13px;
    border: 1px solid #dfe4ec;
    border-radius: 2px;
    outline: none;
    background: white;
    color: var(--ink);
    font: 12px var(--font);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #8297bb;
    box-shadow: 0 0 0 3px #0c234c0d;
}

.contact-form textarea {
    min-height: 125px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.privacy-note {
    margin: -4px 0 18px;
    color: #8a93a1;
    font-size: 10px;
}

.submit-btn {
    width: 100%;
    justify-content: space-between;
}

.form-alert {
    margin-bottom: 20px;
    padding: 13px 15px;
    border-radius: 3px;
    font-size: 12px;
}

.form-alert.success {
    border: 1px solid #c8ead4;
    background: #eaf7ef;
    color: #20623c;
}

.form-alert.error {
    border: 1px solid #f4c9ce;
    background: #fff0f1;
    color: #9c1c2a;
}

/* FOOTER */

.site-footer {
    padding: 60px 0 0;
    background: var(--navy-dark);
    color: #d1dbea;
}

.footer-main {
    display: grid;
    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(0, 0.65fr)
        minmax(0, 1fr)
        minmax(0, 1fr);
    gap: 35px;
    padding-bottom: 45px;
}

.footer-brand img {
    width: 190px;
    height: 65px;
    padding: 5px 8px;
    border-radius: 2px;
    background: white;
    object-fit: contain;
    object-position: left center;
}

.footer-brand p {
    max-width: 230px;
    margin: 17px 0 0;
    color: #aebed4;
    font-size: 11px;
    line-height: 1.9;
}

.footer-links {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-links h3 {
    margin: 0 0 9px;
    color: white;
    font: 800 13px var(--display);
}

.footer-links a,
.footer-links span {
    overflow-wrap: anywhere;
    color: #b9c7da;
    font-size: 11px;
}

.footer-links a:hover {
    color: white;
}

.footer-cta h3 {
    margin: 0 0 19px;
    color: white;
    font: 700 17px/1.55 var(--display);
}

.footer-cta .section-label {
    margin-bottom: 10px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px 20px;
    min-height: 58px;
    border-top: 1px solid #ffffff19;
    color: #8fa1bb;
    font-size: 10px;
}

.footer-bottom a {
    color: white;
}

/* LAPTOPS */

@media (max-width: 1200px) {
    .nav-wrap {
        gap: 22px;
    }

    .brand {
        width: 185px;
        flex-basis: 185px;
    }

    .main-nav {
        gap: 18px;
    }

    .hero-grid {
        gap: 45px;
    }

    .intro-grid,
    .about-intro-grid,
    .practice-grid {
        gap: 50px;
    }

    .contact-grid {
        gap: 38px;
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px;
    }
}

/* TABLETS AND MOBILE NAVIGATION */

@media (max-width: 1000px) {
    :root {
        --mobile-header-height: 72px;
    }

    .nav-wrap {
        min-height: var(--mobile-header-height);
        gap: 15px;
    }

    .brand {
        width: 175px;
        flex: 0 1 175px;
    }

    .brand img {
        height: 56px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    /*
     * Compact dropdown:
     * no bottom: 0, no full-screen height.
     * The menu height is determined by its contents.
     */

    .main-nav {
        position: fixed;
        top: calc(var(--topbar-height) + var(--mobile-header-height));
        right: 12px;
        bottom: auto;
        left: auto;
        z-index: 10020;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 4px;

        width: min(360px, calc(100vw - 24px));
        height: auto;
        max-height: calc(100vh - var(--topbar-height) - var(--mobile-header-height) - 24px);
        max-height: calc(100dvh - var(--topbar-height) - var(--mobile-header-height) - 24px);

        margin: 0;
        padding: 12px 16px 16px;

        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;

        border: 1px solid var(--line);
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 18px 40px rgba(7, 26, 57, 0.16);

        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);

        transition:
            transform 0.22s ease,
            opacity 0.22s ease,
            visibility 0.22s ease;
    }

    .main-nav.is-open {
        display: flex !important;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .main-nav > a {
        display: flex;
        width: 100%;
        min-height: 46px;
        flex: 0 0 auto;
        align-items: center;
        justify-content: space-between;
        padding: 11px 8px;
        border-bottom: 1px solid var(--line);
        border-radius: 5px;
        color: var(--navy);
        font-size: 13px;
        line-height: 1.5;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .main-nav > a:hover,
    .main-nav > a.active,
    .main-nav > a[aria-current="page"] {
        color: var(--red);
        background: #f8f9fc;
    }

    .main-nav .nav-contact {
        justify-content: center;
        min-height: 46px;
        margin-top: 10px;
        padding: 12px 16px;
        border: 0;
        border-radius: 4px;
        background: var(--red);
        color: white;
    }

    .main-nav .nav-contact:hover,
    .main-nav .nav-contact.active,
    .main-nav .nav-contact[aria-current="page"] {
        background: var(--navy);
        color: white;
    }

    body.menu-open,
    body.nav-open {
        overflow: hidden;
    }

    .hero-grid {
        gap: 35px;
    }

    .hero h1 {
        font-size: clamp(38px, 5vw, 53px);
    }

    .hero-visual {
        min-height: 400px;
        padding: 28px;
    }

    .floating-note {
        right: -12px;
    }

    .service-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-grid {
        gap: 30px;
    }
}

/* MOBILE */

@media (max-width: 760px) {
    :root {
        --mobile-header-height: 72px;
        --topbar-height: 36px;
    }

    html {
        scroll-padding-top: 90px;
    }

    .container {
        width: min(calc(100% - 36px), 560px);
    }

    .topbar-inner {
        min-height: 36px;
        padding-block: 8px;
        font-size: 10px;
    }

    .topbar-inner a {
        overflow-wrap: anywhere;
        font-size: 10px;
    }

    .topbar-inner > span {
        display: none;
    }

    .topbar-inner {
        justify-content: center;
    }

    .nav-wrap {
        min-height: var(--mobile-header-height);
    }

    .brand {
        width: 172px;
        flex-basis: 172px;
    }

    .brand img {
        height: 54px;
    }

    .main-nav {
        top: calc(var(--topbar-height) + var(--mobile-header-height));
        max-height: calc(100vh - var(--topbar-height) - var(--mobile-header-height) - 24px);
        max-height: calc(100dvh - var(--topbar-height) - var(--mobile-header-height) - 24px);
    }

    .hero {
        min-height: auto;
    }

    .hero-grid {
        width: min(calc(100% - 36px), 560px);
        grid-template-columns: minmax(0, 1fr);
        gap: 45px;
        padding-top: 58px;
        padding-bottom: 66px;
    }

    .hero-copy {
        width: 100%;
        max-width: none;
    }

    .hero h1 {
        margin-top: 20px;
        font-size: clamp(39px, 9.5vw, 53px);
        line-height: 1.12;
    }

    .hero-copy > p {
        max-width: 520px;
        font-size: 14px;
    }

    .hero-actions {
        gap: 20px;
        margin-top: 26px;
    }

    .hero-proof {
        margin-top: 32px;
    }

    .hero-visual {
        width: calc(100% - 12px);
        max-width: 480px;
        min-height: 370px;
        justify-self: start;
        margin-right: 12px;
        padding: 28px;
    }

    .hero-visual h2 {
        font-size: clamp(26px, 6vw, 31px);
    }

    .floating-note {
        right: -12px;
        bottom: 20px;
        max-width: calc(100% + 12px);
    }

    .section-pad {
        padding: 68px 0;
    }

    .intro-grid,
    .about-intro-grid,
    .practice-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .intro-grid {
        gap: 23px;
    }

    .section-pad h2,
    .section-heading h2,
    .services-lead h2 {
        font-size: 33px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 28px;
    }

    .service-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-card {
        min-height: 245px;
    }

    .cta-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }

    .cta-band {
        padding: 48px 0;
    }

    .page-hero {
        padding: 55px 0 38px;
    }

    .page-hero h1 {
        font-size: clamp(37px, 8.5vw, 49px);
    }

    .page-hero::after {
        right: -290px;
    }

    .practice-aside {
        position: static;
    }

    .practice-aside h2,
    .contact-info h2 {
        font-size: 34px;
    }

    .values-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-detail {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 15px;
        padding: 27px 0;
    }

    .detail-number {
        width: 40px;
        height: 40px;
    }

    .detail-main h2 {
        font-size: 21px;
    }

    .service-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .detail-link {
        grid-column: 2;
        grid-row: 2;
    }

    .benefit-row {
        grid-template-columns: 35px minmax(0, 1fr);
        gap: 14px;
        padding: 25px 0;
    }

    .benefit-mark {
        display: none;
    }

    .contact-form-wrap {
        padding: 25px 20px;
    }

    .form-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 22px;
    }

    .footer-brand,
    .footer-cta {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        justify-content: flex-start;
        padding: 17px 0;
    }

    .footer-bottom span:nth-child(2) {
        display: none;
    }
}

/* SMALL MOBILE */

@media (max-width: 400px) {
    .container {
        width: calc(100% - 28px);
    }

    .brand {
        width: 155px;
        flex-basis: 155px;
    }

    .brand img {
        height: 50px;
    }

    .menu-toggle {
        width: 43px;
        height: 43px;
    }

    .main-nav {
        right: 10px;
        width: calc(100vw - 20px);
        padding-right: 14px;
        padding-left: 14px;
    }

    .hero-grid {
        width: calc(100% - 28px);
    }

    .hero h1 {
        font-size: clamp(36px, 10vw, 43px);
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .hero-visual {
        min-height: 355px;
        padding: 24px 21px;
    }

    .hero-visual h2 {
        font-size: 27px;
    }

    .visual-bottom {
        gap: 7px;
        font-size: 7px;
    }

    .floating-note {
        right: -8px;
        max-width: calc(100% + 8px);
        gap: 9px;
        padding: 11px;
    }

    .floating-note strong {
        font-size: 10px;
    }

    .floating-note small {
        font-size: 8px;
    }

    .service-detail {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 12px;
    }

    .detail-number {
        width: 34px;
        height: 34px;
        font-size: 11px;
    }

    .service-note {
        padding: 22px 18px;
    }

    .contact-form-wrap {
        padding: 23px 16px;
    }

    .footer-main {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-brand,
    .footer-cta {
        grid-column: auto;
    }
}

/* ACCESSIBILITY */

:focus-visible {
    outline: 3px solid #7398d5;
    outline-offset: 3px;
}

.menu-toggle:focus-visible {
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
