/* =========================================================
   Alpaulson Caribbean Enterprises Limited
   Site stylesheet
   Brand colours: #f9943b (orange), #ffd230 (gold), #ffffff
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
    --color-orange: #f9943b;
    --color-orange-dark: #e07a1c;
    --color-orange-soft: #ffb368;
    --color-gold: #ffd230;
    --color-gold-dark: #d9a800;

    --color-charcoal: #1a1d24;
    --color-charcoal-soft: #2a2f3a;
    --color-dark-gray: #4a5260;
    --color-mid-gray: #8b93a1;
    --color-light-gray: #e6e8ec;
    --color-off-white: #f7f7f5;
    --color-white: #ffffff;

    --shadow-sm: 0 2px 6px rgba(20, 22, 28, .06);
    --shadow-md: 0 10px 30px rgba(20, 22, 28, .08);
    --shadow-lg: 0 24px 60px rgba(20, 22, 28, .14);
    --shadow-orange: 0 14px 30px rgba(249, 148, 59, .35);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --max-width: 1240px;
    --header-h: 88px;
}

/* ---------- 2. Base reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-charcoal);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--color-charcoal);
    line-height: 1.15;
    margin: 0 0 .6em;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

a { color: var(--color-orange-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-orange); }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    background: var(--color-charcoal);
    color: #fff;
    padding: .6rem 1rem;
    z-index: 9999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- 3. Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: 14px 28px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .02em;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-gold) 100%);
    color: #fff;
    box-shadow: var(--shadow-orange);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(249, 148, 59, .45);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.6);
}
.btn-ghost:hover {
    background: #fff;
    color: var(--color-charcoal);
    border-color: #fff;
}

.btn-dark {
    background: var(--color-charcoal);
    color: #fff;
}
.btn-dark:hover {
    background: var(--color-orange);
    transform: translateY(-2px);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--color-charcoal);
    border-color: var(--color-charcoal);
}
.btn-outline:hover {
    background: var(--color-charcoal);
    color: #fff;
}

/* ---------- 4. Header / Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .25s, border-color .25s, background .25s;
}
.site-header.is-scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--color-light-gray);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .85rem;
    text-decoration: none;
    color: var(--color-charcoal);
}
.brand-logo {
    width: auto;
    height: 58px;
    object-fit: contain;
    flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--color-charcoal);
    letter-spacing: -.01em;
}
.brand-sub {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--color-orange);
    font-weight: 600;
}

.primary-nav ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    align-items: center;
    gap: .15rem;
}
.primary-nav a {
    display: inline-block;
    padding: 10px 16px;
    color: var(--color-charcoal);
    font-weight: 600;
    font-size: .95rem;
    border-radius: 999px;
    position: relative;
    transition: color .2s, background .2s;
}
.primary-nav a:hover { color: var(--color-orange); background: rgba(249,148,59,.08); }
.primary-nav a.is-active {
    color: var(--color-orange);
}
.primary-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 16px; right: 16px; bottom: 4px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-orange), var(--color-gold));
    border-radius: 3px;
}
.nav-cta-li { margin-left: .6rem; }
.nav-cta { padding: 10px 22px; font-size: .9rem; }

/* Hamburger */
.nav-toggle {
    display: none;
    width: 46px; height: 46px;
    background: transparent;
    border: 1px solid var(--color-light-gray);
    border-radius: 12px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--color-charcoal);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. Hero slider ---------- */
.hero-slider {
    position: relative;
    height: clamp(520px, 80vh, 760px);
    background: var(--color-charcoal);
    overflow: hidden;
}
.hero-slider .swiper, .hero-slider .swiper-wrapper, .hero-slider .swiper-slide {
    height: 100%;
}
.hero-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}
.hero-slide::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(120deg, rgba(15,17,22,.85) 0%, rgba(15,17,22,.55) 55%, rgba(15,17,22,.35) 100%);
}
.hero-slide-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 720px;
}
.hero-eyebrow {
    display: inline-block;
    font-size: .8rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--color-gold);
    font-weight: 700;
    margin-bottom: 1rem;
    padding: 6px 14px;
    border: 1px solid rgba(255, 210, 48, .5);
    border-radius: 999px;
}
.hero-slide h1 {
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 4.1rem);
    margin-bottom: 1rem;
}
.hero-slide h1 .accent {
    background: linear-gradient(90deg, var(--color-orange) 0%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-slide p.lede {
    font-size: 1.15rem;
    color: rgba(255,255,255,.85);
    max-width: 560px;
    margin-bottom: 1.8rem;
}
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }

/* Animate on slide active */
.swiper-slide-active .hero-eyebrow,
.swiper-slide-active .hero-slide h1,
.swiper-slide-active .hero-slide p.lede,
.swiper-slide-active .hero-actions {
    animation: hero-rise .9s ease-out both;
}
.swiper-slide-active .hero-slide h1 { animation-delay: .1s; }
.swiper-slide-active .hero-slide p.lede { animation-delay: .25s; }
.swiper-slide-active .hero-actions { animation-delay: .4s; }

@keyframes hero-rise {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Swiper controls override */
.hero-slider .swiper-pagination-bullet {
    background: #fff;
    opacity: .5;
    width: 12px; height: 12px;
}
.hero-slider .swiper-pagination-bullet-active {
    background: var(--color-orange);
    opacity: 1;
    width: 30px;
    border-radius: 6px;
}
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: #fff;
    width: 52px; height: 52px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: background .2s, transform .2s;
}
.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
    background: var(--color-orange);
    border-color: var(--color-orange);
    transform: scale(1.05);
}
.hero-slider .swiper-button-next::after,
.hero-slider .swiper-button-prev::after { font-size: 18px; font-weight: 700; }

