
/*
Theme Name: IKAH Civils
Theme URI: https://example.com/ikah-civils
Author: Pamtech Designs and Systems
Description: A bold, premium construction and paving theme for IKAH Civils & Construction. Includes custom project content, quote CTA, responsive layouts and demo content XML.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: ikah-civils
*/

:root {
    --ink: #202326;
    --ink2: #2d3135;
    --orange: #ff6b1a;
    --orange2: #e9550b;
    --paper: #f6f5f2;
    --white: #fff;
    --muted: #697078;
    --line: #e4e2dd;
    --radius: 5px;
    --shadow: 0 18px 45px rgba(20,24,28,.12);
}

/* =========================================
   GLOBAL STYLES
========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    background: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand,
.button,
.nav-menu a,
.eyebrow {
    font-family: "Montserrat", Arial, sans-serif;
}

h1,
h2,
h3 {
    line-height: 1.12;
    letter-spacing: -.035em;
}

h1 {
    font-size: clamp(2.7rem, 6vw, 5.6rem);
    margin: 0 0 24px;
    font-weight: 900;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 850;
    margin: 0 0 20px;
}

h3 {
    font-size: 1.35rem;
    font-weight: 800;
}

p {
    margin: 0 0 18px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: min(1180px, calc(100% - 44px));
    margin: auto;
}

.eyebrow {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    text-transform: uppercase;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .15em;
    color: var(--orange);
    margin-bottom: 18px;
}

.eyebrow:before {
    content: "";
    width: 30px;
    height: 3px;
    background: currentColor;
}

.muted {
    color: var(--muted);
}

/* =========================================
   BUTTONS
========================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 22px;
    font-weight: 800;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    border: 2px solid transparent;
    transition: .2s;
    cursor: pointer;
}

.button-primary {
    background: var(--orange);
    color: #fff;
}

.button-primary:hover {
    background: var(--orange2);
    transform: translateY(-2px);
}

.button-outline {
    border-color: rgba(255,255,255,.55);
    color: #fff;
}

.button-dark {
    background: var(--ink);
    color: #fff;
}

.button-dark:hover {
    background: var(--orange);
}

/* =========================================
   TOP BAR
========================================= */

.topbar {
    background: var(--orange);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    flex-wrap: wrap;
}

.topbar a:hover {
    text-decoration: underline;
}

/* =========================================
   HEADER AND NAVIGATION
========================================= */

.site-header {
    position: relative;
    z-index: 20;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 88px;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.05;
}

.brand-mark {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    background: var(--orange);
    color: #fff;
    font-weight: 900;
    font-size: 1.15rem;
    clip-path: polygon(0 0,100% 0,100% 75%,75% 100%,0 100%);
}

.brand small {
    display: block;
    font-family: "Open Sans", Arial, sans-serif;
    letter-spacing: .13em;
    font-size: .55rem;
    margin-top: 6px;
    color: #777;
    font-weight: 800;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 800;
}

.nav-menu a:hover {
    color: var(--orange);
}

.header-quote {
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    background: var(--ink);
    color: #fff;
    border: 0;
    padding: 12px 15px;
    font-weight: 800;
}

/* =========================================
   HOMEPAGE HERO
========================================= */

.hero {
    background: var(--ink);
    color: #fff;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(
            90deg,
            rgba(20,23,26,.97) 0%,
            rgba(20,23,26,.88) 48%,
            rgba(20,23,26,.4) 100%
        ),
        url("assets/images/paving-pattern.svg") center/cover;
}

.hero:after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -4%;
    bottom: -30%;
    width: 52%;
    height: 95%;
    background: var(--orange);
    transform: skewX(-18deg);
    opacity: .95;
}

.hero-inner {
    min-height: 650px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 40px;
    padding-top: 65px;
    padding-bottom: 65px;
}

.hero-copy {
    max-width: 720px;
}

.hero h1 span {
    color: var(--orange);
}

.hero p {
    max-width: 610px;
    font-size: 1.08rem;
    color: #d8dadd;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-note {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-top: 38px;
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
}

.hero-note strong {
    font-size: 1.65rem;
    color: var(--orange);
    display: block;
    line-height: 1.1;
}

