@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --ink: #172033;
    --muted: #687386;
    --paper: #fbfaf8;
    --white: #fff;
    --brand: #6547e8;
    --brand2: #9b5cf6;
    --coral: #ff795e;
    --mint: #c9f5e7;
    --line: #e8e7ee;
    --shadow: 0 18px 55px #24204a12;
    --radius: 22px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.65 'DM Sans', sans-serif;
    -webkit-font-smoothing: antialiased
}

h1,
h2,
h3,
h4 {
    font-family: Manrope, sans-serif;
    line-height: 1.12;
    letter-spacing: -.035em;
    margin: 0 0 16px
}

h1 {
    font-size: clamp(2.4rem, 5.2vw, 4.8rem);
    font-weight: 800
}

h2 {
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    font-weight: 800
}

h3 {
    font-size: 1.18rem
}

p {
    margin: 0 0 16px;
    color: var(--muted)
}

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

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

button,
input,
textarea,
select {
    font: inherit
}

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

.topline {
    background: #211b39;
    color: #fff;
    font-size: 12px;
    padding: 8px 0;
    display: none;
}

.topline .container {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap
}

.nav-wrap {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fbfaf8ed;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid #e8e7eeaa
}

.nav {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px
}

.logo img {
    width: 230px;
    height: auto
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 13px;
    font-weight: 700
}

.nav-links a {
    transition: color .2s
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--brand)
}

.nav-cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 19px;
    border-radius: 13px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid transparent;
    transition: transform .25s, box-shadow .25s, background .25s;
    cursor: pointer
}

.nav-cta:hover,
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px #6547e833
}

.btn.alt {
    background: #fff;
    color: var(--ink);
    border-color: var(--line)
}

.btn.coral {
    background: var(--coral)
}

.menu-toggle {
    display: none;
    border: 0;
    background: #f0edf9;
    border-radius: 12px;
    padding: 0px 14px;
    color: var(--ink);
    font-size: 2rem;
}