/* ---------- 6. Sections / utility ---------- */
.section { padding: clamp(60px, 8vw, 110px) 0; }
.section-dark { background: var(--color-charcoal); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-soft { background: var(--color-off-white); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head.is-left { text-align: left; margin-left: 0; }
.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: .8rem;
    padding: 6px 14px;
    background: rgba(249,148,59,.12);
    border-radius: 999px;
}
.section-dark .eyebrow {
    background: rgba(255,210,48,.15);
    color: var(--color-gold);
}
.section-head p {
    color: var(--color-dark-gray);
    font-size: 1.05rem;
}
.section-dark .section-head p { color: rgba(255,255,255,.75); }

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 7. About preview / two-column ---------- */
.about-preview { padding: clamp(60px, 8vw, 110px) 0; }
.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}
/* On the About page, top-align the story text with the image
   (homepage about-preview keeps its centered alignment). */
.page-template-template-about .about-grid {
    align-items: start;
}
/* Shorter story text now pairs better with a landscape image
   (the homepage keeps the taller 4/5 portrait). Adjust the ratio
   to taste: 3/2 = a touch shorter, 1/1 = square. */
.page-template-template-about .about-grid .image-stack {
    aspect-ratio: 4 / 3;
}
.about-grid .image-stack {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 5;
    background: var(--color-charcoal);
}
.about-grid .image-stack img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .8s ease;
}
.about-grid .image-stack:hover img { transform: scale(1.05); }
.about-grid .image-stack::after {
    content: "Since 2013";
    position: absolute;
    left: 24px; bottom: 24px;
    background: linear-gradient(135deg, var(--color-orange), var(--color-gold));
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 999px;
    box-shadow: var(--shadow-md);
    letter-spacing: .04em;
}
.about-grid .text h2 { margin-bottom: 1rem; }
.about-grid .text p { color: var(--color-dark-gray); margin-bottom: 1.1rem; }

/* ---------- 8. Cards (why-choose / services / projects) ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.6rem;
}

/* Process band — fixed 4-step flow (services page).
   Own grid so the 4 steps form one even row instead of 3 + a lone card. */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6rem;
}
@media (max-width: 992px) {           /* tablet → 2 x 2 */
    .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {           /* phone → stacked */
    .process-grid { grid-template-columns: 1fr; }
}

/* Center each step's content (text-align also centers the inline-flex badge). */
.process-grid .feature-card {
    text-align: center;
    overflow: visible;            /* allow the connector to show in the gap */
}
/* keep the hover top-bar corners rounded now that overflow is visible */
.process-grid .feature-card::before {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
/* Connector: a short segment bridging the gap to the next step,
   anchored to each card so it stays aligned regardless of column width. */
.process-grid .feature-card::after {
    content: "";
    position: absolute;
    top: calc(2.2rem + 30px);     /* card padding-top + half the 60px badge */
    left: 100%;
    width: 1.6rem;                /* spans the grid gap */
    height: 2px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, var(--color-orange), var(--color-gold));
    opacity: .5;
    z-index: 2;
}
.process-grid .feature-card:last-child::after { display: none; }
@media (max-width: 992px) {       /* no horizontal connector once the row wraps */
    .process-grid .feature-card::after { display: none; }
}

.feature-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 2.2rem 1.8rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-light-gray);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-orange), var(--color-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
    width: 60px; height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(249,148,59,.15), rgba(255,210,48,.15));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    color: var(--color-orange);
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.feature-card p { color: var(--color-dark-gray); font-size: .96rem; margin: 0; }

