/* ============================================================
   Premrest v3 — shared site styles
   Telstra-inspired restraint: minimal header, fullscreen menu
   and search overlays, generous whitespace.
   Tokens come from ../styles.css.
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--neutral-charcoal);
  background: var(--neutral-light-muted);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--neutral-charcoal); }
a:hover { color: var(--brand-orange); }
.pr-youtube-short { text-decoration: none; color: inherit; }
.pr-youtube-short .frame > img { width: 100%; height: 100%; object-fit: cover; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: var(--fw-heavy);
  line-height: var(--lh-heading);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -0.03em; line-height: 0.95; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); letter-spacing: -0.02em; }
h3 { font-size: 1.4rem; letter-spacing: -0.01em; }
p { line-height: var(--lh-body); margin: 0; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.section { padding: clamp(64px, 9vw, 120px) 0; }

.eyebrow-label {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-orange);
}
.lead { font-family: var(--font-body); font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.45; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-heading); font-weight: var(--fw-bold); font-size: 1.02rem;
  padding: 15px 32px; border-radius: var(--radius-button);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  line-height: 1;
}
.btn-primary { background: var(--brand-orange); color: var(--neutral-white); }
.btn-primary:hover { background: #b95f30; color: var(--neutral-white); }
.btn-outline { background: transparent; color: var(--neutral-charcoal); border-color: rgba(46,49,51,0.35); }
.btn-outline:hover { border-color: var(--neutral-charcoal); color: var(--neutral-charcoal); }
.btn-light { background: var(--neutral-white); color: var(--neutral-charcoal); }
.btn-light:hover { color: var(--brand-orange); }
.btn-sm { padding: 11px 22px; font-size: 0.95rem; }

/* ============================================================
   HEADER — minimal: logo · search · phone · menu
   ============================================================ */
#pr-header { display: contents; }
.pr-headwrap {
  position: sticky; top: 0; z-index: 200;
  background: var(--neutral-light-muted);
  border-bottom: 1px solid rgba(46,49,51,0.08);
  color: var(--neutral-charcoal);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}
.pr-headwrap.is-transparent {
  background: transparent;
  border-color: rgba(255,255,255,0.1);
  color: var(--neutral-white);
  box-shadow: none;
}
.pr-headwrap.is-scrolled {
  background: rgba(255,253,250,0.75);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-color: rgba(255,255,255,0.2);
  color: var(--neutral-charcoal);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.pr-headwrap.is-transparent .pr-logo { color: var(--neutral-white); }
.pr-headwrap.is-transparent .pr-logo:hover { color: var(--brand-orange); }
.pr-headwrap.is-transparent .pr-menu-btn { color: var(--neutral-white); }

/* pull the homepage hero up behind the sticky header so the transparent header sits over it */
body .hero-triptych { margin-top: -68px; padding-top: 68px; }
.pr-headwrap.is-transparent .pr-phone { color: var(--neutral-white); }
.pr-headwrap.is-transparent .pr-searchbar {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
}
.pr-headwrap.is-transparent .pr-searchbar:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.95);
}
.pr-headwrap.is-transparent .pr-searchbar svg { opacity: 0.9; }
.pr-headwrap.is-transparent .pr-searchbar-icon {
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: var(--neutral-white);
}
.pr-headwrap.is-transparent .pr-searchbar-icon:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}
.pr-headwrap.is-transparent .pr-searchbar-icon svg { opacity: 0.9; }

.pr-topbar { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); height: 68px; }
.pr-logo { display: flex; align-items: center; color: var(--neutral-charcoal); flex-shrink: 0; transition: color 0.3s ease; }
.pr-logo svg { height: 24px; width: auto; }
.pr-logo:hover { color: var(--brand-orange); }

.pr-searchbar {
  flex: 1; max-width: 560px;
  display: flex; align-items: center; gap: 12px;
  background: #f1ece6; border: 1.5px solid transparent;
  border-radius: var(--radius-pill); padding: 12px 20px;
  font-family: var(--font-body); font-size: 0.98rem; color: rgba(46,49,51,0.55);
  cursor: pointer; text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.3s ease;
}
.pr-searchbar:hover { border-color: rgba(46,49,51,0.25); background: var(--neutral-white); }
.pr-searchbar svg { flex-shrink: 0; opacity: 0.7; transition: opacity 0.3s ease; }

