/* ==========================================================================
   Orient AC — base layer
   Loads on every page rendered by an "Orient —" page template.

   Design language follows click4ac.lk: light airy bands rather than heavy dark
   sections, fully-rounded pill buttons, photo-led cards, generous whitespace
   and short copy. The palette stays Orient navy/blue (#07132E / #024DDA)
   because the Elementor header and footer are fixed in those colours — cyan and
   orange would clash with chrome this stylesheet cannot reach.
   ========================================================================== */

:root{
  /* brand — matches Elementor kit-12 (--e-global-color-29740d0 / -783fdac) */
  --oac-ink:#07132E;
  --oac-ink-2:#0E1E3D;
  --oac-brand:#024DDA;
  --oac-brand-lift:#2E6BFF;
  --oac-brand-soft:#EAF0FE;
  --oac-chill:#5FE3E0;
  --oac-amber:#FFC24A;

  /* light surfaces — the big shift from the previous dark-heavy look */
  --oac-paper:#F6F7F9;
  --oac-surface:#FFFFFF;
  --oac-surface-2:#EDF1F7;
  --oac-line:#E3E8F0;
  --oac-line-strong:#CBD5E4;

  --oac-text:#101B33;
  --oac-muted:#5C6880;
  --oac-on-ink:#EAF0FB;
  --oac-on-ink-muted:#A7B7D4;

  --oac-wa:#25D366;

  /* pill buttons + soft cards */
  --oac-pill:999px;
  --oac-radius:18px;
  --oac-radius-sm:12px;
  --oac-shadow:0 22px 50px -26px rgba(7,19,46,.34);
  --oac-shadow-sm:0 10px 26px -16px rgba(7,19,46,.26);

  --oac-maxw:1140px;
  --oac-gutter:clamp(16px,4vw,26px);
}

/* --- Astra / Elementor chrome fixes --------------------------------------- */
.orient-tpl #content.site-content{padding:0}

/* Astra's header.php wraps template output in .ast-container, which is
   display:flex under ast-plain-container / ast-no-sidebar. A block child of a
   flex container shrink-wraps to its max-content width, so full-bleed sections
   stopped growing past 1140px and left a gap on the right. Back to block flow. */
.orient-tpl #content.site-content > .ast-container,
.orient-tpl .ast-container{display:block;max-width:none;padding:0;margin:0;width:100%}
.orient-tpl .oac-page{width:100%}

/* The Elementor header is sticky; paint it so the reserved strip matches the
   dark hero behind it instead of showing as a white seam. */
.orient-tpl header.elementor-location-header{background:var(--oac-ink)}

/* That header container carries --margin-bottom:5% from the imported kit.
   Percentage margins resolve against WIDTH, so it was ~50px at 1000px wide and
   ~95px at 1900px of dead space. Elementor zeroes it inline on the fixed bar
   but the spacer keeps it. (Also fixed at source in Elementor.) */
.orient-tpl header.elementor-location-header .elementor-sticky__spacer{
  --margin-bottom:0px;
  margin-block-end:0;
}

.orient-tpl .entry-header,
.orient-tpl h1.entry-title{display:none}

.orient-tpl,
.orient-tpl *{box-sizing:border-box}

