/* =============================================================================
   Contact page: photo hero with a live open/closed pill, the form card and
   details column with the opening-hours dial (set piece), and the map.
   The server renders the real UK status, so the dial is right without JS.
   ========================================================================== */

/* ------------------------------------------------------------------- hero */
.cthero {
  position: relative; isolation: isolate; overflow: clip; color: #fff;
  min-height: 100svh; display: grid; align-items: end;
  padding: clamp(104px, min(15vw, 15vh), 190px) 0 clamp(2.4rem, 7vh, 4.6rem);
}
.cthero-wash {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(95deg, rgba(12,59,39,.95) 0%, rgba(12,59,39,.82) 36%, rgba(12,59,39,.2) 72%, rgba(12,59,39,.34) 100%),
    linear-gradient(0deg, rgba(12,59,39,.86) 0%, rgba(12,59,39,0) 46%),
    linear-gradient(180deg, rgba(12,59,39,.5) 0%, rgba(12,59,39,0) 24%);
}
.cthero > .grain { z-index: -1; }
.cthero-grid { display: grid; gap: 1.8rem clamp(2rem, 4vw, 3.5rem); align-items: end; }
/* one column: the heading takes the full width and the live status sits under the buttons */
.cthero .h1 { font-size: clamp(2.6rem, min(6.4vw, 10vh), 6.2rem); margin-bottom: .32em; }
.cthero .lead { color: rgba(255,255,255,.92); margin: 0; }

.cthero-side { display: grid; gap: .75rem; justify-items: start; padding-bottom: .3rem; }
.ct-live {
  display: inline-flex; align-items: center; gap: .75rem; margin: 0;
  padding: .95rem 1.5rem .95rem 1.2rem; border-radius: 999px;
  background: rgba(12,59,39,.62); border: 1px solid rgba(255,255,255,.3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--display); font-weight: 700; font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  letter-spacing: -.02em; line-height: 1.1; color: #fff;
}
.ct-live-hours { margin: 0; font-weight: 600; font-size: 1.0625rem; color: rgba(255,255,255,.82); }

/* status dots: grey when closed, green with a slow pulse when open */
.ct-live-dot, .dl-dot {
  position: relative; flex: none; width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,.5);
}
.is-open > .ct-live-dot, .is-open > .dl-dot { background: #5BE38F; }
.is-open > .ct-live-dot::after, .is-open > .dl-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #5BE38F;
  animation: ct-pulse 2.2s cubic-bezier(.2,.7,.2,1) infinite;
}
@keyframes ct-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3); opacity: 0; } }

/* ------------------------------------------------------------- main block */
.ct-main { padding-block: clamp(3rem, min(7vw, 7vh), 5rem); }
.ct-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 1000px) { .ct-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); } }

.ct-form {
  padding: clamp(22px, 2.8vw, 40px); gap: 1rem;
  border: 1px solid rgba(12,59,39,.07);
  box-shadow: 0 40px 80px -46px rgba(12,59,39,.6);
}
.ct-form-head .rule { margin-bottom: .9rem; }
.ct-form-head .h2 { font-size: clamp(1.9rem, 2.8vw, 2.6rem); margin: 0 0 .15em; }
.ct-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .ct-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ct-form .field input, .ct-form .field textarea, .ct-form .field select { width: 100%; }

.field select {
  font: 400 1rem/1.5 var(--body); color: var(--ink); cursor: pointer;
  padding: .85rem 48px .85rem 1rem;
  border: 1px solid var(--mint); border-radius: 12px;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background: #FCFEFC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230F7F38' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center / 18px;
  transition: border-color .25s, box-shadow .25s;
}
.field select:focus { outline: none; border-color: var(--tick); box-shadow: 0 0 0 3px rgba(20,155,68,.18); }

.ct-send { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; }
.ct-req { margin: 0; font-size: 1rem; color: rgba(14,21,18,.62); }

/* details column */
.ct-side { display: grid; gap: clamp(1rem, 1.8vw, 1.3rem); }

