/*
Theme Name: OX Building Child
Theme URI: https://www.oxbuildingsolutions.co.uk
Description: Child theme of GeneratePress for OX Building Solutions. Holds all custom CSS, JS, the Projects custom post type, and the project timeline.
Author: OX Building Solutions
Template: generatepress
Version: 1.1.0
*/

/* =========================================================
   BRAND TOKENS — taken from the OX Building logo + old site.
   Green + black on white. Change any value here and the
   whole site updates.
   ========================================================= */
:root {
  --ox-ink:        #1b1b1b;   /* near-black text */
  --ox-bg:         #ffffff;   /* page background */
  --ox-muted:      #6b756b;   /* secondary text */
  --ox-line:       #e3e7e3;   /* borders / rules */
  --ox-green:      #2f9e3f;   /* brand green (logo) */
  --ox-green-dark: #1d7a2c;   /* darker green for buttons/links */
  --ox-charcoal:   #262626;   /* dark section background */
  --ox-accent:     #ffd400;   /* hi-vis yellow — primary CTA only */
  --ox-surface:    #f4f7f4;   /* soft panel background */

  --ox-radius:     10px;
  --ox-maxw:       1180px;

  --ox-font-display: 'Archivo', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --ox-font-body:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* =========================================================
   BASE
   ========================================================= */
body { font-family: var(--ox-font-body); color: var(--ox-ink); }
h1, h2, h3, h4 { font-family: var(--ox-font-display); }

.ox-container { max-width: var(--ox-maxw); margin: 0 auto; padding: 0 1.25rem; }

.ox-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--ox-green-dark); margin: 0 0 .5rem; }
.ox-eyebrow-light { color: var(--ox-green); }
.ox-h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.1; margin: .3rem 0 1rem; font-weight: 700; color: var(--ox-ink); }
.ox-lead { font-size: 1.1rem; line-height: 1.7; color: #444; margin: 0; }

/* Buttons */
.ox-btn { display: inline-block; font-family: var(--ox-font-display); font-weight: 700; font-size: 1rem; padding: .85rem 1.6rem; border-radius: 8px; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease; }
.ox-btn:hover { transform: translateY(-2px); }
.ox-btn-accent { background: var(--ox-accent); color: #1b1b1b; }
.ox-btn-accent:hover { background: #ffdf33; }
.ox-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.ox-btn-ghost:hover { border-color: #fff; }
.ox-btn-outline { background: transparent; color: var(--ox-green-dark); border-color: var(--ox-green-dark); }
.ox-btn-outline:hover { background: var(--ox-green-dark); color: #fff; }

/* =========================================================
   HOME — full-bleed sections (neutralise theme container)
   ========================================================= */
.home .site-content,
.home .content-area,
.home #primary,
.home .site-main { width: 100%; max-width: 100%; padding: 0; margin: 0; }
.home .entry-content { margin-top: 0; }
.home .page-header, .home .entry-header { display: none; }

/* HERO */
.ox-hero { position: relative; overflow: hidden; background: var(--ox-charcoal); color: #fff; padding: clamp(4rem, 9vw, 7.5rem) 0; }
.ox-hero::before { content: ""; position: absolute; right: -6%; top: -25%; width: 55%; height: 150%; background: linear-gradient(135deg, rgba(47,158,63,.20), rgba(47,158,63,0)); transform: skewX(-12deg); transform-origin: top right; pointer-events: none; }
.ox-hero-inner { position: relative; z-index: 1; max-width: 820px; }
.ox-hero-title { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.02; font-weight: 800; color: #fff; margin: .4rem 0 1.2rem; }
.ox-hero-sub { font-size: 1.15rem; line-height: 1.6; color: rgba(255,255,255,.82); max-width: 60ch; margin: 0 0 2rem; }
.ox-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ABOUT */
.ox-about { background: #fff; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.ox-about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.ox-values { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.ox-values li { display: flex; align-items: center; gap: .7rem; font-family: var(--ox-font-display); font-weight: 700; font-size: 1.15rem; color: var(--ox-ink); }
.ox-chev { position: relative; width: 22px; height: 22px; flex: 0 0 22px; }
.ox-chev::before { content: ""; position: absolute; left: 0; top: 5px; width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-bottom: 14px solid var(--ox-green); }

/* SERVICES */
.ox-services { background: var(--ox-surface); padding: clamp(3.5rem, 7vw, 6rem) 0; }
.ox-services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.ox-service-card { display: block; background: #fff; border: 1px solid var(--ox-line); border-radius: var(--ox-radius); padding: 1.75rem; text-decoration: none; color: var(--ox-ink); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.ox-service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08); border-color: var(--ox-green); }
.ox-roof { color: var(--ox-green); display: inline-flex; margin-bottom: .75rem; }
.ox-service-title { font-size: 1.2rem; margin: 0 0 .4rem; font-weight: 700; }
.ox-service-desc { font-size: .95rem; color: #555; line-height: 1.55; margin: 0 0 1rem; }
.ox-service-link { font-family: var(--ox-font-display); font-weight: 700; font-size: .9rem; color: var(--ox-green-dark); }

/* RECENT PROJECTS */
.ox-recent { background: #fff; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.ox-recent-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.ox-recent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.ox-recent-card { display: block; border: 1px solid var(--ox-line); border-radius: var(--ox-radius); overflow: hidden; text-decoration: none; color: var(--ox-ink); transition: transform .18s ease, box-shadow .18s ease; }
.ox-recent-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.1); }
.ox-recent-media { position: relative; height: 200px; background: var(--ox-surface) center / cover no-repeat; }
.ox-recent-media .ox-badge { position: absolute; top: .75rem; left: .75rem; margin: 0; }
.ox-recent-body { padding: 1.1rem 1.25rem 1.4rem; }
.ox-recent-title { font-size: 1.15rem; margin: 0 0 .2rem; }
.ox-recent-loc { font-size: .9rem; color: var(--ox-muted); margin: 0; }

/* TRUST STRIP */
.ox-trust { background: var(--ox-green-dark); color: #fff; padding: 1.5rem 0; }
.ox-trust-inner { display: flex; align-items: center; gap: 1rem; justify-content: center; text-align: center; }
.ox-trust-check { font-size: 1.3rem; background: rgba(255,255,255,.18); width: 2.2rem; height: 2.2rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ox-trust p { margin: 0; font-size: 1rem; max-width: 62ch; }

/* CONTACT CTA */
.ox-cta { background: var(--ox-charcoal); color: #fff; padding: clamp(3.5rem, 7vw, 6rem) 0; text-align: center; }
.ox-cta-title { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 .6rem; font-weight: 800; color: #fff; }
.ox-cta-sub { font-size: 1.1rem; color: rgba(255,255,255,.8); max-width: 50ch; margin: 0 auto 2rem; }
.ox-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.ox-cta-contact { color: rgba(255,255,255,.85); margin: 0; }
.ox-cta-contact a { color: var(--ox-green); text-decoration: none; }

@media (max-width: 768px) {
  .ox-about-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   PROJECT TIMELINE
   ========================================================= */
.ox-timeline-wrap { max-width: var(--ox-maxw); margin: 0 auto; padding: 3.5rem 1.25rem 5rem; }
.ox-timeline-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; margin: 0 0 .6rem; color: var(--ox-ink); }
.ox-timeline-intro { color: var(--ox-muted); max-width: 42ch; margin: 0 0 3rem; }

.ox-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.ox-timeline::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: var(--ox-line); }

.ox-tl-item { position: relative; padding-left: 3rem; margin-bottom: 3rem; }
.ox-tl-marker { position: absolute; left: 3px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--ox-muted); box-shadow: 0 0 0 4px var(--ox-bg); }
.ox-tl-item.is-completed .ox-tl-marker { border-color: var(--ox-green); }
.ox-tl-item.is-in_progress .ox-tl-marker { border-color: var(--ox-accent); }

.ox-tl-date { font-size: .85rem; font-weight: 600; letter-spacing: .03em; color: var(--ox-muted); margin: 0 0 .6rem; display: flex; gap: .5rem; align-items: center; }
.ox-tl-date-sep { opacity: .5; }

.ox-tl-card { background: #fff; border: 1px solid var(--ox-line); border-radius: var(--ox-radius); padding: 1.5rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: box-shadow .2s ease, transform .2s ease; }
.ox-tl-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.ox-tl-card-head { margin-bottom: .75rem; }

.ox-badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .25rem .6rem; border-radius: 999px; margin-bottom: .6rem; background: #eee; color: #555; }
.ox-badge-in_progress { background: #fff6cc; color: #8a6d00; }
.ox-badge-completed { background: #e3f3ea; color: var(--ox-green-dark); }

.ox-tl-card-title { font-size: 1.4rem; margin: 0 0 .2rem; }
.ox-tl-card-title a { color: var(--ox-ink); text-decoration: none; }
.ox-tl-card-title a:hover { color: var(--ox-green-dark); }
.ox-tl-loc { font-size: .9rem; color: var(--ox-muted); margin: 0; }
.ox-tl-summary { margin: .25rem 0 1.25rem; color: #3a3a3a; }

.ox-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ox-ba-fig { margin: 0; position: relative; border-radius: 8px; overflow: hidden; background: var(--ox-surface); }
.ox-ba-fig img { display: block; width: 100%; height: 240px; object-fit: cover; }
.ox-ba-fig figcaption { position: absolute; bottom: 0; left: 0; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: rgba(0,0,0,.62); padding: .3rem .65rem; border-top-right-radius: 8px; }
.ox-tl-empty { color: var(--ox-muted); padding: 2rem 0; }

/* Single project page */
.ox-single { max-width: 900px; margin: 0 auto; padding: 3rem 1.25rem 5rem; }
.ox-back { display: inline-block; margin-bottom: 1.25rem; font-size: .9rem; color: var(--ox-muted); text-decoration: none; }
.ox-back:hover { color: var(--ox-green-dark); }
.ox-single-title { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; margin: .4rem 0 .5rem; }
.ox-single-meta { color: var(--ox-muted); margin: 0 0 2rem; }
.ox-single-meta .ox-dot { margin: 0 .5rem; }
.ox-ba-large { margin-bottom: 2.5rem; }
.ox-ba-large .ox-ba-fig img { height: 360px; }
.ox-single-body { font-size: 1.05rem; line-height: 1.7; }

@media (max-width: 600px) {
  .ox-ba { grid-template-columns: 1fr; }
  .ox-ba-fig img { height: 220px; }
  .ox-ba-large .ox-ba-fig img { height: 260px; }
}

/* Gentle scroll-in (only when JS present and motion allowed) */
@media (prefers-reduced-motion: no-preference) {
  .ox-js .ox-reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
  .ox-js .ox-reveal.is-visible { opacity: 1; transform: none; }
}

.home #content,
.home .site-content,
.home .content-area,
.home #primary,
.home .site-main { width: 100%; max-width: 100%; padding: 0; margin: 0; }
.home .site-main > .entry-header { display: none; }
/* ===================== PAGE: SERVICES (and reusable full-bleed pages) ===================== */
/* Any custom page wrapped in .ox-fullbleed breaks out of GeneratePress's container */
.site-content:has(.ox-fullbleed),
.content-area:has(.ox-fullbleed),
#primary:has(.ox-fullbleed),
.site-main:has(.ox-fullbleed) { width: 100%; max-width: 100%; padding: 0; margin: 0; }
.site-main:has(.ox-fullbleed) > .entry-header { display: none; }

/* page hero */
.ox-page-hero { position: relative; overflow: hidden; background: var(--ox-charcoal); color: #fff; padding: clamp(3rem, 6vw, 5rem) 0; }
.ox-page-hero::before { content: ""; position: absolute; right: -6%; top: -30%; width: 50%; height: 160%; background: linear-gradient(135deg, rgba(47,158,63,.18), rgba(47,158,63,0)); transform: skewX(-12deg); transform-origin: top right; pointer-events: none; }
.ox-page-hero-inner { position: relative; z-index: 1; max-width: 720px; }
.ox-page-title { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; color: #fff; line-height: 1.03; margin: .3rem 0 .8rem; }
.ox-page-intro { font-size: 1.1rem; color: rgba(255,255,255,.82); margin: 0; max-width: 56ch; }

/* services grid */
.ox-svc { background: #fff; padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.ox-svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.ox-svc-card { border: 1px solid var(--ox-line); border-radius: var(--ox-radius); padding: 2rem; background: #fff; transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease; }
.ox-svc-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.07); border-color: var(--ox-green); transform: translateY(-3px); }
.ox-svc-card .ox-roof { margin-bottom: .9rem; }
.ox-svc-card h2 { font-size: 1.3rem; margin: 0 0 .5rem; font-weight: 700; }
.ox-svc-card p { color: #555; line-height: 1.6; margin: 0; }

/* process / why choose us */
.ox-process { background: var(--ox-surface); padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.ox-process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.75rem; margin-top: 2rem; }
.ox-step-num { font-family: var(--ox-font-display); font-weight: 800; font-size: 2.4rem; color: var(--ox-green); line-height: 1; display: block; margin-bottom: .6rem; }
.ox-step h3 { font-size: 1.2rem; margin: 0 0 .4rem; font-weight: 700; }
.ox-step p { color: #555; line-height: 1.6; margin: 0; }


@media (max-width: 768px) { .ox-contact-grid { grid-template-columns: 1fr; } }/* ===================== PAGE: CONTACT ===================== */
.ox-contact { background: #fff; padding: clamp(3rem, 6vw, 5rem) 0; }
.ox-contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.ox-contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.4rem; }
.ox-contact-list li { display: flex; gap: .85rem; align-items: flex-start; }
.ox-contact-list .ox-roof { color: var(--ox-green); margin-top: .2rem; }
.ox-ci-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ox-muted); font-weight: 700; display: block; margin-bottom: .15rem; }
.ox-ci-value { font-size: 1.1rem; margin: 0; }
.ox-ci-value a { color: var(--ox-green-dark); text-decoration: none; }
.ox-ci-value a:hover { text-decoration: underline; }
.ox-contact-trust { display: flex; gap: .85rem; align-items: center; margin-top: 2rem; padding: 1.1rem 1.25rem; background: var(--ox-surface); border-radius: var(--ox-radius); }
.ox-contact-trust p { margin: 0; font-size: .95rem; }
.ox-contact-trust .ox-trust-check { background: var(--ox-green); color: #fff; }
.ox-contact-form-panel { background: var(--ox-surface); border: 1px solid var(--ox-line); border-radius: var(--ox-radius); padding: clamp(1.5rem, 3vw, 2.5rem); }
.ox-contact-form-panel > .ox-h2 { margin-top: 0; }
.ox-contact-form-panel .ff-btn-submit,
.ox-contact-form-panel button[type="submit"] { background: var(--ox-green-dark); color: #fff; border: none; }

@media (max-width: 768px) { .ox-contact-grid { grid-template-columns: 1fr; } }
.ox-contact-form-panel .ff_submit_btn_wrapper button,
.ox-contact-form-panel .fluentform .ff-btn { background: var(--ox-green-dark) !important; border: none !important; }
/* ===================== CLIENT PORTAL ===================== */
.ox-portal { background: var(--ox-surface); padding: clamp(2.5rem, 5vw, 4rem) 0; min-height: 70vh; }
.ox-portal-inner { max-width: 1000px; }
.ox-portal-login { max-width: 420px; margin: 2rem auto; background: #fff; border: 1px solid var(--ox-line); border-radius: var(--ox-radius); padding: 2.5rem; text-align: center; }
.ox-portal-title { color: var(--ox-ink); }
.ox-portal-sub { color: var(--ox-muted); margin-bottom: 1.5rem; }
.ox-portal-login form { text-align: left; display: grid; gap: 1rem; }
.ox-portal-login label { font-weight: 600; font-size: .9rem; display: grid; gap: .35rem; }
.ox-portal-login input[type=text], .ox-portal-login input[type=password] { padding: .7rem .8rem; border: 1px solid var(--ox-line); border-radius: 8px; font-size: 1rem; }
.ox-portal-login .button, .ox-portal-login input[type=submit] { background: var(--ox-green-dark); color: #fff; border: none; padding: .8rem; border-radius: 8px; font-weight: 700; cursor: pointer; font-family: var(--ox-font-display); }

.ox-portal-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.ox-portal-head .ox-page-title { color: var(--ox-ink); margin: 0; }

.ox-notice { padding: .9rem 1.1rem; border-radius: 8px; margin-bottom: 1.5rem; font-weight: 500; }
.ox-notice-ok { background: #e3f3ea; color: var(--ox-green-dark); }
.ox-notice-ok a { color: var(--ox-green-dark); font-weight: 700; }
.ox-notice-err { background: #fdecdf; color: #b4480f; }

.ox-portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.ox-portal-form { background: #fff; border: 1px solid var(--ox-line); border-radius: var(--ox-radius); padding: 1.75rem; display: grid; gap: 1rem; align-content: start; }
.ox-portal-form-title { font-size: 1.25rem; margin: 0 0 .25rem; font-weight: 700; }
.ox-portal-form label { font-size: .9rem; font-weight: 600; display: grid; gap: .35rem; color: var(--ox-ink); }
.ox-portal-form input[type=text], .ox-portal-form textarea, .ox-portal-form select, .ox-portal-form input[type=date] { padding: .65rem .75rem; border: 1px solid var(--ox-line); border-radius: 8px; font-size: 1rem; font-family: var(--ox-font-body); width: 100%; }
.ox-portal-form input:focus, .ox-portal-form textarea:focus, .ox-portal-form select:focus { outline: 2px solid var(--ox-green); outline-offset: 1px; }
.ox-portal-form input[type=file] { font-size: .9rem; }
.ox-portal-form button { justify-self: start; margin-top: .25rem; }
.ox-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.ox-portal-recent { background: #fff; border: 1px solid var(--ox-line); border-radius: var(--ox-radius); padding: 1.75rem; margin-top: 1.5rem; }
.ox-portal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ox-portal-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--ox-line); }
.ox-portal-list li:last-child { border-bottom: none; }
.ox-portal-list a { color: var(--ox-ink); text-decoration: none; font-weight: 600; }
.ox-portal-list a:hover { color: var(--ox-green-dark); }
.ox-portal-type { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--ox-muted); background: var(--ox-surface); padding: .2rem .55rem; border-radius: 999px; }

@media (max-width: 768px) { .ox-portal-grid { grid-template-columns: 1fr; } }
/* ===================== BEFORE/AFTER CAROUSEL ===================== */
.ox-ba-group { min-width: 0; }
.ox-ba-tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ox-muted); margin-bottom: .5rem; }
.ox-carousel { position: relative; }
.ox-carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ox-carousel-track::-webkit-scrollbar { display: none; }
.ox-carousel-track figure { flex: 0 0 100%; scroll-snap-align: start; margin: 0; background: var(--ox-surface); }
.ox-carousel-track img { display: block; width: 100%; height: 380px; object-fit: cover; border-radius: 8px; }
.ox-carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(0,0,0,.55); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s ease; }
.ox-carousel-btn:hover { background: rgba(0,0,0,.8); }
.ox-carousel-prev { left: .6rem; }
.ox-carousel-next { right: .6rem; }
.ox-carousel-count { position: absolute; bottom: .6rem; right: .6rem; background: rgba(0,0,0,.6); color: #fff; font-size: .75rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; }
/* "+N more" badge on the timeline preview */
.ox-ba-fig { position: relative; }
.ox-ba-fig .ox-more { position: absolute; top: .5rem; right: .5rem; background: rgba(0,0,0,.65); color: #fff; font-size: .72rem; font-weight: 700; padding: .2rem .5rem; border-radius: 999px; }
.ox-portal-hint { font-size: .85rem; color: var(--ox-muted); margin: -.25rem 0 0; }

@media (max-width: 600px) { .ox-carousel-track img { height: 260px; } }
/* ===================== NEWS ===================== */
.ox-news { background: #fff; padding: clamp(3rem, 6vw, 5rem) 0; }
.ox-news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.75rem; }
.ox-news-card { border: 1px solid var(--ox-line); border-radius: var(--ox-radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.ox-news-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.ox-news-media { display: block; height: 200px; background: var(--ox-surface) center / cover no-repeat; }
.ox-news-body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.ox-news-date { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ox-muted); font-weight: 700; margin: 0; }
.ox-news-title { font-size: 1.25rem; margin: 0; line-height: 1.2; }
.ox-news-title a { color: var(--ox-ink); text-decoration: none; }
.ox-news-title a:hover { color: var(--ox-green-dark); }
.ox-news-excerpt { color: #555; line-height: 1.6; margin: 0; font-size: .95rem; flex: 1; }
.ox-news-link { font-family: var(--ox-font-display); font-weight: 700; font-size: .9rem; color: var(--ox-green-dark); text-decoration: none; margin-top: .25rem; }
.ox-pagination { margin-top: 2.5rem; }
.ox-pagination .nav-links { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; justify-content: center; }
.ox-pagination .page-numbers { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0 .5rem; border: 1px solid var(--ox-line); border-radius: 8px; text-decoration: none; color: var(--ox-ink); font-weight: 600; }
.ox-pagination .page-numbers.current { background: var(--ox-green-dark); color: #fff; border-color: var(--ox-green-dark); }
.ox-pagination .page-numbers:hover:not(.current) { border-color: var(--ox-green); }
.ox-news-hero-img { margin: 0 0 2rem; }
.ox-news-hero-img img { width: 100%; border-radius: var(--ox-radius); display: block; }
/* ===================== MENU FONT ===================== */
.main-navigation a,
.main-navigation .menu-item a { font-family: var(--ox-font-display); font-weight: 600; letter-spacing: .01em; }
.main-navigation .current-menu-item > a,
.main-navigation a:hover { color: var(--ox-green-dark); }
/* ===================== FOOTER ===================== */
.site-info { background: var(--ox-charcoal) !important; color: rgba(255,255,255,.75); padding: 2.25rem 0 !important; }
.site-info .inside-site-info { text-align: center; }
.ox-footer { display: grid; gap: .85rem; justify-items: center; }
.ox-footer-brand { font-family: var(--ox-font-display); font-weight: 800; font-size: 1.1rem; color: #fff; letter-spacing: .02em; }
.ox-footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; }
.ox-footer-links a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .9rem; }
.ox-footer-links a:hover { color: var(--ox-green); }
.ox-footer-contact { font-size: .9rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.ox-footer-contact a { color: var(--ox-green); text-decoration: none; }
.ox-footer-copy { font-size: .8rem; color: rgba(255,255,255,.5); }
/* Footer: separate it from the charcoal CTA above, tighten it up */
.site-info { background: #1b1b1b !important; padding: 1.75rem 0 !important; border-top: 3px solid var(--ox-green); }
/* Trim the tall CTA band a touch */
.ox-cta { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
/* ===== FULL-WIDTH: make GeneratePress's container itself span the page ===== */
.home .site-content > .content-area,
.home .site-content,
.home .container.grid-container,
.home .site-content .container,
.site-content:has(.ox-fullbleed),
.site-content:has(.ox-fullbleed) .container,
.site-content:has(.ox-fullbleed) > .content-area {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
/* sections now just fill their (now full-width) parent — no 100vw needed */
.ox-home > section,
.ox-fullbleed > section { width: 100%; margin: 0; }
/* The real culprit: #page is GeneratePress's max-width container */
.home #page.grid-container,
.home #page.container,
.home #page {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* stop the flex layout that leaves the right gap */
.home #content.site-content {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}
/* ===================== SERVICES CAROUSEL (auto-scroll) ===================== */
.ox-services { padding: clamp(2.25rem, 4.5vw, 3.5rem) 0; }   /* tighter than before */
.ox-services .ox-container { margin-bottom: 1.75rem; }

.ox-services-carousel {
  position: relative;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
.ox-services-carousel::-webkit-scrollbar { display: none; }

.ox-services-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.25rem;
  width: max-content;
}

.ox-services-track .ox-service-card {
  flex: 0 0 min(320px, 42vw);   /* ~2 cards on mobile, several on desktop */
  margin: 0;
}

/* Ensure the services track lays out in one wide row so it can scroll */
.ox-services-carousel { overflow-x: auto !important; }
.ox-services-track { display: flex !important; flex-wrap: nowrap !important; width: max-content !important; }
.ox-services-track .ox-service-card { flex: 0 0 min(320px, 42vw) !important; }
/* ===================== PROJECT CATEGORIES ===================== */
.ox-catgrid-section, .ox-gallery-section { background: #fff; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.ox-catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.ox-cat-card { display: flex; flex-direction: column; border: 1px solid var(--ox-line); border-radius: var(--ox-radius); overflow: hidden; text-decoration: none; color: var(--ox-ink); transition: transform .18s ease, box-shadow .18s ease; }
.ox-cat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.1); }
.ox-cat-media { height: 190px; background: var(--ox-surface) center / cover no-repeat; display: flex; align-items: center; justify-content: center; }
.ox-cat-media .ox-roof { color: var(--ox-green); opacity: .5; }
.ox-cat-body { padding: 1.1rem 1.25rem 1.35rem; }
.ox-cat-name { display: block; font-family: var(--ox-font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.ox-cat-count { display: block; font-size: .85rem; color: var(--ox-muted); margin-top: .25rem; }

/* category gallery */
.ox-gallery-list { display: grid; gap: 2.5rem; }
.ox-gallery-title { font-size: 1.3rem; margin: 0 0 .9rem; font-weight: 700; }

/* ===== Full-width heroes on ALL custom pages (Services/Contact/Projects), not just home ===== */
#page:has(.ox-fullbleed) { max-width: 100% !important; width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }
#content.site-content:has(.ox-fullbleed) { display: block !important; width: 100% !important; max-width: 100% !important; }
.ox-portal-single { max-width: 640px; }
/* ===================== HEADER / MENU POLISH ===================== */
/* more presence: bigger, bolder, better spaced */
.main-navigation .main-nav ul li a {
  font-family: var(--ox-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}
/* a touch more breathing room in the header bar */
.site-header .inside-header { padding-top: .35rem; padding-bottom: .35rem; }

/* green underline accent that grows on hover + marks the current page */
.main-navigation .main-nav ul li > a { position: relative; }
.main-navigation .main-nav ul li > a::after {
  content: "";
  position: absolute;
  left: 1.1rem; right: 1.1rem; bottom: .55rem;
  height: 2px;
  background: var(--ox-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.main-navigation .main-nav ul li:hover > a::after,
.main-navigation .main-nav ul li.current-menu-item > a::after { transform: scaleX(1); }

/* active + hover colour */
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li > a:hover { color: var(--ox-green-dark); }

/* dropdown (Services) — match the brand, a bit roomier */
.main-navigation .main-nav ul ul {
  border-top: 3px solid var(--ox-green);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
.main-navigation .main-nav ul ul li a {
  font-size: .95rem;
  padding-top: .7rem;
  padding-bottom: .7rem;
}
.main-navigation .main-nav ul ul li a::after { display: none; }   /* no underline inside dropdown */
/* ===================== MENU — Oswald, bigger, architectural ===================== */
.main-navigation .main-nav ul li a {
  font-family: 'Oswald', var(--ox-font-display), sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}
/* dropdown items: same font, a touch smaller, tighter */
.main-navigation .main-nav ul ul li a {
  font-size: 1rem;
  letter-spacing: .04em;
}

/* ===================== HERO FADE-IN (runs on every page load) ===================== */
@keyframes ox-hero-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  /* stagger the hero pieces so they rise in one after another */
  .ox-hero-inner > *,
  .ox-page-hero-inner > * { animation: ox-hero-in .7s ease both; }
  .ox-hero-inner > *:nth-child(1),
  .ox-page-hero-inner > *:nth-child(1) { animation-delay: .05s; }
  .ox-hero-inner > *:nth-child(2),
  .ox-page-hero-inner > *:nth-child(2) { animation-delay: .15s; }
  .ox-hero-inner > *:nth-child(3),
  .ox-page-hero-inner > *:nth-child(3) { animation-delay: .25s; }
  .ox-hero-inner > *:nth-child(4) { animation-delay: .35s; }
}
/* ===================== FLOATING WHATSAPP BUTTON ===================== */
.ox-wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0;
  height: 56px;
  padding: 0;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  overflow: hidden;
  transition: padding .25s ease, box-shadow .18s ease, transform .18s ease;
}
.ox-wa-icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* label is collapsed by default, expands on hover */
.ox-wa-label {
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  font-family: var(--ox-font-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: max-width .3s ease, opacity .2s ease, padding .3s ease;
  padding: 0;
}
.ox-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,.3);
  color: #fff;
}
.ox-wa:hover .ox-wa-label {
  max-width: 260px;
  opacity: 1;
  padding: 0 1.1rem 0 1.1rem;
}

/* pulsing rings to draw the eye (disabled for reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  .ox-wa-icon::before,
  .ox-wa-icon::after {
    content: "";
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    z-index: -1;
    left: 0;
    animation: ox-wa-pulse 2.2s ease-out infinite;
  }
  .ox-wa-icon::after { animation-delay: 1.1s; }
  @keyframes ox-wa-pulse {
    0%   { transform: scale(1);   opacity: .5; }
    70%  { transform: scale(1.8); opacity: 0;  }
    100% { transform: scale(1.8); opacity: 0;  }
  }
  /* a gentle bob on the icon itself */
  .ox-wa { animation: ox-wa-bob 3s ease-in-out infinite; }
  @keyframes ox-wa-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
  }
  .ox-wa:hover { animation: none; }   /* stop bobbing while hovered */
}

/* mobile: no hover, so show the label as a permanent pill */
@media (max-width: 600px) {
  .ox-wa { right: 14px; bottom: 14px; height: 52px; }
  .ox-wa-icon { flex-basis: 52px; width: 52px; height: 52px; }
  .ox-wa-label { max-width: 200px; opacity: 1; padding: 0 .9rem 0 .8rem; font-size: .85rem; }
}
/* ===================== MOBILE POLISH — fonts & spacing ===================== */
@media (max-width: 768px) {
  /* Tighten the big section padding so pages aren't endless scrolling */
  .ox-about, .ox-services, .ox-recent, .ox-cta,
  .ox-svc, .ox-process, .ox-contact,
  .ox-catgrid-section, .ox-gallery-section,
  .ox-page-hero { padding-top: 2.5rem; padding-bottom: 2.5rem; }

  /* Shorter hero so the content below is visible sooner */
  .ox-hero { padding-top: 3rem; padding-bottom: 3rem; }

  /* Stack hero & CTA buttons full-width and thumb-sized */
  .ox-hero-actions, .ox-cta-actions { flex-direction: column; align-items: stretch; }
  .ox-hero-actions .ox-btn, .ox-cta-actions .ox-btn {
    width: 100%; text-align: center; padding-top: 1rem; padding-bottom: 1rem;
  }
}

@media (max-width: 600px) {
  /* Headings: bold but not oversized on small screens */
  .ox-hero-title  { font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1.05; }
  .ox-page-title  { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .ox-h2, .ox-cta-title { font-size: clamp(1.6rem, 7vw, 2rem); }
  .ox-single-title { font-size: clamp(1.8rem, 8vw, 2.3rem); }

  /* Body copy a touch smaller with comfortable line height */
  .ox-hero-sub, .ox-lead, .ox-page-intro, .ox-cta-sub { font-size: 1rem; line-height: 1.6; }
  .ox-eyebrow { font-size: .72rem; }

  /* Tighter side padding + section padding on phones */
  .ox-container { padding-left: 1.1rem; padding-right: 1.1rem; }
  .ox-about, .ox-services, .ox-recent, .ox-cta,
  .ox-svc, .ox-process, .ox-contact,
  .ox-catgrid-section, .ox-gallery-section { padding-top: 2.25rem; padding-bottom: 2.25rem; }

  /* "Recent work" heading + button stack neatly */
  .ox-recent-head { flex-direction: column; align-items: flex-start; }

  /* Slightly shorter image tiles so cards aren't huge */
  .ox-cat-media { height: 160px; }
  .ox-recent-media { height: 170px; }

  /* Menu items sized for the hamburger panel */
  .main-navigation .main-nav ul li a { font-size: 1.1rem; }

  /* Belt-and-braces: never let an image force sideways scroll */
  img, .ox-ba-fig img, .ox-carousel-track img { max-width: 100%; height: auto; }
}