/* ==========================================================================
   027webhost — WHMCS client area theme
   All 027webhost visual changes live in this file. It loads after the stock
   Twenty-One theme.min.css (see includes/head.tpl) with a ?v= cache buster.

   Contents
   01. Tokens
   02. Base, typography, focus
   03. Bootstrap / Twenty-One component tuning
   04. Top bar
   05. Main header + mobile navigation
   06. Breadcrumb + page shell
   07. Home: hero
   08. Home: quick actions
   09. Home: section heads + service cards
   10. Home: domain search
   11. Home: help centre
   12. Login
   13. Footer
   14. Utilities, reduced motion, print
   ========================================================================== */

/* 01. Tokens ------------------------------------------------------------- */
:root {
    --w027-blue: #004AAD;
    --w027-blue-dark: #00357C;
    --w027-navy: #002A63;
    --w027-orange: #F67A3C;
    --w027-orange-hover: #FF9159;
    --w027-ink: #141B2B;
    --w027-text: #2B3445;
    --w027-muted: #4A5A72;
    --w027-white: #FFFFFF;
    --w027-surface: #F3F6FB;
    --w027-surface-2: #E8EEF7;
    --w027-surface-3: #DCE7F7;
    --w027-border: #D5DFEC;
    --w027-on-dark: #E3EBF7;
    --w027-on-dark-muted: #B9C9E2;
    --w027-radius-sm: 8px;
    --w027-radius: 14px;
    --w027-radius-lg: 20px;
    --w027-shadow-sm: 0 1px 2px rgba(0, 42, 99, 0.06), 0 2px 8px rgba(0, 42, 99, 0.05);
    --w027-shadow: 0 2px 4px rgba(0, 42, 99, 0.05), 0 12px 32px rgba(0, 42, 99, 0.10);
    --w027-font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Open Sans", "Helvetica Neue", Arial, sans-serif;
    --w027-gradient: linear-gradient(135deg, #004AAD 0%, #003F94 55%, #00357C 100%);
}

/* 02. Base, typography, focus ------------------------------------------- */
html {
    -webkit-text-size-adjust: 100%;
}

body.w027,
body.w027.primary-bg-color {
    background-color: var(--w027-surface);
    color: var(--w027-text);
    font-family: var(--w027-font);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.w027 h1, body.w027 h2, body.w027 h3,
body.w027 h4, body.w027 h5, body.w027 h6,
body.w027 .h1, body.w027 .h2, body.w027 .h3,
body.w027 .h4, body.w027 .h5, body.w027 .h6 {
    color: var(--w027-ink);
    font-weight: 700;
    letter-spacing: -0.01em;
}

body.w027 a {
    color: var(--w027-blue);
}

body.w027 a:hover {
    color: var(--w027-blue-dark);
}

body.w027 img {
    max-width: 100%;
    height: auto;
}

body.w027 .text-muted {
    color: var(--w027-muted) !important;
}

/* Visible keyboard focus everywhere (mouse clicks stay clean). */
body.w027 a:focus-visible,
body.w027 button:focus-visible,
body.w027 [role="button"]:focus-visible,
body.w027 summary:focus-visible,
body.w027 .btn:focus-visible,
body.w027 .dropdown-item:focus-visible,
body.w027 .page-link:focus-visible,
body.w027 .list-group-item:focus-visible {
    outline: 3px solid var(--w027-blue);
    outline-offset: 2px;
    box-shadow: none;
}

body.w027 .form-control:focus,
body.w027 .custom-select:focus {
    border-color: var(--w027-blue);
    box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.28);
}

body.w027 .custom-control-input:focus-visible ~ .custom-control-label::before {
    box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.35);
}

/* Focus rings on dark surfaces switch to white. */
body.w027 .w027-topbar a:focus-visible,
body.w027 .w027-topbar button:focus-visible,
body.w027 .w027-hero a:focus-visible,
body.w027 .w027-footer a:focus-visible,
body.w027 .w027-footer button:focus-visible,
body.w027 .w027-auth__aside a:focus-visible {
    outline-color: var(--w027-white);
}

#main-body:focus {
    outline: none;
}

.w027-skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: var(--w027-radius-sm);
    background: var(--w027-white);
    color: var(--w027-blue) !important;
    font-weight: 700;
    box-shadow: var(--w027-shadow);
    transition: top 0.15s ease;
}

.w027-skip-link:focus {
    top: 12px;
    text-decoration: none;
}

/* 03. Bootstrap / Twenty-One component tuning ---------------------------- */
body.w027 .btn {
    border-radius: 10px;
    font-weight: 600;
}

body.w027 .btn-primary {
    background-color: var(--w027-blue);
    border-color: var(--w027-blue);
    color: var(--w027-white);
}

body.w027 .btn-primary:hover,
body.w027 .btn-primary:not(:disabled):not(.disabled):active,
body.w027 .btn-primary:not(:disabled):not(.disabled).active,
body.w027 .show > .btn-primary.dropdown-toggle {
    background-color: var(--w027-blue-dark);
    border-color: var(--w027-blue-dark);
    color: var(--w027-white);
}

body.w027 .btn-primary:focus,
body.w027 .btn-primary.focus {
    box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.35);
}

body.w027 .btn-outline-primary {
    color: var(--w027-blue);
    border-color: var(--w027-blue);
}

body.w027 .btn-outline-primary:hover {
    background-color: var(--w027-blue);
    border-color: var(--w027-blue);
    color: var(--w027-white);
}

body.w027 .btn-default {
    border-color: var(--w027-border);
}

/* Orange action button. Dark ink on orange keeps 6:1 contrast. */
body.w027 .w027-btn-action {
    background-color: var(--w027-orange);
    border: 2px solid var(--w027-orange);
    color: var(--w027-ink);
    font-weight: 700;
}

body.w027 .w027-btn-action:hover,
body.w027 .w027-btn-action:focus {
    background-color: var(--w027-orange-hover);
    border-color: var(--w027-orange-hover);
    color: var(--w027-ink);
}

body.w027 .w027-btn-ghost {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.75);
    color: var(--w027-white);
}