.hero {
    padding: 78px 0 68px;
    overflow: hidden;
    background: radial-gradient(ellipse at 80% 15%, #eee7ff 0, transparent 38%), radial-gradient(ellipse at 10% 90%, #fff0e8 0, transparent 38%)
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 46px;
    align-items: center
}

.eyebrow {
    display: inline-flex;
    padding: 7px 13px;
    border-radius: 99px;
    background: #f0eafe;
    color: #6547e8;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .09em;
    margin-bottom: 18px
}

.gradient-text {
    background: linear-gradient(100deg, var(--brand), #a447cf 58%, var(--coral));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.hero p {
    font-size: 17px;
    max-width: 590px
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 26px 0
}

.hero-art {
    position: relative;
    perspective: 1000px
}

.hero-art img {
    width: 100%;
    height: 410px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 28px 65px #211b3928;
    transform: rotateY(-5deg) rotateX(2deg);
    animation: float 6s ease-in-out infinite
}

.float-card {
    position: absolute;
    right: -12px;
    bottom: 24px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 15px 18px;
    border-radius: 17px;
    font-weight: 800;
    animation: float 4s ease-in-out infinite reverse
}

.trust-row {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 700
}

.trust-row span:before {
    content: '✓';
    color: #16a085;
    margin-right: 7px
}

.section {
    padding: 76px 0
}

.section-head {
    text-align: center;
    max-width: 690px;
    margin: 0 auto 35px
}

.section-head p {
    max-width: 580px;
    margin: auto
}

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

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 5px 22px #24204a06;
    transition: transform .28s, box-shadow .28s, border-color .28s;
    transform-style: preserve-3d
}

.card:hover {
    transform: translateY(-8px) rotateX(1deg);
    box-shadow: 0 22px 45px #30245d17;
    border-color: #d5c9ff
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: #f0eafe;
    color: var(--brand);
    display: grid;
    place-items: center;
    font-size: 23px;
    margin-bottom: 18px
}

.card p {
    font-size: 14px
}

.text-link {
    font-size: 13px;
    color: var(--brand);
    font-weight: 800
}

.banner {
    padding: 56px;
    border-radius: 28px;
    background: linear-gradient(115deg, #211b39, #43317c 62%, #6547e8);
    color: white;
    position: relative;
    overflow: hidden
}

.banner:after {
    content: '✦';
    position: absolute;
    right: 6%;
    top: -45px;
    font-size: 210px;
    color: #ffffff0b;
    transform: rotate(15deg)
}

.banner h2,
.banner p {
    color: #fff;
    position: relative;
    z-index: 1
}

.banner .btn {
    position: relative;
    z-index: 1;
    background: #fff;
    color: #211b39
}

.page-hero {
    padding: 62px 0 55px;
    background: radial-gradient(ellipse at 85% 20%, #eee7ff, transparent 42%), #211b39;
    color: white
}

.page-hero h1 {
    font-size: clamp(2.3rem, 4.5vw, 4rem)
}

.page-hero p {
    color: #e6e0fa;
    max-width: 700px
}

.breadcrumbs {
    font-size: 12px;
    color: #cfc5f3;
    margin-bottom: 17px
}

.breadcrumbs a {
    color: #fff
}

.page-content {
    padding: 55px 0 80px
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px
}

.prose {
    background: white;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: clamp(22px, 4vw, 42px)
}

.prose h2 {
    font-size: 1.7rem;
    margin-top: 30px
}

.prose ul {
    color: var(--muted)
}

.side-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 18px
}

.portfolio-card {
    padding: 0;
    overflow: hidden
}

.portfolio-card img {
    height: 195px;
    object-fit: cover;
    transition: transform .5s
}

.portfolio-card:hover img {
    transform: scale(1.05)
}

.portfolio-card .pad {
    padding: 20px
}

.price {
    font: 800 32px Manrope, sans-serif;
    color: var(--brand)
}

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

.field {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.field.full {
    grid-column: 1/-1
}

.field label {
    font-size: 13px;
    font-weight: 700
}

.field input,
.field textarea,
.field select {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    padding: 13px 14px;
    width: 100%;
    outline: none
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px #6547e81a
}

.notice {
    padding: 14px 16px;
    border-radius: 12px;
    background: #e4f6ef;
    color: #17654e;
    margin-bottom: 18px
}

.footer {
    background: #211b39;
    color: #fff;
    padding: 48px 0 22px
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1.15fr 1.2fr 1fr;
    gap: 24px
}

.footer-logo {
    width: 220px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 15px;
    background: #fff;
    border-radius: 14px;
    padding: 8px 11px;
    box-shadow: 0 8px 25px #0002
}

.footer-contact-line {
    display: flex;
    gap: 8px;
    align-items: flex-start
}

.footer a {
    position: relative;
    display: inline-block;
    transition: color .22s ease, transform .22s ease
}

.footer a:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 1px;
    background: var(--coral);
    transition: width .25s ease
}

.footer a:hover {
    color: #fff;
    transform: translateX(3px)
}

.footer a:hover:after {
    width: 100%
}

.footer p,
.footer a {
    color: #c9c3dd;
    font-size: 13px
}

.footer h3 {
    color: white;
    font-size: 14px
}

.footer a:hover {
    color: #fff
}

.footer-bottom {
    border-top: 1px solid #ffffff20;
    margin-top: 32px;
    padding-top: 18px;
    font-size: 12px;
    color: #c9c3dd;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .2, 1)
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0)
}

.back-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    border: 0;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    background: var(--brand);
    color: #fff;
    box-shadow: var(--shadow);
    display: none;
    z-index: 40;
    cursor: pointer
}

.back-top.show {
    display: block;
    animation: pop .25s ease
}

.admin-body {
    background: #f4f2fa
}

.admin-wrap {
    display: grid;
    grid-template-columns: 245px 1fr;
    min-height: 100vh
}

.admin-side {
    background: #211b39;
    color: white;
    padding: 25px 18px
}

.admin-side a {
    display: block;
    padding: 11px 13px;
    border-radius: 10px;
    color: #ded8f2;
    font-size: 14px
}

.admin-side a:hover {
    background: #ffffff15;
    color: white
}

.admin-main {
    padding: 30px;
    min-width: 0
}

.admin-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 24px
}

.admin-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    overflow: auto
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top
}

.admin-table th {
    color: var(--muted)
}

.admin-input {
    width: 100%;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin: 5px 0 13px
}

.admin-form label {
    font-size: 13px;
    font-weight: 700
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 22px
}

.stat {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px
}

.stat strong {
    display: block;
    font-size: 26px;
    color: var(--brand)
}

.btn-small {
    padding: 7px 10px;
    font-size: 12px;
    border-radius: 8px
}

.danger {
    background: #c0392b
}

.login-box {
    max-width: 430px;
    margin: 9vh auto;
    background: white;
    padding: 34px;
    border-radius: 22px;
    box-shadow: var(--shadow)
}

.pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 25px
}

.pagination a {
    padding: 8px 12px;
    border-radius: 8px;
    background: white;
    border: 1px solid var(--line)
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotateY(-5deg)
    }

    50% {
        transform: translateY(-10px) rotateY(-2deg)
    }
}