.pr-topbar-right { margin-left: auto; display: flex; align-items: center; gap: clamp(10px, 2vw, 22px); }
.pr-phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: var(--fw-semibold); font-size: 0.97rem; white-space: nowrap; transition: color 0.3s ease; }
.pr-menu-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: none; cursor: pointer; padding: 10px 4px;
  font-family: var(--font-heading); font-weight: var(--fw-bold); font-size: 1rem; color: var(--neutral-charcoal);
  transition: color 0.3s ease;
}
.pr-menu-btn:hover { color: var(--brand-orange); }
.pr-menu-btn .bars { display: flex; flex-direction: column; gap: 5px; }
.pr-menu-btn .bars span { display: block; width: 22px; height: 2.5px; background: currentColor; border-radius: 2px; }

/* mobile: compact icon in topbar, expanding search row below on tap */
.pr-searchrow { display: none; padding: 0 0 12px; }
.pr-searchrow .pr-searchbar { width: 100%; max-width: none; }
.pr-searchbar-icon { display: none; }
@media (max-width: 760px) {
  .pr-topbar .pr-searchbar:not(.pr-searchbar-icon) { display: none; }
  .pr-phone .num { display: none; }

  .pr-searchbar-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    align-items: center;
    gap: 0;
    border-radius: 50%;
    background: #f1ece6;
    transition: background 0.2s ease, transform 0.2s ease;
  }
  .pr-searchbar-icon:hover { background: var(--neutral-white); }
  .pr-searchbar-icon svg { flex-shrink: 0; opacity: 0.7; }

  .pr-searchrow {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
    transition: max-height 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.28s ease,
                padding 0.28s ease;
  }
  .pr-searchrow.is-active {
    max-height: 120px;
    opacity: 1;
    padding: 0 0 12px;
  }
}

/* ============================================================
   FULLSCREEN OVERLAYS (menu + search) — Telstra-style
   ============================================================ */
.pr-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: var(--neutral-light-muted);
  display: none; overflow-y: auto; overscroll-behavior: contain;
}
.pr-overlay.is-open { display: block; }
.pr-overlay-bar { position: sticky; top: 0; background: var(--neutral-light-muted); border-bottom: 1px solid rgba(46,49,51,0.08); z-index: 2; }
.pr-overlay-bar .container-narrow { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.pr-x { background: none; border: none; cursor: pointer; padding: 12px; color: var(--neutral-charcoal); border-radius: 50%; line-height: 0; }
.pr-x:hover { background: rgba(46,49,51,0.07); }
.pr-overlay-body { padding: clamp(24px, 4vw, 44px) 0 80px; }

/* Segmented BU pills */
.pr-seg { display: flex; background: #eee9e2; border-radius: var(--radius-pill); padding: 5px; gap: 2px; }
.pr-seg button {
  flex: 1; border: 2px solid transparent; background: none; cursor: pointer;
  font-family: var(--font-heading); font-weight: var(--fw-bold); font-size: clamp(0.9rem, 2.6vw, 1.02rem);
  color: var(--neutral-charcoal); padding: 12px 10px; border-radius: var(--radius-pill);
  white-space: nowrap; line-height: 1;
}
.pr-seg button:hover { color: var(--brand-orange); }
.pr-seg button.is-active { background: var(--neutral-white); border-color: var(--brand-orange); color: var(--brand-orange); }

/* BU home row */
.pr-home-row {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-heading); font-weight: var(--fw-bold); font-size: 1.25rem;
  text-decoration: none; padding: 26px 4px 20px; color: var(--neutral-charcoal);
  border-bottom: 2px solid rgba(46,49,51,0.55);
}
.pr-home-row:hover { color: var(--brand-orange); }
.pr-home-row svg { flex-shrink: 0; }

/* Accordion rows */
.pr-acc { border-bottom: 1px solid rgba(46,49,51,0.12); }
.pr-acc-head {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-heading); font-weight: var(--fw-semibold); font-size: 1.2rem; color: var(--neutral-charcoal);
  padding: 20px 4px; line-height: 1.2;
}
.pr-acc-head:hover { color: var(--brand-orange); }
.pr-acc-head .chev { transition: transform .2s ease; flex-shrink: 0; }
.pr-acc.is-open > .pr-acc-head { background: rgba(209,112,60,0.06); }
.pr-acc.is-open > .pr-acc-head .chev { transform: rotate(180deg); }
.pr-acc-body { display: none; padding: 2px 0 16px; }
.pr-acc.is-open > .pr-acc-body { display: block; }
.pr-acc-body a {
  display: flex; align-items: center; min-height: 48px; padding: 4px 16px 4px 28px;
  text-decoration: none; font-size: 1.02rem; font-weight: var(--fw-medium); border-radius: var(--radius-sm);
}
.pr-acc-body a:hover { background: rgba(209,112,60,0.08); color: var(--brand-orange); }

