/* ============================================================
   Tharwa General Contracting — Main Stylesheet
   Extracts all inline styles from index.html into classes
   ============================================================ */

/* ------ CSS Custom Properties (design tokens) ------------- */
:root {
    --color-gold: #d2a455;
    --color-gold-dark: #c76f04;
    --color-orange: #c76f04;
    --color-navy: #1f2a44;
    --color-ink: #1a1814;
    --color-sand: #faf6ec;
    --color-white: #fff;
    --color-sky: #a7c4d6;
    --color-border: #ead7b1;
    --color-icon-acc: #d68a3c;
}

/* ============================================================
   GLOBAL
   ============================================================ */
.site-main {
    background: var(--color-sand);
    color: var(--color-ink);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0.7) 60%,
            rgba(255, 255, 255, 0) 100%);
}

.site-header .container {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.header-logo {
    max-height: 190px;
    width: auto;
    display: block;
}

.header-nav {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.header-nav a {
    color: var(--color-ink);
    text-decoration: none;
}

.nav-link-active {
    color: var(--color-gold) !important;
}

.nav-link-active-bar {
    display: block;
    height: 2px;
    width: 40px;
    background: linear-gradient(135deg, #f7a745 0%, #c76f04 100%);
}

.burger-btn {
    cursor: pointer;
}

/* ============================================================
   OFFCANVAS MOBILE MENU
   ============================================================ */
.offcanvas-menu {
    width: 280px;
    background: #fff;
}

.offcanvas-menu-header {
    padding: 20px 24px;
}

.offcanvas-logo {
    height: 70px;
    width: auto;
}

.offcanvas-nav {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.06em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.offcanvas-nav a {
    color: var(--color-ink);
    text-decoration: none;
    padding: 10px 24px;
}

.offcanvas-nav .nav-home {
    color: var(--color-gold);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-diamond {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--color-gold);
    transform: rotate(45deg);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    position: relative;
    background: url('../images/hero-refinery.webp') center center / cover no-repeat;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    /* background: url('../images/hero-refinery.webp') center center / cover no-repeat; */
    z-index: 0;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 1) 50%,
            rgba(255, 255, 255, 0.6) 65%,
            rgba(255, 255, 255, 0) 82%);
    z-index: 1;
}

.hero-row {
    position: relative;
    z-index: 2;
}

.hero-content-col {
    padding-top: clamp(110px, 16vw, 195px);
    padding-bottom: clamp(5px, 1vw, 5px);
    padding-left: clamp(10px, 1vw, 50px);
    padding-right: clamp(20px, 4vw, 60px);
}

.hero-content-inner {
    max-width: 640px;
    width: 100%;
}

/* --- Tag line --- */
.hero-tagline {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-navy);
    padding: 10px 0;
    border-top: 1px solid var(--color-sky);
    border-bottom: 1px solid var(--color-navy);
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: 10px;
}

/* Square dots on both ends of the bottom border */
.hero-tagline::before,
.hero-tagline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    width: 8px;
    height: 8px;
    rotate: 45deg;
    background: linear-gradient(135deg, var(--color-gold) 0%, #c76f04 100%);
}

.hero-tagline::before {
    left: 45%;
}

.hero-tagline::after {
    right: 45%;
}

.tagline-diamond {
    display: inline-block;
    width: 6px;
    height: 6px;
    transform: rotate(45deg);
    border-radius: 30px;
    background: var(--color-gold);
}


/* --- Headline --- */
.hero-heading {
    font-family: var(--font-display);
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -0.005em;
    color: var(--color-navy);
}

.hero-heading-accent {
    background: linear-gradient(135deg, #5a3e00 0%, #8b6200 25%, #b8860b 55%, #9a7000 80%, #5a3e00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* --- Divider --- */
.hero-divider-rule {
    display: block;
    height: 1.5px;
    width: 56px;
    background: var(--color-gold);
}

.hero-divider-diamond {
    display: inline-block;
    width: 8px;
    height: 8px;
    transform: rotate(45deg);
    background: var(--color-gold);
}

/* --- Feature list --- */
.hero-features {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-navy);
}

.hero-features li {
    display: grid;
    grid-template-columns: 44px 1fr;
    padding: 5px 0;
    gap: 10px;
    margin-bottom: 10px;
    align-items: end;
}

.hero-features li .feature-text {
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.hero-features li:last-child .feature-text {
    border-bottom: none;
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: var(--color-navy);
    box-shadow: inset 0 0 0 1px var(--color-gold-dark);
}


/* ============================================================
   NAVIGATION CARDS
   ============================================================ */
.nav-card {
    height: 100%;
    background: #fef7ee;
    padding: 5px 10px 20px;
    border-top: 2px solid;
    border-image: linear-gradient(135deg, #f5d78e 0%, #c76f04 100%) 1;
    transition: box-shadow 0.2s;
}

.nav-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-card-icon-wrap {
    width: 100px;
    height: auto;
}

.nav-card-title {
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: bolder;
    text-transform: uppercase;
    color: var(--color-navy);
}

.nav-card-title::after {
    content: "";
    display: block;
    width: 30px;
    height: 2px;
    margin: 6px auto 0;
    background-color: var(--color-orange);
}

.nav-card-desc {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.4;
    color: rgba(31, 42, 68, 0.7);
    max-width: 180px;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer-bar {
    height: 48px;
    background: var(--color-ink);
}

.site-footer-inner {
    background: var(--color-sand);
    color: rgba(255, 255, 255, 0.65);
    padding: 0;
}

.footer-inner-top {
    padding: 2rem 0 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    max-height: 90px;
    width: auto;
    opacity: 1;
}

.footer-nav a {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-ink);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover,
.footer-nav a.active {
    color: var(--color-gold);
}

.footer-inner-bottom {
    padding: 1.1rem;
    font-size: 12.5px;
    color: var(--color-ink);
    background: var(--color-white);
}

.footer-tagline {
    font-style: italic;
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-content-col {
        padding-top: clamp(110px, 17vw, 230px);

    }

    .hero-tagline {
        flex-wrap: wrap;
    }
}

@media (max-width: 1100px) {
    .hero-content-col {
        padding-top: clamp(110px, 19vw, 230px);

    }
}

@media (max-width: 991px) {
    .site-header {
        position: relative;
        background: #fff;
    }

    .header-logo {
        max-height: 150px;
    }

    .hero-content-col {
        padding-top: clamp(0px, 0vw, 0px);
    }

    .hero-section {
        background-size: 140vh;
        background-position: left;
    }

    .site-header .container {
        padding-bottom: 5px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        background-size: 120vh;
    }

    .hero-tagline {
        font-size: 10px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .hero-content-col {
        padding-left: clamp(10px, 3vw, 75px);
        padding-right: clamp(10px, 4vw, 60px);
    }

    .header-logo {
        max-height: 120px;
    }

}

@media (max-width:567px) {
    .hero-section {
        background-size: 146vw;
        background-position: left bottom;
        background-color: var(--color-white);
    }

    .hero-content-col {
        padding-top: 0;
    }

    .header-logo {
        max-height: 100px;
    }


}