/* =========================================================
   Developer directory + developer profile pages
   Theme: primary #26ae61, heading #001935 (matches style.css)
   ========================================================= */

:root {
    --dev-primary: #26ae61;
    --dev-primary-dark: #1e8449;
    --dev-heading: #001935;
    --dev-text: #4b5563;
    --dev-muted: #6b7280;
    --dev-border: #e6ebf1;
    --dev-soft: #f4f7fa;

    --tier-platinum-from: #1f2937;
    --tier-platinum-to: #64748b;
    --tier-gold-from: #f8d06b;
    --tier-gold-to: #d49b12;
    --tier-basic-from: #34c47a;
    --tier-basic-to: #1e8449;
}

/* ---------- shared tier tokens ---------- */
.tier-platinum {
    --tier-from: var(--tier-platinum-from);
    --tier-to: var(--tier-platinum-to);
    --tier-ink: #ffffff;
    --tier-accent: #475569;
}

.tier-gold {
    --tier-from: var(--tier-gold-from);
    --tier-to: var(--tier-gold-to);
    --tier-ink: #3b2a00;
    --tier-accent: #c48a0a;
}

.tier-basic {
    --tier-from: var(--tier-basic-from);
    --tier-to: var(--tier-basic-to);
    --tier-ink: #ffffff;
    --tier-accent: var(--dev-primary);
}

.dev-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--tier-from), var(--tier-to));
    color: var(--tier-ink);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

/* =========================================================
   Directory page
   ========================================================= */
.dev-hero {
    position: relative;
    padding: 70px 0 60px;
    background: linear-gradient(135deg, #0f2a47 0%, #16406b 55%, #1d7a4c 120%);
    overflow: hidden;
    text-align: center;
}

.dev-hero::before,
.dev-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
}

.dev-hero::before {
    width: 420px;
    height: 420px;
    top: -180px;
    left: -120px;
}

.dev-hero::after {
    width: 320px;
    height: 320px;
    bottom: -170px;
    right: -80px;
}

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

.dev-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #c9f2db;
    font-size: 13px;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.dev-hero-title {
    max-width: 820px;
    margin: 18px auto 14px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.15;
}

.dev-hero-title span {
    color: #5fe39a;
}

.dev-hero-text {
    max-width: 760px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, .82);
    font-size: 1.02rem;
    line-height: 1.7;
}

.dev-hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.dev-hero-stat {
    min-width: 150px;
    padding: 14px 22px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(6px);
}

.dev-hero-stat strong {
    display: block;
    color: #fff;
    font-family: "Barlow Semi Condensed", sans-serif;
    font-size: 1.9rem;
    line-height: 1;
}

.dev-hero-stat span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
}

/* tier quick navigation */
.dev-tier-nav {
    position: relative;
    z-index: 2;
    margin-top: -26px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.dev-tier-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    background: #fff;
    color: var(--dev-heading);
    font-weight: 600;
    box-shadow: 0 10px 28px rgba(15, 42, 71, .12);
    transition: transform .2s ease, box-shadow .2s ease;
}

.dev-tier-nav a i {
    color: var(--tier-accent);
}

.dev-tier-nav a small {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--dev-soft);
    color: var(--dev-muted);
    font-weight: 600;
}

.dev-tier-nav a:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(15, 42, 71, .18);
    color: var(--dev-heading);
}

/* tier sections */
.dev-directory {
    padding: 60px 0 80px;
}

.dev-tier {
    scroll-margin-top: 110px;
}

.dev-tier + .dev-tier {
    margin-top: 64px;
}

.dev-tier-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
}

.dev-tier-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--tier-from), var(--tier-to));
    color: var(--tier-ink);
    font-size: 22px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .12);
}

.dev-tier-title {
    margin: 0;
    color: var(--dev-heading);
    font-size: 1.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.dev-tier-title span {
    color: var(--tier-accent);
}

.dev-tier-line {
    width: 70px;
    height: 4px;
    margin-top: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--tier-from), var(--tier-to));
}