body.w027 .w027-btn-ghost:hover,
body.w027 .w027-btn-ghost:focus {
    background-color: rgba(255, 255, 255, 0.14);
    border-color: var(--w027-white);
    color: var(--w027-white);
}

body.w027 .w027-btn-light {
    background-color: var(--w027-white);
    border: 2px solid var(--w027-blue);
    color: var(--w027-blue);
}

body.w027 .w027-btn-light:hover,
body.w027 .w027-btn-light:focus {
    background-color: var(--w027-blue);
    color: var(--w027-white);
}

body.w027 .btn-lg {
    padding: 0.75rem 1.35rem;
    font-size: 1rem;
}

body.w027 .btn i + *,
body.w027 .btn i {
    vertical-align: -0.05em;
}

body.w027 .card,
body.w027 .mc-promo-manage,
body.w027 .mc-promo-login {
    border: 1px solid var(--w027-border);
    border-radius: var(--w027-radius);
    box-shadow: var(--w027-shadow-sm);
}

body.w027 .card-header {
    background-color: var(--w027-white);
    border-bottom-color: var(--w027-border);
}

body.w027 .card-header:first-child {
    border-radius: calc(var(--w027-radius) - 1px) calc(var(--w027-radius) - 1px) 0 0;
}

body.w027 .card-footer {
    background-color: var(--w027-surface);
    border-top-color: var(--w027-border);
}

body.w027 .card-footer:last-child {
    border-radius: 0 0 calc(var(--w027-radius) - 1px) calc(var(--w027-radius) - 1px);
}

body.w027 .list-group-item.active,
body.w027 .page-item.active .page-link,
body.w027 .nav-pills .nav-link.active,
body.w027 .nav-pills .show > .nav-link,
body.w027 .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--w027-blue);
    border-color: var(--w027-blue);
}

body.w027 .list-group-item.active,
body.w027 .page-item.active .page-link {
    color: var(--w027-white);
}

body.w027 .page-link {
    color: var(--w027-blue);
}

body.w027 .nav-tabs .nav-link.active {
    color: var(--w027-blue);
    border-top: 2px solid var(--w027-blue);
}

body.w027 .sidebar .card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--w027-ink);
}

body.w027 .sidebar .list-group-item {
    color: var(--w027-text);
}

body.w027 .sidebar .list-group-item.active {
    color: var(--w027-white);
}

body.w027 .table thead th {
    border-bottom-width: 1px;
    color: var(--w027-muted);
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Wide WHMCS tables scroll inside their card, never the page. */
body.w027 .table-container,
body.w027 .dataTables_wrapper {
    max-width: 100%;
    overflow-x: auto;
}

body.w027 .dropdown-menu {
    border: 1px solid var(--w027-border);
    border-radius: 12px;
    box-shadow: var(--w027-shadow);
    padding: 6px;
}

body.w027 .dropdown-item {
    border-radius: 8px;
}

body.w027 .dropdown-item:hover,
body.w027 .dropdown-item:focus {
    background-color: var(--w027-surface-2);
    color: var(--w027-blue-dark);
}

body.w027 .dropdown-item.active,
body.w027 .dropdown-item:active {
    background-color: var(--w027-blue);
    color: var(--w027-white);
}

body.w027 .alert {
    border-radius: var(--w027-radius-sm);
}

/* 04. Top bar ----------------------------------------------------------- */
.w027-topbar {
    background-color: var(--w027-blue-dark);
    color: var(--w027-on-dark);
    font-size: 13px;
    line-height: 1.2;
}

.w027-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    min-height: 38px;
    gap: 2px 12px;
}

.w027-topbar__left,
.w027-topbar__right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
    min-width: 0;
}

.w027-topbar__right {
    margin-left: auto;
}

.w027-topbar__note {
    color: var(--w027-on-dark-muted);
}

body.w027 .w027-topbar__link,
body.w027 .w027-topbar__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--w027-on-dark);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

body.w027 .w027-topbar__link:hover,
body.w027 .w027-topbar__btn:hover {
    background-color: rgba(255, 255, 255, 0.10);
    color: var(--w027-white);
    text-decoration: none;
}

body.w027 .w027-topbar__link--strong {
    color: var(--w027-white);
    font-weight: 700;
}

.w027-topbar__count {
    display: inline-block;
    min-width: 18px;
    padding: 1px 5px;
    border-radius: 9px;
    background: var(--w027-orange);
    color: var(--w027-ink);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.w027-topbar__client-name {
    display: inline-block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

/* The stock admin "return" tab stays a floating tab on md+ (Twenty-One behaviour);
   inside the top bar on small screens it is a plain link. */
@media (max-width: 767.98px) {
    body.w027 .w027-topbar .btn-return-to-admin {
        position: static !important;
        transform: none;
    }
}

@media (max-width: 575.98px) {
    .w027-topbar__right .w027-topbar__link i {
        display: none;
    }

    body.w027 .w027-topbar__link,
    body.w027 .w027-topbar__btn {
        padding: 6px 7px;
    }
}

/* 05. Main header + mobile navigation ------------------------------------ */
body.w027 header.header {
    position: relative;
    z-index: 1030;
    background-color: var(--w027-white);
    box-shadow: 0 1px 0 var(--w027-border);
}

body.w027 header.header .w027-mainbar {
    padding: 12px 0;
    flex-wrap: wrap;
}

body.w027 header.header .w027-mainbar > .container {
    flex-wrap: wrap;
    padding-left: 15px;
    padding-right: 15px;
}

body.w027 .w027-brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-right: 1.25rem;
    padding: 0;
    max-width: calc(100% - 120px);
}

body.w027 header.header .logo-img {
    max-width: 220px;
    max-height: 48px;
    width: auto;
}

.w027-brand__text {
    color: var(--w027-blue);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.w027-mainbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

body.w027 .w027-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--w027-border);
    border-radius: 12px;
    background: var(--w027-white);
    color: var(--w027-blue);
    font-size: 17px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

body.w027 .w027-icon-btn:hover {
    border-color: var(--w027-blue);
    background-color: var(--w027-surface);
    color: var(--w027-blue-dark);
}

body.w027 .w027-cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 2px solid var(--w027-white);
    border-radius: 10px;
    background: var(--w027-orange);
    color: var(--w027-ink);
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
}

