/* ==========================================================
   SCHWARTZ & SEIFERT CPAs, PLLC — Main Stylesheet
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   ========================================================== */

/* ----------------------------------------------------------
   DESIGN TOKENS
   ---------------------------------------------------------- */
:root {
    --forest: #182a1e;
    --pine: #2c4735;
    --fern: #4e7a5e;
    --sage: #8cb4a0;
    --cream: #f4ede0;
    --parchment: #ede5d5;
    --gold: #c9a24e;
    --gold-light: #e8ca80;
    --ember: #bf6035;
    --ember-hover: #d46b3a;
    --fog: #faf8f3;
    --white: #ffffff;
    --ink: #111a14;
    --muted: #5c6e62;
    --line: rgba(24, 42, 30, .12);
    --line-med: rgba(24, 42, 30, .20);
    --shadow-xs: 0 2px 8px rgba(18, 38, 26, .06);
    --shadow-sm: 0 4px 20px rgba(18, 38, 26, .09);
    --shadow: 0 12px 48px rgba(18, 38, 26, .14);
    --shadow-lg: 0 24px 72px rgba(18, 38, 26, .18);
    --shadow-xl: 0 40px 96px rgba(18, 38, 26, .22);
    --radius-sm: 12px;
    --radius: 22px;
    --radius-lg: 32px;
    --radius-pill: 999px;
    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ----------------------------------------------------------
   RESET & BASE
   ---------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--fog);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
    background: none;
    border: none;
}

/* ----------------------------------------------------------
   TYPOGRAPHY
   ---------------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: .93;
    letter-spacing: -.03em;
}

h1 {
    font-size: clamp(3rem, 6.5vw, 6.5rem);
}

h2 {
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    line-height: .97;
}

h3 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.12;
}

p {
    line-height: 1.68;
}

em {
    font-style: italic;
    color: var(--gold);
}

/* ----------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 14px 28px;
    border: 0;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .015em;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

    .button:hover div:not(.light) {
        transform: translateY(0);
        box-shadow: var(--shadow);
        color: var(--white);
    }

    .button:active {
        transform: translateY(0);
        box-shadow: none;
    }

.primary {
    background: var(--ember);
    color: var(--cream);
}

    .primary:hover {
        background: var(--ember-hover);
        color: var(--cream)
    }

.ghost {
    background: rgba(255,255,255,.13);
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,.4);
}

    .ghost:hover {
        background: rgba(255,255,255,.22);
    }

.light {
    background: var(--white);
    color: var(--ink);
}

.full {
    width: 100%;
}

/* ----------------------------------------------------------
   TOPBAR
   ---------------------------------------------------------- */


.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

    .nav-links li {
        position: relative;
    }

    .nav-links a {
        text-decoration: none;
        color: inherit;
        display: block;
    }

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    background: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    z-index: 999;
}

    .dropdown-content li a {
        padding: 0.75rem 1rem;
        color: #222;
        white-space: nowrap;
    }

        .dropdown-content li a:hover,
        .dropdown-content li a:focus {
            background: #f4f4f4;
        }

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    padding: 18px clamp(18px, 4vw, 56px);
    background: rgba(250,248,243,.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s ease;
}

    .topbar.scrolled {
        box-shadow: var(--shadow-sm);
    }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -.025em;
    color: var(--forest);
    flex-shrink: 0;
    transition: opacity .2s;
}

    .brand:hover {
        opacity: .82;
    }

    .brand img {
        height: 3rem;
        object-fit: contain;
    }

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

    .nav a {
        display: inline-flex;
        align-items: center;
        padding: 8px 9px;
        font-size: .88rem;
        font-weight: 500;
        color: var(--muted);
        transition: color .2s ease, background .2s ease;
        white-space: nowrap;
    }

        .nav a:hover {
            color: var(--forest);
            text-decoration: underline;
        }

.nav-cta {
    background: var(--forest) !important;
    color: var(--white) !important;
    font-weight: 700 !important;
    margin-left: 6px;
}

    .nav-cta:hover {
        background: var(--pine) !important;
    }

.nav-lang {
    font-size: .8rem !important;
    font-weight: 800 !important;
    letter-spacing: .04em;
}

.menu-button {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1.5px solid var(--line);
    background: var(--white);
    border-radius: var(--radius-pill);
    color: var(--ink);
    transition: background .2s ease;
    touch-action: manipulation;
    flex-shrink: 0;
}

    .menu-button:hover {
        background: var(--cream);
    }

.menu-bars, .menu-bars::before, .menu-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: var(--radius-pill);
    transition: transform .22s ease, opacity .22s ease;
    content: '';
}

.menu-bars {
    position: relative;
}

    .menu-bars::before, .menu-bars::after {
        position: absolute;
        left: 0;
    }

    .menu-bars::before {
        top: -6px;
    }

    .menu-bars::after {
        top: 6px;
    }

body.nav-open .menu-bars {
    background: transparent;
}

    body.nav-open .menu-bars::before {
        transform: translateY(6px) rotate(45deg);
    }

    body.nav-open .menu-bars::after {
        transform: translateY(-6px) rotate(-45deg);
    }

.menu-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ----------------------------------------------------------
   HERO
   ---------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background: var(--forest);
    color: var(--white);
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-photo {
    position: absolute;
    inset: 0;
    background: var(--photo) center/cover no-repeat;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1s ease, transform 7s ease;
}

    .hero-photo.active {
        opacity: 1;
        transform: scale(1);
    }

.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(108deg, rgba(18,38,26,.93) 0%, rgba(18,38,26,.80) 44%, rgba(18,38,26,.30) 100%);
}

.hero-shell {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 52px;
    align-items: center;
    padding: clamp(90px,10vw,120px) clamp(20px,5vw,72px) clamp(60px,8vw,100px);
    max-width: 1400px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gold-light);
    opacity: .9;
}

.eyebrow-line {
    display: block;
    width: 36px;
    height: 1.5px;
    background: var(--gold);
    flex-shrink: 0;
}

.hero-slides {
    display: grid;
    margin-bottom: 34px;
}

.hero-message {
    grid-area: 1/1;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .65s ease, transform .65s ease;
    pointer-events: none;
}

    .hero-message.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .hero-message h1 {
        color: var(--white);
        margin-bottom: 18px;
    }

    .hero-message p {
        max-width: 620px;
        font-size: 1.1rem;
        color: rgba(255,255,255,.78);
        line-height: 1.68;
    }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 34px;
}

.slide-controls {
    display: flex;
    gap: 8px;
}

.slide-dot {
    width: 36px;
    height: 4px;
    border: 0;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,.28);
    cursor: pointer;
    transition: background .35s ease, width .35s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

    .slide-dot.active {
        background: var(--gold);
        width: 56px;
    }

    .slide-dot:hover:not(.active) {
        background: rgba(255,255,255,.52);
    }

/* Hero panel */
.hero-panel {
    background: rgba(250,248,243,.97);
    color: var(--ink);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255,255,255,.55);
    overflow: hidden;
}

.panel-header {
    padding: 28px 28px 20px;
    border-bottom: 1px solid var(--line);
}

