:root {
    --navy: #082b55;
    --blue: #0b5ba7;
    --sky: #eaf4fd;
    --ink: #14253a;
    --muted: #607086;
    --line: #dbe7f2;
    --white: #fff;
    --gold: #e6b65c;
    --shadow: 0 18px 50px rgba(21, 69, 112, .12)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    color: var(--ink);
    background: #fbfdff;
    font-family: "DM Sans", sans-serif;
    line-height: 1.6
}

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

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

.site-header,
main,
.site-footer {
    width: min(1160px, calc(100% - 2rem));
    margin: 0 auto
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.4rem 0;
    position: relative;
    z-index: 2
}

.brand {
    display: flex;
    align-items: center;
    position: relative;
    width: min(19rem, 65vw);
    height: 3.5rem;
    color: var(--navy)
}

.brand:before {
    width: 100%;
    height: 100%;
    background: url("./assets/images/manalang-accounting-services-logo.png") left center/contain no-repeat;
    content: ""
}

.brand-mark {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0)
}

.brand>span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0)
}

.brand strong {
    font-family: "Libre Baskerville", serif;
    font-size: 1rem
}

.brand small {
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--blue);
    margin-top: .3rem
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #52647a;
    font-size: .92rem
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--blue)
}

.site-nav .nav-cta {
    background: var(--blue);
    color: white;
    padding: .7rem 1.05rem;
    border-radius: 999px
}

.eyebrow {
    margin: 0 0 .75rem;
    color: var(--blue);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 5rem;
    align-items: center;
    min-height: 650px;
    padding: 4rem 0
}

.hero h1,
.section-intro h2,
.feature-copy h2,
.cta-section h2,
.page-hero h1 {
    font-family: "Libre Baskerville", serif;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.04em;
    color: var(--navy);
    margin: .2rem 0 1.35rem
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    max-width: 10ch
}

.hero-lede {
    max-width: 54ch;
    color: var(--muted);
    font-size: 1.1rem
}

.actions {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin: 2rem 0
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .9rem 1.35rem;
    border-radius: .45rem;
    font-weight: 700;
    transition: transform .2s, box-shadow .2s
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 91, 167, .2)
}

.button-primary {
    background: var(--blue);
    color: white
}

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

.text-link {
    color: var(--blue);
    font-weight: 700
}

.text-link span {
    margin-left: .35rem
}

.stat-row {
    display: flex;
    gap: 2rem;
    margin-top: 3rem
}

.stat-row strong {
    display: block;
    color: var(--navy);
    font-family: "Libre Baskerville", serif;
    font-size: 1.7rem
}

.stat-row span {
    display: block;
    max-width: 115px;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.35
}

.hero-visual {
    position: relative;
    min-height: 520px;
    border-radius: 1.2rem;
    background: linear-gradient(145deg, #dff0fc, #b8dbf3);
    overflow: hidden
}

.hero-visual:before {
    content: "";
    position: absolute;
    inset: 1.2rem;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: .8rem
}

.hero-visual img {
    position: absolute;
    right: 4%;
    bottom: 0;
    width: 90%;
    height: 96%;
    z-index: 1;
    object-fit: cover;
    object-position: center 38%;
    filter: saturate(.9)
}

.hero-glow {
    position: absolute;
    width: 20rem;
    height: 20rem;
    right: -4rem;
    top: -4rem;
    z-index: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55)
}

.hero-note {
    position: absolute;
    left: 1.4rem;
    bottom: 1.4rem;
    z-index: 3;
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    width: min(310px, calc(100% - 2.8rem));
    padding: 1rem;
    background: rgba(255, 255, 255, .92);
    border-radius: .65rem;
    box-shadow: var(--shadow)
}

.note-dot {
    width: .65rem;
    height: .65rem;
    flex: none;
    margin-top: .35rem;
    border-radius: 50%;
    background: var(--gold)
}

.hero-note strong,
.hero-note small {
    display: block
}

.hero-note strong {
    font-size: .85rem;
    color: var(--navy)
}

.hero-note small {
    margin-top: .2rem;
    color: var(--muted);
    font-size: .75rem
}

.trust-band {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1.4rem 0;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: center
}

.trust-band p {
    margin: 0;
    color: var(--muted);
    font-size: .82rem
}

.trust-band div {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    color: #7b8da1;
    font-weight: 700
}

.section-block {
    padding: 8rem 0 4rem
}

.section-intro {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1fr;
    gap: 2rem;
    align-items: end;
    margin-bottom: 2.2rem
}

.section-intro h2,
.feature-copy h2,
.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    margin: 0;
    max-width: 14ch
}

.section-intro>p:last-child,
.feature-copy>p {
    color: var(--muted);
    margin: 0
}

.card-grid {
    display: grid;
    gap: 1rem
}

.three-up {
    grid-template-columns: repeat(3, 1fr)
}

.service-card {
    position: relative;
    padding: 1.55rem;
    border: 1px solid var(--line);
    border-radius: .75rem;
    background: white;
    box-shadow: 0 7px 24px rgba(40, 89, 133, .04);
    transition: transform .2s, box-shadow .2s
}

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

.card-number {
    color: var(--gold);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em
}

.service-card h3 {
    margin: 2.5rem 0 .6rem;
    color: var(--navy);
    font-family: "Libre Baskerville", serif;
    font-size: 1.25rem;
    font-weight: 400
}

.service-card p,
.feature-list p {
    color: var(--muted);
    font-size: .92rem
}