@keyframes pop {
    from {
        transform: scale(.7)
    }

    to {
        transform: scale(1)
    }
}

@media(max-width:980px) {
    .nav-links {
        gap: 13px
    }

    .nav-cta {
        display: none
    }

    .hero-grid {
        gap: 25px
    }

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

    .footer-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .admin-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:760px) {
    .container {
        width: min(100% - 28px, 1160px)
    }

    .nav {
        min-height: 70px
    }

    .logo img {
        width: 190px
    }

    .menu-toggle {
        display: block
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--paper);
        padding: 20px 24px 24px;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        gap: 0
    }

    .nav-links.open {
        display: flex
    }

    .nav-links a {
        padding: 12px 0
    }

    .hero {
        padding: 48px 0
    }

    .hero-grid {
        grid-template-columns: 1fr
    }

    .hero-art img {
        height: 290px;
        transform: none
    }

    .float-card {
        right: 8px
    }

    .section {
        padding: 55px 0
    }

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

    .banner {
        padding: 30px 23px
    }

    .content-layout {
        grid-template-columns: 1fr
    }

    .page-hero {
        padding: 45px 0
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .field.full {
        grid-column: auto
    }

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

    .admin-wrap {
        grid-template-columns: 1fr
    }

    .admin-side {
        padding: 15px
    }

    .admin-side nav {
        display: flex;
        flex-wrap: wrap;
        gap: 5px
    }

    .admin-main {
        padding: 16px
    }

    .admin-grid {
        grid-template-columns: 1fr 1fr
    }

    .admin-table {
        min-width: 650px
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *:before,
    *:after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important
    }

    .reveal {
        opacity: 1;
        transform: none
    }
}

/* Pricing cards: responsive, lightweight, accessible */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch
}

.pricing-card {
    background: #fff;
    border: 1px solid #eee5e2;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 12px 35px rgba(47, 29, 64, .06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(47, 29, 64, .12);
    border-color: #e9b5a7
}

.pricing-card.featured {
    border: 2px solid #ef8e76;
    background: linear-gradient(160deg, #fffaf7, #fff)
}

.pricing-card h2,
.pricing-card h3 {
    margin: 12px 0;
    font-size: 1.45rem
}

.pricing-card .price {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.04em;
    margin: 12px 0;
    color: #4f347b
}

.pricing-card .price small {
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: 0;
    color: #766d7c
}

.pricing-card ul {
    padding-left: 20px;
    margin: 20px 0 26px
}

.pricing-card li {
    margin: 10px 0;
    color: #514b58
}

.pricing-card .btn {
    display: inline-flex
}

@media(max-width:1050px) {
    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
}

@media(max-width:900px) {
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:620px) {
    .pricing-grid {
        grid-template-columns: 1fr
    }

    .pricing-card {
        padding: 23px
    }
}


/* WebNix visual refinement: glass, spacing, portfolio, pricing and footer */
.footer a {
    position: relative;
    display: inline-block;
    transition: color .25s ease, transform .25s ease;
    text-decoration: none
}

.footer a:not(:has(img))::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--coral), #c9baff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .28s ease
}

.footer a:not(:has(img)):hover {
    color: #fff;
    transform: translateX(4px)
}

.footer a:not(:has(img)):hover::after {
    transform: scaleX(1)
}

.footer-logo {
    display: block;
    transition: transform .3s ease, box-shadow .3s ease
}

.footer-logo:hover {
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 12px 30px #0003
}

.glass-panel {
    background: linear-gradient(135deg, #ffffffd9, #f7f3ffb8);
    border: 1px solid #ffffffd9;
    box-shadow: 0 18px 55px #30245d12, inset 0 1px 0 #fff;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 26px;
    padding: clamp(22px, 4vw, 42px)
}

.portfolio-card {
    min-width: 0;
    margin: 4px;
    overflow: hidden;
    border: 1px solid #e8e2f5;
    box-shadow: 0 10px 30px #30245d0d
}

.portfolio-card img {
    display: block;
    width: 100%;
    height: clamp(190px, 22vw, 250px);
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    margin: 0;
    aspect-ratio: 16/9
}

.portfolio-card .pad {
    padding: 22px
}

.portfolio-card:hover {
    box-shadow: 0 22px 48px #30245d1b
}

.portfolio-card:hover img {
    transform: scale(1.035)
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch
}

.pricing-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: linear-gradient(155deg, #fff 0%, #fffcfb 72%, #f8f4ff 100%);
    border: 1px solid #e9e3f2;
    box-shadow: 0 12px 32px #30245d0c;
    backdrop-filter: blur(10px)
}

.pricing-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--coral));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease
}