.panel-label {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: var(--cream);
    color: var(--ember);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.panel-header h2 {
    font-size: clamp(1.5rem,2.5vw,2rem);
    line-height: 1.05;
    color: var(--forest);
    margin-bottom: 6px;
}

.panel-header p {
    font-size: .87rem;
    color: var(--muted);
    margin: 0;
}

.panel-form {
    padding: 20px 28px;
}

.field-group {
    margin-bottom: 14px;
}

    .field-group label {
        display: block;
        font-size: .8rem;
        font-weight: 700;
        color: var(--forest);
        margin-bottom: 6px;
        letter-spacing: .01em;
    }

input, select, textarea {
    width: 100%;
    border: 1.5px solid var(--line-med);
    background: var(--white);
    color: var(--ink);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: .9rem;
    line-height: 1.5;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
    -webkit-appearance: none;
    appearance: none;
}

    input:focus, select:focus, textarea:focus {
        border-color: var(--ember);
        box-shadow: 0 0 0 4px rgba(191,96,53,.13);
    }

    input::placeholder, textarea::placeholder {
        color: #aab4ad;
    }

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235c6e62' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

.panel-footer {
    padding: 16px 28px 22px;
    border-top: 1px solid var(--line);
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .87rem;
    font-weight: 700;
    color: var(--ember);
    transition: opacity .2s;
}

    .phone-link:hover {
        opacity: .75;
    }

/* ----------------------------------------------------------
   TRUST BAR
   ---------------------------------------------------------- */
.trust-bar {
    background: var(--forest);
    color: var(--white);
    padding: 18px clamp(18px,5vw,72px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

    .trust-bar::-webkit-scrollbar {
        display: none;
    }

.trust-bar-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    white-space: nowrap;
}

.trust-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}

    .trust-item strong {
        font-size: .88rem;
        font-weight: 700;
        color: var(--gold-light);
    }

    .trust-item span {
        font-size: .78rem;
        color: rgba(255,255,255,.55);
    }

.trust-divider {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,.18);
    flex-shrink: 0;
}

/* ----------------------------------------------------------
   SECTION SCAFFOLDING
   ---------------------------------------------------------- */
.section {
    padding: clamp(72px,9vw,72px) clamp(18px,5vw,72px);
}

.section-tight {
    padding: clamp(48px,6vw,80px) clamp(18px,5vw,72px);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: var(--ember);
    margin-bottom: 16px;
}

    .section-kicker::before {
        content: '';
        display: block;
        width: 28px;
        height: 2px;
        background: var(--ember);
        flex-shrink: 0;
    }

.kicker-light {
    color: var(--gold-light);
}

    .kicker-light::before {
        background: var(--gold);
    }

.section-intro {
    max-width: 1180px;
    margin: 0 auto 56px;
}

    .section-intro.split {
        display: grid;
        grid-template-columns: 1.15fr .85fr;
        gap: 44px;
        align-items: end;
    }

    .section-intro.center {
        text-align: center;
        max-width: 780px;
    }

    .section-intro h2 {
        margin-bottom: 0;
    }

.section-desc {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.72;
    align-self: end;
    padding-bottom: 2px;
}

.center-desc {
    max-width: 600px;
    margin: 14px auto 0;
}

/* ----------------------------------------------------------
   SERVICES
   ---------------------------------------------------------- */
.service-board {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 18px;
    max-width: 1180px;
    margin: 0 auto;
}

.service-large {
    grid-column: span 3;
}

.service-num {
    display: block;
    font-family: var(--font-display);
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.06em;
    color: var(--gold);
    opacity: .65;
    margin-bottom: 10px;
}

.service-large .service-num {
    font-size: 5.5rem;
    color: var(--gold-light);
    opacity: .9;
}

.photo-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    color: var(--white);
    display: flex;
    align-items: flex-end;
    background: linear-gradient(180deg,rgba(18,38,26,.04) 0%,rgba(18,38,26,.88) 100%), var(--card-photo) center/cover, var(--forest);
    box-shadow: var(--shadow);
    min-height: 320px;
    transition: transform .4s ease;
}

    .photo-card:hover {
        transform: translateY(0px);
    }

.photo-card-inner {
    padding: 32px;
    position: relative;
    z-index: 1;
    width: 100%;
}

    .photo-card-inner h3 {
        color: var(--white);
        margin-bottom: 8px;
    }

    .photo-card-inner p {
        color: rgba(255,255,255,.78);
        font-size: .95rem;
        margin-bottom: 16px;
    }

.card-cta {
    font-size: .87rem;
    font-weight: 700;
    color: var(--gold-light);
    transition: color .2s;
}

    .card-cta:hover {
        color: var(--white);
    }

.service-tile {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
}

    .service-tile:hover {
        transform: translateY(0px);
        box-shadow: var(--shadow);
    }

    .service-tile h3 {
        color: var(--forest);
        margin-bottom: 8px;
    }

    .service-tile p {
        color: var(--muted);
        font-size: .92rem;
        flex: 1;
        margin-bottom: 16px;
    }

    .service-tile.accent {
        background: var(--cream);
    }

.dark-tile {
    background: var(--forest);
    color: var(--white);
}

    .dark-tile h3 {
        color: var(--white);
    }

    .dark-tile p {
        color: rgba(255,255,255,.72);
    }

.tile-link {
    font-size: .86rem;
    font-weight: 700;
    color: var(--ember);
    margin-top: auto;
    transition: opacity .2s;
}

    .tile-link:hover {
        opacity: .72;
    }

.tile-link-light {
    color: var(--gold-light);
}

/* Services listing refining*/
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .35s ease, box-shadow .35s ease;
}

/* ----------------------------------------------------------
   TEAM
   ---------------------------------------------------------- */
.team {
    background: var(--cream);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    max-width: 980px;
    margin: 0 auto;
    align-items: end;
}

.person-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .35s ease, box-shadow .35s ease;
    flex: 1;
}

    .person-card:hover {
        transform: translateY(0px);
        box-shadow: var(--shadow);
    }

.person-photo {
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--parchment);
}

    .person-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
        transition: transform .55s ease;
    }

.person-card:hover .person-photo img {
    transform: scale(1.04);
}

.person-info {
    padding: 20px 20px 18px;
}

    .person-info h3 {
        font-size: clamp(1.1rem,1.6vw,1.3rem);
        color: var(--forest);
        margin-bottom: 4px;
    }

.person-role {
    font-size: .84rem;
    font-weight: 600;
    color: var(--muted);
    margin: 0;
}

/* ----------------------------------------------------------
   INSIGHTS
   ---------------------------------------------------------- */
.insights {
    background: var(--fog);
}

.insight-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1180px;
    margin: 0 auto;
}

.featured-insight {
    min-height: 520px;
}

.article-tag {
    display: inline-flex;
    background: var(--gold);
    color: var(--ink);
    border-radius: var(--radius-pill);
    padding: 6px 12px;
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.resource-hub {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.hub-toolbar {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 10px;
    margin-bottom: 18px;
}

.search-wrap {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    z-index: 1;
}

.search-wrap input {
    padding-left: 38px;
}

.resource-list {
    display: grid;
    gap: 10px;
    overflow-y: auto;
    max-height: 428px;
    padding-right: 10px;
}

.resource-item {
    display: grid;
    gap: 4px;
    padding: 15px 16px;
    background: var(--fog);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink);
    transition: background .2s ease, transform .2s ease;
}

    .resource-item:hover {
        background: var(--cream);
        transform: translateX(0px);
    }

    .resource-item[hidden] {
        display: none;
    }

.resource-tag {
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .11em;
    color: var(--ember);
}

.resource-item strong {
    font-size: .92rem;
    font-weight: 700;
    color: var(--forest);
    line-height: 1.35;
}

.resource-item em {
    font-style: normal;
    font-size: .82rem;
    font-weight: 700;
    color: var(--fern);
}

/* ----------------------------------------------------------
   PORTAL
   ---------------------------------------------------------- */
.portal-section {
    background: var(--forest);
    color: var(--white);
}

.portal-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.portal-content h2 {
    color: var(--white);
    margin-bottom: 14px;
    line-height: .97;
}

.portal-content p {
    color: rgba(255,255,255,.72);
    font-size: 1.05rem;
    line-height: 1.68;
    margin-bottom: 28px;
}

.portal-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.portal-feature-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: var(--radius-sm);
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: rgba(255,255,255,.8);
    font-size: .84rem;
    font-weight: 700;
    transition: background .22s ease;
}

    .portal-feature-card svg {
        color: var(--gold-light);
    }