/* Hamburger icon (animates to a close icon when the menu is open). */
.w027-hamburger__bars {
    position: relative;
    display: block;
    width: 20px;
    height: 14px;
}

.w027-hamburger__bars span {
    position: absolute;
    left: 0;
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.w027-hamburger__bars span:nth-child(1) { top: 0; }
.w027-hamburger__bars span:nth-child(2) { top: 6px; }
.w027-hamburger__bars span:nth-child(3) { top: 12px; }

.w027-hamburger[aria-expanded="true"] .w027-hamburger__bars span:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
}

.w027-hamburger[aria-expanded="true"] .w027-hamburger__bars span:nth-child(2) {
    opacity: 0;
}

.w027-hamburger[aria-expanded="true"] .w027-hamburger__bars span:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
}

/* Navigation links. Vertical padding is kept small on purpose: Twenty-One's
   autoCollapse() moves items into "More" when #nav is taller than 30px. */
body.w027 header.header .navbar-nav a {
    color: var(--w027-ink);
    font-size: 15px;
    font-weight: 600;
}

body.w027 header.header #nav > li > a,
body.w027 header.header .w027-account-nav > li > a {
    display: block;
    padding: 4px 12px !important;
    border-radius: 8px;
    line-height: 20px;
}

body.w027 header.header #nav > li > a:hover,
body.w027 header.header .w027-account-nav > li > a:hover,
body.w027 header.header .navbar-nav .show > a {
    background-color: var(--w027-surface-2);
    color: var(--w027-blue);
    text-decoration: none;
}

body.w027 header.header .navbar-nav .dropdown-menu a {
    font-weight: 500;
}

body.w027 header.header .navbar-nav .badge {
    background: var(--w027-orange);
    color: var(--w027-ink);
}

body.w027 header.header .main-navbar-wrapper .navbar-collapse {
    padding: 0;
}

/* Mobile / tablet menu panel */
@media (max-width: 1199.98px) {
    body.w027 header.header .main-navbar-wrapper .navbar-collapse {
        flex-basis: 100%;
        margin-top: 12px;
        padding: 12px 0 4px;
        border-top: 1px solid var(--w027-border);
    }

    .w027-mobile-search {
        margin-bottom: 8px;
    }

    .w027-mobile-search .form-control {
        height: 44px;
    }

    .w027-mobile-search .btn {
        min-width: 48px;
        border-radius: 0 10px 10px 0;
    }

    .w027-mobile-search .form-control {
        border-radius: 10px 0 0 10px;
    }

    body.w027 header.header #nav,
    body.w027 header.header .w027-account-nav {
        width: 100%;
    }

    body.w027 header.header #nav > li > a,
    body.w027 header.header .w027-account-nav > li > a {
        padding: 12px 10px !important;
        line-height: 20px;
    }

    body.w027 header.header .w027-account-nav {
        margin-top: 4px;
        padding-top: 4px;
        border-top: 1px solid var(--w027-border);
    }

    body.w027 header.header .navbar-nav .dropdown-menu {
        margin: 0 0 6px;
        box-shadow: none;
        background: var(--w027-surface);
    }

    body.w027 header.header .navbar-nav .dropdown-menu .dropdown-item {
        white-space: normal;
    }
}

@media (min-width: 1200px) {
    body.w027 header.header .w027-mainbar > .container {
        flex-wrap: nowrap;
    }

    .w027-mainbar__actions {
        margin-left: 12px;
    }

    body.w027 header.header .w027-account-nav {
        margin-left: 8px;
    }
}

@media (max-width: 575.98px) {
    body.w027 header.header .logo-img {
        max-width: 160px;
        max-height: 38px;
    }

    .w027-brand__text {
        font-size: 1.2rem;
    }
}

/* 06. Breadcrumb + page shell ------------------------------------------ */
body.w027 .master-breadcrumb {
    background-color: var(--w027-white);
    border-bottom: 1px solid var(--w027-border);
}

body.w027 .master-breadcrumb .breadcrumb {
    padding: 10px 0;
    background: transparent;
    font-size: 0.85rem;
}

body.w027 .master-breadcrumb .breadcrumb-item.active {
    color: var(--w027-muted);
}

body.w027 section#main-body {
    padding: 28px 0 48px;
}

body.w027.w027-page-homepage section#main-body {
    padding-top: 8px;
}

body.w027 .primary-content {
    min-width: 0;
}

body.w027 .header-lined h1,
body.w027 .primary-content > h1:first-child {
    font-size: 1.6rem;
}

/* 07. Home: hero ------------------------------------------------------- */
.w027-hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 112px;
    background: var(--w027-gradient);
    color: var(--w027-white);
}

.w027-hero::before,
.w027-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.w027-hero::before {
    top: -180px;
    right: -120px;
    width: 520px;
    height: 520px;
    background: radial-gradient(closest-side, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
}

.w027-hero::after {
    bottom: -220px;
    left: -160px;
    width: 480px;
    height: 480px;
    background: radial-gradient(closest-side, rgba(246, 122, 60, 0.20), rgba(246, 122, 60, 0));
}

.w027-hero .container {
    position: relative;
    z-index: 1;
}

.w027-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 32px;
}

.w027-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--w027-on-dark);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.w027-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--w027-orange);
    flex: none;
}

.w027-eyebrow--dark {
    color: var(--w027-blue);
}