/* plain overlay links */
.pr-plainlinks { margin-top: 36px; }
.pr-plainlinks a {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-heading); font-weight: var(--fw-semibold); font-size: 1.15rem;
  text-decoration: none; padding: 18px 4px; border-bottom: 1px solid rgba(46,49,51,0.12);
}
.pr-overlay-contact { margin-top: 40px; display: flex; flex-direction: column; gap: 10px; font-size: 0.98rem; }
.pr-overlay-contact a { text-decoration: none; font-weight: var(--fw-semibold); }
.pr-overlay-contact .addr { color: rgba(46,49,51,0.6); }

/* Projects tab inside menu */
.pr-menu-projects { padding: 28px 4px 0; }
.pr-menu-projects p { color: rgba(46,49,51,0.7); max-width: 46ch; margin-top: 12px; }

/* ---- Search overlay specifics ---- */
.pr-search-title { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 26px; }
.pr-search-field {
  display: flex; align-items: center; gap: 14px;
  background: var(--neutral-white); border: 2px solid rgba(46,49,51,0.4);
  border-radius: 14px; padding: 18px 20px;
}
.pr-search-field:focus-within { border-color: var(--brand-orange); }
.pr-search-field input {
  flex: 1; border: none; outline: none; background: none;
  font-family: var(--font-body); font-size: 1.15rem; color: var(--neutral-charcoal); min-width: 0;
}
.pr-search-field input::placeholder { color: rgba(46,49,51,0.4); }

.pr-takemeto { margin-top: 36px; }
.pr-takemeto h4 { font-size: 1.25rem; margin-bottom: 8px; }
.pr-suggest { list-style: none; margin: 0; padding: 0; }
.pr-suggest a, .pr-suggest button {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 1.1rem; font-weight: var(--fw-medium); color: var(--neutral-charcoal);
  text-decoration: none; padding: 14px 4px; border-radius: var(--radius-sm);
}
.pr-suggest a:hover, .pr-suggest button:hover { color: var(--brand-orange); }
.pr-suggest svg { flex-shrink: 0; opacity: 0.75; }
.pr-suggest .sub { display: block; font-size: 0.85rem; color: rgba(46,49,51,0.55); font-weight: 400; margin-top: 2px; }
.pr-suggest .rtag {
  margin-left: auto; flex-shrink: 0;
  font-family: var(--font-ui); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: var(--fw-bold);
  background: var(--brand-cream); border-radius: var(--radius-pill); padding: 5px 12px 3px;
}
.pr-suggest .rtag.is-maint { background: #dde3c2; }
.pr-suggest .rtag.is-page { background: var(--brand-grey); }
.pr-noresult { color: rgba(46,49,51,0.6); padding: 18px 4px; }

.pr-search-actions { margin-top: 32px; border-top: 1px solid rgba(46,49,51,0.12); padding-top: 12px; }

/* AI answer */
.pr-ai-answer {
  margin-top: 28px; background: var(--neutral-white); border: 1px solid rgba(46,49,51,0.1);
  border-radius: var(--radius-md); padding: 24px 26px; line-height: 1.6; white-space: pre-wrap;
}
.pr-ai-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-family: var(--font-ui); font-weight: var(--fw-bold); }
.pr-ai-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand-green); }
.pr-ai-dot.thinking { background: var(--brand-orange); animation: prPulse 1s infinite alternate; }
@keyframes prPulse { from { opacity: 0.35; } to { opacity: 1; } }
.pr-ai-note { font-size: 0.83rem; color: rgba(46,49,51,0.55); margin-top: 14px; }