/* developer cards: flex so a short last row stays centred under the tier heading */
.dev-grid {
    --dev-cols: 6;
    --dev-gap: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--dev-gap);
}

.dev-card {
    flex: 0 0 calc((100% - (var(--dev-cols) - 1) * var(--dev-gap)) / var(--dev-cols));
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 18px 14px 16px;
    border: 1px solid var(--dev-border);
    border-radius: 16px;
    background: #fff;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.dev-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--tier-from), var(--tier-to));
    opacity: 0;
    transition: opacity .25s ease;
}

.dev-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 18px 36px rgba(15, 42, 71, .12);
}

.dev-card:hover::before {
    opacity: 1;
}

.dev-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.dev-card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .3s ease;
}

.dev-card:hover .dev-card-logo img {
    transform: scale(1.05);
}

.dev-card-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--tier-from), var(--tier-to));
    color: var(--tier-ink);
    font-family: "Barlow Semi Condensed", sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
}

.dev-card-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    margin: 14px 0 6px;
    color: var(--dev-primary);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.dev-card:hover .dev-card-name {
    color: var(--dev-primary-dark);
}

.dev-card-meta {
    margin-top: auto;
    color: var(--dev-muted);
    font-size: 12px;
}

.dev-card-meta i {
    margin-right: 4px;
    color: var(--tier-accent);
}

/* "list your company" band under the directory */
.dev-join {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 64px;
    padding: 30px 34px;
    border: 1px solid var(--dev-border);
    border-left: 5px solid var(--dev-primary);
    border-radius: 16px;
    background: #fff;
}

.dev-join-title {
    margin: 0 0 6px;
    color: var(--dev-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.dev-join-text {
    color: var(--dev-text);
    font-size: 15px;
}

.dev-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 10px;
    background: var(--dev-primary);
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    transition: background .2s ease;
}

.dev-join-btn:hover {
    background: var(--dev-primary-dark);
    color: #fff;
}

/* empty state (both pages) */
.dev-empty {
    padding: 60px 20px;
    border-radius: 18px;
    background: var(--dev-soft);
    text-align: center;
}

.dev-empty i {
    margin-bottom: 14px;
    color: #9ca3af;
    font-size: 2.2rem;
}

.dev-empty-text {
    color: var(--dev-muted);
    font-size: 15px;
}

/* =========================================================
   Developer profile page
   ========================================================= */
.dev-banner {
    position: relative;
    height: 440px;
    background: #0f2a47;
    overflow: hidden;
}

.dev-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dev-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 25, 53, .45) 100%);
}

.dev-banner--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f2a47 0%, #16406b 55%, #1d7a4c 120%);
}

.dev-banner--fallback::after {
    display: none;
}

.dev-banner-fallback-name {
    position: relative;
    z-index: 1;
    padding: 0 20px;
    color: rgba(255, 255, 255, .92);
    font-family: "Barlow Semi Condensed", sans-serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-align: center;
    text-transform: uppercase;
}

/* profile card overlapping the banner */
.dev-profile {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: -90px;
    padding: 26px 30px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(15, 42, 71, .14);
}

.dev-profile-logo {
    flex: 0 0 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    padding: 14px;
    border: 1px solid var(--dev-border);
    border-radius: 18px;
    background: #fff;
}

.dev-profile-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.dev-profile-logo .dev-card-initial {
    font-size: 3.4rem;
}

.dev-profile-info {
    flex: 1 1 auto;
    min-width: 0;
}

.dev-profile-name {
    margin: 10px 0 8px;
    color: var(--dev-heading);
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.15;
}

.dev-profile-short {
    margin-bottom: 12px;
    color: var(--dev-text);
    font-size: 15px;
    line-height: 1.65;
}

.dev-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--dev-muted);
    font-size: 14px;
}

.dev-profile-meta i {
    margin-right: 6px;
    color: var(--dev-primary);
}

.dev-profile-actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dev-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
    transition: all .2s ease;
}