.orient-tpl{
  background:var(--oac-paper);
  color:var(--oac-text);
  font-family:"IBM Plex Sans","Segoe UI",system-ui,sans-serif;
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

/* Sora for headings gives the reference's geometric feel; IBM Plex Sans stays
   for body copy so the page matches the Elementor header/footer navigation. */
.orient-tpl h1,
.orient-tpl h2,
.orient-tpl h3,
.orient-tpl h4{
  font-family:Sora,"Segoe UI",system-ui,sans-serif;
  margin:0;
  line-height:1.2;
  letter-spacing:-.02em;
  font-weight:700;
  text-wrap:balance;
}
/* NOTE: this is (0,1,1) and outranks a bare class like .oac-reviews__note.
   Any margin on a <p> needs .orient-tpl in front of it to take effect. */
.orient-tpl p{margin:0}
.orient-tpl img{max-width:100%;height:auto;display:block}
/* :where() keeps this at (0,1,0) instead of (0,1,1). It only exists to stop
   Astra colouring plain links, but at (0,1,1) it also outranked every component
   rule below — .oac-btn--wa, .oac-btn--call and .oac-link are all (0,1,0), so
   their colours were silently replaced by the inherited one. That went unnoticed
   for a while because on the dark hero the inherited colour is near-white, which
   is roughly what the buttons wanted anyway; on a white band the same buttons
   rendered with near-black text. At (0,1,0) the later component rules win on
   source order and plain links still inherit. */
.orient-tpl :where(a){color:inherit}

.orient-tpl :focus-visible{
  outline:3px solid var(--oac-brand);
  outline-offset:2px;
  border-radius:4px;
}

/* --- layout primitives ---------------------------------------------------- */
.oac-wrap{
  max-width:var(--oac-maxw);
  margin-inline:auto;
  padding-inline:var(--oac-gutter);
  width:100%;
}
.oac-sec{padding-block:clamp(52px,6.5vw,92px)}
.oac-sec--tint{background:var(--oac-surface-2)}
.oac-sec--white{background:var(--oac-surface)}
.oac-sec--ink{background:var(--oac-ink);color:var(--oac-on-ink)}
.oac-sec--ink h2,
.oac-sec--ink h3{color:#fff}

/* Centred section headers, as on the reference */
.oac-sec-head{
  display:grid;
  gap:12px;
  max-width:62ch;
  margin:0 auto clamp(30px,3.6vw,48px);
  text-align:center;
  justify-items:center;
}
.oac-sec-head h2{font-size:clamp(1.6rem,3.2vw,2.3rem)}
.oac-sec-head p{color:var(--oac-muted);font-size:1.02rem}
.oac-sec--ink .oac-sec-head p{color:var(--oac-on-ink-muted)}

.oac-eyebrow{
  display:inline-block;
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--oac-brand);
}
.oac-sec--ink .oac-eyebrow{color:var(--oac-chill)}

/* --- pill buttons --------------------------------------------------------- */
/* Astra styles bare <button> with padding:15px 30px, so every control in these
   templates sets its own padding explicitly. */
.oac-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:14px 30px;
  border-radius:var(--oac-pill);
  font-family:Sora,sans-serif;
  font-weight:600;
  font-size:.97rem;
  line-height:1;
  text-decoration:none;
  border:2px solid transparent;
  cursor:pointer;
  transition:transform .16s ease, background-color .16s ease, border-color .16s ease;
}
.oac-btn:hover{transform:translateY(-2px)}
.oac-btn:active{transform:translateY(0)}