.pricing-card:hover::before {
    transform: scaleX(1)
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 52px #30245d1b;
    border-color: #d5c9ff
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 18px 0 24px
}

.pricing-card li {
    position: relative;
    padding-left: 25px;
    font-size: 14px;
    line-height: 1.55
}

.pricing-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    background: #e5f8ef;
    color: #15845e;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 900
}

.pricing-card .btn,
.pricing-card .text-link {
    margin-top: auto;
    align-self: flex-start
}

.pricing-card.featured {
    box-shadow: 0 18px 45px #6547e81a;
    border-color: #e2d5ff
}

.add-on-card {
    padding-top: 26px
}

.addon-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #eee8ff, #fff0e9);
    border: 1px solid #fff;
    color: var(--brand);
    font-size: 27px;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px #6547e815;
    transition: transform .3s ease
}

.add-on-card:hover .addon-icon {
    transform: translateY(-4px) rotate(-5deg)
}

.about-intro {
    display: grid;
    grid-template-columns: 1fr .92fr;
    gap: 34px;
    align-items: center;
    margin-bottom: 24px
}

.about-copy p {
    max-width: 650px
}

.about-image-wrap {
    position: relative;
    min-width: 0
}

.about-image-wrap img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 18px 42px #30245d1c
}

.image-note {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 12px 15px;
    border: 1px solid #ffffff8c;
    border-radius: 14px;
    background: #211b39b8;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(12px)
}

.about-values {
    margin: 24px 0
}

.about-values .card {
    background: #ffffffcc;
    backdrop-filter: blur(12px)
}

.about-achievements {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 35px;
    align-items: center;
    margin-top: 24px
}

.achievement-list {
    display: grid;
    gap: 13px
}

.achievement-list>div {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border: 1px solid #ffffffd9;
    border-radius: 16px;
    background: #ffffffa6;
    transition: transform .25s ease, box-shadow .25s ease
}

.achievement-list>div:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 25px #30245d10
}

.achievement-list strong {
    color: var(--brand);
    font-size: 20px;
    font-family: Manrope, sans-serif
}

.achievement-list span {
    display: grid;
    gap: 4px
}

.achievement-list small {
    font-size: 13px;
    color: var(--muted)
}

@media(max-width:1050px) {
    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
}

@media(max-width:900px) {
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .about-intro,
    .about-achievements {
        grid-template-columns: 1fr
    }

    .about-image-wrap img {
        height: 300px
    }
}

@media(max-width:620px) {
    .pricing-grid {
        grid-template-columns: 1fr
    }

    .portfolio-card {
        margin: 2px
    }

    .portfolio-card img {
        height: 220px
    }

    .about-image-wrap img {
        height: 240px
    }

    .glass-panel {
        padding: 22px
    }
}

@media(prefers-reduced-motion:reduce) {

    .footer a,
    .footer a::after,
    .pricing-card,
    .addon-icon,
    .achievement-list>div,
    .footer-logo {
        transition: none !important
    }
}

.home-portfolio-grid {
    gap: 24px;
    padding: 4px 2px 12px;
    align-items: stretch
}

.home-portfolio-grid .portfolio-card {
    margin: 0;
    height: 100%
}

.home-portfolio-grid .portfolio-card .pad {
    padding: 22px
}

.home-portfolio-grid .portfolio-card .eyebrow {
    white-space: normal
}

/* Final footer, map and testimonial refinements */
.footer-grid {
    grid-template-columns: 1.55fr .8fr 1fr .9fr 1.15fr;
    align-items: start
}

.footer-logo-wrap {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    padding: 2px 5px;
    line-height: 0;
    margin-bottom: 12px;
    box-shadow: 0 5px 16px #0002;
    max-width: 100%
}

.footer-logo {
    width: 205px;
    height: auto;
    max-width: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none
}

.footer-logo-wrap:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px #0003
}

.footer-intro {
    max-width: 330px;
    font-size: 12px !important;
    line-height: 1.75;
    color: #c9c3dd;
    margin: 0
}

.footer-contact-line {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    overflow-wrap: anywhere
}

.footer-contact-line>span:first-child {
    color: #ffad9c;
    flex: 0 0 17px
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 17px;
    flex-wrap: wrap
}

.footer .social-icon {
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    border: 1px solid #ffffff35;
    border-radius: 12px;
    color: #fff;
    background: #ffffff0b;
    font-size: 17px;
    font-weight: 800;
    transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease
}

.footer .social-icon:after {
    display: none
}

