/* ==========================================================================
   Page-specific layouts
   ========================================================================== */

/* ---- services page ---- */
.jump { position: sticky; top: var(--nav-h); z-index: 30; background: var(--gg-color-accent); color: var(--gg-color-accent-contrast); }
.jump__list { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; list-style: none; margin: 0; padding: 0.75rem var(--gutter); }
.jump__list::-webkit-scrollbar { display: none; }
.jump__list a { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; padding: 0.55rem 0.9rem; border: 1px solid rgba(17,18,16,0.35); font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; letter-spacing: 0.04em; text-transform: uppercase; transition: background-color var(--dur-fast); }
.jump__list a:hover { background: rgba(17,18,16,0.1); }
.jump__list svg { width: 0.875rem; height: 0.875rem; }
@media (min-width: 1024px) { .jump__list { justify-content: space-between; max-width: calc(var(--content-max) + 2 * var(--gutter)); margin-inline: auto; padding-block: 1rem; } .jump__list a { border: 0; padding: 0.4rem 0; font-size: 1.3rem; } }

.svc { display: grid; gap: var(--space-7); align-items: start; }
.svc .media { aspect-ratio: 4 / 3; }
.svc__h2 { font-size: clamp(3rem, 1.6rem + 4.6vw, 6rem); }
.svc__intro { display: grid; gap: var(--space-5); }
.svc__intro .label { margin-bottom: calc(var(--space-2) * -1); }
.checklist { list-style: none; padding: 0; }
.checklist li { display: flex; gap: var(--space-3); align-items: flex-start; padding-block: 0.8rem; border-top: 1px solid var(--gg-color-line); font-weight: 500; }
.checklist li:first-child { border-top: 0; }
.checklist svg { width: 1.125rem; height: 1.125rem; flex: none; margin-top: 0.25rem; color: var(--gg-color-accent); }
.svc__time .value { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--gg-color-accent); line-height: 1.1; }
.svc__actions { display: grid; gap: var(--space-4); }
@media (min-width: 900px) {
  .svc { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 2rem + 3vw, 5rem); }
  .svc .media { aspect-ratio: 8 / 9; position: sticky; top: calc(var(--nav-h) + 5rem); }
  .svc--flip .media { order: 2; }
  .svc__actions { display: flex; align-items: center; gap: var(--space-6); }
}