body.w027 .w027-hero__title {
    max-width: 18ch;
    margin: 0 0 16px;
    color: var(--w027-white);
    font-size: clamp(1.9rem, 1.2rem + 3vw, 3.1rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.w027-hero__lead {
    max-width: 46ch;
    margin: 0 0 28px;
    color: var(--w027-on-dark);
    font-size: 1.075rem;
}

.w027-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.w027-hero__ctas .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.w027-hero__art {
    display: none;
}

.w027-hero__art svg {
    display: block;
    width: 100%;
    max-width: 470px;
    height: auto;
    margin-left: auto;
    filter: drop-shadow(0 24px 40px rgba(0, 20, 60, 0.35));
}

@media (max-width: 575.98px) {
    .w027-hero {
        padding: 40px 0 96px;
    }

    .w027-hero__ctas .btn {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .w027-hero {
        padding: 72px 0 128px;
    }

    .w027-hero__grid {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
        gap: 48px;
    }

    .w027-hero__art {
        display: block;
    }
}

/* 08. Home: quick actions ---------------------------------------------- */
.w027-quick {
    position: relative;
    z-index: 2;
    margin-top: -72px;
}

.w027-quick__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.w027-quick__grid > li {
    display: flex;
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
}

@media (min-width: 768px) {
    .w027-quick__grid {
        gap: 16px;
    }

    .w027-quick__grid > li {
        flex: 1 1 0;
    }
}

body.w027 .w027-quick__card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    padding: 20px;
    border: 1px solid var(--w027-border);
    border-radius: var(--w027-radius);
    background: var(--w027-white);
    box-shadow: var(--w027-shadow);
    color: var(--w027-text);
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

body.w027 .w027-quick__card:hover {
    transform: translateY(-2px);
    border-color: var(--w027-blue);
    color: var(--w027-text);
    text-decoration: none;
}

.w027-quick__icon,
.w027-service__icon,
.w027-help__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--w027-surface-2);
    color: var(--w027-blue);
    font-size: 19px;
    flex: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.w027-quick__card:hover .w027-quick__icon,
.w027-help__card:hover .w027-help__icon,
.w027-service:hover .w027-service__icon {
    background: var(--w027-blue);
    color: var(--w027-white);
}

.w027-quick__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.w027-quick__text strong {
    color: var(--w027-ink);
    font-size: 1rem;
}

.w027-quick__text span {
    color: var(--w027-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

@media (max-width: 575.98px) {
    body.w027 .w027-quick__card {
        padding: 16px;
        gap: 10px;
    }
}

/* 09. Home: section heads + service cards ------------------------------- */
.w027-section {
    margin-top: 56px;
}

.w027-section:first-child {
    margin-top: 40px;
}

.w027-section__head {
    max-width: 640px;
    margin-bottom: 24px;
}

body.w027 .w027-section__title {
    margin: 0 0 8px;
    font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem);
    line-height: 1.2;
}

.w027-section__lead {
    margin: 0;
    color: var(--w027-muted);
    font-size: 1rem;
}

.w027-services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.w027-service {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--w027-border);
    border-radius: var(--w027-radius);
    background: var(--w027-white);
    box-shadow: var(--w027-shadow-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.w027-service:hover {
    transform: translateY(-2px);
    border-color: var(--w027-blue);
    box-shadow: var(--w027-shadow);
}

.w027-service:focus-within {
    outline: 3px solid var(--w027-blue);
    outline-offset: 2px;
}

body.w027 .w027-service a:focus-visible {
    outline: none;
}

body.w027 .w027-service__title {
    margin: 16px 0 6px;
    font-size: 1.15rem;
    overflow-wrap: anywhere;
}

.w027-service__text {
    margin: 0 0 18px;
    color: var(--w027-muted);
    font-size: 0.925rem;
}

body.w027 .w027-service__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--w027-blue);
    font-weight: 700;
    text-decoration: none;
}

.w027-service__link i {
    transition: transform 0.15s ease;
}

.w027-service:hover .w027-service__link i {
    transform: translateX(3px);
}

/* 10. Home: domain search ---------------------------------------------- */
body.w027 .w027-domain .home-domain-search {
    padding: 40px;
    border: 1px solid var(--w027-surface-3);
    border-radius: var(--w027-radius-lg);
    background: linear-gradient(135deg, #EEF4FC 0%, #DCE7F7 100%);
    box-shadow: var(--w027-shadow-sm);
}

.w027-domain__head {
    max-width: 640px;
    margin-bottom: 20px;
}

.w027-domain .w027-eyebrow {
    color: var(--w027-blue);
}

body.w027 .w027-domain__title {
    margin: 0 0 6px;
    font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem);
}

.w027-domain__lead {
    margin: 0;
    color: var(--w027-muted);
}

.w027-domain__field {
    display: flex;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--w027-border);
    border-radius: 14px;
    background: var(--w027-white);
    box-shadow: var(--w027-shadow-sm);
}

.w027-domain__field:focus-within {
    border-color: var(--w027-blue);
    box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.28);
}

body.w027 .w027-domain__field .form-control {
    flex: 1 1 auto;
    min-width: 0;
    height: 52px;
    border: 0;
    font-size: 1.05rem;
    box-shadow: none;
}

.w027-domain__buttons {
    display: flex;
    gap: 8px;
    flex: none;
}

.w027-domain__buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 22px;
    white-space: nowrap;
}

.w027-domain__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 20px;
}

body.w027 .home-domain-search .w027-domain__tlds {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    color: var(--w027-text);
    font-size: 1rem;
    font-weight: 600;
}

body.w027 .home-domain-search .w027-domain__tlds li {
    float: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
}

body.w027 .home-domain-search .w027-domain__tlds img {
    width: 54px;
}

body.w027 .w027-domain__pricing {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 767.98px) {
    body.w027 .w027-domain .home-domain-search {
        padding: 24px 18px;
    }

    .w027-domain__field {
        flex-direction: column;
    }

    .w027-domain__buttons .btn {
        flex: 1 1 0;
        padding: 0 12px;
    }
}

/* 11. Home: help centre ------------------------------------------------ */
.w027-help__search {
    max-width: 640px;
    margin-bottom: 24px;
}

body.w027 .w027-help__search .form-control {
    height: 48px;
    border-color: var(--w027-border);
    border-radius: 12px 0 0 12px;
    font-size: 1rem;
}

body.w027 .w027-help__search .btn {
    min-width: 48px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 0 12px 12px 0;
}

.w027-help__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 992px) {
    .w027-help__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }
}

body.w027 .w027-help__card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 20px;
    border: 1px solid var(--w027-border);
    border-radius: var(--w027-radius);
    background: var(--w027-white);
    color: var(--w027-text);
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.w027 .w027-help__card:hover {
    border-color: var(--w027-blue);
    box-shadow: var(--w027-shadow);
    color: var(--w027-text);
    text-decoration: none;
}