.footer .social-icon:hover {
    transform: translateY(-5px) rotate(-4deg);
    background: linear-gradient(135deg, var(--brand), var(--coral));
    border-color: transparent;
    box-shadow: 0 9px 20px #0003
}

.contact-map-section {
    margin-top: 54px
}

.contact-map-section .section-head {
    margin-bottom: 22px
}

.map-frame {
    width: 100%;
    height: 390px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: #eee
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0
}

.map-placeholder {
    border: 1px dashed #cfc5f3;
    background: #f6f2ff;
    border-radius: 22px;
    padding: 35px;
    text-align: center
}

.map-placeholder .icon-box {
    margin: 0 auto 14px
}

.map-placeholder p {
    max-width: 680px;
    margin: 0 auto
}

.testimonials-section {
    background: linear-gradient(180deg, #f5f1ff 0%, #fbfaf8 100%)
}

.testimonial-slider {
    max-width: 820px;
    margin: 0 auto
}

.testimonial-track {
    position: relative;
    min-height: 235px
}

.testimonial-card {
    display: none;
    background: #fff;
    border: 1px solid #e8e2fa;
    border-radius: 24px;
    padding: clamp(24px, 4vw, 42px);
    box-shadow: 0 15px 40px #30245d0c;
    text-align: center;
    animation: testimonialIn .35s ease
}

.testimonial-card.is-active {
    display: block
}

.testimonial-stars {
    color: #e5a62b;
    letter-spacing: 4px;
    font-size: 20px;
    margin-bottom: 15px
}

.testimonial-card blockquote {
    margin: 0 auto 22px;
    max-width: 650px;
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 700;
    line-height: 1.55;
    color: var(--ink)
}

.testimonial-person {
    font-weight: 800;
    color: var(--ink);
    margin: 0
}

.testimonial-person span {
    display: block;
    color: var(--muted);
    font-weight: 500;
    font-size: 12px;
    margin-top: 3px
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 18px
}

.testimonial-controls>button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #dcd4f5;
    background: white;
    color: var(--brand);
    font-size: 19px;
    cursor: pointer;
    transition: transform .2s, background .2s, color .2s
}

.testimonial-controls>button:hover {
    transform: translateY(-2px);
    background: var(--brand);
    color: white
}

.testimonial-dots {
    display: flex;
    gap: 8px
}

.testimonial-dots button {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 99px;
    background: #c9c0e8;
    padding: 0;
    cursor: pointer;
    transition: width .2s, background .2s
}

.testimonial-dots button.active {
    width: 25px;
    background: var(--brand)
}

.testimonial-note {
    text-align: center;
    font-size: 11px;
    margin: 12px 0 0;
    color: #8b829e
}

@keyframes testimonialIn {
    from {
        opacity: .35;
        transform: translateY(8px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media(max-width:1050px) {
    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
}

@media(max-width:760px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px 18px
    }

    .footer-brand {
        grid-column: 1/-1
    }

    .footer-intro {
        max-width: 520px
    }

    .footer-contact {
        grid-column: 1/-1
    }

    .social-links {
        margin-top: 12px
    }

    .map-frame {
        height: 300px
    }

    .testimonial-track {
        min-height: 265px
    }
}

@media(max-width:460px) {
    .footer-grid {
        grid-template-columns: 1fr
    }

    .footer-brand,
    .footer-contact {
        grid-column: auto
    }

    .footer-logo {
        width: 195px
    }

    .map-placeholder {
        padding: 24px 17px
    }
}

@media(prefers-reduced-motion:reduce) {
    .testimonial-card {
        animation: none
    }

    .footer .social-icon,
    .footer-logo-wrap,
    .testimonial-controls>button,
    .testimonial-dots button {
        transition: none !important
    }
}

/* Floating WhatsApp chat shortcut */
.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 82px;
    z-index: 60;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    box-shadow: 0 8px 24px #0b6b3a40;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
    animation: wa-pop .45s ease both
}

.whatsapp-float svg {
    width: 31px;
    height: 31px;
    display: block
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.06);
    background: #1fbd5b;
    box-shadow: 0 13px 30px #0b6b3a55
}

.whatsapp-float:focus-visible {
    outline: 3px solid #172033;
    outline-offset: 4px
}

@keyframes wa-pop {
    from {
        opacity: 0;
        transform: scale(.75)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

@media(max-width:760px) {
    .whatsapp-float {
        right: 16px;
        bottom: 78px;
        width: 54px;
        height: 54px
    }

    .whatsapp-float svg {
        width: 29px;
        height: 29px
    }
}

@media(prefers-reduced-motion:reduce) {
    .whatsapp-float {
        animation: none;
        transition: none
    }
}