/* Service card with image */
.service-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-light-gray);
    transition: transform .35s ease, box-shadow .35s ease;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.service-card .thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-light-gray);
}
.service-card .thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.service-card:hover .thumb img { transform: scale(1.07); }
.service-card .body {
    padding: 1.4rem 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.service-card .body h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.service-card .body p { color: var(--color-dark-gray); font-size: .94rem; flex: 1; }
.service-card .body .pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 1rem;
    color: var(--color-orange-dark);
    font-weight: 600;
    font-size: .9rem;
}
.service-card .body .pill::after { content: "\2192"; transition: transform .3s; }
.service-card:hover .body .pill::after { transform: translateX(4px); }

/* Service-card variant for /services page (icon, no thumb) */
.service-list-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 2rem 1.8rem;
    border: 1px solid var(--color-light-gray);
    box-shadow: var(--shadow-sm);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    position: relative;
    overflow: hidden;
}
.service-list-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-orange-soft);
}
.service-list-card .icon-wrap {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-orange), var(--color-gold));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
}
.service-list-card .icon-wrap svg { width: 26px; height: 26px; }
.service-list-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.service-list-card p { color: var(--color-dark-gray); font-size: .95rem; margin: 0; }

/* Project card */
.project-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-charcoal);
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4 / 3;
    transition: transform .4s ease, box-shadow .4s ease;
    cursor: pointer;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.project-card:hover img { transform: scale(1.08); }
.project-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.75) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.4rem;
    color: #fff;
}
.project-card .overlay .tag {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--color-gold);
    margin-bottom: .25rem;
    font-weight: 700;
}
.project-card .overlay h3 {
    color: #fff;
    font-size: 1.05rem;
    margin: 0;
}

/* ---------- 9. CTA banner ---------- */
.cta-banner {
    background:
        linear-gradient(135deg, rgba(26,29,36,.92), rgba(26,29,36,.85)),
        url('../images/slider/hero-construction-site.jpg') center / cover no-repeat;
    color: #fff;
    text-align: center;
    padding: clamp(70px, 9vw, 130px) 0;
    position: relative;
}
.cta-banner h2 {
    color: #fff;
    max-width: 760px;
    margin: 0 auto 1rem;
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}
.cta-banner p { max-width: 600px; margin: 0 auto 2rem; color: rgba(255,255,255,.8); font-size: 1.05rem; }
.cta-banner .accent-bar {
    display: block;
    width: 56px; height: 4px;
    border-radius: 4px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(90deg, var(--color-orange), var(--color-gold));
}

/* ---------- 10. Stats / counters ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.4rem;
    margin-top: 2.5rem;
}
.stat {
    text-align: center;
    padding: 1.6rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
}
.stat .num {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-orange), var(--color-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}
.stat .label {
    margin-top: .5rem;
    font-size: .82rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(255,255,255,.65);
    font-weight: 600;
}

/* ---------- 11. Page hero (interior pages) ---------- */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, var(--color-charcoal) 0%, var(--color-charcoal-soft) 100%);
    color: #fff;
    padding: clamp(110px, 14vw, 170px) 0 clamp(70px, 8vw, 100px);
    overflow: hidden;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 30%, rgba(249,148,59,.25), transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(255,210,48,.18), transparent 55%);
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,.78); max-width: 640px; font-size: 1.1rem; }
.crumbs {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .82rem;
    color: rgba(255,255,255,.7);
    margin-bottom: 1rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 600;
}
.crumbs a { color: var(--color-gold); }
.crumbs span.sep { opacity: .6; }