.w027-help__card .w027-help__icon {
    margin-bottom: 8px;
}

.w027-help__card strong {
    color: var(--w027-ink);
    font-size: 1rem;
    line-height: 1.3;
}

.w027-help__card > span:last-child {
    color: var(--w027-muted);
    font-size: 0.875rem;
    line-height: 1.45;
}

.w027-help__more {
    margin: 18px 0 0;
    font-weight: 700;
}

.w027-help__more a {
    text-decoration: none;
}

@media (max-width: 575.98px) {
    body.w027 .w027-help__card {
        padding: 16px;
    }
}

/* 12. Login ------------------------------------------------------------ */
.w027-auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: 980px;
    margin: 12px auto 24px;
    overflow: hidden;
    border: 1px solid var(--w027-border);
    border-radius: var(--w027-radius-lg);
    background: var(--w027-white);
    box-shadow: var(--w027-shadow);
}

.w027-auth__aside {
    display: none;
    padding: 48px 40px;
    background: var(--w027-gradient);
    color: var(--w027-on-dark);
}

.w027-auth__headline {
    margin: 0 0 24px;
    color: var(--w027-white);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

.w027-auth__points li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.w027-auth__points i {
    width: 20px;
    color: var(--w027-orange);
    text-align: center;
}

.w027-auth__form {
    padding: 32px 22px;
}

.w027-auth__head {
    margin-bottom: 24px;
}

body.w027 .w027-auth__title {
    margin: 0 0 4px;
    font-size: 1.6rem;
}

body.w027 .w027-auth .form-control-label {
    color: var(--w027-ink);
    font-weight: 600;
}

body.w027 .w027-auth .form-control,
body.w027 .w027-auth .input-group-text,
body.w027 .w027-auth .btn-reveal-pw {
    height: 48px;
    border-color: var(--w027-border);
}

body.w027 .w027-auth .input-group-text {
    background: var(--w027-surface);
    color: var(--w027-muted);
}

body.w027 .w027-auth__forgot {
    font-weight: 600;
}

.w027-auth__remember {
    margin: 4px 0 20px;
}

body.w027 .w027-auth .btn-block {
    min-height: 50px;
}

.w027-auth__switch {
    margin: 20px 0 0;
    color: var(--w027-muted);
    text-align: center;
}

.w027-auth__switch a {
    font-weight: 700;
}

/* Real, admin-configured social sign-in providers (if any) render below. */
body.w027.w027-page-login .providerPreLinking,
body.w027.w027-page-login .providerLinkingFeedback:not(:empty) {
    max-width: 980px;
    margin: 0 auto 16px;
}

body.w027.w027-page-login .social-signin-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

@media (min-width: 576px) {
    .w027-auth__form {
        padding: 44px 48px;
    }
}

@media (min-width: 992px) {
    .w027-auth {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        margin-top: 24px;
    }

    .w027-auth__aside {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* 13. Footer ----------------------------------------------------------- */
body.w027 footer.footer.w027-footer {
    margin: 0;
    padding: 48px 0 28px;
    background-color: var(--w027-navy);
    color: var(--w027-on-dark);
    font-size: 0.9rem;
}

.w027-footer__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
}

.w027-footer__brand {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .w027-footer__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .w027-footer__grid {
        grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr));
    }

    .w027-footer__brand {
        grid-column: auto;
    }
}

body.w027 .w027-footer__logo {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--w027-white);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.w027-footer__brand p {
    max-width: 34ch;
    margin: 0 0 16px;
    color: var(--w027-on-dark-muted);
}

body.w027 .w027-footer__title {
    margin: 0 0 12px;
    color: var(--w027-white);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.w027-footer__col ul,
.w027-footer__legal {
    margin: 0;
    padding: 0;
    list-style: none;
}

.w027-footer__col li {
    margin-bottom: 8px;
}

body.w027 .w027-footer a {
    color: var(--w027-on-dark);
    text-decoration: none;
}

body.w027 .w027-footer a:hover {
    color: var(--w027-white);
    text-decoration: underline;
    text-decoration-color: var(--w027-orange);
    text-underline-offset: 3px;
}

body.w027 .w027-footer__social .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.10);
    color: var(--w027-white);
}

.w027-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

body.w027 .w027-footer .copyright {
    margin: 0;
    color: var(--w027-on-dark-muted);
    font-size: 0.85rem;
    text-align: left;
}

.w027-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}

body.w027 .w027-footer__locale {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background: transparent;
    color: var(--w027-on-dark);
    font-size: 0.85rem;
    cursor: pointer;
}

body.w027 .w027-footer__locale:hover {
    background: rgba(255, 255, 255, 0.10);
    color: var(--w027-white);
}

/* 15. Hero extras: accent, chips, floating cards ----------------------- */
.w027-hero__accent {
    color: #FFC2A3;
}

.w027-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

body.w027 .w027-hero__chips a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: var(--w027-white);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

body.w027 .w027-hero__chips a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

.w027-hero__chips i {
    color: #FFC2A3;
}

.w027-hero__art .w027-float {
    filter: drop-shadow(0 14px 22px rgba(0, 20, 60, 0.35));
    animation: w027-float 6s ease-in-out infinite;
}

.w027-hero__art .w027-float--b { animation-delay: -2s; }
.w027-hero__art .w027-float--c { animation-delay: -4s; }

@keyframes w027-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Bring the hero illustration back on tablets, below the copy. */
@media (min-width: 768px) and (max-width: 991.98px) {
    .w027-hero__art {
        display: block;
    }

    .w027-hero__art svg {
        max-width: 420px;
        margin: 0 auto;
    }
}

/* 16. Full-width white band (no overflow: box-shadow paints outside, clip-path trims) */
.w027-band {
    position: relative;
    padding: 56px 0 60px;
    background: var(--w027-white);
    box-shadow: 0 0 0 100vmax var(--w027-white);
    clip-path: inset(0 -100vmax);
}

