:root {
    --bg: #1b0710;
    --panel: #2a0b18;
    --panel-2: #4b1028;
    --maroon: #65142f;
    --maroon-dark: #210812;
    --moonstone: #dcefed;
    --moonstone-soft: #f5fbfa;
    --moonstone-muted: #a8c8c4;
    --gold: #c99638;
    --gold-bright: #e7bd62;
    --gold-soft: #f4d991;
    --text: #f8fffe;
    --muted: #c6d8d5;
    --line: rgba(220, 239, 237, 0.24);
    --shadow: rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 4%, rgba(245, 251, 250, .72), transparent 26%),
        radial-gradient(circle at 90% 12%, rgba(101, 20, 47, .34), transparent 32%),
        linear-gradient(135deg, #dcefed 0%, #c3ddda 38%, #65142f 100%);
    background-attachment: fixed;
    line-height: 1.6;
    perspective: 1200px;
}

body:before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(115deg, rgba(255,255,255,.18), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(101,20,47,.3), transparent 36%);
    animation: moonstoneGlow 9s ease-in-out infinite alternate;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; object-fit: cover; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px clamp(18px, 5vw, 70px);
    background: rgba(31, 7, 17, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 34px rgba(0,0,0,.28);
    transform: translateZ(0);
    transform-style: preserve-3d;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 245px; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: var(--maroon-dark);
    background: radial-gradient(circle at 35% 28%, var(--moonstone-soft), var(--moonstone) 48%, var(--moonstone-muted));
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(220,239,237,.22), inset 0 0 0 2px rgba(255,255,255,.34);
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--moonstone); font-size: 11px; line-height: 1.2; }

.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a {
    position: relative;
    color: var(--muted);
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 4px;
    transition: color .22s ease, background .22s ease, transform .22s ease, box-shadow .22s ease;
}
.nav a:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(220,239,237,.18), rgba(101,20,47,.2));
    opacity: 0;
    transform: scale(.92);
    transition: opacity .22s ease, transform .22s ease;
}
.nav a.active, .nav a:hover {
    color: var(--moonstone-soft);
    transform: translateY(-3px) translateZ(10px);
    box-shadow: 0 12px 22px rgba(0,0,0,.2);
}
.nav a.active:before, .nav a:hover:before { opacity: 1; transform: scale(1); }
.nav a.active { background: rgba(220,239,237,.1); box-shadow: inset 0 -2px 0 var(--moonstone), 0 12px 22px rgba(0,0,0,.2); }

.call-pill, .button {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 4px;
    border: 1px solid var(--line);
    font-weight: 700;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
    transform-style: preserve-3d;
}

.call-pill:before, .button:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.46) 45%, transparent 70%);
    transform: translateX(-120%) skewX(-18deg);
    transition: transform .55s ease;
}

.call-pill:hover, .button:hover {
    transform: translateY(-5px) rotateX(8deg) translateZ(14px);
    box-shadow: 0 18px 34px rgba(31,7,17,.24);
}

.call-pill:hover:before, .button:hover:before { transform: translateX(120%) skewX(-18deg); }

.call-pill {
    color: var(--maroon-dark);
    background: linear-gradient(135deg, var(--moonstone-soft), var(--moonstone) 58%, var(--moonstone-muted));
    white-space: nowrap;
    border: 0;
    box-shadow: 0 10px 24px rgba(220,239,237,.18);
}
.button.primary {
    color: var(--maroon-dark);
    background: linear-gradient(135deg, var(--moonstone-soft), var(--moonstone) 55%, var(--moonstone-muted));
    border: 0;
    box-shadow: 0 14px 28px rgba(220,239,237,.18);
}
.button.ghost { color: var(--moonstone-soft); background: rgba(220,239,237,.08); }
.button.ghost:hover {
    color: var(--maroon-dark);
    background: linear-gradient(135deg, var(--moonstone-soft), var(--moonstone));
    border-color: rgba(245,251,250,.64);
}
.hero-copy .button.ghost {
    color: var(--maroon-dark);
    background: rgba(245,251,250,.72);
    border-color: rgba(42,11,24,.26);
    box-shadow: 0 12px 28px rgba(42,11,24,.14);
}
.hero-copy .button.ghost:hover {
    color: var(--moonstone-soft);
    background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
}
.menu-button { display: none; }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, .78fr);
    gap: 54px;
    align-items: center;
    padding: clamp(54px, 7vw, 86px) clamp(18px, 5vw, 70px) 58px;
    min-height: calc(100vh - 76px);
    border-bottom: 1px solid var(--line);
    animation: sectionRise .72s ease both;
}