/* ----------------------------------------------------------
   CONTACT
   ---------------------------------------------------------- */
.contact {
    background: var(--parchment);
}

.contact-card {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 44px;
    max-width: 1100px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(28px,5vw,56px);
    box-shadow: var(--shadow);
}

.contact-copy h2 {
    color: var(--forest);
    margin-bottom: 12px;
}

.contact-copy > p {
    color: var(--muted);
    font-size: .97rem;
    margin-bottom: 28px;
}

.contact-lines {
    display: grid;
    gap: 14px;
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .93rem;
    font-weight: 600;
    color: var(--forest);
    transition: color .2s;
}

    .contact-line:is(a):hover {
        color: var(--ember);
    }

    .contact-line svg {
        color: var(--ember);
        flex-shrink: 0;
    }

.contact-address {
    cursor: default;
}

.contact-form {
    background: var(--fog);
    border-radius: var(--radius);
    padding: 28px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.optional {
    font-weight: 400;
    color: var(--muted);
    font-size: .8em;
}

.form-note {
    text-align: center;
    font-size: .82rem;
    color: var(--muted);
    margin-top: 12px;
    margin-bottom: 0;
}

/* ----------------------------------------------------------
   FOOTER
   ---------------------------------------------------------- */
.footer {
    background: var(--ink);
    color: var(--white);
    padding: clamp(40px,5vw,64px) clamp(18px,5vw,72px) 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.1fr 1.5fr;
    gap: 48px;
    max-width: 1180px;
    margin: 0 auto;
    padding-bottom: clamp(40px,5vw,64px);
}

.footer-brand .brand {
    color: var(--white);
    margin-bottom: 12px;
}

.footer-logo img {
    filter: brightness(0) invert(1);
    opacity: .7;
}

.footer-brand p {
    font-size: .87rem;
    color: rgba(255,255,255,.48);
    line-height: 1.68;
    max-width: 280px;
    margin: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 24px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col-head {
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: rgba(255,255,255,.42);
    margin-bottom: 4px;
}

.footer-col a, .footer-col span {
    font-size: .87rem;
    color: rgba(255,255,255,.6);
    font-weight: 400;
    transition: color .2s;
    line-height: 1.5;
}

    .footer-col a:hover {
        color: var(--white);
    }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,.1);
}

    .footer-bottom p {
        font-size: .8rem;
        color: rgba(255,255,255,.35);
        margin: 0;
    }

.back-top {
    font-size: .8rem;
    color: rgba(255,255,255,.45);
    font-weight: 600;
    transition: color .2s;
}

    .back-top:hover {
        color: var(--white);
    }

/* ----------------------------------------------------------
   RESPONSIVE — TABLET (≤1024px)
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-shell {
        grid-template-columns: 1fr 380px;
        gap: 36px;
    }

    .service-board {
        grid-template-columns: 1fr 1fr;
    }

    .service-large {
        grid-row: span 1;
        min-height: 380px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-links {
        grid-template-columns: repeat(3,1fr);
    }
}

/* ----------------------------------------------------------
   RESPONSIVE — NAV BREAK (≤980px)
   ---------------------------------------------------------- */