.w027-section__head--center {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.w027-section__head--center .w027-eyebrow {
    justify-content: center;
}

/* 17. Hero with domain search (domains.co.za-style, search first) ------ */
.w027-hero--search {
    padding: 56px 0 120px;
    text-align: center;
}

.w027-hero--search .w027-hero__center {
    max-width: 860px;
    margin: 0 auto;
}

.w027-hero--search .w027-eyebrow {
    justify-content: center;
}

body.w027 .w027-hero--search .w027-hero__title {
    max-width: none;
    margin-bottom: 14px;
    font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem);
}

.w027-hero--search .w027-hero__lead {
    max-width: 58ch;
    margin: 0 auto 28px;
}

/* Hero version of the domain form: no panel, big white search bar. */
body.w027 .w027-domain--hero .home-domain-search {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.w027-domain--hero .w027-domain__field {
    align-items: center;
    padding: 8px;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 20, 60, 0.35);
}

.w027-domain--hero .w027-domain__field:focus-within {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.55), 0 18px 40px rgba(0, 20, 60, 0.35);
}

.w027-domain__prefix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 40px;
    color: var(--w027-muted);
    font-size: 18px;
}

body.w027 .w027-domain--hero .w027-domain__field .form-control {
    height: 60px;
    padding-left: 4px;
    font-size: 1.125rem;
}

.w027-domain--hero .w027-domain__buttons .btn {
    min-height: 56px;
    padding: 0 26px;
    border-radius: 12px;
    font-size: 1rem;
}

.w027-domain--hero .w027-domain__foot {
    justify-content: center;
    margin-top: 22px;
}

/* Featured TLD price chips (real prices from WHMCS). */
body.w027 .home-domain-search .w027-domain__tlds {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.w027 .home-domain-search .w027-domain__tlds li.w027-tld {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 7px 14px;
}

.w027-tld {
    border: 1px solid var(--w027-border);
    border-radius: 999px;
    background: var(--w027-white);
    font-size: 0.9rem;
}

.w027-tld__ext {
    color: var(--w027-blue);
    font-weight: 800;
}

.w027-tld__price {
    color: var(--w027-text);
    font-weight: 600;
}

.w027-domain--hero .w027-tld {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.10);
}

.w027-domain--hero .w027-tld__ext {
    color: #FFC2A3;
}

.w027-domain--hero .w027-tld__price {
    color: var(--w027-white);
}

body.w027 .w027-domain--hero .w027-domain__pricing {
    color: var(--w027-white);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
    text-underline-offset: 4px;
}

body.w027 .w027-domain--hero .w027-domain__pricing:hover {
    text-decoration-color: var(--w027-orange);
}

/* Default image captcha (if enabled) on the dark hero. */
.w027-domain--hero .domainchecker-homepage-captcha,
.w027-domain--hero #default-captcha-domainchecker p {
    color: var(--w027-on-dark);
}

.w027-domain--hero .domainchecker-homepage-captcha {
    margin-top: 16px;
}

.w027-hero__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin-top: 26px;
}

body.w027 .w027-hero__links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 4px;
    color: var(--w027-white);
    font-weight: 600;
    text-decoration: none;
}

body.w027 .w027-hero__links a:hover {
    text-decoration: underline;
    text-decoration-color: var(--w027-orange);
    text-underline-offset: 4px;
}

.w027-hero__links i {
    color: #FFC2A3;
}

@media (max-width: 767.98px) {
    .w027-hero--search {
        padding: 40px 0 104px;
    }

    .w027-domain__prefix {
        display: none;
    }

    .w027-domain--hero .w027-domain__field {
        align-items: stretch;
    }

    body.w027 .w027-domain--hero .w027-domain__field .form-control {
        height: 54px;
        padding-left: 12px;
        font-size: 1.05rem;
    }

    .w027-domain--hero .w027-domain__buttons .btn {
        min-height: 50px;
        padding: 0 12px;
    }
}

/* 18. Our services: hosting groups + additional services -------------- */
.w027-svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 18px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.w027-svc {
    --w027-tone: var(--w027-blue);
    --w027-tone-soft: rgba(0, 74, 173, 0.10);
    --w027-tone-icon: var(--w027-blue);
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 26px 24px 24px;
    overflow: hidden;
    border: 1px solid var(--w027-border);
    border-radius: var(--w027-radius-lg);
    background: var(--w027-surface);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.w027-svc--orange {
    --w027-tone: var(--w027-orange);
    --w027-tone-soft: rgba(246, 122, 60, 0.16);
    --w027-tone-icon: #B4460F;
}

.w027-svc::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--w027-tone);
    transform: scaleX(0.3);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.w027-svc:hover {
    transform: translateY(-4px);
    border-color: transparent;
    background: var(--w027-white);
    box-shadow: var(--w027-shadow);
}

.w027-svc:hover::before {
    transform: scaleX(1);
}

.w027-svc:focus-within {
    outline: 3px solid var(--w027-blue);
    outline-offset: 2px;
}

body.w027 .w027-svc a:focus-visible {
    outline: none;
}

.w027-svc__badge {
    position: absolute;
    top: 22px;
    right: 20px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--w027-white);
    color: var(--w027-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.w027-svc__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--w027-tone-soft);
    color: var(--w027-tone-icon);
    font-size: 24px;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.w027-svc:hover .w027-svc__icon {
    background: var(--w027-tone);
    color: var(--w027-white);
    transform: rotate(-6deg);
}

.w027-svc--orange:hover .w027-svc__icon {
    color: var(--w027-ink);
}

body.w027 .w027-svc__title {
    margin: 18px 0 8px;
    font-size: 1.2rem;
    overflow-wrap: anywhere;
}

.w027-svc__text {
    margin: 0 0 14px;
    color: var(--w027-muted);
    font-size: 0.93rem;
    line-height: 1.55;
}

.w027-svc__points {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    font-size: 0.88rem;
}

.w027-svc__points li {
    display: flex;
    align-items: baseline;
    gap: 9px;
    padding: 3px 0;
    color: var(--w027-text);
}

.w027-svc__points i {
    flex: none;
    color: var(--w027-blue);
    font-size: 0.75rem;
}

body.w027 .w027-svc__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--w027-blue);
    font-weight: 700;
    text-decoration: none;
}