.hero h1, .page-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(42px, 6.4vw, 78px);
    line-height: 1;
    letter-spacing: 0;
}

.hero p { max-width: 760px; color: var(--muted); font-size: 18px; }
.eyebrow { color: var(--gold-bright); font-weight: 800; text-transform: uppercase; letter-spacing: 0; font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero-copy h1 {
    color: var(--maroon-dark);
    text-shadow: 0 2px 14px rgba(245,251,250,.72);
}

.hero-copy p,
.hero-copy .eyebrow {
    color: #2a0b18;
    font-weight: 800;
    text-shadow: 0 1px 10px rgba(245,251,250,.68);
}

.hero-media {
    position: relative;
    min-height: 520px;
    border: 1px solid rgba(220,239,237,.28);
    border-radius: 4px;
    overflow: hidden;
    background: var(--maroon-dark);
    box-shadow: 0 36px 100px var(--shadow);
    animation: floatSoft 5s ease-in-out infinite;
    transform-style: preserve-3d;
}
.hero-media img { width: 100%; height: 100%; min-height: 520px; transform: translateZ(18px) scale(1.02); }
.hero-media:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(31,7,17,.5)); pointer-events: none; }
.rate-card {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 2;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(31,7,17,.86);
    backdrop-filter: blur(14px);
}
.rate-card span, .rate-card small { display: block; color: var(--muted); }
.rate-card strong { display: block; color: var(--moonstone-soft); font-size: 34px; }

.quick-links, .section, .page-hero { padding-left: clamp(18px, 5vw, 70px); padding-right: clamp(18px, 5vw, 70px); }
.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: rgba(220,239,237,.34);
    padding-top: 16px;
    padding-bottom: 16px;
}
.quick-links a {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border: 1px solid rgba(42,11,24,.26);
    border-radius: 6px;
    background: linear-gradient(145deg, var(--moonstone-soft), var(--moonstone));
    color: var(--maroon-dark);
    text-align: center;
    font-weight: 800;
    box-shadow: 0 16px 34px rgba(42,11,24,.12);
    transition: color .22s ease, background .22s ease, transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.quick-links a:hover,
.quick-links a:focus {
    color: var(--moonstone-soft);
    background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
    border-color: rgba(220,239,237,.5);
    transform: translateY(-6px) rotateX(6deg);
    box-shadow: 0 22px 44px rgba(42,11,24,.26);
}
.quick-links a:hover,
.quick-links a:focus { text-shadow: 0 1px 8px rgba(0,0,0,.25); }

.section { padding-top: 78px; padding-bottom: 78px; border-bottom: 1px solid rgba(220,239,237,.13); }
.section h2 { margin: 0 0 16px; font-size: clamp(28px, 4vw, 48px); line-height: 1.08; }
.section p { color: var(--maroon-dark); }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr); gap: 42px; align-items: center; }

.section > h2,
.section > .eyebrow,
.section h3,
.split > div > h2,
.split > div > p,
.page-hero h1,
.page-hero p,
.page-hero .eyebrow,
.seo-copy h2,
.seo-copy p {
    color: var(--maroon-dark);
}

.section > .eyebrow,
.split > div > .eyebrow {
    color: var(--maroon);
}

.table-wrap { overflow-x: auto; border: 1px solid rgba(220,239,237,.32); border-radius: 4px; background: rgba(38,9,22,.86); box-shadow: 0 24px 54px rgba(0,0,0,.22); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { padding: 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--moonstone-soft); background: rgba(220,239,237,.1); }
td:first-child { color: var(--moonstone); font-weight: 800; }

.calculator-panel, .calculator, .contact-form, .contact-card, .admin-card, .login-box {
    border: 1px solid rgba(220,239,237,.3);
    border-radius: 4px;
    background: linear-gradient(145deg, rgba(75,16,40,.94), rgba(31,7,17,.96));
    box-shadow: 0 22px 54px rgba(0,0,0,.24);
}
.calculator-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; margin: 0 clamp(18px, 5vw, 70px); padding: 34px; border-left: 4px solid var(--moonstone); }
.calculator { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 20px; }
.calculator h2, .calculator output { grid-column: 1 / -1; }
.value-result {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 0;
    color: var(--maroon-dark);
}
.value-result span {
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid rgba(245,251,250,.54);
    border-radius: 6px;
    background: linear-gradient(145deg, var(--moonstone-soft), var(--moonstone));
    box-shadow: 0 18px 38px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.74);
    animation: valuePop .35s ease both;
}
.value-result small {
    color: var(--maroon);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}