.dev-btn-primary {
    background: var(--dev-primary);
    color: #fff;
    box-shadow: 0 10px 20px rgba(38, 174, 97, .25);
}

.dev-btn-primary:hover {
    background: var(--dev-primary-dark);
    color: #fff;
}

.dev-btn-outline {
    border-color: var(--dev-border);
    background: #fff;
    color: var(--dev-heading);
}

.dev-btn-outline:hover {
    border-color: var(--dev-primary);
    color: var(--dev-primary);
}

/* about + contact */
.dev-body {
    padding: 50px 0 10px;
}

.dev-panel {
    height: 100%;
    padding: 28px 30px;
    border: 1px solid var(--dev-border);
    border-radius: 18px;
    background: #fff;
}

.dev-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--dev-heading);
    font-size: 1.45rem;
    font-weight: 700;
}

.dev-panel-title::before {
    content: '';
    width: 5px;
    height: 24px;
    border-radius: 4px;
    background: var(--dev-primary);
}

.dev-about {
    color: var(--dev-text);
    font-size: 15px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.dev-about img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.dev-about table {
    width: 100%;
}

.dev-contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dev-contact-list li {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--dev-border);
}

.dev-contact-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.dev-contact-icon {
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(38, 174, 97, .1);
    color: var(--dev-primary);
}