.w027-svc__link i {
    transition: transform 0.15s ease;
}

.w027-svc:hover .w027-svc__link i {
    transform: translateX(4px);
}

/* Featured hosting card: the main product, in the brand gradient. */
.w027-svc--featured {
    border-color: transparent;
    background:
        radial-gradient(circle at 100% 0%, rgba(246, 122, 60, 0.30), transparent 50%),
        var(--w027-gradient);
    color: var(--w027-on-dark);
    box-shadow: var(--w027-shadow);
}

.w027-svc--featured::before {
    display: none;
}

.w027-svc--featured::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 220px;
    height: 220px;
    border: 28px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.w027-svc--featured:hover {
    background:
        radial-gradient(circle at 100% 0%, rgba(246, 122, 60, 0.38), transparent 55%),
        var(--w027-gradient);
}

.w027-svc--featured .w027-svc__badge {
    background: var(--w027-orange);
    color: var(--w027-ink);
}

.w027-svc--featured .w027-svc__icon,
.w027-svc--featured:hover .w027-svc__icon {
    background: rgba(255, 255, 255, 0.16);
    color: var(--w027-white);
}

body.w027 .w027-svc--featured .w027-svc__title {
    color: var(--w027-white);
}

.w027-svc--featured .w027-svc__text,
.w027-svc--featured .w027-svc__points li {
    color: var(--w027-on-dark);
}

.w027-svc--featured .w027-svc__points i {
    color: #FFC2A3;
}

body.w027 .w027-svc--featured .w027-svc__link {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--w027-orange);
    color: var(--w027-ink);
}

body.w027 .w027-svc--featured:hover .w027-svc__link {
    background: var(--w027-orange-hover);
}

.w027-svc--featured:focus-within {
    outline-color: var(--w027-orange);
}

/* 19. Getting online in 3 steps --------------------------------------- */
.w027-steps3 {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

@media (min-width: 768px) {
    .w027-steps3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.w027-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 24px 26px;
    border: 1px solid var(--w027-border);
    border-radius: var(--w027-radius-lg);
    background: var(--w027-white);
    text-align: center;
    box-shadow: var(--w027-shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.w027-step:hover {
    transform: translateY(-3px);
    box-shadow: var(--w027-shadow);
}

.w027-step__label {
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--w027-surface-2);
    color: var(--w027-blue);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.w027-step__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin: 20px 0 4px;
    border-radius: 50%;
    background: var(--w027-gradient);
    color: var(--w027-white);
    font-size: 30px;
    box-shadow: 0 10px 24px rgba(0, 53, 124, 0.25);
}

.w027-step__icon--orange {
    background: var(--w027-orange);
    color: var(--w027-ink);
    box-shadow: 0 10px 24px rgba(246, 122, 60, 0.35);
}

body.w027 .w027-step__title {
    margin: 14px 0 8px;
    font-size: 1.2rem;
}

.w027-step__text {
    max-width: 30ch;
    margin: 0 0 20px;
    color: var(--w027-muted);
    font-size: 0.93rem;
}

.w027-step .btn {
    margin-top: auto;
}

/* Section spacing on the homepage */
body.w027 .w027-band {
    margin-top: 40px;
}

body.w027 .w027-band + .w027-section {
    margin-top: 56px;
}

body.w027 [id^="w027-"] {
    scroll-margin-top: 16px;
}

/* 20. Closing call to action ------------------------------------------- */
.w027-cta {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 8px;
    padding: 36px 24px;
    overflow: hidden;
    border-radius: var(--w027-radius-lg);
    background: var(--w027-navy);
    color: var(--w027-on-dark);
}

.w027-cta::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -140px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(246, 122, 60, 0.35), transparent);
    pointer-events: none;
}

.w027-cta__copy {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

body.w027 .w027-cta__title {
    margin: 0 0 8px;
    color: var(--w027-white);
    font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
}

.w027-cta__copy p {
    margin: 0;
}

.w027-cta__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.w027-cta__actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

body.w027 .w027-cta a:focus-visible {
    outline-color: var(--w027-white);
}

@media (max-width: 575.98px) {
    .w027-cta__actions,
    .w027-cta__actions .btn {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .w027-cta {
        padding: 48px;
    }
}

/* 21. Logo ------------------------------------------------------------- */
body.w027 header.header .w027-brand__logo {
    display: block;
    width: auto;
    height: 42px;
    max-width: none;
    max-height: none;
}

@media (max-width: 575.98px) {
    body.w027 header.header .w027-brand__logo {
        height: 34px;
    }
}

body.w027 .w027-footer__logo img {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
}

.w027-auth__logo {
    display: block;
    width: 230px;
    max-width: 100%;
    height: auto;
    margin-bottom: 28px;
}

/* 22. Contact page ----------------------------------------------------- */
.w027-contact {
    margin: 8px 0 24px;
}

.w027-contact__hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 40px 26px 88px;
    overflow: hidden;
    border-radius: var(--w027-radius-lg);
    background:
        radial-gradient(circle at 100% 0%, rgba(246, 122, 60, 0.35), transparent 45%),
        radial-gradient(circle at 0% 100%, rgba(255, 255, 255, 0.10), transparent 40%),
        var(--w027-gradient);
    color: var(--w027-on-dark);
}

body.w027 .w027-contact__title {
    max-width: 18ch;
    margin: 0 0 14px;
    color: var(--w027-white);
    font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.9rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.w027-contact__lead {
    max-width: 56ch;
    margin: 0;
    font-size: 1.05rem;
}

.w027-contact__hero-art {
    position: relative;
    display: none;
    height: 200px;
}

.w027-contact__bubble {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: var(--w027-white);
    color: var(--w027-blue);
    box-shadow: 0 18px 36px rgba(0, 20, 60, 0.35);
    animation: w027-float 6s ease-in-out infinite;
}

.w027-contact__bubble--a { top: 10px; left: 30px; width: 104px; height: 104px; font-size: 44px; border-bottom-left-radius: 6px; }
.w027-contact__bubble--b { top: 0; right: 20px; width: 76px; height: 76px; font-size: 30px; background: var(--w027-orange); color: var(--w027-ink); animation-delay: -2s; }
.w027-contact__bubble--c { bottom: 6px; right: 70px; width: 70px; height: 70px; font-size: 28px; animation-delay: -4s; }

@media (min-width: 992px) {
    .w027-contact__hero {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr);
        padding: 56px 52px 104px;
    }

    .w027-contact__hero-art {
        display: block;
    }
}

/* Contact method cards overlap the hero. */
.w027-contact__methods {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin: -60px 16px 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .w027-contact__methods {
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
        margin: -64px 28px 0;
    }
}

.w027-contact__method {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid var(--w027-border);
    border-radius: var(--w027-radius);
    background: var(--w027-white);
    box-shadow: var(--w027-shadow);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.w027-contact__method:hover {
    transform: translateY(-3px);
    border-color: var(--w027-blue);
}

.w027-contact__method:focus-within {
    outline: 3px solid var(--w027-blue);
    outline-offset: 2px;
}

body.w027 .w027-contact__method a:focus-visible {
    outline: none;
}

.w027-contact__method-icon {
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--w027-surface-2);
    color: var(--w027-blue);
    font-size: 21px;
}

.w027-contact__method strong {
    color: var(--w027-ink);
    font-size: 1rem;
    line-height: 1.25;
}

.w027-contact__method > span:not(.w027-contact__method-icon) {
    color: var(--w027-muted);
    font-size: 0.875rem;
}

.w027-contact__method--wa {
    border-color: #0F8340;
}

.w027-contact__method--wa .w027-contact__method-icon {
    background: #0F8340;
    color: var(--w027-white);
    font-size: 26px;
}

.w027-contact__method--wa > span:not(.w027-contact__method-icon) {
    color: #0B6B34;
    font-weight: 700;
}

/* Form + side panel */
.w027-contact__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 28px;
}