.value-result strong {
    color: var(--maroon-dark);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1;
}
.value-result .result-warning {
    grid-column: 1 / -1;
    color: var(--maroon-dark);
    font-weight: 800;
}

.calculator-panel h2,
.calculator-panel p,
.calculator-panel .eyebrow,
.contact-card h2,
.contact-card p,
.contact-form h2,
.contact-form label,
.admin-card h2,
.admin-card label,
.login-box h2,
.login-box label,
.table-wrap,
.rate-card,
.site-footer,
.site-footer p,
.site-footer h3 {
    color: var(--moonstone-soft);
}

label { display: grid; gap: 8px; color: var(--moonstone-soft); font-weight: 700; }
input, select, textarea {
    width: 100%;
    min-height: 46px;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    background: rgba(255,255,255,.045);
    font: inherit;
}

select option {
    color: var(--maroon-dark);
    background: var(--moonstone-soft);
}

select option:checked {
    color: var(--moonstone-soft);
    background: var(--maroon);
}

select:focus {
    outline: 2px solid var(--moonstone);
    outline-offset: 2px;
}
textarea { resize: vertical; }
output, .notice { color: var(--moonstone-soft); font-weight: 700; }

.process-grid, .cards, .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.process-grid article, .cards article, .stats article, .service-list article, .admin-top div {
    border: 1px solid rgba(220,239,237,.25);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(75,16,40,.86), rgba(31,7,17,.9));
    padding: 22px;
}
.process-grid article p,
.cards article p,
.stats article span,
.service-list article p,
.buy-sell-focus article p {
    color: var(--moonstone);
}
.process-grid article, .cards article, .service-list article { transition: transform .18s ease, border-color .18s ease; }
.process-grid article:hover, .cards article:hover, .service-list article:hover, .buy-sell-focus article:hover { transform: translateY(-8px) rotateX(4deg) rotateY(-3deg); border-color: rgba(220,239,237,.5); }
.process-grid span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--moonstone-soft), var(--moonstone)); color: var(--maroon-dark); font-weight: 800; }
.cards img { width: 100%; aspect-ratio: 1.25; border-radius: 4px; margin-bottom: 16px; filter: saturate(1.04) contrast(1.03); }
.cards h3, .process-grid h3 { color: var(--moonstone-soft); }

.page-hero {
    padding-top: 80px;
    padding-bottom: 64px;
    background:
        radial-gradient(circle at 12% 18%, rgba(245,251,250,.88), transparent 28%),
        linear-gradient(135deg, rgba(220,239,237,.9), rgba(198,216,213,.78) 52%, rgba(101,20,47,.22));
    border-bottom: 1px solid var(--line);
}
.page-hero p { max-width: 820px; color: var(--maroon-dark); font-size: 18px; font-weight: 700; }
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service-list span { color: var(--moonstone-soft); font-weight: 800; }
.buy-sell-focus { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.buy-sell-focus article {
    border: 1px solid rgba(220,239,237,.34);
    border-radius: 4px;
    padding: 30px;
    background: linear-gradient(145deg, rgba(101,20,47,.92), rgba(31,7,17,.96));
    box-shadow: 0 24px 58px rgba(0,0,0,.24);
    transition: transform .18s ease, border-color .18s ease;
    transform-style: preserve-3d;
    animation: card3dIn .72s ease both;
}
.buy-sell-focus span { color: var(--moonstone); font-weight: 800; text-transform: uppercase; font-size: 13px; }
.service-icon {
    position: relative;
    width: 76px;
    height: 76px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--moonstone-soft), var(--moonstone) 52%, var(--moonstone-muted));
    box-shadow: 0 18px 40px rgba(220,239,237,.22), inset 0 0 0 2px rgba(255,255,255,.36);
    animation: iconPulse 2.8s ease-in-out infinite;
}
.generated-service-icon {
    width: 86px;
    height: 86px;
    margin-bottom: 18px;
    border-radius: 50%;
    border: 1px solid rgba(220,239,237,.38);
    box-shadow: 0 18px 42px rgba(31,7,17,.28);
    animation: iconPulse 2.8s ease-in-out infinite;
}
.service-icon:before,
.service-icon:after {
    content: "";
    position: absolute;
    background: var(--maroon);
}
.buy-icon:before {
    left: 19px;
    top: 20px;
    width: 38px;
    height: 28px;
    border-radius: 5px;
    transform: rotate(-8deg);
}
.buy-icon:after {
    left: 28px;
    top: 13px;
    width: 22px;
    height: 42px;
    clip-path: polygon(50% 100%, 0 48%, 32% 48%, 32% 0, 68% 0, 68% 48%, 100% 48%);
}
.sell-icon:before {
    left: 18px;
    top: 19px;
    width: 40px;
    height: 30px;
    border-radius: 4px;
    transform: rotate(7deg);
}
.sell-icon:after {
    left: 27px;
    top: 17px;
    width: 24px;
    height: 42px;
    clip-path: polygon(50% 0, 100% 52%, 68% 52%, 68% 100%, 32% 100%, 32% 52%, 0 52%);
}
.seo-copy { max-width: 980px; }
.search-content {
    max-width: none;
    margin: 0 clamp(18px, 5vw, 70px);
    border: 1px solid rgba(42,11,24,.18);
    border-radius: 8px;
    background: rgba(245,251,250,.48);
    box-shadow: 0 20px 50px rgba(42,11,24,.12);
}
.search-content h2,
.search-content p,
.search-content .eyebrow {
    max-width: 1040px;
}
.rounded-image { border-radius: 4px; border: 1px solid rgba(220,239,237,.3); min-height: 420px; }
.rounded-image {
    box-shadow: 0 28px 70px rgba(31,7,17,.28);
    animation: floatSoft 5.5s ease-in-out infinite;
}
.stats strong, .admin-top strong { display: block; color: var(--moonstone-soft); font-size: 28px; }
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 24px; align-items: start; }
.contact-card, .contact-form, .admin-card, .login-box { padding: 24px; }
iframe { width: 100%; min-height: 300px; border: 0; border-radius: 4px; margin-top: 16px; }