/* ---------- 12. Projects filter / gallery ---------- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}
.filter-btn {
    padding: 10px 20px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .9rem;
    background: #fff;
    color: var(--color-charcoal);
    border: 1px solid var(--color-light-gray);
    border-radius: 999px;
    cursor: pointer;
    transition: all .25s ease;
}
.filter-btn:hover { border-color: var(--color-orange); color: var(--color-orange); }
.filter-btn.is-active {
    background: linear-gradient(135deg, var(--color-orange), var(--color-gold));
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-orange);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.4rem;
}
.gallery-item {
    transition: opacity .35s ease, transform .35s ease;
}
.gallery-item.is-hidden {
    display: none;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10,12,16,.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 30px;
}
.lightbox.is-open { display: flex; animation: fade-in .25s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-md);
    box-shadow: 0 30px 60px rgba(0,0,0,.5);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.3);
    width: 48px; height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: background .2s;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--color-orange); border-color: var(--color-orange); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-caption {
    position: absolute;
    bottom: 26px; left: 50%; transform: translateX(-50%);
    color: #fff;
    font-weight: 600;
    background: rgba(0,0,0,.6);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: .9rem;
}

/* ---------- 13. Contact page ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 3rem;
    align-items: start;
}
.contact-info {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 2.2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-light-gray);
}
.contact-info h3 { margin-top: 0; }
.contact-list { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.contact-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-light-gray);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list .icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-orange), var(--color-gold));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-list .label {
    display: block;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .72rem;
    font-weight: 700;
    color: var(--color-mid-gray);
    margin-bottom: 4px;
}
.contact-list a { color: var(--color-charcoal); font-weight: 600; }
.contact-list a:hover { color: var(--color-orange); }

.contact-form {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 2.2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-light-gray);
}
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.field { display: flex; flex-direction: column; margin-bottom: 1.1rem; }
.field label {
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .4rem;
    color: var(--color-dark-gray);
}
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--color-light-gray);
    border-radius: 10px;
    font-family: inherit;
    font-size: .98rem;
    color: var(--color-charcoal);
    background: var(--color-off-white);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--color-orange);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(249,148,59,.15);
}
.field textarea { resize: vertical; min-height: 130px; }

.map-wrap {
    margin-top: 3rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-light-gray);
    aspect-ratio: 16 / 7;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- 14. Footer ---------- */
.site-footer {
    background: var(--color-charcoal);
    color: rgba(255,255,255,.75);
    padding-top: clamp(60px, 7vw, 90px);
    margin-top: 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr 1.4fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    align-items: start;
}
.footer-brand { margin-top: -0.5rem; }
.footer-logo { display: block; width: 220px; height: auto; margin: 0 0 1.25rem; }
.footer-brand p { color: rgba(255,255,255,.65); font-size: .95rem; }
.footer-tagline {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,.1);
    font-style: italic;
    color: var(--color-gold) !important;
    font-weight: 500;
}
.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    letter-spacing: .04em;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: .7rem;
}
.footer-col h4::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 32px; height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--color-orange), var(--color-gold));
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 4px 0; font-size: .94rem; }
.footer-col a {
    color: rgba(255,255,255,.7);
    transition: color .2s, padding .2s;
}
.footer-col a:hover {
    color: var(--color-gold);
    padding-left: 4px;
}
.footer-contact .footer-label {
    display: block;
    font-size: .7rem;
    letter-spacing: .15em;
    color: var(--color-orange);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
}
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .55rem 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-contact li:last-child { border-bottom: 0; }
.footer-contact-icon {
    flex: 0 0 auto;
    color: var(--color-gold);
    margin-top: 2px;
}
.footer-contact-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.footer-bottom {
    background: #11141a;
    padding: 1.2rem 0;
    border-top: 1px solid rgba(255,255,255,.06);
    font-size: .85rem;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-bottom p { margin: 0; color: rgba(255,255,255,.55); }
.footer-cta { color: var(--color-gold); font-weight: 600; }

/* ---------- 15. About page ---------- */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
    margin-top: 3rem;
}
.mv-card {
    padding: 2.2rem;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid var(--color-light-gray);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.mv-card::before {
    content: "";
    position: absolute;
    top: 0; right: -20px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(249,148,59,.1), rgba(255,210,48,.1));
}
.mv-card .badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--color-orange), var(--color-gold));
    color: #fff;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}
.mv-card h3 { font-size: 1.4rem; margin-bottom: .8rem; position: relative; z-index: 2; }
.mv-card p { color: var(--color-dark-gray); margin: 0; position: relative; z-index: 2; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4rem;
    margin-top: 2rem;
}

/* Center the cards in the About "What Sets Us Apart" and homepage
   "Why Choose Alpaulson" sections, matching the How We Work look.
   (text-align also centers the inline-flex icon badge.) */
.values-grid .feature-card,
.feature-grid .feature-card {
    text-align: center;
}