.dev-contact-label {
    display: block;
    color: var(--dev-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.dev-contact-value {
    display: block;
    color: var(--dev-heading);
    font-size: 15px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

a.dev-contact-value:hover {
    color: var(--dev-primary);
}

/* recent work gallery */
.dev-gallery {
    padding: 50px 0 0;
}

.dev-gallery-head {
    margin-bottom: 26px;
    text-align: center;
}

.dev-gallery-title {
    margin: 0;
    color: var(--dev-heading);
    font-size: 1.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

.dev-gallery-sub {
    margin-top: 8px;
    color: var(--dev-muted);
    font-size: 15px;
}

/* even tiles; flex so a short last row sits in the middle instead of leaving a hole */
.dev-gallery-grid {
    --cols: var(--gallery-cols, 4);
    --gap: 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--gap);
}

.dev-gallery-grid .dev-gallery-item {
    flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
}

/* a single photo should not stretch over the whole container */
.dev-gallery-grid[style*="--gallery-cols: 1;"] {
    max-width: 760px;
    margin: 0 auto;
}

/* 5 or 9 photos: first one is a double tile and the rest fill rows of four */
.dev-gallery-grid.is-featured {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dev-gallery-grid.is-featured .dev-gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.dev-gallery-item {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    background: var(--dev-soft);
    overflow: hidden;
}

.dev-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.dev-gallery-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 25, 53, .35);
    color: #fff;
    font-size: 1.4rem;
    opacity: 0;
    transition: opacity .25s ease;
}

.dev-gallery-item:hover img {
    transform: scale(1.06);
}

.dev-gallery-item:hover .dev-gallery-zoom {
    opacity: 1;
}

/* properties */
.dev-properties {
    padding: 50px 0 80px;
}

.dev-properties-head {
    margin-bottom: 30px;
    text-align: center;
}

.dev-properties-title {
    margin: 0;
    color: var(--dev-heading);
    font-size: 1.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

.dev-properties-title span {
    color: var(--dev-primary);
}

.dev-properties-sub {
    margin-top: 8px;
    color: var(--dev-muted);
    font-size: 15px;
}

/* enquiry form ("Contact this developer") */
.dev-enquiry {
    padding: 0 0 80px;
}

.dev-enquiry-card {
    border: 1px solid var(--dev-border);
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 42, 71, .06);
}

.dev-enquiry-info {
    height: 100%;
    padding: 36px 34px;
    background: linear-gradient(160deg, #0f2a47 0%, #16406b 70%, #1d7a4c 140%);
}

.dev-enquiry-label {
    display: inline-block;
    margin-bottom: 10px;
    color: #7fe3a5;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.dev-enquiry-title {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.dev-enquiry-text {
    margin-bottom: 26px;
    color: rgba(255, 255, 255, .82);
    font-size: 15px;
    line-height: 1.7;
}

.dev-enquiry-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dev-enquiry-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 14.5px;
}

.dev-enquiry-steps li + li {
    margin-top: 14px;
}

.dev-enquiry-steps span {
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
}

.dev-enquiry-form {
    padding: 34px;
}

.dev-form .form-label {
    margin-bottom: 6px;
    color: var(--dev-heading);
    font-size: 14px;
    font-weight: 600;
}

.dev-form .form-label .req {
    color: #dc3545;
}

.dev-form .form-control {
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #d5dce4;
    border-radius: 10px;
    color: var(--dev-heading);
    font-size: 15px;
    box-shadow: none;
}

.dev-form textarea.form-control {
    min-height: auto;
    resize: vertical;
}

.dev-form .form-control:focus {
    border-color: var(--dev-primary);
    box-shadow: 0 0 0 3px rgba(38, 174, 97, .15);
}

/* custom-mrt-dev.css turns every placeholder white */
.dev-form .form-control::placeholder {
    color: #9ca3af !important;
}

.dev-form .form-control.is-invalid {
    border-color: #dc3545;
}

.dev-form-hint {
    margin-top: 6px;
    color: var(--dev-muted);
    font-size: 12.5px;
}

.dev-form-error {
    display: block;
    margin-top: 6px;
    color: #dc3545;
    font-size: 13px;
}

.dev-enquiry-submit {
    width: 100%;
    border-radius: 10px;
}

.dev-enquiry-submit:disabled {
    opacity: .7;
    cursor: wait;
}

.dev-enquiry-done {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 40px 10px;
    color: var(--dev-text);
    font-size: 15px;
    text-align: center;
}

.dev-enquiry-done h3 {
    margin: 0 0 8px;
    color: var(--dev-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.dev-enquiry-done-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: rgba(38, 174, 97, .12);
    color: var(--dev-primary);
    font-size: 26px;
}

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
    .dev-grid {
        --dev-cols: 5;
    }
}

@media (max-width: 991px) {
    .dev-grid {
        --dev-cols: 4;
    }

    .dev-hero-title {
        font-size: 2.1rem;
    }

    .dev-banner {
        height: 340px;
    }

    .dev-profile {
        flex-wrap: wrap;
    }

    .dev-profile-actions {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .dev-grid {
        --dev-cols: 3;
        --dev-gap: 14px;
    }

    .dev-hero {
        padding: 50px 0 54px;
    }

    .dev-hero-title {
        font-size: 1.8rem;
    }

    .dev-tier-title,
    .dev-properties-title,
    .dev-gallery-title {
        font-size: 1.5rem;
    }

    .dev-gallery-grid {
        --cols: min(var(--gallery-cols, 2), 2);
        --gap: 10px;
    }

    .dev-gallery-grid.is-featured {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dev-enquiry-info,
    .dev-enquiry-form {
        padding: 26px 18px;
    }

    .dev-enquiry-title {
        font-size: 1.5rem;
    }

    .dev-banner {
        height: 240px;
    }

    .dev-banner-fallback-name {
        font-size: 2rem;
    }

    .dev-profile {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-top: -60px;
        padding: 22px 18px;
        text-align: center;
    }

    .dev-profile-logo {
        flex-basis: auto;
        width: 120px;
        height: 120px;
    }

    .dev-profile-name {
        font-size: 1.6rem;
    }

    .dev-profile-meta {
        justify-content: center;
    }

    .dev-profile-actions {
        justify-content: center;
    }

    .dev-panel {
        padding: 22px 18px;
    }
}

@media (max-width: 479px) {
    .dev-grid {
        --dev-cols: 2;
    }

    .dev-hero-stat {
        min-width: calc(50% - 7px);
        padding: 12px 10px;
    }

    .dev-tier-nav a {
        padding: 10px 14px;
        font-size: 13px;
    }

    .dev-profile-actions .dev-btn {
        flex: 1 1 100%;
    }
}
