/* UPFIX Drylining Ltd: "Get a price" page.
   Page-only styles, loaded after styles.css. Brand tokens (--black, --ink, --paper, --soft, --line,
   --muted, --gold, --max) come from styles.css. Every class here starts with gp- so no other page changes. */

/* The page declares both schemes and keeps the light palette in each one, so a phone that
   force-darkens "light only" pages (Samsung Internet, Chrome auto dark) leaves it alone. */
:root{color-scheme:light dark}

.gp{
  --gp-gold-card:#e5c04e;   /* the gold half of the delivery grid on the home page */
  --gp-muted:#5f5c56;       /* body-size secondary text: 6:1 on #f4f3ef */
  --gp-on-dark:#b9b9b9;
  --gp-rule-dark:#2b2b2b;
  --gp-field:#bfbcb4;
  --gp-ease:cubic-bezier(.22,1,.36,1);
  --gp-ui:180ms;
  --gp-gutter:max(24px,calc((100vw - var(--max)) / 2));
  --gp-side:14px;           /* the side margin .container has on phones */
}
@media(min-width:621px){.gp{--gp-side:24px}}
.gp [id]{scroll-margin-top:88px}
.gp h2{font-size:clamp(2rem,3.5vw,3.5rem);line-height:1.03;letter-spacing:-.045em;font-weight:800;margin:0 0 18px;text-wrap:balance}
.gp h3{font-size:1.375rem;line-height:1.15;letter-spacing:-.025em;font-weight:800;margin:0 0 14px}
.gp :focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.gp-hero :focus-visible,.gp-people :focus-visible{outline-color:var(--gold)}
.gp-sec{padding:68px 0}
.gp-btn-lg{min-height:54px;padding:0 28px;font-size:1.0625rem}
.gp-link{font-weight:800;text-decoration:underline;text-decoration-color:var(--gold);text-decoration-thickness:2px;text-underline-offset:5px}
.gp-fig{margin:0;min-width:0}
.gp-fig img{width:100%;height:auto;background:#dcd9d0}
.gp-fig figcaption{padding-top:10px;color:var(--gp-muted);line-height:1.4}
.gp-shot{position:relative}
.gp-nowrap{white-space:nowrap}

/* ---------- 1. first screen ---------- */
.gp-hero{position:relative;display:flex;align-items:flex-end;overflow:hidden;background:#111;color:#fff;
  height:calc(100vh - 132px);height:calc(100svh - 132px);min-height:500px;max-height:780px}
.gp-hero-photos{position:absolute;inset:0;display:grid;grid-template-columns:minmax(0,1fr)}
.gp-panel{position:relative;margin:0;min-width:0;overflow:hidden;background:#161616}
.gp-panel img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.gp-panel-1,.gp-panel-2{display:none}
.gp-panel-3 img{object-position:62% 50%}
.gp-hero::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,rgba(9,9,9,0) 72%,rgba(9,9,9,.45) 100%)}
/* the dark veil belongs to the text block, so the words stay readable at any screen height
   and the upper part of the photographs stays as it was shot */