.card-arrow {
    display: block;
    margin-top: 1.5rem;
    color: var(--blue);
    font-size: 1.4rem
}

.feature-section {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 7rem;
    align-items: center;
    padding: 5rem 0 8rem
}

.feature-list>div {
    display: flex;
    gap: 1rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--line)
}

.feature-list>div:first-child {
    border-top: 1px solid var(--line)
}

.feature-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.4rem;
    height: 2.4rem;
    background: var(--sky);
    color: var(--blue);
    border-radius: 50%;
    font-size: .7rem;
    font-weight: 700
}

.feature-list h3 {
    margin: 0;
    color: var(--navy);
    font-size: 1rem
}

.feature-list p {
    margin: .25rem 0 0
}

.cta-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem 3.5rem;
    margin-bottom: 6rem;
    border-radius: 1rem;
    background: var(--navy);
    color: white
}

.cta-section h2 {
    color: white;
    margin-bottom: 0
}

.site-footer {
    display: grid;
    grid-template-columns: 1.5fr 1fr auto;
    gap: 2rem;
    padding: 2.2rem 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .82rem
}

.footer-brand {
    color: var(--navy)
}

.footer-brand+.footer-brand {}

.site-footer p {
    margin: .8rem 0 0
}

.footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap
}

.footer-links a:hover {
    color: var(--blue)
}

.copyright {
    align-self: end;
    text-align: right
}

.page-hero {
    padding: 5.5rem 0 4rem;
    background: linear-gradient(120deg, var(--sky), #fff)
}

.page-hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    max-width: 11ch
}

.page-hero p:last-child {
    max-width: 58ch;
    color: var(--muted);
    font-size: 1.1rem
}

.page-content {
    padding: 5rem 0 8rem
}

.content-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 4rem;
    align-items: start
}

.content-grid h2,
.page-content h2 {
    font-family: "Libre Baskerville", serif;
    color: var(--navy);
    font-weight: 400;
    line-height: 1.2
}

.content-grid p,
.page-content p {
    color: var(--muted)
}

.info-panel {
    padding: 1.6rem;
    background: var(--sky);
    border-radius: .8rem
}

.info-panel h3 {
    margin-top: 0;
    color: var(--navy);
    font-family: "Libre Baskerville", serif;
    font-weight: 400
}

.plain-list {
    padding: 0;
    margin: 0;
    list-style: none
}

.plain-list li {
    padding: .65rem 0;
    border-bottom: 1px solid rgba(11, 91, 167, .14);
    color: var(--muted)
}

.service-detail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem
}

.service-detail article {
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: .7rem;
    background: white
}

.service-detail h3 {
    color: var(--navy);
    margin-top: 0;
    font-family: "Libre Baskerville", serif;
    font-weight: 400
}

.service-detail p {
    margin-bottom: 0
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem
}

.credential-card {
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: .7rem;
    background: white
}

.credential-card img {
    width: 150px;
    height: 100px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 1rem
}

.credential-card h3 {
    margin: .2rem 0;
    color: var(--navy);
    font-family: "Libre Baskerville", serif;
    font-weight: 400
}

.credential-card p {
    font-size: .9rem;
    color: var(--muted)
}

.credential-card a {
    color: var(--blue);
    font-weight: 700;
    font-size: .9rem
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem
}

.contact-box {
    padding: 2rem;
    background: var(--navy);
    border-radius: 1rem;
    color: white
}

.contact-box h2 {
    color: white;
    font-family: "Libre Baskerville", serif;
    font-weight: 400
}

.contact-box p {
    color: rgba(255, 255, 255, .75)
}

.contact-details {
    margin: 2rem 0 0;
    padding: 0;
    list-style: none
}

.contact-details li {
    padding: .75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .16)
}

.contact-details strong {
    display: block;
    color: var(--gold);
    font-size: .72rem;
    letter-spacing: .13em;
    text-transform: uppercase
}

.contact-details a {
    color: white
}

.contact-steps {
    padding: 1rem 0
}

.contact-steps div {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line)
}

.contact-steps b {
    color: var(--blue)
}

.contact-steps p {
    margin: 0
}

.contact-steps strong {
    color: var(--navy)
}

@media(max-width:800px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column
    }

    .site-nav {
        gap: .8rem;
        flex-wrap: wrap
    }

    .hero,
    .content-grid,
    .contact-layout,
    .feature-section {
        grid-template-columns: 1fr;
        gap: 2rem
    }

    .hero {
        padding-top: 2rem
    }

    .hero-visual {
        min-height: 430px
    }

    .section-intro {
        grid-template-columns: 1fr;
        gap: .8rem
    }

    .three-up,
    .credentials-grid,
    .service-detail {
        grid-template-columns: 1fr
    }

    .feature-section {
        padding: 4rem 0 6rem
    }

    .cta-section {
        align-items: flex-start;
        flex-direction: column;
        padding: 2rem
    }

    .site-footer {
        grid-template-columns: 1fr
    }

    .copyright {
        text-align: left
    }

    .trust-band {
        align-items: flex-start;
        flex-direction: column
    }
}

@media(max-width:520px) {

    .site-header,
    main,
    .site-footer {
        width: min(100% - 1.25rem, 1160px)
    }

    .site-nav {
        font-size: .82rem
    }

    .site-nav .nav-cta {
        padding: .55rem .8rem
    }

    .stat-row {
        gap: 1rem
    }

    .stat-row span {
        font-size: .7rem
    }

    .hero h1 {
        font-size: 2.9rem
    }

    .hero-visual {
        min-height: 360px
    }
}