:root {
    --oipc-brown: #874C36;
    --oipc-brown-dark: #6d3c2a;
    --oipc-sand: #F6D0A2;
    --oipc-ink: #2D3036;
}

body {
    position: relative;
    z-index: 1;
    background-color: #fff;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    color: #3a3a3a;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url(../img/subtlebackground.svg) no-repeat top center;
    opacity: 0.3;
    z-index: -1;
}

html {
    scroll-behavior: smooth;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.fullscreen-bg {
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#mainImageText {
    text-align: left;
}

.fullscreen-bg h1,
.fullscreen-bg h2 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 60px;
    line-height: 1.2;
}

.fullscreen-bg h1 {
    margin-bottom: 10px;
    font-weight: 400;
    color: var(--oipc-ink);
}

.fullscreen-bg h2 {
    margin-bottom: 10px;
    font-weight: 700;
    color: #FFF;
}

/* For darker cover photos: light first lines */
.hero-light h1 {
    color: #FFF;
}

.fullscreen-bg .hero-tagline {
    color: #FFF;
    font-size: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.35);
    max-width: 560px;
}

.fade-to-white {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, transparent, white);
}

/* ------------------------------------------------------------------ */
/* Navbar                                                              */
/* ------------------------------------------------------------------ */

.navbar {
    font-weight: bold;
}

.navbar-light .navbar-nav .nav-link {
    color: #333;
    padding: 10px 20px;
}

.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link:hover {
    color: #555;
    background-color: #f2f2f2;
}

.navbar-brand {
    padding-right: 30px;
    border-right: 1px solid #e2e2e2;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--oipc-brown);
    font-weight: 700;
    letter-spacing: 2px;
}

.navbar-brand:hover {
    color: var(--oipc-brown-dark);
}

.navbar-nav > li > .nav-link {
    margin-right: 10px;
}

/* ------------------------------------------------------------------ */
/* Content blocks                                                      */
/* ------------------------------------------------------------------ */

.content-block-oipc h1,
.content-block-oipc h2 {
    color: var(--oipc-brown);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.content-block-oipc h3 {
    color: var(--oipc-brown);
    font-weight: 600;
    font-size: 1.15rem;
    margin-top: 1.5rem;
}

.content-block-oipc p,
.content-block-oipc li {
    color: #4a4a4a;
}

.container p,
.container li {
    font-size: 18px;
    line-height: 1.7;
}

.content-block-oipc ul {
    padding-left: 1.2rem;
}

.content-block-oipc li {
    margin-bottom: 0.4rem;
}

.section-lead {
    max-width: 860px;
}

/* Two-column bullet lists on wide screens */
@media (min-width: 768px) {
    .two-col-list {
        column-count: 2;
        column-gap: 3rem;
    }

    .two-col-list li {
        break-inside: avoid;
    }
}

/* Brand button */
.btn-oipc {
    background-color: var(--oipc-brown);
    border: 1px solid var(--oipc-brown);
    color: #fff;
    padding: 10px 24px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.2s, border-color 0.2s;
}

.btn-oipc:hover,
.btn-oipc:focus {
    background-color: var(--oipc-brown-dark);
    border-color: var(--oipc-brown-dark);
    color: #fff;
}

.btn-oipc-outline {
    background-color: transparent;
    border: 1px solid var(--oipc-brown);
    color: var(--oipc-brown);
    padding: 10px 24px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
}

.btn-oipc-outline:hover,
.btn-oipc-outline:focus {
    background-color: var(--oipc-brown);
    color: #fff;
}

/* ------------------------------------------------------------------ */
/* Cards (services, quick links)                                       */
/* ------------------------------------------------------------------ */

.card {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-3px);
}

.card-title {
    color: var(--oipc-brown);
    font-weight: 600;
}

.card-text {
    color: #444;
}

.card strong {
    color: var(--oipc-brown);
}

.pointerCursor {
    cursor: pointer;
}

/* Chevron for collapsible service cards (pure CSS, no icon font) */
.card-toggle {
    position: relative;
    padding-right: 48px;
}

.card-toggle::after {
    content: "";
    position: absolute;
    right: 24px;
    top: 32px;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--oipc-brown);
    border-bottom: 2px solid var(--oipc-brown);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}

.card-toggle:not(.collapsed)::after {
    transform: rotate(225deg);
}

/* Quick-link cards on the home page */
.quick-link-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border-left: 4px solid var(--oipc-brown);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    border-radius: 5px;
    padding: 20px;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.quick-link-card h3 {
    color: var(--oipc-brown);
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.quick-link-card p {
    color: #555;
    font-size: 15px !important;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Service overview cards on the home page */
.service-overview-card {
    display: block;
    text-decoration: none;
    height: 100%;
}

.service-overview-card .card {
    height: 100%;
}

.service-overview-card p {
    font-size: 15px !important;
    line-height: 1.55;
}

/* Icon grid (kept from original design) */
.icon-container {
    text-align: center;
    padding: 10px;
}

.icon {
    text-align: center;
    margin-bottom: 10px;
}

.icon img {
    width: 50px;
    height: 50px;
}

.label {
    font-size: 14px;
    color: var(--oipc-brown);
}

/* Watermark sections (kept from original design) */
.container-with-watermark {
    position: relative;
}

.container-with-watermark::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50px;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

#theFooter {
    margin-top: 60px;
    padding: 70px 0 25px;
    background: var(--oipc-sand) url(../img/footer.png) center bottom / cover no-repeat;
}

#theFooter h5 {
    color: var(--oipc-ink);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    font-weight: 700;
}

#theFooter ul li {
    font-size: 15px;
    margin-bottom: 4px;
}

#theFooter a {
    color: var(--oipc-ink);
    text-decoration: none;
}

#theFooter a:hover {
    color: var(--oipc-brown);
    text-decoration: underline;
}

#theFooter .footer-disclaimer {
    font-size: 13px;
    color: #4a4a4a;
    margin-top: 30px;
    margin-bottom: 4px;
}

#theFooter .footer-copyright {
    font-size: 13px;
    color: #4a4a4a;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 767.98px) {
    .container p,
    .container li {
        font-size: 16px;
    }

    #theFooter {
        margin-top: 20px;
        padding-top: 50px;
        background-color: var(--oipc-sand);
    }
}

@media (max-width: 575.98px) {
    .fullscreen-bg h1,
    .fullscreen-bg h2 {
        font-size: 38px;
    }
}

@media (max-width: 991px) {
    .navbar-toggler {
        border: none;
    }

    .navbar-toggler:focus {
        outline: none;
        box-shadow: none;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    }

    .navbar-collapse {
        background-color: #f8f9fa;
    }

    .navbar-brand {
        border-right: none;
    }

    .toHideOnSmall {
        display: none;
    }
}