.gp-hero-copy::before{content:"";position:absolute;z-index:-1;left:50%;width:100vw;transform:translateX(-50%);top:-150px;bottom:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(9,9,9,0) 0,rgba(9,9,9,.6) 120px,rgba(9,9,9,.84) 210px,rgba(9,9,9,.94) 100%)}
/* the black tab: on the first screen it hangs from the header, further down it names the stage a photo shows */
.gp-tab{position:absolute;z-index:2;left:0;top:0;padding:9px 14px 10px;background:var(--black);color:#d9d9d9;line-height:1.25}
.gp-tab b{color:#fff;font-weight:800;margin-right:5px}
.gp-tab i{font-style:normal;font-weight:800;color:var(--gold);margin-right:5px}
.gp-hero .gp-tab{padding-left:var(--gp-side)}
.gp-shot .gp-tab b{margin-right:0}
.gp-tab span{white-space:nowrap}
.gp-hero-copy{position:relative;z-index:2;margin-top:auto;margin-bottom:0;padding-bottom:26px}  /* .container has margin:auto, which would centre it vertically in the flex box */
.gp-hero h1{font-size:clamp(1.75rem,8.7vw,2.25rem);line-height:1.02;letter-spacing:-.045em;font-weight:800;margin:0 0 14px;max-width:13.2em;text-wrap:balance}
.gp-hero-copy p{font-size:1.0625rem;line-height:1.45;color:#e6e6e6;margin:0 0 20px;max-width:38em}
.gp-hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:4px 20px}
.gp-tel{display:inline-flex;align-items:center;gap:.4em;min-height:48px;font-weight:700;color:#fff}
.gp-tel span{text-decoration:underline;text-decoration-color:var(--gold);text-decoration-thickness:2px;text-underline-offset:5px}

/* ---------- 2. the two ways ---------- */
.gp-ways{display:grid;grid-template-columns:minmax(0,1fr)}
.gp-way{display:grid;gap:6px;align-content:start;padding:24px var(--gp-side) 26px;color:var(--ink)}
.gp-way strong{font-size:1.375rem;line-height:1.1;letter-spacing:-.03em;font-weight:800}
.gp-way-text{color:#474540}
.gp-way-go{justify-self:start;margin-top:6px;font-weight:800;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px}
.gp-way-package{background:#fff;border-bottom:1px solid var(--line)}
.gp-way-package .gp-way-go{text-decoration-color:var(--gold)}
.gp-way-people{background:var(--gp-gold-card)}
.gp-way-people .gp-way-text{color:#3a3320}

/* ---------- 3. what goes into a package ---------- */
.gp-package-grid{display:grid;gap:44px}
.gp-lead{font-size:1.125rem;line-height:1.5;color:#3b3935;margin:0 0 30px;max-width:38em}
.gp-schedule{margin:0;border-bottom:1px solid var(--line)}
.gp-schedule>div{display:grid;gap:2px;padding:14px 0 15px;border-top:1px solid var(--line)}
.gp-schedule dt{font-weight:800;letter-spacing:-.01em}
.gp-schedule dd{margin:0;color:var(--gp-muted)}
.gp-after-list{margin:18px 0 0}
.gp-after-list a,.gp-direct a{display:inline-flex;align-items:center;min-height:44px}
.gp-package-photo{max-width:520px}

/* ---------- 4. photos from the jobs ---------- */
.gp-work{background:var(--soft)}
.gp-head{display:grid;gap:8px;margin-bottom:36px}
.gp-head h2{margin:0}
.gp-head p{margin:0;color:var(--gp-muted);font-size:1.125rem;line-height:1.5;max-width:30em}
.gp-job+.gp-job{margin-top:60px}
.gp-pair{display:grid;gap:24px 14px}
.gp-mosaic{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 10px}
.gp-m-big,.gp-m-side,.gp-m-first,.gp-note{grid-column:1/-1}
.gp-note{margin:0;color:var(--gp-muted);max-width:24em}

/* ---------- 5. people for the site ---------- */
.gp-people{background:var(--black);color:#fff}
.gp-people-top{display:grid;gap:36px}
.gp-crew{font-size:clamp(1.5rem,2.3vw,2.125rem);line-height:1.1;letter-spacing:-.035em;font-weight:800;color:var(--gold);margin:0 0 16px;max-width:13em}
.gp-people-copy p:not(.gp-crew){color:#c9c9c9;margin:0 0 26px;max-width:34em}
.gp-trades{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px;border-bottom:1px solid var(--gp-rule-dark)}
.gp-trades>div{padding:13px 0 14px;border-top:1px solid var(--gp-rule-dark)}
.gp-trades dt{font-weight:800;line-height:1.25}
.gp-trades dd{display:none;margin:3px 0 0;color:var(--gp-on-dark)}
.gp .gp-steps-title{margin:56px 0 0}
.gp-steps{list-style:none;margin:16px 0 0;padding:0;display:grid;counter-reset:gp-step;border-bottom:1px solid var(--gp-rule-dark)}
.gp-steps li{counter-increment:gp-step;position:relative;padding:16px 0 17px 52px;border-top:1px solid var(--gp-rule-dark);color:var(--gp-on-dark)}
.gp-steps li::before{content:counter(gp-step);position:absolute;left:0;top:11px;font-size:2.25rem;line-height:1.1;letter-spacing:-.04em;font-weight:800;color:var(--gold)}
.gp-steps strong{display:block;color:#fff}
.gp-paper{list-style:none;margin:44px 0 0;padding:0;display:grid;color:var(--gp-on-dark)}
.gp-paper li{padding:14px 0 15px;border-top:1px solid var(--gp-rule-dark)}
.gp-paper li:last-child{border-bottom:1px solid var(--gp-rule-dark)}
.gp-paper strong{color:#fff;margin-right:4px}

/* ---------- 6. who and where ---------- */
.gp-area-grid{display:grid;gap:36px;margin-top:26px}
.gp-who{margin:0;border-bottom:1px solid var(--line)}
.gp-who>div{padding:13px 0 14px;border-top:1px solid var(--line)}
.gp-who dt{font-weight:800}
.gp-who dd{margin:2px 0 0;color:var(--gp-muted)}
.gp-where-lead{font-size:1.125rem;line-height:1.5;margin:0;color:#2b2a27}
.gp-where h3,.gp-who-block h3{font-size:1.125rem;margin:0 0 8px}
.gp-towns{margin:0}
.gp-towns>div{padding:10px 0 11px;border-top:1px solid var(--line)}
.gp-towns>div:last-child{border-bottom:1px solid var(--line)}
.gp-towns dt{font-weight:800}
.gp-towns dd{margin:1px 0 0;color:var(--gp-muted)}

/* ---------- 7. get a price ---------- */
.gp-price{background:var(--soft)}
.gp-form{display:grid;gap:30px}
.gp-form fieldset{border:0;margin:0;padding:0;min-width:0}
.gp-form legend{display:block;width:100%;padding:0 0 12px;font-size:1.125rem;line-height:1.25;letter-spacing:-.015em;font-weight:800;color:var(--ink)}
.gp-form legend small,.gp-form .field label small{margin-left:6px;font-size:1rem;font-weight:400;letter-spacing:0;color:var(--gp-muted)}
.gp-form .gp-set{margin-top:34px}
.gp-switch-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--black);background:#fff}
.gp-switch-row label,.gp-chip{-webkit-tap-highlight-color:transparent}  /* the cell itself shows the tap */
.gp-switch-row label{position:relative;display:block;cursor:pointer}
.gp-switch-row label+label{border-left:1px solid var(--black)}
.gp-switch-row input,.gp-chip input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.gp-switch-row span{display:flex;align-items:center;justify-content:center;min-height:56px;padding:8px 10px;text-align:center;line-height:1.2;font-weight:800;background:#fff;color:var(--ink);transition:background-color var(--gp-ui) ease-out,color var(--gp-ui) ease-out}
.gp-switch-row input:checked+span{background:var(--black);color:#fff}
.gp-switch-row input:focus-visible+span{outline:3px solid var(--gold);outline-offset:-4px}
.gp-chips{display:grid;grid-template-columns:minmax(0,1fr);margin-bottom:22px;border-top:1px solid var(--gp-field);border-left:1px solid var(--gp-field)}
.gp-chip{position:relative;display:block;cursor:pointer}
.gp-chip span{display:flex;align-items:center;gap:12px;height:100%;min-height:50px;padding:8px 14px 8px 12px;line-height:1.2;font-weight:700;background:#fff;color:var(--ink);border-right:1px solid var(--gp-field);border-bottom:1px solid var(--gp-field);transition:background-color var(--gp-ui) ease-out,color var(--gp-ui) ease-out}
.gp-chip span::before{content:"";flex:none;width:18px;height:18px;border:2px solid #7d7a73;background:#fff no-repeat center/12px 12px}
.gp-chip input:checked+span{background:var(--black);color:#fff}
.gp-chip input:checked+span::before{border-color:var(--gold);background-color:var(--gold);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3l2.6 2.6L10 3.4' fill='none' stroke='%23111' stroke-width='2'/%3E%3C/svg%3E")}
.gp-chip input:focus-visible+span{outline:3px solid var(--ink);outline-offset:-3px}
.gp-chip input:checked:focus-visible+span{outline-color:var(--gold)}
.gp-fields{display:grid;gap:16px}
.gp-form .field label{font-size:1rem;font-weight:700;color:var(--ink)}
.gp-form .field input,.gp-form .field textarea{min-height:52px;font-size:1rem;color:var(--ink);background:#fff;border:1px solid var(--gp-field);border-radius:0;-webkit-appearance:none;appearance:none}
.gp-form .field textarea{min-height:120px}
.gp-form ::placeholder{color:#77746d;opacity:1}
.gp-sheet{padding:20px 20px 18px;background:#fff;border:1px solid var(--black)}
.gp-sheet h3{margin:0 0 12px}
.gp-sheet dl{margin:0}
.gp-sheet dl>div{display:grid;gap:1px;padding:8px 0 9px;border-top:1px solid var(--line)}
.gp-sheet dt{color:var(--gp-muted)}
.gp-sheet dd{margin:0;font-weight:700;overflow-wrap:anywhere;white-space:pre-line}
.gp-sheet-meta{border-bottom:2px solid var(--black)}
.gp-sheet-lines>div:first-child{border-top:0}
.gp-sheet-need{margin:12px 0 0;padding-top:12px;border-top:1px solid var(--line);color:var(--gp-muted)}
.gp-sheet-need.gp-ok{color:var(--ink);font-weight:800}
.gp-send{width:100%;margin-top:14px}
.gp-form-note{margin:12px 0 0;color:var(--gp-muted)}
.gp-after{margin-top:18px;padding:16px 18px 18px;background:#f3e8bd;color:var(--ink)}
.gp-after p{margin:0 0 14px}
.gp-copy{background:#fff;color:var(--ink);min-width:11.5em}
.gp-direct{display:grid;justify-items:start;margin:22px 0 0}
.gp-direct p{margin:0 0 2px}
.gp [hidden]{display:none !important}

/* in the header the gold button waits until the first-screen button has scrolled away: one gold button at a time */
.site-header .btn.gp-quiet{background:transparent;border-color:#fff;color:#fff}
.site-header .btn{transition:background-color var(--gp-ui,180ms) ease-out,color var(--gp-ui,180ms) ease-out,border-color var(--gp-ui,180ms) ease-out}
/* the bottom bar from styles.css stays out of the way while the first-screen button or the form is in view */
.mobile-actions{transition:transform .22s ease-out,visibility 0s}
.mobile-actions.gp-bar-off{transform:translateY(105%);visibility:hidden;transition:transform .22s ease-out,visibility 0s .22s}

/* ---------- wider screens ---------- */
@media(min-width:480px){
  .gp-sheet dl>div{grid-template-columns:8.25rem minmax(0,1fr);gap:12px}
}
@media(min-width:620px){
  .gp-chips{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gp-schedule>div{grid-template-columns:15rem minmax(0,1fr);gap:28px}
  .gp-trades{column-gap:40px}
  .gp-trades dd{display:block}
  .gp-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:760px){
  .gp-sec{padding:104px 0}
  .gp-hero{height:calc(100vh - 180px);height:calc(100svh - 180px);min-height:540px;max-height:880px}
  .gp-hero-photos{grid-template-columns:repeat(3,minmax(0,1fr));gap:2px}
  .gp-panel-1,.gp-panel-2{display:block}
  .gp-panel img{object-position:50% 0}
  .gp-panel-3 img{object-position:50% 30%}
  .gp-hero-copy::before{top:-270px;
    background:linear-gradient(90deg,rgba(9,9,9,.9) 0%,rgba(9,9,9,.86) 30%,rgba(9,9,9,.6) 52%,rgba(9,9,9,.18) 70%,rgba(9,9,9,0) 84%);
    -webkit-mask-image:linear-gradient(180deg,transparent 0,rgba(0,0,0,.16) 80px,rgba(0,0,0,.62) 180px,#000 270px);
    mask-image:linear-gradient(180deg,transparent 0,rgba(0,0,0,.16) 80px,rgba(0,0,0,.62) 180px,#000 270px)}
  .gp-hero .gp-tab{z-index:3;padding-left:16px;padding-right:16px}  /* above the veil of the text block */
  .gp-hero .gp-tab span{display:none}
  .gp-hero .gp-panel-1 .gp-tab{padding-left:var(--gp-gutter)}
  .gp-hero-copy{padding-bottom:48px}
  .gp-hero h1{font-size:clamp(2.5rem,min(4.7vw,7.4vh),4.5rem);margin-bottom:18px}  /* also follows the screen height, so short laptops keep the photographs in view */
  .gp-hero-copy p{font-size:1.25rem;margin-bottom:26px}
  .gp-ways{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gp-way{padding:32px 40px 34px}
  .gp-way strong{font-size:1.625rem}
  .gp-way-text{max-width:30em}
  .gp-way-package{padding-left:var(--gp-gutter);border-bottom:0}
  .gp-way-people{padding-right:var(--gp-gutter)}
  .gp-head{grid-template-columns:minmax(0,1fr) minmax(260px,420px);gap:48px;align-items:end;margin-bottom:52px}
  .gp-job+.gp-job{margin-top:88px}
  .gp-pair{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gp-mosaic{grid-template-columns:repeat(12,minmax(0,1fr));gap:40px 14px}
  .gp-m-big{grid-column:1/8;grid-row:1}
  .gp-m-side{grid-column:8/13;grid-row:1;align-self:start}
  .gp-note{grid-column:8/13;grid-row:1;align-self:end;margin-bottom:38px}  /* sits level with the foot of the large photo */
  .gp-m-third,.gp-m-first{grid-column:span 4}
}
@media(min-width:760px) and (max-height:820px){
  .gp-hero-copy{padding-bottom:36px}
  .gp-hero-copy::before{top:-170px;
    -webkit-mask-image:linear-gradient(180deg,transparent 0,rgba(0,0,0,.2) 55px,rgba(0,0,0,.66) 115px,#000 170px);
    mask-image:linear-gradient(180deg,transparent 0,rgba(0,0,0,.2) 55px,rgba(0,0,0,.66) 115px,#000 170px)}
}
@media(min-width:1100px){
  .gp-hero .gp-tab span{display:inline}
}
@media(min-width:900px){
  .gp-steps{grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:0}
  .gp-steps li{padding:62px 28px 0 0}
  .gp-steps li::before{top:14px}
  .gp-paper{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:40px;margin-top:56px}
  .gp-paper li:last-child{border-bottom:0}
}
@media(min-width:1000px){
  .gp-package-grid{grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:72px;align-items:start}
  .gp-package-photo{max-width:none}
  .gp-people-top{grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:72px;align-items:start}
  .gp .gp-steps-title{margin-top:72px}
  .gp-area-grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:28px 40px;margin-top:44px;align-items:start}
  .gp-area-photo{grid-column:1/6;grid-row:1}
  .gp-where-lead{grid-column:1/6;grid-row:2;font-size:1.25rem;line-height:1.45}
  .gp-who-block{grid-column:6/10;grid-row:1/3}
  .gp-where{grid-column:10/13;grid-row:1/3}
  .gp-form{grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:64px;align-items:start}
  .gp-form-side{position:sticky;top:100px}
}
@media(hover:hover){
  .gp-way:hover .gp-way-go,.gp-link:hover{text-decoration-thickness:3px}
  .gp-chip:hover input:not(:checked)+span{background:#faf9f6}
  .gp-copy:hover{background:var(--soft)}
}

/* ---------- the one motion moment: the first screen settles in ---------- */
@keyframes gp-settle{from{transform:scale(1.07)}to{transform:scale(1)}}
@keyframes gp-rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes gp-fade{from{opacity:0}to{opacity:1}}
@keyframes gp-swap{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes gp-flash{from{background-color:rgba(212,173,45,.42)}to{background-color:rgba(212,173,45,0)}}
@media(prefers-reduced-motion:no-preference){
  .gp-panel img{animation:gp-settle 1.8s var(--gp-ease) both}
  .gp-panel-2 img{animation-delay:.08s}
  .gp-panel-3 img{animation-delay:.16s}
  .gp-hero h1{animation:gp-rise .8s var(--gp-ease) .12s both}
  .gp-hero-copy p{animation:gp-rise .8s var(--gp-ease) .22s both}
  .gp-hero-actions{animation:gp-rise .8s var(--gp-ease) .32s both}
  .gp-hero .gp-tab{animation:gp-fade .6s ease-out .45s both}
  .gp-sheet-lines>div.gp-flash{animation:gp-flash .7s ease-out}
  .gp-form .gp-set[data-gp-mode]{animation:gp-swap .22s ease-out}  /* the fields of the chosen request ease in when it changes */
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .gp *,.mobile-actions,.site-header .btn{transition:none !important}
}

/* same light palette when the device asks for dark */
@media(prefers-color-scheme:dark){
  body{background:#fff;color:#161616}
  .gp-form .field input,.gp-form .field textarea{background:#fff;color:#161616;border-color:#bfbcb4}
  .gp-form ::placeholder{color:#77746d}
}
