:root {
    --green: #b5121b;
    --green-dark: #181412;
    --gold: #c9932f;
    --ink: #171312;
    --muted: #6f6257;
    --line: #eadfcd;
    --surface: #ffffff;
    --soft: #fbf7ef;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font-family: Inter, Segoe UI, Arial, sans-serif;
}

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

.public-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 78% 4%, rgba(201, 147, 47, 0.16), transparent 270px),
        linear-gradient(180deg, #fffaf1 0, #ffffff 34%);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 84px;
    padding: 8px max(24px, calc((100vw - 1180px) / 2));
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-logo {
    display: block;
    width: clamp(220px, 23vw, 276px);
    height: 68px;
    background: url("../img/regal-logo.png") left center / contain no-repeat;
    border-radius: 0;
}

.site-brand b {
    display: block;
    color: var(--green-dark);
    font-size: 20px;
    letter-spacing: 0;
    line-height: 1;
}

.site-brand small {
    display: block;
    margin-top: 3px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2vw, 24px);
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.site-nav a:hover,
.text-link:hover,
.product-card a:hover {
    color: var(--green);
}

.header-actions,
.hero-actions,
.cta-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.text-link {
    color: var(--ink);
    font-weight: 800;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 126px;
    padding: 0 18px;
    border-radius: 7px;
    font-weight: 800;
}

.primary-button {
    border: 1px solid var(--green);
    background: linear-gradient(135deg, #d71924, #8f0710);
    color: #fff;
    box-shadow: 0 12px 26px rgba(181, 18, 27, 0.18);
}

.secondary-button {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
}

.section-band,
.split-section,
.cta-section {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.hero-section {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 54px;
    align-items: center;
    min-height: min(720px, calc(100vh - 84px));
    padding: 76px max(24px, calc((100vw - 1180px) / 2)) 92px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(18, 14, 13, 0.88) 0%, rgba(79, 10, 14, 0.72) 45%, rgba(18, 14, 13, 0.16) 100%),
        linear-gradient(180deg, rgba(18, 14, 13, 0.12), rgba(18, 14, 13, 0.38)),
        url("../img/regal-hero.png") center / cover no-repeat;
    color: #fff;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 130px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.92));
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 20px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1;
    letter-spacing: 0;
}

.hero-section h1 {
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 10px;
    font-size: 24px;
    line-height: 1.12;
}

.lead,
.split-section p,
.cta-section p,
.product-card p,
.feature-list span {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.lead {
    max-width: 650px;
    margin-bottom: 30px;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.88);
    max-width: 610px;
}

.section-band {
    padding: 58px 0 64px;
    border-top: 1px solid var(--line);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 620px);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.product-card {
    display: grid;
    align-content: start;
    min-height: 250px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #fffdf8, var(--soft));
}

.product-card-strong {
    background:
        linear-gradient(145deg, rgba(24, 20, 18, 0.97), rgba(132, 9, 16, 0.92)),
        var(--green-dark);
    color: #fff;
}

.product-card-strong p,
.product-card-strong a {
    color: rgba(255, 255, 255, 0.82);
}

.card-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 22px;
    border-radius: 7px;
    background: #fff;
    color: var(--green);
    font-weight: 900;
    border: 1px solid rgba(201, 147, 47, 0.32);
}

.product-card p {
    margin-bottom: 24px;
}

.product-card a {
    margin-top: auto;
    color: var(--green-dark);
    font-weight: 900;
}

.finance-section {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 62px 0;
    border-top: 1px solid var(--line);
}

.finance-copy {
    max-width: 720px;
    margin-bottom: 28px;
}

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

.finance-grid article {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(42, 18, 12, 0.08);
}

.finance-image {
    width: 100%;
    aspect-ratio: 1.45;
    background-position: center;
    background-size: cover;
}

.finance-image-loans {
    background-image: url("../img/regal-business-meeting.png");
}

.finance-image-wealth {
    background-image: url("../img/regal-wealth-clients.png");
}

.finance-image-internet {
    background-image: url("../img/regal-site-overview.png");
}

.finance-grid article div {
    padding: 22px;
}

.finance-grid span {
    display: inline-flex;
    margin-bottom: 16px;
    color: var(--gold);
    font-weight: 900;
}

.finance-grid p {
    color: var(--muted);
    line-height: 1.6;
}

.finance-grid a {
    color: var(--green);
    font-weight: 900;
}

.service-hero,
.service-detail,
.service-steps {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.service-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
    gap: 40px;
    align-items: center;
    min-height: min(680px, calc(100vh - 84px));
    padding: 58px 0 64px;
}

.service-hero img {
    width: 100%;
    height: min(560px, 62vh);
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(42, 18, 12, 0.16);
}

.service-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    align-items: start;
    padding: 58px 0 62px;
    border-top: 1px solid var(--line);
}