@media (max-width: 980px) {
    .menu-button {
        display: inline-flex;
    }

    .nav {
        position: absolute;
        top: 76px;
        left: 16px;
        right: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: var(--white);
        padding: 12px;
        border-radius: 20px;
        box-shadow: var(--shadow-xl);
        border: 1px solid var(--line);
        display: none;
        z-index: 99;
    }

    body.nav-open .nav {
        display: flex;
    }

    body.nav-open {
        overflow-x: hidden;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 4px;
    }

    .nav a {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 16px;
        border-radius: 14px;
        font-size: .93rem;
    }

    .nav-cta {
        justify-content: center;
    }

    .hero-shell {
        grid-template-columns: 1fr;
        gap: 28px;
        align-items: start;
        padding-top: 96px;
        min-height: auto;
    }

    .hero {
        min-height: auto;
    }

    .hero-panel {
        max-width: 540px;
    }

    .section-intro.split {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .insight-layout {
        grid-template-columns: 1fr;
    }

    .featured-insight {
        min-height: 400px;
    }

    .portal-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}

/* ----------------------------------------------------------
   RESPONSIVE — MOBILE (≤768px)
   ---------------------------------------------------------- */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .hero-shell {
        padding-bottom: 56px;
    }

    .hero-message h1 {
        font-size: clamp(2.6rem,9vw,3.5rem);
    }

    .service-board {
        grid-template-columns: 1fr;
    }

    .service-large {
        min-height: 360px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .hub-toolbar {
        grid-template-columns: 1fr;
    }

    .portal-feature-grid {
        grid-template-columns: repeat(4,1fr);
    }

    .footer-inner {
        gap: 28px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
    /* Prevent iOS input zoom */
    input, select, textarea {
        font-size: 16px;
    }
}

/* ----------------------------------------------------------
   RESPONSIVE — SMALL MOBILE (≤480px)
   ---------------------------------------------------------- */
@media (max-width: 480px) {
    .topbar {
        padding: 12px 16px;
    }

    .brand img {
        
        height: 40px;
    }

    .brand span {
        font-size: 1rem;
        max-width: 160px;
        line-height: 1.2;
    }

    h2 {
        font-size: clamp(1.9rem,9vw,2.5rem);
    }

    .hero-actions {
        flex-direction: column;
    }

        .hero-actions .button {
            width: 100%;
        }

    .photo-card-inner {
        padding: 24px;
    }

    .contact-form {
        padding: 20px;
    }

    .contact-card {
        border-radius: var(--radius);
    }

    .portal-feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .trust-bar-inner {
        gap: 18px;
    }
}

/* ----------------------------------------------------------
   TAP HIGHLIGHTS
   ---------------------------------------------------------- */
button, a, input, select, textarea {
    -webkit-tap-highlight-color: rgba(191,96,53,.15);
}

/* ----------------------------------------------------------
   REDUCED MOTION
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal-item {
        opacity: 1 !important;
        transform: none !important;
    }
}


/* ───----------------------------------------- 
   HOW IT WORKS SECTION
   ──────────────────────────────────────────── */

.how-it-works {
    background: var(--parchment);
}

    /* Intro overrides for this section */
    .how-it-works .section-intro.center {
        margin-bottom: 52px;
    }

/* Two-track grid */
.hiw-tracks {
    display: flex;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1180px;
    margin: 0 auto;
    align-items: start;
}

/* Track card base */
.hiw-track {
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hiw-track-light {
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.hiw-track-dark {
    background: var(--forest);
    color: var(--white);
}

/* Track header */
.hiw-track-head {
    padding: 32px 36px 28px;
}

.hiw-track-light .hiw-track-head {
    border-bottom: 1px solid var(--line);
}

.hiw-track-dark .hiw-track-head {
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.hiw-service-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hiw-tag-light {
    background: var(--cream);
    color: var(--ember);
}

.hiw-tag-dark {
    background: rgba(201,162,78,.18);
    color: var(--gold-light);
}

.hiw-track-head h3 {
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    margin-bottom: 10px;
    line-height: 1.05;
}

.hiw-track-light .hiw-track-head h3 {
    color: var(--forest);
}

.hiw-track-dark .hiw-track-head h3 {
    color: var(--white);
}

.hiw-track-head p {
    font-size: .93rem;
    line-height: 1.65;
    margin: 0;
}

.hiw-track-light .hiw-track-head p {
    color: var(--muted);
}

.hiw-track-dark .hiw-track-head p {
    color: rgba(255,255,255,.65);
}

/* Steps container */
.hiw-steps {
    padding: 28px 36px 36px;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

/* Individual step */
.hiw-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    position: relative;
}

    /* Vertical connector line between steps */
    .hiw-step:not(:last-child) .hiw-num-col::after {
        content: '';
        display: block;
        width: 1.5px;
        flex: 1;
        margin: 4px auto 0;
        min-height: 24px;
    }

.hiw-track-light .hiw-step:not(:last-child) .hiw-num-col::after {
    background: var(--line);
}

.hiw-track-dark .hiw-step:not(:last-child) .hiw-num-col::after {
    background: rgba(255,255,255,.14);
}

/* Number column */
.hiw-num-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 3px;
}

.hiw-num {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.04em;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
}

.hiw-track-light .hiw-num {
    background: var(--cream);
    color: var(--ember);
}

.hiw-track-dark .hiw-num {
    background: rgba(201,162,78,.18);
    color: var(--gold-light);
}

/* Step text */
.hiw-step-body {
    padding-bottom: 28px;
}

.hiw-step:last-child .hiw-step-body {
    padding-bottom: 0;
}

.hiw-step-body h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.15;
    margin-bottom: 5px;
}

.hiw-track-light .hiw-step-body h4 {
    color: var(--forest);
}

.hiw-track-dark .hiw-step-body h4 {
    color: var(--white);
}

.hiw-step-body p {
    font-size: .88rem;
    line-height: 1.62;
    margin: 0;
}

.hiw-track-light .hiw-step-body p {
    color: var(--muted);
}

.hiw-track-dark .hiw-step-body p {
    color: rgba(255,255,255,.62);
}

/* Outcome badge at end of each track */
.hiw-outcome {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: .86rem;
    font-weight: 700;
    margin-top: 4px;
}

    .hiw-outcome svg {
        flex-shrink: 0;
    }

.hiw-track-light .hiw-outcome {
    background: #eaf4ee;
    color: #1a5c30;
}

    .hiw-track-light .hiw-outcome svg {
        color: #29a355;
    }

.hiw-track-dark .hiw-outcome {
    background: rgba(201,162,78,.14);
    color: var(--gold-light);
}

    .hiw-track-dark .hiw-outcome svg {
        color: var(--gold);
    }

/* Bottom CTA strip */
.hiw-cta {
    max-width: 1180px;
    margin: 20px auto 0;
    background: var(--forest);
    border-radius: var(--radius);
    padding: 32px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: var(--shadow);
}

.hiw-cta-copy h3 {
    font-size: clamp(1.3rem, 2.2vw, 1.75rem);
    color: var(--white);
    margin-bottom: 6px;
    line-height: 1.1;
}

.hiw-cta-copy p {
    font-size: .92rem;
    color: rgba(255,255,255,.65);
    margin: 0;
}

.hiw-cta-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .hiw-tracks {
        grid-template-columns: 1fr;
    }

    .hiw-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .hiw-cta-actions {
        flex-direction: row;
        width: 100%;
    }

        .hiw-cta-actions .button {
            flex: 1;
        }
}

@media (max-width: 520px) {
    .hiw-track-head {
        padding: 24px 22px 20px;
    }

    .hiw-steps {
        padding: 22px 22px 28px;
    }

    .hiw-cta {
        padding: 24px 20px;
    }

    .hiw-cta-actions {
        flex-direction: column;
    }
}
/* ─── How It Works ──────────────────────────────────────────── */

.how-it-works {
    background: var(--parchment);
}

    .how-it-works .section-intro.center {
        margin-bottom: 52px;
    }

/* 2 × 2 card grid */
.hiw-tracks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1180px;
    margin: 0 auto;
    align-items: end;
}

/* ── Card shells ─────────────────────────────────────────────── */
.hiw-track {
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hiw-track-light {
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.hiw-track-cream {
    background: var(--cream);
    border: 1px solid var(--parchment);
    box-shadow: var(--shadow-sm);
}

.hiw-track-dark {
    background: var(--forest);
    color: var(--white);
}

/* ── Card header ─────────────────────────────────────────────── */
.hiw-track-head {
    padding: 32px 36px 28px;
}

.hiw-track-light .hiw-track-head,
.hiw-track-cream .hiw-track-head {
    border-bottom: 1px solid var(--line);
}

.hiw-track-dark .hiw-track-head {
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.hiw-service-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hiw-tag-light {
    background: var(--cream);
    color: var(--ember);
}

.hiw-tag-cream {
    background: rgba(201,96,53,.1);
    color: var(--ember);
}

.hiw-tag-dark {
    background: rgba(201,162,78,.18);
    color: var(--gold-light);
}

.hiw-track-head h3 {
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    margin-bottom: 10px;
    line-height: 1.05;
}

.hiw-track-light .hiw-track-head h3,
.hiw-track-cream .hiw-track-head h3 {
    color: var(--forest);
}

.hiw-track-dark .hiw-track-head h3 {
    color: var(--white);
}

.hiw-track-head p {
    font-size: .92rem;
    line-height: 1.65;
    margin: 0;
}

.hiw-track-light .hiw-track-head p,
.hiw-track-cream .hiw-track-head p {
    color: var(--muted);
}

.hiw-track-dark .hiw-track-head p {
    color: rgba(255,255,255,.65);
}

/* ── Steps list ──────────────────────────────────────────────── */
.hiw-steps {
    padding: 28px 36px 36px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hiw-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    position: relative;
}

    /* Vertical connector between steps */
    .hiw-step:not(:last-child) .hiw-num-col::after {
        content: '';
        display: block;
        width: 1.5px;
        flex: 1;
        margin: 4px auto 0;
        min-height: 22px;
    }

.hiw-track-light .hiw-step:not(:last-child) .hiw-num-col::after,
.hiw-track-cream .hiw-step:not(:last-child) .hiw-num-col::after {
    background: var(--line);
}

.hiw-track-dark .hiw-step:not(:last-child) .hiw-num-col::after {
    background: rgba(255,255,255,.14);
}

/* Step number badge */
.hiw-num-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 3px;
}

.hiw-num {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.04em;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
}

.hiw-track-light .hiw-num {
    background: var(--cream);
    color: var(--ember);
}

.hiw-track-cream .hiw-num {
    background: rgba(201,96,53,.12);
    color: var(--ember);
}

.hiw-track-dark .hiw-num {
    background: rgba(201,162,78,.18);
    color: var(--gold-light);
}

/* Step text */
.hiw-step-body {
    padding-bottom: 26px;
}

.hiw-step:last-child .hiw-step-body {
    padding-bottom: 0;
}

.hiw-step-body h4 {
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.15;
    margin-bottom: 5px;
}

.hiw-track-light .hiw-step-body h4,
.hiw-track-cream .hiw-step-body h4 {
    color: var(--forest);
}

.hiw-track-dark .hiw-step-body h4 {
    color: var(--white);
}

.hiw-step-body p {
    font-size: .88rem;
    line-height: 1.62;
    margin: 0;
}

.hiw-track-light .hiw-step-body p,
.hiw-track-cream .hiw-step-body p {
    color: var(--muted);
}

.hiw-track-dark .hiw-step-body p {
    color: rgba(255,255,255,.62);
}

/* Optional note inside a step (e.g. "if applicable") */
.hiw-step-note {
    display: inline-block;
    margin-top: 4px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hiw-track-light .hiw-step-note,
.hiw-track-cream .hiw-step-note {
    color: var(--sage);
}

.hiw-track-dark .hiw-step-note {
    color: rgba(255,255,255,.38);
}

/* ── Outcome badge ───────────────────────────────────────────── */
.hiw-outcome {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: .86rem;
    font-weight: 700;
    margin-top: 4px;
    line-height: 1.4;
}

    .hiw-outcome svg {
        flex-shrink: 0;
    }

.hiw-track-light .hiw-outcome,
.hiw-track-cream .hiw-outcome {
    background: #eaf4ee;
    color: #1a5c30;
}

    .hiw-track-light .hiw-outcome svg,
    .hiw-track-cream .hiw-outcome svg {
        color: #29a355;
    }

.hiw-track-dark .hiw-outcome {
    background: rgba(201,162,78,.14);
    color: var(--gold-light);
}

    .hiw-track-dark .hiw-outcome svg {
        color: var(--gold);
    }

/* ── Bottom CTA bar ──────────────────────────────────────────── */
.hiw-cta {
    max-width: 1180px;
    margin: 20px auto 0;
    background: var(--forest);
    border-radius: var(--radius);
    padding: 32px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: var(--shadow);
}

.hiw-cta-copy h3 {
    font-size: clamp(1.3rem, 2.2vw, 1.75rem);
    color: var(--white);
    margin-bottom: 6px;
    line-height: 1.1;
}

.hiw-cta-copy p {
    font-size: .92rem;
    color: rgba(255,255,255,.65);
    margin: 0;
}

.hiw-cta-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 920px) {
    .hiw-tracks {
        grid-template-columns: 1fr;
    }

    .hiw-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .hiw-cta-actions {
        flex-direction: row;
        width: 100%;
    }

        .hiw-cta-actions .button {
            flex: 1;
        }
}

@media (max-width: 520px) {
    .hiw-track-head {
        padding: 24px 22px 20px;
    }

    .hiw-steps {
        padding: 22px 22px 28px;
    }

    .hiw-cta {
        padding: 24px 20px;
    }

    .hiw-cta-actions {
        flex-direction: column;
    }
}

/* ---- Page hero (single-column variant of .hero) ---- */
.page-hero {
    position: relative;
    background: linear-gradient(120deg, var(--forest) 0%, var(--pine) 30%);
    color: var(--white);
    overflow: hidden;
}

#bookkeeping-hero {
    background-image: url('assets/a2.jpg');
    background-size: auto;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 90% at 85% 15%, rgba(201,162,78,.18), transparent 60%);
    pointer-events: none;
}

.page-hero-shell {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(88px,11vw,132px) clamp(20px,5vw,72px) clamp(64px,8vw,96px);
    text-align: center;
}

.page-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto 22px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-light);
}

    .page-hero-eyebrow .eyebrow-line {
        width: 32px;
        height: 1.5px;
        background: var(--gold);
        display: inline-block;
    }