.hero-art {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-art-card {
    width: min(100%, 470px);
    aspect-ratio: 4/4.4;
    background: linear-gradient(145deg,#3e4448,#202326);
    border: 10px solid rgba(255,255,255,.12);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero-art-card:before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent 0 55px,
            rgba(255,255,255,.09) 56px 58px
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0 85px,
            rgba(255,255,255,.09) 86px 88px
        );
    transform: perspective(500px) rotateX(35deg) scale(1.5);
    transform-origin: center bottom;
}

.hero-art-card:after {
    content: "IKAH";
    position: absolute;
    bottom: 24px;
    left: 26px;
    font: 900 clamp(4rem,8vw,7rem)/1 Montserrat,Arial,sans-serif;
    color: rgba(255,255,255,.1);
    letter-spacing: -.1em;
}

.art-label {
    position: absolute;
    bottom: 22px;
    right: -12px;
    background: #fff;
    color: var(--ink);
    padding: 18px 22px;
    box-shadow: var(--shadow);
    font-weight: 800;
    font-size: .82rem;
}

.art-label b {
    display: block;
    color: var(--orange);
    font: 900 1.6rem Montserrat;
}

/* =========================================
   TRUST STRIP
========================================= */

.trust-strip {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
}

.trust-item {
    padding: 25px 20px;
    border-right: 1px solid var(--line);
    display: flex;
    gap: 13px;
    align-items: center;
}

.trust-item:first-child {
    border-left: 1px solid var(--line);
}

.trust-icon {
    width: 42px;
    height: 42px;
    background: #fff0e8;
    color: var(--orange);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    font-weight: 900;
    flex-shrink: 0;
}

.trust-item strong {
    display: block;
    font: 800 .82rem Montserrat;
}

.trust-item small {
    color: var(--muted);
    font-size: .75rem;
}

/* =========================================
   SECTIONS AND ABOUT
========================================= */

.section {
    padding: 100px 0;
}

.section-soft {
    background: var(--paper);
}

.section-head {
    max-width: 700px;
    margin-bottom: 45px;
}

.section-head.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-head.center .eyebrow {
    justify-content: center;
}

.section-head p {
    color: var(--muted);
    font-size: 1.02rem;
}

.about-grid {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 70px;
    align-items: center;
}

.about-visual {
    min-height: 490px;
    position: relative;
    background: linear-gradient(135deg,#d4d0c9,#8d9292);
    overflow: hidden;
}

.about-visual:before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(145deg,transparent 35%,rgba(32,35,38,.85)),
        url("assets/images/paving-pattern.svg") center/cover;
}

.about-visual:after {
    content: "BUILT TO LAST";
    position: absolute;
    bottom: 28px;
    left: 28px;
    color: #fff;
    font: 900 clamp(2.3rem,5vw,4.5rem)/.95 Montserrat;
    max-width: 350px;
}

.experience-card {
    position: absolute;
    top: 25px;
    right: -1px;
    background: var(--orange);
    padding: 24px;
    color: #fff;
    max-width: 190px;
}

.experience-card strong {
    display: block;
    font: 900 2.8rem/1 Montserrat;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.check-list li:before {
    content: "✓";
    color: var(--orange);
    font-weight: 900;
    margin-right: 9px;
}

/* =========================================
   SERVICES
========================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
}

.service-card {
    padding: 30px;
    background: #fff;
    border: 1px solid var(--line);
    position: relative;
    transition: .25s;
    min-height: 255px;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.service-number {
    font: 900 2.8rem/1 Montserrat;
    color: #ece9e4;
    position: absolute;
    right: 22px;
    top: 20px;
}

.service-symbol {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    background: var(--ink);
    color: var(--orange);
    font-size: 1.4rem;
    margin-bottom: 25px;
}

.service-card p {
    color: var(--muted);
    font-size: .9rem;
}

.text-link {
    font: 800 .72rem Montserrat;
    text-transform: uppercase;
    color: var(--orange);
    letter-spacing: .08em;
}

.text-link:after {
    content: " ↗";
    font-size: 1rem;
}

/* =========================================
   DARK CALL TO ACTION
========================================= */

.dark-cta {
    background: var(--ink);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.dark-cta:after {
    content: "";
    position: absolute;
    right: -80px;
    top: -100px;
    width: 350px;
    height: 350px;
    border: 60px solid rgba(255,107,26,.15);
    transform: rotate(30deg);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 65px 0;
    position: relative;
    z-index: 1;
}

.cta-inner h2 {
    max-width: 650px;
    margin: 0;
}

.cta-inner p {
    color: #c5c8cb;
    margin: 12px 0 0;
}


/* =========================================
   PROJECT GALLERY — IMAGE VISIBILITY
========================================= */

.archive-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.project-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

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

.project-card .project-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #ededed;
}

/* Always show real project photos at full opacity */
.project-card .project-image img,
.project-card img.project-featured-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    transition: transform 0.4s ease;
}

/* Zoom image on hover without fading it */
.project-card:hover .project-image img {
    opacity: 1 !important;
    transform: scale(1.04);
}

/* Remove decorative overlays that darken images */
.project-card .project-image::before,
.project-card .project-image::after {
    content: none !important;
    display: none !important;
}

.project-card .project-body {
    padding: 22px;
}

.project-card .project-body h3 {
    margin: 0 0 10px;
    color: #292929;
    font-size: 20px;
    line-height: 1.4;
}

.project-card .project-body p {
    margin: 0 0 15px;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.project-card .text-link {
    display: inline-block;
    color: #f58220;
    font-weight: 700;
}

.project-card:hover .text-link {
    color: #d9650b;
}

/* Responsive gallery */
@media (max-width: 900px) {
    .archive-grid,
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .archive-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card .project-image {
        height: 230px;
    }
}

/* =========================================
   BENEFITS
========================================= */

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 25px;
}

.benefit {
    border-top: 3px solid var(--orange);
    padding-top: 20px;
}

.benefit b {
    font: 900 1rem Montserrat;
    display: block;
    margin-bottom: 8px;
}

.benefit p {
    color: var(--muted);
    font-size: .88rem;
}

/* =========================================
   CONTACT AND QUOTE FORM
========================================= */

.quote-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-panel {
    background: var(--ink);
    color: #fff;
    padding: 35px;
}

.contact-panel h3 {
    font-size: 1.5rem;
}

.contact-row {
    display: flex;
    gap: 14px;
    margin: 24px 0;
}

.contact-row .service-symbol {
    flex-shrink: 0;
    margin: 0;
    width: 43px;
    height: 43px;
}

.contact-row strong {
    display: block;
    font: 800 .76rem Montserrat;
    text-transform: uppercase;
    color: #ff985f;
}

.contact-row a,
.contact-row span {
    font-size: .9rem;
    overflow-wrap: anywhere;
}

.quote-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field-full {
    grid-column: 1/-1;
}

.field label {
    font: 800 .72rem Montserrat;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #d9d8d3;
    background: #fff;
    font: inherit;
    border-radius: 0;
}

.field textarea {
    min-height: 135px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 2px solid var(--orange);
    border-color: transparent;
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
    background: #17191b;
    color: #fff;
    padding: 65px 0 22px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 45px;
}

.site-footer p,
.site-footer li {
    color: #b7bbc0;
    font-size: .88rem;
}

.site-footer h3 {
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 8px 0;
}

.footer-bottom {
    border-top: 1px solid #383b3e;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    font-size: .75rem;
    color: #9da2a6;
}

.footer-bottom a {
    color: #fff;
}

/* =========================================
   INNER PAGES
========================================= */

.page-hero {
    background: var(--ink);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.page-hero:after {
    content: "";
    position: absolute;
    right: -100px;
    top: -180px;
    width: 450px;
    height: 450px;
    border: 75px solid rgba(255,107,26,.18);
    transform: rotate(35deg);
}

.page-hero h1 {
    font-size: clamp(2.5rem,5vw,4.5rem);
    max-width: 800px;
}

.breadcrumbs {
    font-size: .8rem;
    color: #c8cacc;
}

.breadcrumbs a {
    color: var(--orange);
}

.content-area {
    padding: 70px 0 100px;
}

.entry-content {
    max-width: 850px;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 1.5em;
}

.entry-content a {
    color: var(--orange);
    text-decoration: underline;
}

.entry-content img {
    margin: 24px 0;
}

/* =========================================
   SINGLE PROJECT PAGE
========================================= */

.project-single-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
}

.project-sidebar {
    background: var(--paper);
    padding: 28px;
    height: max-content;
}

/* =========================================
   PAGINATION AND EMPTY STATES
========================================= */

.pagination {
    margin-top: 35px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 14px;
    border: 1px solid var(--line);
    margin-right: 5px;
}

.pagination .current {
    background: var(--orange);
    color: #fff;
}

.no-results {
    padding: 40px;
    background: var(--paper);
}

/* =========================================
   WHATSAPP FLOATING BUTTON
========================================= */

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 50;
    background: #21b866;
    color: #fff;
    padding: 14px 18px;
    border-radius: 40px;
    font: 800 .75rem Montserrat;
    box-shadow: 0 8px 28px #0003;
}