.service-list {
    display: grid;
    gap: 14px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.service-list li {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf8;
    color: var(--ink);
    font-weight: 800;
}

.service-stats {
    display: grid;
    gap: 12px;
}

.service-stats p {
    margin: 0;
    padding: 20px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(24, 20, 18, 0.96), rgba(130, 10, 16, 0.92)),
        var(--green-dark);
    color: #fff;
}

.service-stats strong,
.service-stats span {
    display: block;
}

.service-stats strong {
    font-size: 32px;
    line-height: 1;
}

.service-stats span {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
}

.service-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 0 0 62px;
}

.service-steps article {
    min-height: 188px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.service-steps span {
    display: block;
    margin-bottom: 28px;
    color: var(--gold);
    font-weight: 900;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
    gap: 44px;
    padding: 60px 0;
    border-top: 1px solid var(--line);
}

.feature-list {
    display: grid;
    gap: 14px;
}

.feature-list p {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.feature-list b {
    font-size: 18px;
}

.cta-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 44px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.cta-section h2 {
    margin-bottom: 8px;
}

.cta-section p {
    margin-bottom: 0;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #181412;
    color: #fff;
}

.footer-inner,
.footer-bottom {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(260px, 1.1fr) minmax(180px, 0.7fr) auto;
    gap: 30px;
    align-items: start;
    padding: 36px 0 28px;
}

.footer-brand .brand-logo {
    width: 250px;
    height: 62px;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.2));
}

.footer-brand p {
    max-width: 440px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
}

.footer-links,
.footer-actions {
    display: grid;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
}

.footer-links a:hover,
.footer-bottom a:hover {
    color: #fff;
}

.footer-actions {
    min-width: 180px;
}

.footer-actions .secondary-button {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.24);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.64);
    font-size: 14px;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--soft);
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 420px;
    gap: 34px;
    align-items: center;
    width: min(1040px, calc(100% - 40px));
}

.login-shell h1 {
    margin: 34px 0 12px;
    font-size: 56px;
    line-height: 1;
}

.login-shell p {
    color: var(--muted);
    line-height: 1.7;
}

.login-card {
    display: grid;
    gap: 18px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 22px 70px rgba(42, 18, 12, 0.1);
}

.login-card label {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-weight: 800;
}

.login-card input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    padding: 12px;
    font: inherit;
}

.login-card button {
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    background: var(--green);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.login-error {
    padding: 12px;
    border-radius: 6px;
    background: #fff0ed;
    color: #9d3325;
}

@media (max-width: 980px) {
    .site-header {
        position: static;
        flex-wrap: wrap;
        padding: 14px 24px 16px;
    }

    .site-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .hero-section,
    .service-hero,
    .service-detail,
    .split-section,
    .login-shell {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: auto;
        padding: 56px 24px 68px;
        background-position: 58% center;
    }

    .product-grid,
    .finance-grid,
    .service-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-card {
        min-height: 0;
    }

    .service-hero {
        min-height: auto;
        padding: 46px 0 52px;
    }

    .service-hero img {
        height: auto;
        max-height: 520px;
    }

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

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

    .footer-actions {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .login-shell h1 {
        font-size: 44px;
    }
}

@media (max-width: 640px) {
    .site-header {
        gap: 14px;
    }

    .brand-logo {
        width: min(238px, calc(100vw - 32px));
        height: 58px;
    }

    .header-actions,
    .hero-actions,
    .cta-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .text-link {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
    }

    .section-band,
    .finance-section,
    .split-section,
    .cta-section,
    .service-hero,
    .service-detail,
    .service-steps {
        width: min(100% - 32px, 1180px);
    }

    .product-grid,
    .finance-grid,
    .service-steps {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 44px 16px 56px;
        background:
            linear-gradient(180deg, rgba(18, 14, 13, 0.82), rgba(96, 10, 16, 0.72)),
            url("../img/regal-hero.png") 58% center / cover no-repeat;
    }

    h1 {
        font-size: 42px;
    }

    .cta-section {
        padding: 24px;
    }

    .footer-inner,
    .footer-bottom {
        width: min(100% - 32px, 1180px);
    }

    .footer-inner,
    .footer-actions {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .login-page {
        display: block;
        padding: 22px;
    }

    .login-shell {
        width: 100%;
        min-height: calc(100vh - 44px);
        align-content: center;
    }

    .login-shell h1 {
        font-size: 38px;
    }

    .login-card {
        padding: 20px;
    }
}