.admin-panel { display: grid; gap: 22px; }
.admin-top { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: stretch; }
.rate-edit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 18px; }
.settings-edit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 18px; }
.admin-help { color: var(--moonstone); margin-top: -6px; }

.site-footer {
    display: grid;
    grid-template-columns: 1.4fr .7fr .7fr;
    gap: 36px;
    padding: 54px clamp(18px, 5vw, 70px);
    border-top: 1px solid var(--line);
    background:
        linear-gradient(145deg, rgba(101,20,47,.92), rgba(31,7,17,.98)),
        var(--maroon-dark);
    box-shadow: inset 0 1px 0 rgba(220,239,237,.18), 0 -24px 60px rgba(31,7,17,.22);
    transform-style: preserve-3d;
}
.site-footer > div {
    transform: translateZ(0);
    transition: transform .22s ease;
}
.site-footer > div:hover { transform: translateY(-5px) translateZ(12px); }
.site-footer a {
    display: block;
    width: fit-content;
    color: var(--muted);
    margin: 8px 0;
    transition: color .22s ease, transform .22s ease, text-shadow .22s ease;
}
.site-footer a:hover {
    color: var(--moonstone-soft);
    transform: translateX(6px);
    text-shadow: 0 0 16px rgba(220,239,237,.38);
}
.footer-brand { margin-bottom: 18px; }
.whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 30;
    padding: 14px 18px;
    border-radius: 4px;
    color: #120d06;
    background: var(--moonstone);
    font-weight: 800;
    box-shadow: 0 16px 34px rgba(0,0,0,.32);
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}
.whatsapp:hover {
    color: var(--moonstone-soft);
    background: var(--maroon);
    transform: translateY(-6px) rotateX(8deg);
    box-shadow: 0 24px 44px rgba(31,7,17,.32);
}

@keyframes moonstoneGlow {
    from { opacity: .72; transform: translate3d(-1%, -1%, 0); }
    to { opacity: 1; transform: translate3d(1%, 1%, 0); }
}

@keyframes sectionRise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 18px 40px rgba(220,239,237,.22), inset 0 0 0 2px rgba(255,255,255,.36); }
    50% { transform: scale(1.06); box-shadow: 0 22px 48px rgba(220,239,237,.36), inset 0 0 0 2px rgba(255,255,255,.52); }
}

@keyframes card3dIn {
    from { opacity: 0; transform: rotateX(9deg) translateY(24px); }
    to { opacity: 1; transform: rotateX(0) translateY(0); }
}