/* =========================================
   TABLET RESPONSIVENESS
========================================= */

@media (max-width: 1000px) {
    .nav-menu {
        gap: 14px;
    }

    .header-quote {
        display: none;
    }

    .hero-inner {
        grid-template-columns: 1fr .7fr;
    }

    .hero-art {
        min-height: 300px;
    }

    .services-grid,
    .projects-grid,
    .archive-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .benefit-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .about-grid {
        gap: 35px;
    }

    .trust-item {
        padding: 18px 12px;
    }

    .trust-item strong {
        font-size: .72rem;
    }
}

/* =========================================
   MOBILE RESPONSIVENESS
========================================= */

@media (max-width: 760px) {
    .container {
        width: min(calc(100% - 32px),1180px);
    }

    .topbar-inner {
        justify-content: center;
        text-align: center;
    }

    .header-inner {
        min-height: 74px;
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
        padding-bottom: 10px;
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu li a {
        display: block;
        padding: 13px 4px;
        border-top: 1px solid var(--line);
    }

    .header-quote {
        display: inline-flex;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-top: 70px;
        padding-bottom: 55px;
    }

    .hero-art {
        display: none;
    }

    .hero:after {
        width: 60%;
        height: 25%;
        bottom: -12%;
        right: -15%;
    }

    .hero h1 {
        font-size: clamp(2.6rem,12vw,4.4rem);
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr;
    }

    .trust-item:nth-child(3) {
        border-left: 1px solid var(--line);
    }

    .trust-item:nth-child(n+3) {
        border-top: 1px solid var(--line);
    }

    .section {
        padding: 70px 0;
    }

    .about-grid,
    .quote-grid,
    .project-single-grid {
        grid-template-columns: 1fr;
    }

    .about-visual {
        min-height: 350px;
    }

    .services-grid,
    .projects-grid,
    .archive-grid {
        grid-template-columns: 1fr;
    }

    .cta-inner {
        display: block;
        padding: 48px 0;
    }

    .cta-inner .button {
        margin-top: 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .quote-form {
        grid-template-columns: 1fr;
    }

    .field-full {
        grid-column: auto;
    }

    .contact-panel {
        padding: 25px;
    }

    .page-hero {
        padding: 60px 0;
    }

    .whatsapp-float {
        right: 12px;
        bottom: 12px;
    }

    .check-list {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   ACCESSIBILITY: REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* =========================================
   FINAL PROJECT GALLERY IMAGE FIX
========================================= */

.archive-grid .project-card .project-image,
.projects-grid .project-card .project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #e5e5e5;
}

.archive-grid .project-card .project-image::before,
.projects-grid .project-card .project-image::before {
    content: none !important;
    display: none !important;
}

.archive-grid .project-card .project-image img,
.projects-grid .project-card .project-image img {
    display: block;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    opacity: 1 !important;
    filter: none !important;
    visibility: visible !important;
    transition: transform .35s ease;
}

.archive-grid .project-card:hover .project-image img,
.projects-grid .project-card:hover .project-image img {
    opacity: 1 !important;
    filter: none !important;
    transform: scale(1.04);
}