.page-hero h1 {
    color: var(--white);
    margin-bottom: 18px;
}

.page-hero-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    color: var(--gold-light);
    max-width: 640px;
    margin: 0 auto 28px;
    line-height: 1.4;
}

.page-hero-lead {
    max-width: 680px;
    margin: 0 auto 36px;
    font-size: 1.12rem;
    line-height: 1.72;
    color: rgba(255,255,255,.8);
}

.page-hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

/* ---- Simple content intro ---- */
.intro-block {
    max-width: 820px;
    margin: 0 auto;
}

    .intro-block p {
        color: var(--muted);
        font-size: 1.04rem;
        line-height: 1.75;
        margin-bottom: 1.15em;
    }

        .intro-block p:last-child {
            margin-bottom: 0;
        }

        .intro-block p strong {
            color: var(--forest);
        }

/* ---- Commitment tiles (flexible column count) ---- */
.commitment-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
}

    .commitment-grid.cols-4 {
        grid-template-columns: repeat(4,1fr);
        max-width: 1180px;
    }

.commitment-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-pill);
    background: var(--cream);
    color: var(--ember);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

/* ---- Full service tile grid (N-up) ---- */
.tax-services-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
    max-width: 1180px;
    margin: 0 auto;
}

/* ---- Entity / industry pill-card grid ---- */
.entity-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 14px;
    max-width: 1140px;
    margin: 0 auto;
}

.entity-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    box-shadow: var(--shadow-xs);
    font-size: .92rem;
    font-weight: 700;
    color: var(--forest);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .entity-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-sm);
    }

.entity-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-pill);
    background: var(--cream);
    color: var(--ember);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.entity-card svg {
    width: 17px;
    height: 17px;
}

/* Dark variant for use on forest-background sections */
.entity-card.dark {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.14);
    color: var(--white);
}

    .entity-card.dark .entity-icon {
        background: rgba(201,162,78,.18);
        color: var(--gold-light);
    }

/* ---- Two-column planning layout ---- */
.planning-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

    .planning-layout.reverse {
        grid-template-columns: 1.1fr .9fr;
    }

        .planning-layout.reverse .planning-list-card {
            order: -1;
        }

.planning-copy p {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.75;
    margin-bottom: 1.1em;
}

    .planning-copy p:last-child {
        margin-bottom: 0;
    }

.planning-list-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 36px;
    box-shadow: var(--shadow-sm);
}

    .planning-list-card h3 {
        color: var(--forest);
        margin-bottom: 14px;
    }

/* ---- Dark section wrapper (reused for industries / benefits) ---- */
.dark-section {
    background: var(--forest);
    color: var(--white);
}

    .dark-section .section-intro.center h2 {
        color: var(--white);
    }

    .dark-section .section-intro.center .center-desc {
        color: rgba(255,255,255,.68);
    }

/* ---- Person bio + placeholder photo (team section) ---- */
.person-photo.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--parchment) 0%, var(--sage) 140%);
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: var(--forest);
    font-weight: 700;
}

.person-bio {
    font-size: .87rem !important;
    color: var(--muted);
    line-height: 1.65;
    margin-top: 10px;
}

.collab-note {
    max-width: 820px;
    margin: 40px auto 0;
    text-align: center;
    color: var(--muted);
    font-size: .98rem;
    line-height: 1.72;
}

