/* ===== Open Sans (self-hosted) ===== */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/open-sans-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/open-sans-400-italic.woff2') format('woff2');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/open-sans-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/open-sans-700.woff2') format('woff2');
}

/* ===== Brand Variables ===== */
:root {
    --hrc-navy: #000066;
    --hrc-blue: #16499f;
    --hrc-orange: #d58103;
    --hrc-orange-dark: #c26200;
    --hrc-text: #2a2a2a;
    --hrc-light-gray: #f5f5f5;
}

/* ===== Skip Link ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background-color: var(--hrc-orange);
    color: #fff;
    padding: 0.75rem 1.5rem;
    z-index: 9999;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

/* ===== Base ===== */
body {
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--hrc-text);
    background-color: #f0ece4;
    background-image: url('../img/concrete-bg.jpg');
    background-repeat: repeat;
}

a {
    color: var(--hrc-blue);
}

a:hover {
    color: var(--hrc-orange-dark);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--hrc-navy);
    font-weight: 700;
}

/* ===== Top Bar ===== */
.top-bar {
    background-color: var(--hrc-navy);
    color: #fff;
    font-size: 0.85rem;
    padding: 0.35rem 0;
}

.top-bar a {
    color: #ccc;
    text-decoration: none;
}

.top-bar a:hover {
    color: #fff;
}

/* ===== Navbar ===== */
.navbar-hrc {
    background-color: #fff;
    border-bottom: 3px solid var(--hrc-orange);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-height: 110px;
}

.navbar-hrc .navbar-brand img {
    max-height: 100px;
}

.navbar-hrc .nav-link {
    color: var(--hrc-navy) !important;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.6rem 1rem !important;
    transition: color 0.2s;
}

.navbar-hrc .navbar-collapse {
    justify-content: center;
}

.navbar-hrc .navbar-nav {
    margin-left: auto !important;
    margin-right: auto !important;
}