.oac-btn--wa{background:var(--oac-wa);color:#04301A;box-shadow:0 10px 24px -14px rgba(37,211,102,.9)}
.oac-btn--wa:hover{background:#1FBF5B}

.oac-btn--call{background:var(--oac-brand);color:#fff;box-shadow:0 10px 24px -14px rgba(2,77,218,.9)}
.oac-btn--call:hover{background:var(--oac-brand-lift)}

.oac-btn--ghost{background:transparent;color:inherit;border-color:currentColor;opacity:.9}
.oac-btn--ghost:hover{opacity:1;background:rgba(255,255,255,.1)}

.oac-btn svg{flex:none}

/* text link with arrow */
.oac-link{
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-family:Sora,sans-serif;
  font-weight:600;
  font-size:.92rem;
  color:var(--oac-brand);
  text-decoration:none;
}
.oac-link svg{transition:transform .18s ease}
.oac-link:hover svg{transform:translateX(3px)}

.oac-stars{color:var(--oac-amber);letter-spacing:.12em}

.oac-visually-hidden{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

/* ==========================================================================
   Shared page shell — used by BOTH template-home.php and template-page.php.
   The per-template stylesheets only load on their own template, so anything
   more than one template renders has to live here.
   ========================================================================== */

/* --- breadcrumbs -----------------------------------------------------------
   Emitted by orient_ac_breadcrumbs() in inc/orient-theme.php, which prints the
   matching BreadcrumbList JSON-LD alongside it. Lives in the base sheet because
   every interior page wants it, not just the services hub.

   The separator is a bordered pseudo-element rather than a text character on
   purpose: CSS `content` is announced by some screen readers, and "Home slash
   Services" is noise on top of a list that is already marked up as one. */
.oac-crumbs{position:relative;z-index:2;padding-top:clamp(16px,2.2vw,26px)}
.oac-crumbs ol{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:5px 9px;
  margin:0;
  padding:0;
  list-style:none;
  font-size:.82rem;
}
.oac-crumbs li{display:flex;align-items:center;gap:9px;color:var(--oac-muted)}
.oac-crumbs li + li::before{
  content:"";
  width:6px;height:6px;
  flex:none;
  border-right:1.6px solid currentColor;
  border-bottom:1.6px solid currentColor;
  transform:rotate(-45deg);
  opacity:.55;
}
.oac-crumbs a{
  color:inherit;
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:color .16s ease, border-color .16s ease;
}
.oac-crumbs a:hover{color:var(--oac-brand);border-bottom-color:currentColor}
.oac-crumbs [aria-current="page"]{color:var(--oac-text);font-weight:600}

/* on the dark hero band */
.oac-hero .oac-crumbs li{color:var(--oac-on-ink-muted)}
.oac-hero .oac-crumbs a:hover{color:var(--oac-chill)}
.oac-hero .oac-crumbs [aria-current="page"]{color:#fff}

.oac-hero{
  position:relative;
  background:var(--oac-ink);
  color:var(--oac-on-ink);
  overflow:hidden;
}
.oac-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 500px at 4% -14%, rgba(2,77,218,.5), transparent 62%),
    radial-gradient(640px 440px at 86% 112%, rgba(95,227,224,.12), transparent 66%);
  pointer-events:none;
}
.oac-hero__viewport{position:relative}

.oac-slide{display:none;position:relative;z-index:1}
.oac-slide.is-active{display:block}

.oac-slide__inner{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(300px,.95fr);
  gap:clamp(28px,4vw,56px);
  align-items:center;
  padding-block:clamp(40px,5vw,68px) clamp(46px,5vw,76px);
}

.oac-slide__copy{min-width:0}
.oac-slide__copy .oac-eyebrow{color:var(--oac-chill)}

.oac-slide h1,
.oac-slide h2.oac-slide__title{
  font-size:clamp(1.95rem,4.6vw,3.05rem);
  margin-block:14px 16px;
  color:#fff;
}

.oac-slide__lede{
  font-size:1.06rem;
  color:var(--oac-on-ink-muted);
  max-width:44ch;
}

.oac-slide__cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}

/* --- closing CTA ---------------------------------------------------------- */
.oac-cta{position:relative;background:var(--oac-brand);color:#fff;overflow:hidden}
.oac-cta::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(720px 420px at 88% -22%, rgba(95,227,224,.3), transparent 62%);
}
.oac-cta .oac-wrap{
  position:relative;
  display:flex;
  gap:clamp(20px,3vw,40px);
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  padding-block:clamp(36px,4.6vw,58px);
}
.oac-cta h2{font-size:clamp(1.5rem,3vw,2.1rem);color:#fff}
.oac-cta p{margin-top:8px;color:rgba(255,255,255,.88);max-width:46ch}
.oac-cta__actions{display:flex;gap:12px;flex-wrap:wrap}
.oac-cta .oac-btn--call{background:#fff;color:var(--oac-brand);box-shadow:none}
.oac-cta .oac-btn--call:hover{background:var(--oac-brand-soft)}

/* --- sticky mobile call bar ----------------------------------------------- */
/* The hero carries its own WhatsApp/Call pair, so the bar stays out of the way
   until the hero has scrolled off — otherwise a phone shows four identical
   buttons at once. Matches the house-ac-repair landing page. */
.oac-callbar{
  position:fixed;
  inset:auto 0 0 0;
  z-index:90;
  display:none;
  gap:1px;
  background:var(--oac-line-strong);
  box-shadow:0 -8px 24px -12px rgba(7,19,46,.5);
  padding-bottom:env(safe-area-inset-bottom);
  transform:translateY(105%);
  visibility:hidden;
  transition:transform .3s cubic-bezier(.2,.7,.3,1), visibility .3s;
}
.oac-callbar.is-visible{transform:translateY(0);visibility:visible}
.oac-callbar a{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:15px 10px;
  font-family:Sora,sans-serif;
  font-weight:600;
  font-size:.95rem;
  text-decoration:none;
}
.oac-callbar .is-wa{background:var(--oac-wa);color:#04301A}
.oac-callbar .is-call{background:var(--oac-brand);color:#fff}

/* --- gallery lightbox ------------------------------------------------------
   Markup is template-parts/global/lightbox.php. It starts `hidden` and is only
   ever opened by orient-ui.js; with JS off the thumbnails stay plain links to
   the full image, so none of this is reachable. Lives in the base sheet because
   the partial is a global one, not home-only. */
.oac-lightbox{
  position:fixed;
  inset:0;
  z-index:200;
  display:grid;
  place-items:center;
  padding:clamp(14px,3vw,44px);
}
.oac-lightbox[hidden]{display:none}

.oac-lightbox__backdrop{
  position:absolute;
  inset:0;
  background:rgba(7,19,46,.93);
  -webkit-backdrop-filter:blur(4px);
  backdrop-filter:blur(4px);
}

.oac-lightbox__panel{
  position:relative;
  margin:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
  max-width:min(1080px,100%);
  max-height:100%;
}

.oac-lightbox__img{
  max-width:100%;
  /* leave room for the caption bar below */
  max-height:calc(100vh - 168px);
  width:auto;
  height:auto;
  border-radius:var(--oac-radius);
  box-shadow:0 30px 70px -20px rgba(0,0,0,.85);
  background:var(--oac-ink-2);
}

.oac-lightbox__bar{
  display:flex;
  align-items:center;
  gap:20px;
  color:var(--oac-on-ink);
}
.oac-lightbox__count{
  font-family:Sora,sans-serif;
  font-size:.85rem;
  font-weight:600;
  letter-spacing:.1em;
  min-width:5ch;
  text-align:center;
}
.oac-lightbox__nav{display:flex;gap:10px}

/* Astra styles bare <button>, so these set their own padding. */
.oac-lightbox__btn,
.oac-lightbox__close{
  width:46px;height:46px;
  min-width:0;padding:0;
  display:grid;place-items:center;
  border-radius:50%;
  border:1px solid rgba(233,239,251,.28);
  background:rgba(255,255,255,.07);
  color:var(--oac-on-ink);
  line-height:1;
  cursor:pointer;
  -webkit-appearance:none;appearance:none;
  transition:background-color .18s ease, border-color .18s ease;
}
.oac-lightbox__btn:hover,
.oac-lightbox__close:hover{
  background:rgba(255,255,255,.16);
  border-color:rgba(233,239,251,.6);
}

/* pinned to the viewport, not the panel, so it never sits over the photo */
.oac-lightbox__close{
  position:fixed;
  top:clamp(14px,2.4vw,26px);
  right:clamp(14px,2.4vw,26px);
}

@media (prefers-reduced-motion:no-preference){
  .oac-lightbox:not([hidden]) .oac-lightbox__panel{animation:oac-lb-in .28s ease both}
  .oac-lightbox:not([hidden]) .oac-lightbox__backdrop{animation:oac-fade-in .28s ease both}
}
@keyframes oac-lb-in{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
@keyframes oac-fade-in{from{opacity:0}to{opacity:1}}

@media (max-width:600px){
  .oac-lightbox__img{max-height:calc(100vh - 150px)}
  .oac-lightbox__bar{gap:14px}
}

/* --- hero entrance ---------------------------------------------------------
   A hero is above the fold, so it animates from CSS on first paint rather than
   waiting for the IntersectionObserver in orient-ui.js. That also means it
   needs no JavaScript at all.

   The keyframes live here because all three hero shapes use them: the home
   slider (.oac-slide) and the service detail pages (.oac-shero). (The services
   hub used .oac-phero until it moved to orient-airz.css on 2026-09-24.) Each page sheet applies them to its own children, because
   the number of children and which one is the photo differ; only the keyframes
   and the breadcrumb, which every hero shares, are here.

   `both` holds the from-state before the delay elapses, which is what stops the
   copy flashing in at full opacity and then animating. */
@keyframes oac-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes oac-fade{from{opacity:0;transform:scale(1.03)}to{opacity:1;transform:none}}

@media (prefers-reduced-motion:no-preference){
  /* the breadcrumb leads, ahead of the copy below it */
  .oac-hero .oac-crumbs{animation:oac-rise .45s cubic-bezier(.22,.61,.36,1) both}

}

/* --- scroll-in reveal ------------------------------------------------------
   The .oac-reveal class is added by orient-ui.js, never in the markup, so with
   JavaScript off nothing is ever hidden.

   This animates `translate` rather than `transform` on purpose: .oac-svc already
   uses transform for its hover lift, and the two are separate properties that
   compose, so neither clobbers the other. */
.oac-reveal{
  opacity:0;
  translate:0 18px;
  transition:opacity .55s ease, translate .55s cubic-bezier(.22,.61,.36,1);
}
.oac-reveal.is-in{opacity:1;translate:none}

@media (prefers-reduced-motion:reduce){
  .oac-reveal{opacity:1;translate:none;transition:none}
}

/* --- reviews --------------------------------------------------------------
   Shared: the home page and every service page render
   template-parts/home/reviews.php, so by the base-sheet rule these live here
   rather than in a per-template sheet. */
.oac-score{
  display:flex;align-items:center;gap:16px;
  justify-content:center;flex-wrap:wrap;
  margin-bottom:clamp(24px,3vw,34px);
}
.oac-score__num{font-family:Sora,sans-serif;font-size:2.6rem;font-weight:700;line-height:1}
.oac-score__of{display:grid;gap:2px;font-size:.88rem;color:var(--oac-muted);text-align:left}

.oac-reviews{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(272px,1fr));
  gap:clamp(16px,2.2vw,22px);
  align-items:start;
}
.oac-review{
  padding:24px;
  background:var(--oac-surface);
  border-radius:var(--oac-radius);
  box-shadow:var(--oac-shadow-sm);
  display:grid;gap:11px;align-content:start;
}
.oac-review__top{display:flex;gap:11px;align-items:center}
.oac-review__av{
  width:38px;height:38px;flex:none;border-radius:50%;
  display:grid;place-items:center;
  background:var(--oac-brand);color:#fff;
  font-family:Sora,sans-serif;font-weight:700;
}
.oac-review__id b{display:block;font-size:.92rem}
.oac-review__id span{font-size:.78rem;color:var(--oac-muted)}
.oac-review__meta{display:flex;gap:10px;align-items:center;font-size:.8rem;color:var(--oac-muted)}
.oac-review p{font-size:.92rem}

/* .orient-tpl p{margin:0} in orient-base.css is (0,1,1) and outranks a bare
   class selector, so this needs the extra class to take effect at all. */
.orient-tpl .oac-reviews__note{
  margin-top:22px;
  font-size:.78rem;
  color:var(--oac-muted);
  text-align:center;
}

/* --- FAQ ------------------------------------------------------------------
   Shared: home and the service pages each supply their own question array but
   render the same <details> component. */
.oac-faq{display:grid;gap:12px;max-width:800px;margin-inline:auto}
.oac-faq details{
  background:var(--oac-surface);
  border-radius:var(--oac-radius-sm);
  box-shadow:var(--oac-shadow-sm);
  padding:0 22px;
}
.oac-faq summary{
  cursor:pointer;list-style:none;
  padding:18px 32px 18px 0;
  position:relative;
  font-family:Sora,sans-serif;font-weight:600;font-size:1rem;
}
.oac-faq summary::-webkit-details-marker{display:none}
.oac-faq summary::after{
  content:"";position:absolute;right:4px;top:50%;
  width:9px;height:9px;
  border-right:2px solid var(--oac-brand);
  border-bottom:2px solid var(--oac-brand);
  transform:translateY(-70%) rotate(45deg);
  transition:transform .2s ease;
}
.oac-faq details[open] summary::after{transform:translateY(-25%) rotate(-135deg)}
.oac-faq details > p{padding:0 0 18px;font-size:.95rem;color:var(--oac-muted)}

@media (max-width:600px){
  .oac-score{justify-content:flex-start}
}

/* --- content typed into the WordPress editor ------------------------------ */
.oac-editor-content{max-width:74ch}
.oac-editor-content > * + *{margin-top:1.1em}
.oac-editor-content h2{font-size:clamp(1.4rem,3vw,2rem);margin-top:1.6em}
.oac-editor-content h3{font-size:1.2rem;margin-top:1.4em}
.oac-editor-content ul,
.oac-editor-content ol{padding-left:1.2em}
.oac-editor-content li + li{margin-top:.4em}
.oac-editor-content a{color:var(--oac-brand);text-underline-offset:3px}
.oac-editor-content img{border-radius:var(--oac-radius-sm)}

/* --- responsive ----------------------------------------------------------- */
@media (max-width:880px){
  .oac-slide__inner{grid-template-columns:1fr;gap:26px;padding-block:32px 38px}
  .oac-slide__lede{max-width:none}
}

@media (max-width:767px){
  .oac-callbar{display:flex}
  .orient-tpl{padding-bottom:58px}
  /* the sticky call bar covers this ground on phones, so drop the duplicate */
  .oac-cta{display:none}
}

@media (max-width:600px){
  .oac-slide__cta .oac-btn{flex:1 1 100%}
}

@media (prefers-reduced-motion:reduce){
  .orient-tpl *,
  .orient-tpl *::before,
  .orient-tpl *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
}