/* message form */
.pr-msg-form { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.pr-msg-form input, .pr-msg-form textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--neutral-charcoal);
  background: var(--neutral-white); border: 1.5px solid rgba(46,49,51,0.25);
  border-radius: var(--radius-sm); padding: 14px 16px; outline: none; resize: vertical;
}
.pr-msg-form input:focus, .pr-msg-form textarea:focus { border-color: var(--brand-orange); }
.pr-msg-sent { margin-top: 28px; background: var(--system-success); color: var(--system-success-dark); border-radius: var(--radius-sm); padding: 18px 20px; }

/* ============================================================
   FOOTER
   ============================================================ */
.pr-footer { background: var(--neutral-charcoal); color: var(--neutral-light-muted); }
.pr-footer a { color: var(--neutral-light-muted); text-decoration: none; }
.pr-footer a:hover { color: var(--brand-cream); }
.pr-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 36px; padding-block: clamp(48px, 6vw, 72px); }
.pr-footer-grid h5 { font-family: var(--font-heading); font-size: 0.8rem; letter-spacing: 0.13em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin: 0 0 16px; font-weight: var(--fw-bold); }
.pr-footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.93rem; }
.pr-footer-brand svg { height: 24px; width: auto; color: var(--brand-cream); }
.pr-footer-brand p { font-size: 0.92rem; color: rgba(255,255,255,0.6); margin-top: 16px; max-width: 32ch; }
.pr-footer-contactlines { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 0.95rem; }
.pr-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.pr-footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 900px) { .pr-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pr-footer-grid { grid-template-columns: 1fr; } }
/* ===== "say" section: service words + icons always wear animated brand gradients ===== */
.say .pop{position:relative;display:inline-block;white-space:nowrap}
.say .pop-w{position:relative;z-index:2;display:inline-block;color:var(--pc1);transform-origin:50% 80%;background-image:linear-gradient(100deg,var(--pc1),var(--pc2) 45%,var(--pc1));background-size:300% 100%;background-position:0% 50%}
.say .ill{aspect-ratio:var(--ar,1);-webkit-mask:var(--ill-img) center/contain no-repeat;mask:var(--ill-img) center/contain no-repeat;transform-origin:50% 80%;background-color:var(--pc1);background-image:linear-gradient(100deg,var(--pc1),var(--pc2) 45%,var(--pc1));background-size:300% 100%;background-position:0% 50%}
.say .ill-cleaning{--ar:815/833;--ill-img:url('../media/ill-cleaning.svg')}
.say .ill-installing{--ar:834/423;--ill-img:url('../media/ill-installing.svg')}
.say .ill-restoring{--ar:832/670;--ill-img:url('../media/ill-restoring.svg')}
.say .ill-slip-testing{--ar:834/671;--ill-img:url('../media/ill-slip-testing.svg')}
.say .pop-blue{--pc1:#1f6fd1;--pc2:#3fb6ff}
.say .pop-green{--pc1:#1f9d55;--pc2:#7ed957}
.say .pop-red{--pc1:#e0433a;--pc2:#ff8a5c}
.say .pop-yellow{--pc1:#d89a00;--pc2:#FDCB40}
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  .say .pop-w{color:transparent;-webkit-background-clip:text;background-clip:text}
}
.say .pop-w,.say .ill{animation:popFlow 5s ease-in-out infinite alternate}
.nb:hover .pop-w,.nb:focus-within .pop-w,.nb:active .pop-w{animation:popFlow 5s ease-in-out infinite alternate,popBounce .55s cubic-bezier(.34,1.56,.64,1)}
.nb:hover .ill,.nb:focus-within .ill,.nb:active .ill{animation:popFlow 5s ease-in-out infinite alternate,popWiggle .55s cubic-bezier(.34,1.56,.64,1)}
@keyframes popFlow{0%{background-position:0% 50%}100%{background-position:100% 50%}}
@keyframes popBounce{0%{transform:translateY(0) scale(1)}35%{transform:translateY(-.1em) scale(1.05)}65%{transform:translateY(.02em) scale(.99)}100%{transform:translateY(0) scale(1)}}
@keyframes popWiggle{0%{transform:rotate(0) scale(1)}35%{transform:rotate(-7deg) scale(1.1)}65%{transform:rotate(4deg) scale(1.02)}100%{transform:rotate(0) scale(1)}}
@media (prefers-reduced-motion:reduce){.say .pop-w,.say .ill,.nb:hover .pop-w,.nb:focus-within .pop-w,.nb:active .pop-w,.nb:hover .ill,.nb:focus-within .ill,.nb:active .ill{animation:none}}