.navbar-hrc .nav-link:hover,
.navbar-hrc .nav-link.active {
    color: var(--hrc-orange-dark) !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.navbar-hrc .navbar-toggler {
    border-color: var(--hrc-navy);
}

.navbar-hrc .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23000066' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== Search Form in Navbar ===== */
.navbar-hrc .search-form .form-control {
    border-color: #888;
    font-size: 0.85rem;
}

.navbar-hrc .search-form .form-control:focus {
    border-color: var(--hrc-orange);
    box-shadow: 0 0 0 0.2rem rgba(213, 129, 3, 0.25);
}

.navbar-hrc .search-form .btn {
    color: var(--hrc-navy);
    border-color: #888;
}

.navbar-hrc .search-form .btn:hover {
    background-color: var(--hrc-orange);
    border-color: var(--hrc-orange);
    color: #fff;
}

/* ===== Main Content Area ===== */
.content-wrapper {
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ===== Page Headers ===== */
.page-header {
    border-bottom: 3px solid var(--hrc-orange);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    margin-bottom: 0;
    font-size: 1.8rem;
}

/* ===== Home Page ===== */
.home-features-bg {
    background-image: url('../img/gold-bg.png');
    background-repeat: repeat;
    padding: 0.5rem 0;
}

.feature-card-v2 {
    border: 2px solid #333;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.feature-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.feature-card-v2-img {
    position: relative;
    overflow: hidden;
}

.feature-card-v2-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.feature-card-v2-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 0.6rem 1rem;
}

.feature-card-v2-overlay h2 {
    color: #fff;
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.feature-card-v2-body {
    padding: 0.75rem 1rem;
    text-align: center;
}

.feature-card-v2-body p {
    margin: 0;
    color: var(--hrc-text);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
}

/* Second row boxes */
.home-cta-box {
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.home-cta-box h4 {
    color: var(--hrc-orange-dark);
    font-weight: 700;
}

.home-specials-box {
    background-color: #fff;
    border: 2px solid var(--hrc-orange);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: background-color 0.2s;
}

.home-specials-box:hover {
    background-color: #fffaf0;
}

.home-specials-box h4 {
    color: var(--hrc-orange-dark);
    font-weight: 700;
}

.home-specials-box p {
    color: var(--hrc-text);
}

/* ===== Sidebar Navigation ===== */
.sidebar-nav {
    border: 2px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.sidebar-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--hrc-navy);
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s, color 0.2s;
}

.sidebar-link:last-child {
    border-bottom: none;
}

.sidebar-link:hover {
    background-color: var(--hrc-light-gray);
    color: var(--hrc-orange-dark);
}

.sidebar-link.active {
    background-color: var(--hrc-navy);
    color: #fff;
}

.sidebar-link.active:hover {
    background-color: var(--hrc-navy);
    color: #fff;
    text-decoration: underline;
}

.sidebar-specials-box {
    background-color: #fff;
    border: 2px solid var(--hrc-orange);
    border-radius: 6px;
    padding: 1.25rem;
    text-align: center;
    transition: background-color 0.2s;
}

.sidebar-specials-box:hover {
    background-color: #fffaf0;
}

.sidebar-specials-box h5 {
    color: var(--hrc-orange-dark);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.sidebar-specials-box p {
    color: var(--hrc-text);
    font-size: 0.9rem;
}

/* ===== Rental Category List ===== */
.category-list .list-group-item {
    border-left: 4px solid transparent;
    transition: border-color 0.2s, background-color 0.2s;
    font-size: 1.05rem;
}

.category-list .list-group-item:hover {
    border-left-color: var(--hrc-orange);
    background-color: var(--hrc-light-gray);
}

.category-list .list-group-item a {
    color: var(--hrc-navy);
    text-decoration: none;
    display: block;
    font-weight: 600;
}

.category-list .list-group-item a:hover {
    color: var(--hrc-orange-dark);
}

/* ===== Item Cards ===== */
.item-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.item-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.item-card a {
    color: var(--hrc-navy);
    text-decoration: none;
    font-weight: 600;
}

.item-card a:hover {
    color: var(--hrc-orange-dark);
}

/* ===== Item Detail ===== */
.rate-table th {
    background-color: var(--hrc-navy);
    color: #fff;
    font-weight: 600;
    text-align: center;
}

.rate-table td {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--hrc-orange-dark);
}

.item-specs {
    background-color: var(--hrc-light-gray);
    border-radius: 6px;
    padding: 1.25rem;
}

.item-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

/* ===== Contact Form ===== */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

fieldset legend.form-label {
    font-size: 1rem;
    float: none;
    width: auto;
}

.form-label-required::after {
    content: ' *';
    color: #dc3545;
}

/* ===== Buttons ===== */
.btn-hrc {
    background-color: var(--hrc-orange);
    color: #fff;
    border: none;
    font-weight: 600;
}

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

.btn-outline-hrc {
    color: var(--hrc-orange);
    border-color: var(--hrc-orange);
}

.btn-outline-hrc:hover {
    background-color: var(--hrc-orange);
    color: #fff;
}

/* ===== Breadcrumbs ===== */
.breadcrumb-item a {
    color: var(--hrc-blue);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--hrc-orange-dark);
}

.breadcrumb-item.active {
    color: var(--hrc-text);
}

/* ===== Section Headings ===== */
.section-heading {
    color: var(--hrc-orange-dark);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--hrc-navy);
    color: #ccc;
    padding: 2.5rem 0 1.5rem;
    margin-top: 2rem;
}

.footer h5 {
    color: var(--hrc-orange);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer a {
    color: #ccc;
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #999;
}

/* ===== Specials Page ===== */
.special-card {
    background-color: var(--hrc-light-gray);
    border-left: 4px solid var(--hrc-orange);
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

/* ===== Policy Sections ===== */
.policy-section {
    margin-bottom: 2rem;
}

.policy-section h2 {
    color: var(--hrc-orange-dark);
    font-size: 1.3rem;
    border-bottom: 2px solid var(--hrc-light-gray);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* ===== Disclaimer ===== */
.disclaimer {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

/* ===== Mobile Adjustments ===== */
@media (max-width: 767.98px) {
    .navbar-hrc {
        min-height: auto;
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

    .navbar-hrc .navbar-brand img {
        max-height: 60px;
    }

    .content-wrapper {
        padding: 1rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }

    .feature-card-v2-img img {
        height: 160px;
    }

    .feature-card-v2-overlay h2 {
        font-size: 1.3rem;
    }

    .rate-table th,
    .rate-table td {
        font-size: 0.9rem;
        padding: 0.4rem;
    }
}

/* ===== No Image Placeholder ===== */
.no-image {
    background-color: var(--hrc-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    border-radius: 6px;
    min-height: 150px;
}

/* ===== Focus Styles ===== */
:focus-visible {
    outline: 3px solid var(--hrc-orange);
    outline-offset: 2px;
}

.footer :focus-visible,
.top-bar :focus-visible,
.sidebar-link.active:focus-visible {
    outline-color: #fff;
}

.btn-hrc:focus-visible {
    outline-color: var(--hrc-navy);
}