/* ---- Final CTA band ---- */
.final-cta {
    background: linear-gradient(120deg, var(--forest) 0%, var(--pine) 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(48px,7vw,72px) clamp(28px,6vw,72px);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

    .final-cta h2 {
        color: var(--white);
        margin-bottom: 14px;
    }

    .final-cta p {
        color: rgba(255,255,255,.75);
        font-size: 1.05rem;
        max-width: 640px;
        margin: 0 auto 30px;
        line-height: 1.7;
    }

.final-cta-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}


/* ---- FAQ accordion ---- */
.faq-list {
    max-width: 840px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 4px 26px;
    box-shadow: var(--shadow-xs);
    transition: box-shadow .2s ease;
}

    .faq-item[open] {
        box-shadow: var(--shadow-sm);
    }

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--forest);
    line-height: 1.3;
}

    .faq-question::-webkit-details-marker {
        display: none;
    }

.faq-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-pill);
    background: var(--cream);
    color: var(--ember);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
    background: var(--ember);
    color: var(--white);
}

.faq-answer p {
    color: var(--muted);
    font-size: .96rem;
    line-height: 1.72;
    padding: 0 0 22px;
    margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .commitment-grid {
        grid-template-columns: 1fr 1fr;
    }

        .commitment-grid.cols-4 {
            grid-template-columns: 1fr 1fr;
        }

    .tax-services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .entity-grid {
        grid-template-columns: repeat(3,1fr);
    }
}

@media (max-width: 780px) {
    .planning-layout, .planning-layout.reverse {
        grid-template-columns: 1fr;
        gap: 28px;
    }

        .planning-layout.reverse .planning-list-card {
            order: 0;
        }
}

@media (max-width: 640px) {
    .commitment-grid, .commitment-grid.cols-4 {
        grid-template-columns: 1fr;
    }

    .tax-services-grid {
        grid-template-columns: 1fr;
    }

    .entity-grid {
        grid-template-columns: 1fr 1fr;
    }

    .final-cta-actions .button, .page-hero-actions .button {
        width: 100%;
    }
}

/* ----------------------------------------------------------
   READING PROGRESS BAR
   ---------------------------------------------------------- */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    height: 3px;
    width: 0%;
    background: var(--ember);
    transition: width .1s linear;
    pointer-events: none;
}

/* ----------------------------------------------------------
   ARTICLE HERO
   ---------------------------------------------------------- */
.article-hero {
    background: linear-gradient(108deg, rgba(18,38,26,.95) 0%, rgba(18,38,26,.82) 60%, rgba(18,38,26,.5) 100%), var(--hero-photo, linear-gradient(135deg, var(--forest) 0%, var(--pine) 100%)) center / cover no-repeat;
    color: var(--white);
    padding: clamp(72px, 10vw, 110px) clamp(18px, 5vw, 72px) clamp(56px, 8vw, 88px);
}

.article-hero-inner {
    max-width: 820px;
    margin: 0 auto;
}

/* Breadcrumb row */
.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.back-link {
    font-size: .82rem;
    font-weight: 700;
    color: rgba(255,255,255,.62);
    letter-spacing: .02em;
    transition: color .2s;
}

    .back-link:hover {
        color: var(--white);
    }

.article-cat-tag {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: rgba(201,162,78,.22);
    color: var(--gold-light);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

/* Headline */
.article-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.5vw, 5rem);
    font-weight: 600;
    line-height: .95;
    letter-spacing: -.04em;
    color: var(--white);
    margin-bottom: 20px;
}

.article-subtitle {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: rgba(255,255,255,.72);
    line-height: 1.65;
    max-width: 680px;
    margin-bottom: 32px;
}

/* Author byline */
.article-byline {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .article-byline img {
        width: 46px;
        height: 46px;
        border-radius: var(--radius-pill);
        object-fit: cover;
        object-position: top center;
        border: 2px solid rgba(255,255,255,.3);
        flex-shrink: 0;
    }

.byline-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.byline-name {
    font-size: .9rem;
    font-weight: 700;
    color: var(--white);
}

.byline-meta {
    font-size: .78rem;
    color: rgba(255,255,255,.55);
}

/* ----------------------------------------------------------
   ARTICLE LAYOUT WRAPPER
   ---------------------------------------------------------- */
.article-wrap {
    background: var(--fog);
    padding: clamp(48px, 7vw, 88px) clamp(18px, 5vw, 40px);
}

.article-body {
    max-width: 740px;
    margin: 0 auto;
}

    /* ----------------------------------------------------------
   ARTICLE TYPOGRAPHY
   Scoped to .article-body to avoid collisions with style.css
   ---------------------------------------------------------- */
    .article-body h2 {
        font-family: var(--font-display);
        font-size: clamp(1.65rem, 2.8vw, 2.35rem);
        font-weight: 600;
        line-height: 1.05;
        letter-spacing: -.03em;
        color: var(--forest);
        margin-top: 56px;
        margin-bottom: 16px;
        padding-top: 8px;
        border-top: 2px solid var(--line);
        scroll-margin-top: 88px; /* clears sticky topbar on anchor jump */
    }

    .article-body h3 {
        font-family: var(--font-display);
        font-size: clamp(1.2rem, 1.8vw, 1.5rem);
        font-weight: 600;
        line-height: 1.15;
        letter-spacing: -.02em;
        color: var(--pine);
        margin-top: 28px;
        margin-bottom: 10px;
    }

    .article-body p {
        font-size: 1.04rem;
        line-height: 1.8;
        color: var(--ink);
        margin-bottom: 1.2em;
    }

        .article-body p:last-child {
            margin-bottom: 0;
        }

.article-lead {
    font-size: 1.2rem !important;
    line-height: 1.72 !important;
    color: var(--pine) !important;
    font-weight: 400;
    margin-bottom: 1.4em !important;
}

.article-body ul,
.article-body ol {
    margin: 0 0 1.3em 0;
    padding-left: 0;
    list-style: none;
}

    .article-body ul li,
    .article-body ol li {
        font-size: 1.04rem;
        line-height: 1.75;
        color: var(--ink);
        padding: 5px 0 5px 24px;
        position: relative;
    }

        .article-body ul li::before {
            content: '–';
            position: absolute;
            left: 0;
            color: var(--ember);
            font-weight: 700;
        }

.article-body ol {
    counter-reset: ol-counter;
}

    .article-body ol li::before {
        counter-increment: ol-counter;
        content: counter(ol-counter) '.';
        position: absolute;
        left: 0;
        font-weight: 700;
        color: var(--ember);
        font-size: .9rem;
    }

.article-body strong {
    font-weight: 700;
    color: var(--forest);
}

.article-body em {
    font-style: italic;
    color: var(--gold);
}

.article-body a div:not(.cta-card-actions) {
    color: var(--ember);
    text-decoration: underline;
    text-decoration-color: rgba(191,96,53,.35);
    text-underline-offset: 3px;
    transition: text-decoration-color .2s, color .2s;
}

.article-body a:hover div:not(.cta-card-actions) {
    color: var(--ember-hover);
    text-decoration-color: var(--ember);
}

/* Italic note / disclaimer text */
.article-body em.note,
.article-note {
    display: block;
    font-style: italic;
    font-size: .92rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 12px 0;
}

/* ----------------------------------------------------------
   TABLE OF CONTENTS
   ---------------------------------------------------------- */
.article-toc {
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--ember);
    border-radius: var(--radius-sm);
    padding: 24px 28px;
    margin: 0 0 48px;
    box-shadow: var(--shadow-xs);
}

.toc-label {
    font-size: .72rem !important;
    font-weight: 800 !important;
    letter-spacing: .14em !important;
    text-transform: uppercase;
    color: var(--ember) !important;
    margin-bottom: 14px !important;
}