.dl-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: clamp(1rem, 2vw, 1.6rem); align-items: center; justify-items: center;
  padding: clamp(20px, 2.2vw, 28px); border-radius: var(--r-lg);
  background: var(--pine); color: #fff;
  box-shadow: 0 40px 70px -40px rgba(12,59,39,.7);
  --focus: var(--mint-deep);
}
.dl-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); background-size: 260px 260px; opacity: .08; mix-blend-mode: overlay;
}
@media (min-width: 560px) {
  .dl-card { grid-template-columns: auto minmax(0, 1fr); justify-items: start; }
}
.dl { width: min(72vw, 280px); aspect-ratio: 1; }
@media (min-width: 560px) { .dl { width: clamp(180px, min(18vw, 28vh), 250px); } }
.dl-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.dl-face { fill: rgba(255,255,255,.05); stroke: rgba(255,255,255,.12); stroke-width: 1; }
.dl-track { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 11; }
.dl-marks line { stroke: rgba(255,255,255,.42); stroke-width: 1.6; stroke-linecap: round; }
.dl-arc { fill: none; stroke: var(--mint-deep); stroke-width: 11; stroke-linecap: round; }
.dl-arc.is-off { stroke: rgba(159,216,180,.4); stroke-dasharray: 2 3; stroke-linecap: butt; }
.dl-lbl { font: 600 12px/1 var(--body); fill: rgba(255,255,255,.6); text-anchor: middle; }
.dl-end { font: 700 13px/1 var(--body); fill: var(--mint-deep); text-anchor: middle; }
.dl-hand line { stroke: #fff; stroke-width: 3.6; stroke-linecap: round; }
.dl-hand circle { fill: var(--honey); }
.dl-hub { fill: var(--honey); stroke: var(--pine); stroke-width: 3; }

.dl-read { min-width: 0; }
.dl-state {
  display: flex; align-items: center; gap: .65rem; margin: 0 0 .55rem;
  font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 96;
  font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; letter-spacing: -.025em; color: #fff;
}
.dl-sub { margin: 0; font-size: 1.0625rem; line-height: 1.5; color: rgba(255,255,255,.86); }
.dl-time { display: block; margin-top: .35rem; color: rgba(255,255,255,.7); }
@media (max-width: 559px) { .dl-read { text-align: center; } .dl-state { justify-content: center; } }

.ct-details { display: grid; gap: 10px; }
.ct-details li {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 1rem; align-items: center;
  padding: 12px 16px 12px 12px; border-radius: 18px;
  background: rgba(255,255,255,.84); border: 1px solid rgba(12,59,39,.08);
  box-shadow: 0 20px 40px -34px rgba(12,59,39,.55);
}
.ct-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--mint); color: var(--tick-dark); }
.ct-ico svg { width: 26px; height: 26px; }
.ct-k { display: block; font-size: 1rem; font-weight: 600; line-height: 1.3; color: rgba(14,21,18,.62); }
.ct-v { display: block; font-size: 1.0625rem; font-weight: 700; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.ct-link { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .2em; text-decoration-color: var(--tick); transition: color .25s; }
.ct-link:hover { color: var(--tick-dark); }

/* -------------------------------------------------------------------- map */
.mp-grid { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
@media (min-width: 980px) { .mp-grid { grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); } }
.mp-copy > p { color: rgba(14,21,18,.78); }
.mp-media { margin: 0; }
.mp-frame { width: 100%; }
.mp-embed {
  position: relative; z-index: 3; display: grid; place-items: center; width: 100%;
  height: clamp(300px, 60vh, 560px); border-radius: var(--r-lg); overflow: clip; background: #E7F2EA;
  box-shadow: 0 40px 70px -44px rgba(12,59,39,.5);
}
.mp-streets { position: absolute; inset: 0; width: 100%; height: 100%; }
.mp-land { fill: #E7F2EA; }
.mp-park { fill: #CDE7D5; }
.mp-road { fill: none; stroke: #fff; stroke-width: 14; stroke-linecap: round; }
.mp-road-a { stroke-width: 22; stroke: #FDFEFD; }
.mp-road-thin { stroke-width: 7; stroke: rgba(255,255,255,.85); }
.mp-pin {
  position: absolute; left: calc(50% - 26px); top: calc(50% - 86px); width: 52px; height: 52px;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--tick);
  display: grid; place-items: center; box-shadow: 0 18px 30px -12px rgba(12,59,39,.6);
}
.mp-pin .tick { width: 26px; height: 26px; color: #fff; transform: rotate(45deg); }
.mp-load, .mp-open { position: relative; z-index: 2; margin-top: 90px; }
html.js .mp-open { display: none; }
html.js .mp-load[hidden] { display: inline-flex; }
.mp-embed iframe {
  position: absolute; inset: 0; z-index: 3; display: block; width: 100%; height: 100%; border: 0; background: #E7F2EA;
}
.mp-chip { position: absolute; z-index: 4; left: -8px; bottom: -18px; }
.mp-cap { margin: 2.2rem 0 0; font-size: 1rem; color: rgba(14,21,18,.66); }