.pricing { display: grid; gap: 0.75rem; }
.pricing__card { background: var(--gg-color-surface); padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); display: grid; gap: var(--space-4); align-content: start; }
.pricing__card svg { width: 2.25rem; height: 2.25rem; color: var(--gg-color-accent); }
.pricing__card h3 { font-size: clamp(2.25rem, 1.8rem + 1.2vw, 2.75rem); }
@media (min-width: 900px) { .pricing { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

/* ---- contact page ---- */
.contact-top { display: grid; gap: var(--space-8); padding-block: clamp(2rem, 1rem + 4vw, 6rem) var(--section-y); }
.contact-top > *, .area-intro > *, .featured > *, .pd-two > *, .svc > * { min-width: 0; }
.contact-top__h1 { font-size: clamp(6rem, 3rem + 11vw, 13.75rem); line-height: 0.8; }
.contact-top .media { aspect-ratio: 16 / 9; }
@media (max-width: 1023px) { .contact-top .media { display: none; } }
.contact-intro { display: grid; gap: var(--space-7); align-content: start; }
@media (min-width: 1024px) { .contact-top { grid-template-columns: 1fr minmax(32rem, 42.5rem); gap: var(--space-9); } }

.form { background: var(--gg-color-surface); padding: clamp(1.5rem, 0.8rem + 2.5vw, 3rem); display: grid; gap: var(--space-5); align-content: start; }
.form__title { font-size: clamp(2.25rem, 1.8rem + 1.4vw, 3rem); }
.form__row { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.5rem; }
.field label, .field legend { display: flex; justify-content: space-between; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.field .opt { color: var(--gg-color-text-muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3.25rem; padding: 0.9rem 1rem; font-size: 1rem;
  background: var(--gg-color-field); border: 1px solid var(--gg-color-line); border-radius: 0; color: var(--gg-color-text);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A3A198' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.1rem; padding-right: 2.75rem; }
.field ::placeholder { color: var(--gg-color-text-muted); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gg-color-accent); box-shadow: 0 0 0 1px var(--gg-color-accent); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--gg-color-error); box-shadow: 0 0 0 1px var(--gg-color-error); }
.field.is-invalid label { color: var(--gg-color-error); }
.field__error { color: var(--gg-color-error); font-size: 0.875rem; font-weight: 500; }
.chips { border: 0; padding: 0; display: grid; gap: 0.75rem; }
.chips__set { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; padding: 0.6rem 1rem; border: 1px solid var(--gg-color-line); font-size: 0.9375rem; font-weight: 600; cursor: pointer; transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.chip input:checked + span { background: var(--gg-color-accent); border-color: var(--gg-color-accent); color: var(--gg-color-accent-contrast); }
.chip input:focus-visible + span { outline: 3px solid var(--gg-color-accent); outline-offset: 2px; }
.drop { position: relative; display: grid; place-items: center; gap: 0.35rem; padding: 1.5rem 1rem; border: 1px dashed var(--gg-color-text-muted); text-align: center; cursor: pointer; }
.drop svg { width: 1.75rem; height: 1.75rem; color: var(--gg-color-accent); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop small { color: var(--gg-color-text-muted); }
.drop:focus-within { outline: 3px solid var(--gg-color-accent); outline-offset: 2px; }
.form__note { font-size: 0.8125rem; color: var(--gg-color-text-muted); }
.form__status { padding: 1rem 1.25rem; font-weight: 500; }
.form__status--error { border: 1px solid var(--gg-color-error); color: var(--gg-color-text); }
.form-done { display: grid; gap: var(--space-5); }
.form-done__tick { width: 4rem; height: 4rem; background: var(--gg-color-accent); color: var(--gg-color-accent-contrast); display: grid; place-items: center; }
.form-done__tick svg { width: 2.5rem; height: 2.5rem; }

.direct { background: var(--gg-color-dark-bg); color: var(--gg-color-dark-text); }
.direct__grid { display: grid; }
.direct__item { display: flex; align-items: center; gap: var(--space-4); padding-block: 1.1rem; border-top: 1px solid rgba(17,18,16,0.18); }
.direct__item:first-child { border-top: 0; }
.direct__item svg { width: 1.6rem; height: 1.6rem; flex: none; }
.direct__label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gg-color-dark-text-muted); }
.direct__value { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.25rem); line-height: 1.05; overflow-wrap: anywhere; }
@media (min-width: 1024px) { .direct__grid { grid-template-columns: repeat(4, auto); justify-content: space-between; padding-block: 2.5rem; } .direct__item { border: 0; flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 0; } }

.next { display: grid; gap: 0.75rem; }
.next__step { background: var(--gg-color-surface); padding: clamp(1.25rem, 1rem + 1vw, 2.25rem); display: grid; grid-template-columns: auto 1fr; gap: var(--space-5); align-items: start; }
.next__num { font-family: var(--font-display); font-weight: 900; font-size: clamp(3.5rem, 2.5rem + 3vw, 6rem); line-height: 0.85; color: var(--gg-color-accent); }
.next__step h3 { font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.75rem); }
.next__step p { color: var(--gg-color-text-secondary); margin-top: var(--space-2); }
@media (min-width: 1024px) { .next { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } .next__step { grid-template-columns: 1fr; } }

.links-list { list-style: none; padding: 0; border-bottom: 1px solid var(--gg-color-line); }
.links-list a { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding-block: 1rem; border-top: 1px solid var(--gg-color-line); font-weight: 500; }
.links-list svg { width: 1.25rem; height: 1.25rem; color: var(--gg-color-accent); flex: none; transition: transform var(--dur-base) var(--ease-out); }
.links-list a:hover svg { transform: translateX(4px); }

/* ---- projects ---- */
.count { display: flex; align-items: baseline; gap: var(--space-3); }
.count strong { font-family: var(--font-display); font-weight: 900; font-size: clamp(3rem, 2rem + 3vw, 4.5rem); line-height: 1; color: var(--gg-color-accent); }
.filters { position: sticky; top: var(--nav-h); z-index: 30; background: var(--gg-color-surface); border-block: 1px solid var(--gg-color-line); }
.filters__inner { display: grid; gap: 0.75rem; padding-block: 0.9rem; }
.filters__chips { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.filters__chips::-webkit-scrollbar { display: none; }
.filters__chips button { flex: none; min-height: 2.75rem; padding: 0.6rem 1rem; border: 1px solid var(--gg-color-line); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; transition: background-color var(--dur-fast), color var(--dur-fast); }
.filters__chips button[aria-pressed="true"] { background: var(--gg-color-accent); border-color: var(--gg-color-accent); color: var(--gg-color-accent-contrast); }
.filters select { min-height: 2.75rem; padding: 0.6rem 2.75rem 0.6rem 1rem; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ECE9E1' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.9rem center / 1rem; border: 1px solid var(--gg-color-line); appearance: none; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 0; }
.filters select option { background: var(--gg-color-bg); }
@media (min-width: 1024px) { .filters__inner { grid-template-columns: 1fr auto; align-items: center; } .filters__chips { margin: 0; padding: 0; } }
.featured { display: grid; gap: var(--space-7); align-items: center; }
.featured .ba { aspect-ratio: 4 / 3; }
.featured__copy { display: grid; gap: var(--space-5); }
.featured__copy h2 { font-size: clamp(2.75rem, 1.8rem + 3vw, 4.5rem); line-height: 0.92; }
.facts { list-style: none; padding: 0; border-bottom: 1px solid var(--gg-color-line); }
.facts li { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: 0.85rem; border-top: 1px solid var(--gg-color-line); }
.facts .label { font-size: 0.75rem; }
@media (min-width: 1024px) { .featured { grid-template-columns: 1.6fr 1fr; gap: var(--space-9); } }
.cards .card[hidden] { display: none; }
.empty { padding: var(--space-8) 0; color: var(--gg-color-text-muted); }

/* ---- project detail ---- */
.pd-h1 { font-size: clamp(3rem, 1.2rem + 6.4vw, 9rem); line-height: 0.9; max-width: 75rem; }
.pd-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-5); margin-top: clamp(2rem, 1rem + 2.5vw, 2.5rem); border-block: 1px solid var(--gg-color-line); }
.pd-facts div { padding-block: 1rem; display: grid; gap: 0.3rem; }
.pd-facts dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.875rem); line-height: 1.05; }
.pd-facts a { color: var(--gg-color-accent); }
@media (min-width: 900px) { .pd-facts { grid-template-columns: repeat(5, auto); justify-content: space-between; } }
.pd-hero .media { aspect-ratio: 16 / 9; }
.pd-two { display: grid; gap: var(--space-9); }
@media (min-width: 900px) { .pd-two { grid-template-columns: 1fr 1fr; gap: var(--space-11); } }
.pd-two h2 { font-size: clamp(3rem, 2rem + 3vw, 4.5rem); margin-bottom: var(--space-5); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.gallery a { display: block; }
.gallery .media { aspect-ratio: 1; }
.gallery a:first-child { grid-column: 1 / -1; }
.gallery a:first-child .media { aspect-ratio: 16 / 10; }
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .gallery a:first-child { grid-column: span 2; grid-row: span 2; }
  .gallery a:first-child .media { aspect-ratio: auto; height: 100%; }
  /* keep the grid full for awkward counts */
  .gallery a:first-child:nth-last-child(2) { grid-column: span 2; grid-row: auto; }
  .gallery a:first-child:nth-last-child(2) .media { aspect-ratio: 4 / 3; height: auto; }
  .gallery a:first-child:nth-last-child(2) ~ a .media { height: 100%; aspect-ratio: auto; }
  .gallery a:nth-child(4):last-child { grid-column: 1 / -1; }
  .gallery a:nth-child(4):last-child .media { aspect-ratio: 21 / 9; }
  .gallery a:nth-child(4):nth-last-child(2) { grid-column: span 2; }
  .gallery a:nth-child(4):nth-last-child(2) .media { aspect-ratio: auto; height: 100%; }
}
/* the gallery is always a single photo wide on very small counts */
.gallery a:only-child { grid-column: 1 / -1; }