.toc-list {
    counter-reset: none;
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 2px;
}

    .toc-list li {
        padding: 0 !important;
    }

        .toc-list li::before {
            display: none !important;
        }

    .toc-list a {
        display: block;
        font-size: .9rem;
        font-weight: 500;
        color: var(--pine) !important;
        text-decoration: none !important;
        padding: 6px 8px;
        border-radius: 6px;
        transition: background .18s ease, color .18s ease;
        line-height: 1.4;
    }

        .toc-list a:hover {
            background: var(--cream);
            color: var(--ember) !important;
            text-decoration: none !important;
        }

/* ----------------------------------------------------------
   CALLOUT BOXES
   ---------------------------------------------------------- */
.callout {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    border-radius: var(--radius-sm);
    margin: 24px 0;
    line-height: 1.62;
}

.callout-icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.callout p {
    font-size: .93rem !important;
    margin: 0 !important;
    line-height: 1.65 !important;
}

.callout strong {
    font-weight: 700;
}

.callout-tip {
    background: rgba(201,162,78,.1);
    border-left: 3px solid var(--gold);
}

    .callout-tip .callout-icon {
        color: var(--gold);
    }

    .callout-tip p {
        color: var(--pine) !important;
    }

.callout-warning {
    background: rgba(191,96,53,.08);
    border-left: 3px solid var(--ember);
}

    .callout-warning .callout-icon {
        color: var(--ember);
    }

    .callout-warning p {
        color: var(--pine) !important;
    }

.callout-info {
    background: rgba(78,122,94,.09);
    border-left: 3px solid var(--fern);
}

    .callout-info .callout-icon {
        color: var(--fern);
    }

    .callout-info p {
        color: var(--pine) !important;
    }

/* ----------------------------------------------------------
   CHECKLIST ITEMS
   Key takeaway action at the end of each section
   ---------------------------------------------------------- */
.action-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--cream);
    border: 1px solid var(--parchment);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 28px 0 0;
}

.action-item-icon {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-pill);
    background: var(--ember);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.action-item p {
    font-size: .92rem !important;
    font-weight: 600;
    color: var(--forest) !important;
    margin: 0 !important;
    line-height: 1.55 !important;
}

/* ----------------------------------------------------------
   ARTICLE DIVIDER
   ---------------------------------------------------------- */
.article-divider {
    border: none;
    border-top: 1px solid var(--line);
    margin: 52px 0;
}

/* ----------------------------------------------------------
   ARTICLE CTA CARD
   ---------------------------------------------------------- */
.article-cta-card {
    background: var(--forest);
    color: var(--white);
    border-radius: var(--radius);
    padding: 36px 40px;
    margin: 56px 0 48px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    box-shadow: var(--shadow);
}

    .article-cta-card h3 {
        font-family: var(--font-display);
        font-size: clamp(1.4rem, 2.5vw, 1.9rem);
        font-weight: 600;
        color: var(--white);
        letter-spacing: -.03em;
        line-height: 1.05;
        margin-bottom: 8px;
    }

    .article-cta-card p {
        font-size: .93rem !important;
        color: rgba(255,255,255,.68) !important;
        margin: 0 !important;
        line-height: 1.62 !important;
    }

.cta-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}


/* ----------------------------------------------------------
   AUTHOR CARD
   ---------------------------------------------------------- */
.author-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    margin-top: 48px;
    box-shadow: var(--shadow-xs);
}

    .author-card img {
        width: 72px;
        height: 72px;
        border-radius: var(--radius-pill);
        object-fit: cover;
        object-position: top center;
        flex-shrink: 0;
        background: var(--cream);
    }

.author-info {
    flex: 1;
}

.author-label {
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.author-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--forest);
    letter-spacing: -.02em;
    margin-bottom: 8px;
    line-height: 1.1;
}

.author-bio {
    font-size: .9rem !important;
    color: var(--muted) !important;
    line-height: 1.65 !important;
    margin: 0 !important;
}

/* ----------------------------------------------------------
   DISCLAIMER BANNER
   ---------------------------------------------------------- */
.article-disclaimer {
    background: var(--parchment);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 36px;
}

    .article-disclaimer p {
        font-size: .83rem !important;
        color: var(--muted) !important;
        line-height: 1.6 !important;
        margin: 0 !important;
    }

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 720px) {
    .article-cta-card {
        grid-template-columns: 1fr;
        padding: 28px 24px;
    }

    .cta-card-actions {
        flex-direction: row;
    }

        .cta-card-actions .button {
            flex: 1;
            text-align: center;
        }
}

@media (max-width: 480px) {
    .article-hero {
        padding: 56px 18px 44px;
    }

    .author-card {
        flex-direction: column;
    }

    .cta-card-actions {
        flex-direction: column;
    }

    .article-toc {
        padding: 18px 18px;
    }
}

/* ----------------------------------------------------------
   PRINT STYLES
   Makes the article print cleanly — useful since readers may
   want a physical copy of the checklist.
   ---------------------------------------------------------- */
@media print {
    .topbar,
    .reading-progress,
    .article-cta-card,
    .footer,
    .back-link {
        display: none !important;
    }

    .article-hero {
        background: var(--forest) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        padding: 36px 0 28px;
    }

    .article-wrap {
        padding: 24px 0;
    }

    .article-body h2 {
        page-break-after: avoid;
    }

    .callout,
    .action-item,
    .author-card {
        page-break-inside: avoid;
    }

    .article-body {
        max-width: 100%;
    }

    a {
        text-decoration: none !important;
        color: var(--ink) !important;
    }
}

#ind-tax-prep-hero {
    background-image: url('assets/a7.jpg');
    background-size: cover;
    text-shadow: 0px 2px 2px black;
}

#biz-tax-hero {
    background-image: url('assets/a9.jpg');
    background-size: cover;
    text-shadow: 0px 2px 2px black;
}

#estate-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('assets/a11.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-shadow: 0 0 3px black;
}

#audit-rep-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('assets/a14.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-shadow: 0 3px 3px black;
}

#consulting-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('assets/a15.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-shadow: 0 0 3px black;
}

#final-cta-id {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/a4.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-shadow: 0 0 3px black;
}
/* ----------------------------------------------------------
   BLOG POST ADDITIONS — "The Wisdom of Simplicity"
   ---------------------------------------------------------- */

/* Byline avatar fallback (initials instead of a photo) */
.byline-avatar {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-pill);
    background: rgba(201,162,78,.22);
    border: 2px solid rgba(255,255,255,.3);
    color: var(--gold-light);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Author-card avatar fallback */
.author-avatar {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-pill);
    background: var(--cream);
    color: var(--ember);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Large pull quote */
.article-pullquote {
    margin: 36px 0;
    padding: 28px 32px;
    background: var(--cream);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 600;
    font-style: italic;
    line-height: 1.25;
    letter-spacing: -.02em;
    color: var(--forest);
}

    .article-pullquote cite {
        display: block;
        margin-top: 10px;
        font-family: var(--font-body);
        font-style: normal;
        font-size: .8rem;
        font-weight: 700;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: var(--ember);
    }