/* ---------- 16. Responsive ---------- */
@media (max-width: 960px) {
    .contact-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .about-grid .image-stack { aspect-ratio: 4/3; max-width: 520px; }
    .mv-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    :root { --header-h: 72px; }
    .brand-text { display: none; }
    .brand-logo { width: auto; height: 60px; }
    .brand .custom-logo,
    .custom-logo { width: auto; height: 60px; }

    .nav-toggle { display: inline-flex; }

    .primary-nav {
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        background: #fff;
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s ease;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--color-light-gray);
    }
    .primary-nav.is-open { max-height: calc(100vh - var(--header-h)); }
    .primary-nav ul {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: .25rem;
    }
    .primary-nav a {
        display: block;
        padding: 14px 18px;
        border-radius: 12px;
    }
    .primary-nav a.is-active::after { display: none; }
    .primary-nav a.is-active { background: rgba(249,148,59,.1); }
    .nav-cta-li { margin-top: .5rem; margin-left: 0; }
    .nav-cta { width: 100%; }

    .contact-form .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom-inner { justify-content: center; text-align: center; }
    .hero-slider .swiper-button-next, .hero-slider .swiper-button-prev { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0s !important;
        transition-duration: 0s !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   17. WordPress-specific additions
   These rules adapt the original design to the markup
   WordPress generates (menus, custom logo, editor content,
   CPT single/gallery layouts, form notices, pagination).
   ========================================================= */

/* ---- Custom logo (Appearance > Customize) sized like the brand mark ---- */
.brand .custom-logo-link { display: inline-flex; }
.brand .custom-logo,
.custom-logo { width: auto; height: 58px; object-fit: contain; }

/* ---- Active nav state for WordPress menu classes ---- */
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav .current-menu-parent > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav a.is-active { color: var(--color-orange); }

.primary-nav .current-menu-item > a::after,
.primary-nav .current_page_item > a::after,
.primary-nav .current-menu-parent > a::after,
.primary-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 16px; right: 16px; bottom: 4px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-orange), var(--color-gold));
    border-radius: 3px;
}

/* ---- Footer menu (wp_nav_menu) reset to match static list ---- */
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { padding: 4px 0; font-size: .94rem; }

/* ---- Service card icon fallback (no featured image) ---- */
.service-card .thumb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(249,148,59,.12), rgba(255,210,48,.12));
}
.service-card .thumb-icon .card-icon { color: var(--color-orange); }
.service-card .thumb-icon .card-icon svg { width: 64px; height: 64px; }

/* ---- Single service / page / post content ---- */
.single-narrow { max-width: 880px; }
.single-feature-img {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}
.single-feature-img img { width: 100%; height: auto; display: block; }
.entry-content { color: var(--color-dark-gray); font-size: 1.05rem; }
.entry-content h2 { margin-top: 2rem; }
.entry-content h3 { margin-top: 1.6rem; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.entry-content li { margin-bottom: .4rem; }
.entry-content img { border-radius: var(--radius-sm); height: auto; }
.entry-content a { text-decoration: underline; }
.entry-content blockquote {
    border-left: 4px solid var(--color-orange);
    margin: 1.5rem 0;
    padding: .4rem 0 .4rem 1.2rem;
    color: var(--color-charcoal);
    font-style: italic;
}

/* ---- WordPress core block / alignment / caption helpers ---- */
.entry-content .alignleft { float: left; margin: .4rem 1.4rem 1rem 0; }
.entry-content .alignright { float: right; margin: .4rem 0 1rem 1.4rem; }
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content .alignwide { margin-left: -40px; margin-right: -40px; max-width: none; }
.entry-content .wp-caption-text,
.entry-content figcaption {
    font-size: .85rem;
    color: var(--color-mid-gray);
    text-align: center;
    margin-top: .5rem;
}
.entry-content .wp-block-image { margin: 1.5rem 0; }

/* ---- Single project layout ---- */
.project-single-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 3rem;
    align-items: start;
}
.project-single-meta { position: sticky; top: calc(var(--header-h) + 20px); }
.gallery-heading { margin: 2.5rem 0 1.2rem; }
.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.project-gallery-grid .project-card { aspect-ratio: 4 / 3; }

/* ---- Contact form notices ---- */
.form-notice {
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: .95rem;
    margin-bottom: 1.4rem;
}
.form-notice-success {
    background: rgba(46, 160, 67, .12);
    color: #1a7f37;
    border: 1px solid rgba(46, 160, 67, .3);
}
.form-notice-error {
    background: rgba(220, 53, 69, .1);
    color: #b02a37;
    border: 1px solid rgba(220, 53, 69, .3);
}

/* ---- Pagination ---- */
.pagination, .nav-links {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    justify-content: center;
}
.pagination .page-numbers, .nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--color-light-gray);
    background: #fff;
    color: var(--color-charcoal);
    font-weight: 600;
}
.pagination .page-numbers.current,
.nav-links .page-numbers.current {
    background: linear-gradient(135deg, var(--color-orange), var(--color-gold));
    color: #fff;
    border-color: transparent;
}

/* ---- Responsive tweaks for WP layouts ---- */
@media (max-width: 960px) {
    .project-single-grid { grid-template-columns: 1fr; }
    .project-single-meta { position: static; }
    .entry-content .alignwide { margin-left: 0; margin-right: 0; }
}