/* ---- area page ---- */
.towns { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; }
.towns li { padding: 0.6rem 1rem; border: 1px solid var(--gg-color-line); font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; text-transform: uppercase; letter-spacing: 0.02em; }
.area-intro { display: grid; gap: var(--space-8); }
@media (min-width: 1024px) { .area-intro { grid-template-columns: 1.2fr 1fr; gap: var(--space-11); } }
.svc-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (min-width: 900px) { .svc-links { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.svc-link { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-3); min-height: 8rem; padding: clamp(1rem, 0.8rem + 0.8vw, 1.5rem); background: var(--gg-color-surface); transition: background-color var(--dur-base); }
.svc-link:hover { background: var(--gg-color-surface-elevated); }
.svc-link span { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem); line-height: 0.92; text-transform: uppercase; }
.svc-link svg { width: 1.5rem; height: 1.5rem; flex: none; color: var(--gg-color-accent); }

/* ---- legal / 404 ---- */
.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem); margin-top: var(--space-9); margin-bottom: var(--space-4); }
.prose p, .prose li { color: var(--gg-color-text-secondary); }
.prose p + p, .prose ul { margin-top: var(--space-4); }
.prose a { color: var(--gg-color-accent); text-decoration: underline; text-underline-offset: 3px; }
.notfound { min-height: 70svh; display: grid; align-content: center; gap: var(--space-6); padding-block: var(--space-11); }
.notfound__code { font-family: var(--font-display); font-weight: 900; font-size: clamp(8rem, 4rem + 18vw, 22rem); line-height: 0.8; color: var(--gg-color-accent); }
