/*
Theme Name: Bluehost Realm
Template: yith-wonder
Description: Child theme for RealmCorp utility billing site, built on YITH Wonder.
Version: 1.0.0
Author: RealmCorp
Text Domain: bluehost-realm
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
    --realm-brand-blue: #015691;
    --realm-brand-blue-dark: #013d5f;
    --realm-brand-blue-light: #0177b8;
    --realm-text-dark: #333;
    --realm-text-muted: #5f6368;
    --realm-bg-light: #fafbfc;
    --realm-bg-page: #f8f9fa;
    --realm-border-color: #e8eaed;
    --realm-input-border: #e2e8f0;
}

/* ==========================================================================
   Homepage Hero Section
   Targets WordPress block markup class names from home-blocks.txt
   ========================================================================== */

.realm-home-hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.realm-hero-container {
    max-width: 1200px;
}

.realm-hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    text-transform: capitalize;
    line-height: 1.1;
}

.realm-search-card {
    border-radius: 20px;
    background-color: var(--realm-bg-light);
}

.realm-search-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.realm-search-description {
    color: var(--realm-text-muted);
    font-size: clamp(1rem, 2vw, 1.125rem);
}

/* ==========================================================================
   Building Hub — Hero
   ========================================================================== */

.building-hub-hero {
    background: linear-gradient(135deg, var(--realm-brand-blue) 0%, var(--realm-brand-blue-light) 100%);
    color: #fff;
    padding: 3rem 2rem;
    margin: 0;
}

.building-hub-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.building-hub-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.building-details {
    display: flex;
    gap: 2rem;
    font-size: 1.1rem;
    margin: 0;
    padding: 0;
}

.building-details .detail-item {
    margin: 0;
    padding: 0;
}

.building-details span {
    color: #fff;
}

.bluebilling-portal-wrap {
    margin-top: 2rem;
}

/* ==========================================================================
   Building Hub — Services
   ========================================================================== */

.building-services-section {
    padding: 2rem 0;
    margin-bottom: 3rem;
}

.building-services-title {
    color: var(--realm-brand-blue);
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
}

.building-services-subtitle {
    color: var(--realm-text-muted);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Service cards */
.service-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--realm-border-color);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--realm-brand-blue);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.service-card:hover::before {
    transform: translateX(0);
}

.service-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.service-card h3 {
    color: #121217;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--realm-text-muted);
    line-height: 1.6;
    margin: 0;
}

.service-card--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: #f0f7ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Building Hub — Rates
   ========================================================================== */

.building-rates-section {
    margin: 3rem 0;
    padding: 3rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--realm-border-color);
}

.building-rates-section h2 {
    color: var(--realm-brand-blue);
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.utility-rates-group h3 {
    color: var(--realm-brand-blue);
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.rates-table-container {
    overflow-x: auto;
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.rates-table th,
.rates-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--realm-border-color);
}

.rates-table th {
    background: var(--realm-bg-page);
    color: var(--realm-brand-blue);
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.rates-table td {
    color: var(--realm-text-muted);
}

.rates-table tr:hover {
    background: var(--realm-bg-page);
}

/* ==========================================================================
   Responsive — Tablet & Mobile
   ========================================================================== */

@media (max-width: 768px) {
    .building-hub-hero {
        padding: 2rem 1rem;
    }

    .building-hub-hero h1 {
        font-size: 1.75rem;
    }

    .building-details {
        flex-direction: column;
        gap: 0.5rem;
    }

    .building-rates-section {
        margin: 2rem 0;
        padding: 1rem;
    }

    .rates-table th,
    .rates-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}