@media (min-width: 992px) {
    .w027-contact__body {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
        align-items: start;
    }
}

.w027-contact__aside {
    padding: 28px 24px;
    border-radius: var(--w027-radius-lg);
    background: var(--w027-surface-3);
    order: 2;
}

@media (min-width: 992px) {
    .w027-contact__aside {
        order: 0;
        position: sticky;
        top: 16px;
    }
}

body.w027 .w027-contact__aside-title {
    margin: 0 0 14px;
    font-size: 1.2rem;
}

.w027-contact__topics {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.w027-contact__topics li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(0, 74, 173, 0.12);
    color: var(--w027-ink);
    font-weight: 600;
}

.w027-contact__topics li:last-child {
    border-bottom: 0;
}

.w027-contact__topics i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--w027-white);
    color: var(--w027-blue);
}

body.w027 .w027-contact__aside-sub {
    margin: 0 0 10px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--w027-blue);
}

.w027-contact__next {
    margin: 0;
    padding-left: 20px;
    color: var(--w027-text);
    font-size: 0.92rem;
}

.w027-contact__next li {
    margin-bottom: 6px;
}

.w027-contact__form-wrap {
    padding: 30px 22px;
    border: 1px solid var(--w027-border);
    border-top: 4px solid var(--w027-orange);
    border-radius: var(--w027-radius-lg);
    background: var(--w027-white);
    box-shadow: var(--w027-shadow-sm);
}

@media (min-width: 576px) {
    .w027-contact__form-wrap {
        padding: 36px 36px 32px;
    }
}

body.w027 .w027-contact__form-title {
    margin: 0 0 20px;
    font-size: 1.4rem;
}

body.w027 .w027-contact__form label {
    color: var(--w027-ink);
    font-weight: 600;
}

body.w027 .w027-contact__form .form-control {
    min-height: 48px;
    border-color: var(--w027-border);
    border-radius: 10px;
    background: var(--w027-surface);
}

body.w027 .w027-contact__form .form-control:focus {
    background: var(--w027-white);
}

.w027-contact__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-top: 8px;
}

.w027-contact__actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.w027 .w027-contact__wa-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0B6B34;
    font-weight: 700;
    text-decoration: none;
}

body.w027 .w027-contact__wa-link i {
    font-size: 1.3em;
}

body.w027 .w027-contact__wa-link:hover {
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .w027-contact__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* 23. Floating WhatsApp button (every page) ---------------------------- */
body.w027 .w027-wa {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 58px;
    padding: 0 14px;
    border: 3px solid var(--w027-white);
    border-radius: 999px;
    background: #0F8340;
    color: var(--w027-white);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(0, 30, 15, 0.35);
    transition: transform 0.15s ease, background-color 0.15s ease;
}

body.w027 .w027-wa:hover {
    transform: translateY(-2px);
    background: #0B6B34;
    color: var(--w027-white);
    text-decoration: none;
}

body.w027 .w027-wa:focus-visible {
    outline: 3px solid var(--w027-blue);
    outline-offset: 3px;
}

.w027-wa__icon {
    flex: none;
    width: 28px;
    height: 28px;
}

.w027-wa__label {
    padding-right: 4px;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Icon-only circle on phones so it never covers content. */
@media (max-width: 767.98px) {
    body.w027 .w027-wa {
        right: 14px;
        bottom: 14px;
        width: 58px;
        padding: 0;
        justify-content: center;
    }

    .w027-wa__label {
        display: none;
    }
}

/* Keep the bottom of the page clear of the floating button. */
body.w027 footer.footer.w027-footer {
    padding-bottom: 96px;
}

@media (prefers-reduced-motion: reduce) {
    .w027-contact__bubble {
        animation: none !important;
    }
}

@media print {
    .w027-wa {
        display: none !important;
    }
}

/* 14. Utilities, reduced motion, print --------------------------------- */
@media (prefers-reduced-motion: reduce) {
    body.w027 *,
    body.w027 *::before,
    body.w027 *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    .w027-quick__card:hover,
    .w027-service:hover,
    .w027-svc:hover,
    .w027-step:hover {
        transform: none !important;
    }

    .w027-hero__art .w027-float {
        animation: none !important;
    }
}

@media print {
    .w027-topbar,
    .w027-mainbar__actions,
    .w027-hero,
    .w027-quick,
    .w027-footer,
    .w027-skip-link {
        display: none !important;
    }
}