/* Ten lessons list — numbered cards */
.lesson-list {
    counter-reset: lesson;
    display: grid;
    gap: 12px;
    margin: 24px 0 8px !important;
}

    .lesson-list li {
        counter-increment: lesson;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-xs);
        padding: 18px 22px 18px 64px !important;
        position: relative;
    }

        .lesson-list li::before {
            content: counter(lesson) !important;
            position: absolute;
            left: 16px !important;
            top: 18px;
            width: 32px;
            height: 32px;
            border-radius: var(--radius-pill);
            background: var(--cream);
            color: var(--ember) !important;
            font-family: var(--font-display);
            font-size: 1.1rem !important;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .lesson-list li strong {
            display: block;
            font-family: var(--font-display);
            font-size: 1.12rem;
            letter-spacing: -.02em;
            color: var(--forest);
            margin-bottom: 3px;
            line-height: 1.2;
        }

        .lesson-list li span {
            font-size: .93rem;
            color: var(--muted);
            line-height: 1.6;
        }

/* References block */
.article-references {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin-top: 36px;
}

    .article-references h4 {
        font-size: .72rem;
        font-weight: 800;
        letter-spacing: .14em;
        text-transform: uppercase;
        color: var(--muted);
        font-family: var(--font-body);
        margin-bottom: 10px;
    }

    .article-references p {
        font-size: .85rem !important;
        color: var(--muted) !important;
        line-height: 1.65 !important;
        margin: 0 !important;
        padding-left: 1.6em;
        text-indent: -1.6em; /* hanging indent, citation style */
    }


/* ==========================================================
   ================ NEW CSS BELOW THIS LINE ==================
   Added for: "The Golden Rule of Smart Tax Planning" article
   Everything ABOVE this marker is original/unchanged.
   ========================================================== */

/* ----------------------------------------------------------
   DEDUCTION CARDS
   Icon-card grid used to showcase individual above-the-line
   deduction categories.
   ---------------------------------------------------------- */
.deduction-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 28px 0 8px !important;
}

.deduction-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xs);
    padding: 22px 22px 20px;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .deduction-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-sm);
    }

    .deduction-card.full-width {
        grid-column: 1 / -1;
    }

.deduction-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-pill);
    background: var(--cream);
    color: var(--ember);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.deduction-card h3 {
    font-family: var(--font-display);
    font-size: 1.28rem !important;
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--forest);
    margin-bottom: 6px !important;
    line-height: 1.1 !important;
}

.deduction-card p {
    font-size: .9rem !important;
    color: var(--muted) !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* ----------------------------------------------------------
   TWO-STEP PROCESS DIAGRAM
   Visualizes: Gross Income -> above-the-line deductions -> AGI
   -> Standard/Itemized -> Taxable Income
   ---------------------------------------------------------- */
.process-flow {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px 24px;
    margin: 32px 0;
    box-shadow: var(--shadow-xs);
}

    .process-flow svg {
        display: block;
        width: 100%;
        height: auto;
    }

.process-flow-caption {
    text-align: center;
    font-size: .82rem;
    color: var(--muted);
    margin-top: 14px !important;
    font-style: italic;
}

/* ----------------------------------------------------------
   RESPONSIVE: new components above
   ---------------------------------------------------------- */
@media (max-width: 720px) {
    .deduction-grid {
        grid-template-columns: 1fr;
    }

    .process-flow {
        padding: 24px 18px 18px;
    }
}

/* --- Added for backend forms (login, admin, contact honeypot) --- */
.honeypot {
    position: absolute;
    left: -9999px;
}

.form-error {
    color: var(--ember);
    font-weight: 600;
    margin-bottom: 12px;
}

.form-success {
    color: var(--fern);
    font-weight: 600;
    margin-bottom: 12px;
}

.admin-body {
    background: var(--white);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    padding: 16px 32px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-body);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250,248,243,.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

    .admin-header nav a {
        margin-left: 16px;
    }

.admin-post-form {
    max-width: 720px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: var(--font-body);
}

    .admin-post-form textarea {
        width: 100%;
        font-family: inherit;
        padding: 10px;
        box-sizing: border-box;
    }

    .admin-post-form input[type=text], .admin-post-form select {
        width: 100%;
        padding: 8px;
        box-sizing: border-box;
    }

.admin-dashboard {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: var(--font-body);
}

    .admin-dashboard table {
        width: 100%;
        border-collapse: collapse;
    }

    .admin-dashboard th, .admin-dashboard td {
        text-align: left;
        padding: 10px;
        border-bottom: 1px solid var(--line);
    }

.button.danger {
    background: var(--ember);
    border-color: var(--ember);
}

.profile-photo {
    max-width: 160px;
    border-radius: 50%;
    display: block;
    margin-bottom: 16px;
}

.admin-footer {
    text-align: center;
    padding: 24px 20px;
    margin-top: 40px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .8rem;
    font-family: var(--font-body);
}

.auth-page {
    max-width: 720px;
    padding: 0 20px;
    font-family: var(--font-body);
    margin: 20px auto;
}

.auth-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
    text-decoration: none;
}

/* ----------------------------------------------------------
   BLOG / NEWS FEED (blog.php)
   ---------------------------------------------------------- */
.news-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto 32px;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-pill {
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .01em;
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--muted);
    cursor: pointer;
    transition: all .2s ease;
}

    .category-pill:hover {
        border-color: var(--fern);
        color: var(--forest);
    }

    .category-pill.active {
        background: var(--forest);
        border-color: var(--forest);
        color: var(--white);
    }

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
    max-width: 1180px;
    margin: 0 auto;
}

.news-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
    text-decoration: none;
}

    .news-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-sm);
    }

    .news-card .resource-tag {
        margin-bottom: 12px;
        display: inline-block;
    }

    .news-card h3 {
        font-family: var(--font-display);
        font-size: 1.25rem;
        color: var(--forest);
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .news-card p.excerpt {
        color: var(--muted);
        font-size: .92rem;
        line-height: 1.65;
        margin-bottom: 18px;
        flex-grow: 1;
    }

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: .8rem;
    color: var(--muted);
}

.news-card-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--pine);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.news-card-meta strong {
    color: var(--forest);
    font-weight: 700;
}

.news-card .read-more {
    font-style: normal;
    color: var(--ember);
    font-weight: 700;
    font-size: .82rem;
    margin-top: 14px;
    display: inline-block;
}

.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 48px auto 0;
    max-width: 1180px;
}

    .news-pagination a {
        font-weight: 700;
        color: var(--forest);
    }

        .news-pagination a:hover {
            color: var(--ember);
        }

.news-empty {
    text-align: center;
    color: var(--muted);
    padding: 56px 0;
    grid-column: 1 / -1;
}

@media (max-width: 720px) {
    .news-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Blog slideshow - reuses .hero-photo/.hero-message/.slide-dot classes (and script.js's
   existing slide-rotation logic) inside a shorter, blog-scaled wrapper instead of the
   full-viewport homepage .hero container. */
.blog-slideshow {
    position: relative;
    
    
    overflow: hidden;
    width: 100%;
    margin: 0 0 0px;
    box-shadow: var(--shadow);
}

.blog-slideshow-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(28px, 4vw, 48px);
}

.blog-slideshow .hero-message h2 {
    color: var(--white);
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 12px;
}

.blog-slideshow .hero-message p {
    max-width: 640px;
    color: rgba(255,255,255,.82);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.blog-slideshow .article-tag {
    margin-bottom: 14px;
    display: inline-block;
}

/* Thumbnail image on each grid card */
.news-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-sm);
    background: var(--sage) center/cover no-repeat;
    margin-bottom: 16px;
}
