/* assets/css/style.css */

:root {
    --hrbc-bg: #f7f8fa;
    --hrbc-bg-alt: #ffffff;
    --hrbc-accent: #1f3b59;
    --hrbc-accent-soft: #e3edf7;
    --hrbc-text-main: #1b1f24;
    --hrbc-text-muted: #6c757d;
    --hrbc-border-soft: #dde1e7;
    --hrbc-header-bg: #ffffff;
    --hrbc-footer-bg: #ffffff;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--hrbc-text-main);
    background: var(--hrbc-bg);
}

.text-muted {
    color: var(--hrbc-text-muted) !important;
}

main {
    padding-bottom: 3rem;
}

.hrbc-navbar-wrapper {
    position: relative;
}

.hrbc-navbar {
    backdrop-filter: blur(12px);
    background-color: var(--hrbc-header-bg) !important;
}

.hrbc-navbar-offset {
    height: 72px;
}

.navbar-brand .logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hrbc-accent);
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

.navbar-brand .logo-text {
    font-family: 'Playfair Display', serif;
    line-height: 1.1;
    font-size: 0.85rem;
}

.navbar-brand .logo-sub {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.nav-link.active {
    color: var(--hrbc-accent) !important;
}

.btn-outline-primary {
    border-color: var(--hrbc-accent);
    color: var(--hrbc-accent);
}

.btn-outline-primary:hover {
    background: var(--hrbc-accent);
    color: #fff;
}

/* Primary buttons use theme accent */
.btn-primary {
    background-color: var(--hrbc-accent);
    border-color: var(--hrbc-accent);
}
.btn-primary:hover {
    background-color: var(--hrbc-accent);
    border-color: var(--hrbc-accent);
    filter: brightness(1.1);
}

.hrbc-hero {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top left, var(--hrbc-accent-soft) 0, var(--hrbc-bg) 40%, var(--hrbc-bg-alt) 100%);
    position: relative;
    overflow: hidden;
}

.hrbc-hero-portrait {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(10, 16, 30, 0.25);
    min-height: 320px;
}

.hrbc-hero-portrait .hrbc-hero-img {
    min-height: 320px;
    object-fit: cover;
    object-position: center;
}

.hrbc-hero-portrait .placeholder-img {
    min-height: 340px;
    background: url('https://images.pexels.com/photos/614810/pexels-photo-614810.jpeg?auto=compress&cs=tinysrgb&w=1200') center/cover no-repeat;
}

.hrbc-hero-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--hrbc-accent);
    font-weight: 600;
}

.hrbc-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 3vw + 1.5rem, 3.4rem);
}

.hrbc-hero-sub {
    max-width: 540px;
    color: var(--hrbc-text-muted);
}

.pill-stat {
    border-radius: 999px;
    border: 1px solid var(--hrbc-border-soft);
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    color: var(--hrbc-text-muted);
}

.section-padding {
    padding: 4.5rem 0;
}

.section-heading {
    font-family: 'Playfair Display', serif;
}

.timeline {
    position: relative;
    padding-left: 1.5rem;
    margin-top: 2rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--hrbc-accent), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-dot {
    position: absolute;
    left: -1px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #fff;
    border: 3px solid var(--hrbc-accent);
}

.timeline-card {
    margin-left: 2rem;
    border-radius: 18px;
    border: 1px solid var(--hrbc-border-soft);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.06);
}

.hrbc-footer {
    border-top: 1px solid var(--hrbc-border-soft);
    background: var(--hrbc-footer-bg);
}

/* Evidence grid: uniform card heights, no white space below images */
.hrbc-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .hrbc-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hrbc-gallery-grid .card-evidence {
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hrbc-gallery-grid .card-evidence .hrbc-gallery-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.card-evidence:hover .hrbc-gallery-img {
    transform: scale(1.05);
}

.card-evidence img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-evidence:hover img {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
}

.hrbc-what-img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.product-section {
    border-radius: 24px;
    padding: 2.5rem;
    background: var(--hrbc-bg-alt);
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.06);
    border: 1px solid var(--hrbc-border-soft);
}

.wysiwyg-toolbar button {
    border-radius: 0;
}

.wysiwyg-editor {
    border: 1px solid var(--hrbc-border-soft);
    border-radius: 6px;
    padding: 0.75rem;
    background: var(--hrbc-bg-alt);
    min-height: 160px;
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Contact page: full width, cover side space */
.contact-page-full .container-fluid {
    max-width: 100%;
}

.contact-card-full {
    max-width: 100%;
}

/* Why We Exist: top image full width on PC (and mobile) */
.why-hero-image-wrap {
    width: 100%;
    overflow: hidden;
}

.why-hero-image-wrap img {
    width: 100%;
    display: block;
    max-height: 420px;
    object-fit: cover;
    object-position: center;
}

/* Full-width quote card (last card) - cover side space */
.full-bleed-card {
    border-radius: 0;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (max-width: 767.98px) {
    .product-section {
        padding: 1.5rem;
    }

    .hrbc-hero-portrait {
        margin-top: 2rem;
    }
}

