
/* Ensure JavaScript filtering hides rows even when cards use grid/flex layouts */
[hidden] {
    display: none !important;
}

:root {
    --ink: #0f1b2d;
    --muted: #637086;
    --page: #f3f6fa;
    --card: #ffffff;
    --line: #dfe7f0;
    --navy: #071a35;
    --navy-2: #0c294d;
    --blue: #1d5d9b;
    --teal: #47c7b8;
    --gold: #d7a84d;
    --gold-soft: #e8f4fb;
    --shadow: 0 18px 50px rgba(7, 26, 53, 0.14);
    --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 0%, rgba(71, 199, 184, 0.14), transparent 34rem),
        radial-gradient(circle at 92% 14%, rgba(215, 168, 77, 0.14), transparent 32rem),
        linear-gradient(180deg, #f8fbff 0%, var(--page) 45%, #eef3f8 100%);
    line-height: 1.5;
}

a { color: inherit; }

.wrap {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(7, 26, 53, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(7, 26, 53, 0.18);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 850;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.brand-logo {
    display: block;
    width: 28px;
    height: 29px;
}

.brand-name {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.brand-name span:first-child { color: #ffffff; }
.brand-name span:last-child { color: rgba(255, 255, 255, 0.74); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: rgba(255, 255, 255, 0.76);
    font-weight: 700;
}

.nav-links a { text-decoration: none; }
.nav-links a:hover { color: #ffffff; }

.hero {
    padding: 86px 0 66px;
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 18%, rgba(71, 199, 184, 0.28), transparent 26rem),
        radial-gradient(circle at 88% 22%, rgba(215, 168, 77, 0.22), transparent 30rem),
        linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 58%, #102f56 100%);
    overflow: hidden;
}

.portfolio-hero { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 38px;
    align-items: center;
}

.hero-copy-block { position: relative; z-index: 1; }

.eyebrow {
    margin: 0 0 12px;
    color: var(--teal);
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

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

h1 {
    margin-bottom: 20px;
    max-width: 850px;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.landing-title {
    max-width: 900px;
    font-size: clamp(2.25rem, 5vw, 4.15rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.landing-title span,
.landing-title small {
    display: block;
}

.landing-title small {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.48em;
    letter-spacing: -0.025em;
}

h2 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.22rem;
    letter-spacing: -0.025em;
}

.hero-copy {
    max-width: 710px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.18rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 850;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-1px); }

.button-primary {
    color: var(--navy);
    background: linear-gradient(135deg, #ffffff, #dff8f5);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.button-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-card,
.domain-panel {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
}

.hero-card {
    display: grid;
    gap: 18px;
}

.stat {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.stat span {
    display: block;
    color: #ffffff;
    font-size: 3rem;
    font-weight: 950;
    letter-spacing: -0.07em;
}

.stat small {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 750;
}

.hero-card p { margin-bottom: 0; color: rgba(255, 255, 255, 0.74); }

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.featured-section,
.catalogue-section {
    padding: 58px 0 58px;
}

.featured-section .eyebrow,
.catalogue-section .eyebrow { color: var(--blue); }

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

.feature-card,
.domain-row {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(223, 231, 240, 0.95);
    box-shadow: 0 12px 34px rgba(7, 26, 53, 0.08);
}

.feature-card {
    display: flex;
    flex-direction: column;
    min-height: 244px;
    padding: 24px;
    border-radius: 20px;
}

.feature-card h3 { overflow-wrap: anywhere; }

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

.category-pill {
    display: inline-flex;
    width: max-content;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    color: #17466f;
    background: var(--gold-soft);
    font-size: 0.75rem;
    font-weight: 850;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-weight: 850;
}

.card-footer a,
.row-actions a {
    color: var(--blue);
    font-weight: 850;
    text-decoration: none;
}

.card-footer a:hover,
.row-actions a:hover { text-decoration: underline; }

.catalogue-heading {
    align-items: center;
}

.tools {
    display: flex;
    gap: 10px;
    width: min(620px, 100%);
    min-width: min(560px, 100%);
}

input,
select {
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    font-weight: 650;
    outline: none;
}

input {
    flex: 1;
    min-width: 210px;
    padding: 0 18px;
}

select { padding: 0 38px 0 16px; }

input:focus,
select:focus {
    border-color: rgba(29, 93, 155, 0.7);
    box-shadow: 0 0 0 4px rgba(29, 93, 155, 0.12);
}

.domain-list {
    display: grid;
    gap: 10px;
}

.domain-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 20px;
    align-items: center;
    padding: 18px;
    border-radius: 18px;
}

.domain-name {
    font-size: 1.08rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
}

.domain-name a {
    color: inherit;
    text-decoration: none;
}

.domain-name a:hover {
    color: var(--blue);
    text-decoration: underline;
}

.domain-meta {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(100px, 130px) auto;
    align-items: center;
    gap: 14px;
    text-align: left;
}

.domain-price {
    display: block;
    max-width: none;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.15;
    justify-self: center;
    text-align: center;
}

.row-actions {
    display: flex;
    gap: 12px;
    white-space: nowrap;
    justify-self: end;
}

.row-actions .enquire-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--blue);
    text-decoration: none;
}

.row-actions .enquire-link:hover {
    color: #ffffff;
    text-decoration: none;
    background: var(--navy-2);
}

.no-results {
    padding: 24px;
    border-radius: 18px;
    background: #ffffff;
    color: var(--muted);
    font-weight: 700;
}

.landing-hero {
    min-height: calc(100vh - 77px);
    display: flex;
    align-items: center;
}

.domain-panel {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.panel-label {
    margin-bottom: 10px;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.big-domain {
    margin-bottom: 22px;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.06em;
    overflow-wrap: anywhere;
}

dl { margin: 0; }

dl div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

dt { color: rgba(255, 255, 255, 0.72); font-weight: 750; }
dd { margin: 0; font-weight: 900; text-align: right; }
dd a { color: #ffffff; }

.included-title {
    margin: 20px 0 8px;
    font-weight: 850;
}

.included-list {
    margin: 0;
    padding-left: 18px;
    color: rgba(255, 255, 255, 0.76);
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 58px 0 70px;
}

.trust-strip div {
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 26px rgba(7, 26, 53, 0.06);
}

.trust-strip strong,
.trust-strip span { display: block; }
.trust-strip span { margin-top: 4px; color: var(--muted); font-size: 0.92rem; }

.site-footer {
    margin-top: 40px;
    padding: 32px 0;
    color: rgba(255,255,255,0.76);
    background: var(--navy);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.site-footer p { margin: 6px 0 0; }
.site-footer a { color: #ffffff; font-weight: 750; }
.site-footer div:last-child {
    display: flex;
    gap: 18px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1040px) {
    .domain-row { grid-template-columns: 1fr; }
    .domain-meta {
        grid-template-columns: minmax(0, 1fr) minmax(86px, auto) auto;
        width: 100%;
        align-items: center;
        text-align: left;
    }
    .domain-price { justify-self: center; text-align: center; }
    .row-actions { justify-self: end; }
}

@media (max-width: 920px) {
    .hero-grid,
    .trust-strip { grid-template-columns: 1fr; }
    .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .catalogue-heading { align-items: start; flex-direction: column; }
    .tools { width: 100%; flex-direction: column; }
    input { min-width: 0; }
}

@media (max-width: 640px) {
    .wrap { width: min(100% - 28px, 1180px); }
    .nav { align-items: flex-start; gap: 12px; flex-direction: column; }
    .nav-links { flex-wrap: wrap; gap: 12px 16px; }
    .hero { padding-top: 56px; }
    .featured-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .button { width: 100%; }
    .domain-meta {
        grid-template-columns: minmax(0, 1fr) auto auto;
        width: 100%;
        gap: 10px;
        justify-items: stretch;
        align-items: center;
    }
    .domain-meta .category-pill {
        max-width: 100%;
        justify-self: start;
        font-size: 0.72rem;
        padding: 6px 9px;
    }
    .domain-price {
        max-width: none;
        justify-self: center;
        text-align: center;
        font-size: 1.02rem;
    }
    .row-actions { justify-self: end; }
    .row-actions .enquire-link { min-height: 34px; padding: 0 12px; }
    .footer-grid { flex-direction: column; }
    .site-footer div:last-child { flex-direction: column; gap: 8px; }
}