@keyframes valuePop {
    from { opacity: 0; transform: scale(.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 1180px) {
    .site-header {
        gap: 14px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .brand { min-width: 220px; }
    .nav a { padding: 9px 9px; }

    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(330px, .86fr);
        gap: 32px;
    }

    .process-grid,
    .cards,
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 900px) {
    body {
        background-attachment: scroll;
        perspective: none;
    }

    .site-header {
        flex-wrap: wrap;
        gap: 12px;
        padding: 10px 18px;
    }

    .brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .brand-mark {
        width: 46px;
        height: 46px;
        flex: 0 0 46px;
    }

    .brand strong {
        font-size: 15px;
        line-height: 1.15;
    }

    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        min-height: 42px;
        padding: 0 14px;
        border-radius: 4px;
        border: 1px solid var(--line);
        color: var(--moonstone-soft);
        background: rgba(220,239,237,.08);
        font-weight: 800;
    }

    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
        padding: 10px 0 0;
    }

    .nav.open { display: flex; }

    .nav a {
        width: 100%;
        padding: 14px 12px;
        border: 1px solid rgba(220,239,237,.16);
        background: rgba(220,239,237,.06);
    }

    .nav a:hover,
    .nav a.active {
        transform: none;
    }

    .call-pill {
        width: 100%;
        min-height: 46px;
    }

    .hero,
    .split,
    .calculator-panel,
    .contact-grid,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        gap: 28px;
        padding-top: 38px;
        padding-bottom: 36px;
    }

    .hero-media,
    .hero-media img {
        min-height: 360px;
    }

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

    .process-grid,
    .cards,
    .stats,
    .service-list,
    .buy-sell-focus,
    .admin-top,
    .rate-edit-grid,
    .settings-edit-grid {
        grid-template-columns: 1fr;
    }

    .calculator,
    .value-result {
        grid-template-columns: 1fr;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 42px;
    }

    .section,
    .page-hero {
        padding-top: 54px;
        padding-bottom: 54px;
    }

    .calculator-panel {
        margin-left: 18px;
        margin-right: 18px;
        padding: 24px;
    }

    .search-content {
        margin-left: 18px;
        margin-right: 18px;
    }

    .button:hover,
    .call-pill:hover,
    .quick-links a:hover,
    .process-grid article:hover,
    .cards article:hover,
    .service-list article:hover,
    .buy-sell-focus article:hover,
    .whatsapp:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 640px) {
    .quick-links,
    .process-grid,
    .cards,
    .stats,
    .service-list,
    .buy-sell-focus {
        gap: 12px;
    }

    .hero,
    .quick-links,
    .section,
    .page-hero {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 36px;
        line-height: 1.05;
    }

    .section h2 {
        font-size: 30px;
    }

    .hero p,
    .page-hero p {
        font-size: 16px;
    }

    .actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .button,
    .call-pill {
        width: 100%;
        min-height: 48px;
    }

    .quick-links {
        grid-template-columns: 1fr;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .quick-links a {
        padding: 16px;
    }

    .hero-media,
    .hero-media img {
        min-height: 300px;
    }

    .rate-card {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 16px;
    }

    .rate-card strong {
        font-size: 26px;
    }

    .table-wrap {
        margin-left: -2px;
        margin-right: -2px;
    }

    table {
        min-width: 460px;
    }

    th,
    td {
        padding: 12px;
        font-size: 14px;
    }

    .calculator-panel,
    .calculator,
    .contact-card,
    .contact-form,
    .admin-card,
    .login-box,
    .buy-sell-focus article,
    .process-grid article,
    .service-list article,
    .stats article {
        padding: 18px;
    }

    .value-result strong {
        font-size: 26px;
    }

    iframe {
        min-height: 260px;
    }

    .site-footer {
        gap: 22px;
        padding-top: 38px;
        padding-bottom: 76px;
    }

    .whatsapp {
        right: 14px;
        bottom: 14px;
        padding: 12px 14px;
        font-size: 14px;
    }
}

@media (max-width: 420px) {
    .site-header {
        padding-left: 12px;
        padding-right: 12px;
    }

    .brand {
        gap: 9px;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        font-size: 13px;
    }

    .brand strong {
        font-size: 14px;
    }

    .brand small {
        font-size: 10px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 31px;
    }

    .section h2 {
        font-size: 27px;
    }

    .hero-media,
    .hero-media img {
        min-height: 250px;
    }

    .generated-service-icon {
        width: 72px;
        height: 72px;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }
}

/* Ran Lanka logo integration */
.brand {
    min-width: 330px;
}
.brand-logo {
    width: 190px;
    height: auto;
    max-height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(231, 189, 98, .28));
}
.brand-text strong {
    font-size: 13px;
    line-height: 1.1;
}
.brand-text small {
    max-width: 210px;
}
.footer-brand .brand-logo,
.footer-logo {
    width: 220px;
    max-height: 72px;
}
@media (max-width: 980px) {
    .brand { min-width: 0; }
    .brand-logo { width: 150px; max-height: 48px; }
    .brand-text { display: none; }
}
@media (max-width: 560px) {
    .brand-logo { width: 128px; }
}
