/* Flat CSS, no nesting: the site must work on Chrome 109, Firefox 115 and Safari 15.5. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
}

:root {
  --forest: #0f2e1d;
  --green: #1f5135;
  --leaf: #3d8b4f;
  --cream: #f4efe3;
  --paper: #fbfaf6;
  --ink: #17211b;
  --muted: #56655b;
  --amber: #f2a541;
  --amber-dark: #d98a1f;
  --error: #b3261e;
  --radius: 10px;
  --gutter: 16px;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: initial;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-bottom: 72px; /* Room for the call bar on phones */
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green);
}

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 85%;
  line-height: 1.1;
  margin-block: 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 7vw, 3.4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 750;
}

p {
  margin-block: 0 1em;
}

.button {
  display: inline-block;
  padding: 0.8em 1.3em;
  border: none;
  border-radius: 999px;
  background-color: var(--amber);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 750;
  font-stretch: 90%;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s;
}

.button:hover,
.button:focus-visible {
  background-color: var(--amber-dark);
}

.button.light {
  background-color: var(--paper);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 10px var(--gutter);
  background-color: var(--forest);
  color: var(--paper);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 85%;
  font-size: 1.25rem;
  line-height: 1.1;
}

.logo small {
  display: block;
  font-family: var(--text);
  font-weight: 400;
  font-size: 0.75rem;
  color: #cfe0d3;
}

.logo-mark {
  flex-shrink: 0;
}

.nav-wide,
.header-phone,
.header-quote {
  display: none;
}

.nav-narrow > summary {
  list-style-type: none;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.nav-narrow > summary::-webkit-details-marker {
  display: none;
}

.nav-narrow[open] > summary {
  background-color: var(--paper);
  color: var(--forest);
}

.nav-narrow > nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  background-color: var(--forest);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px var(--gutter) 16px;
}

.nav-narrow ul {
  list-style-type: none;
  margin: initial;
  padding: initial;
}

.nav-narrow a {
  display: block;
  padding: 10px 0;
  color: var(--paper);
  text-decoration: none;
  font-size: 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-narrow .minor a {
  font-size: 1rem;
  color: #cfe0d3;
}

.nav-wide ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  list-style-type: none;
  margin: initial;
  padding: initial;
}

.nav-wide a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
}

.nav-wide a:hover,
.nav-wide a[aria-current="page"] {
  color: var(--amber);
}

.header-phone {
  margin: initial;
}

.header-phone a {
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* Call bar, phones only */

.call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background-color: var(--forest);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
}

.call-bar .button {
  flex: 1;
  text-align: center;
}

.call-bar .call {
  background-color: var(--paper);
}

/* Hero */

.hero {
  background-color: var(--forest);
  color: var(--paper);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 657 / 560;
  object-fit: cover;
  object-position: 30% 40%;
}

.hero-text {
  padding: 24px var(--gutter) 40px;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 0.6em;
  padding: 0.2em 0.6em;
  background-color: var(--amber);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 85%;
  font-size: clamp(1.4rem, 5vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transform: rotate(-1.5deg);
}

.hero-lead {
  font-size: 1.15rem;
  color: #e3ece5;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.hero-call a,
.final-phone a {
  color: inherit;
  font-weight: 700;
  white-space: nowrap;
}

/* Proofs */

.proofs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  list-style-type: none;
  margin: initial;
  padding: 24px var(--gutter);
  background-color: var(--cream);
  font-size: 0.95rem;
  line-height: 1.35;
}

.proofs strong {
  display: block;
  font-family: var(--display);
  font-stretch: 85%;
  font-size: 1.2rem;
  color: var(--green);
}

/* Service cards */

.services,
.area,
.reviews,
.final-call,
.page-narrow,
.quote-inline {
  padding: 48px var(--gutter);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  list-style-type: none;
  margin: initial;
  padding: initial;
}

.card a {
  display: grid;
  grid-template-columns: 112px 1fr;
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(15, 46, 29, 0.15);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.card a:hover,
.card a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 46, 29, 0.2);
}

.card picture {
  grid-row: 1 / 3;
}

.card img {
  width: 100%;
  height: 100%;
  min-height: 96px;
  object-fit: cover;
}

.card-title {
  display: block;
  padding: 12px 14px 0;
  font-family: var(--display);
  font-stretch: 85%;
  font-weight: 750;
  font-size: 1.25rem;
  line-height: 1.2;
}

.card-text {
  display: block;
  padding: 0 14px 12px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--muted);
}

/* White on dark green band */

.band {
  background-color: var(--green);
  color: var(--paper);
}

.band-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.band-text {
  padding: 40px var(--gutter);
}

.band-text p {
  color: #e3ece5;
  max-width: 36em;
}

/* Area, reviews, final call */

.area {
  background-color: var(--cream);
}

.area p {
  max-width: 40em;
}

.reviews ul {
  display: grid;
  gap: 16px;
  list-style-type: none;
  margin: initial;
  padding: initial;
}

.reviews li,
.review-teaser {
  padding: 20px;
  border-left: 4px solid var(--amber);
  background-color: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
}

blockquote {
  margin: initial;
  font-size: 1.05rem;
}

blockquote p::before {
  content: "« ";
}

blockquote p::after {
  content: " »";
}

.review-author {
  margin: initial;
  color: var(--muted);
  font-size: 0.9rem;
}

.review-author::before {
  content: "— ";
}

.final-call {
  background-color: var(--forest);
  color: var(--paper);
  text-align: center;
}

/* Service pages */

.service-head {
  background-color: var(--forest);
  color: var(--paper);
}

.service-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-intro {
  padding: 24px var(--gutter) 40px;
}

.service-intro p {
  color: #e3ece5;
  max-width: 36em;
}

.breadcrumb {
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #cfe0d3;
}

.service-body {
  padding: 40px var(--gutter) 8px;
  max-width: 760px;
}

.service-body section {
  margin-bottom: 32px;
}

.service-body ul {
  padding-left: 1.2em;
}

.service-body li {
  margin-bottom: 0.5em;
}

.service-body picture {
  margin-top: 16px;
}

.service-body img {
  border-radius: var(--radius);
}

.review-teaser {
  margin: 0 var(--gutter) 16px;
  max-width: 728px;
}

.quote-inline {
  background-color: var(--cream);
}

/* Narrow pages: quote, contact, thanks, legal */

.page-narrow {
  max-width: 760px;
}

.lead {
  font-size: 1.2rem;
}

.contact-phones {
  font-size: 1.5rem;
  font-weight: 700;
}

.contact-grid {
  display: grid;
  gap: 32px;
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: 1.5em;
}

/* Form */

.quote-form {
  max-width: 560px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid #a9b5ad;
  border-radius: 8px;
  background-color: #fff;
  color: var(--ink);
  font: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--amber);
  outline-offset: 1px;
  border-color: var(--green);
}

.field [aria-invalid="true"] {
  border-color: var(--error);
  border-width: 2px;
}

.field-error {
  display: block;
  margin-top: 4px;
  color: var(--error);
  font-size: 0.95rem;
}

.form-summary {
  padding: 12px 16px;
  border-radius: 8px;
  background-color: #fbe9e7;
  color: var(--error);
  font-weight: 600;
}

.form-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.honeypot {
  position: absolute;
  scale: 0;
}

/* Footer */

.site-footer {
  display: grid;
  gap: 24px;
  padding: 40px var(--gutter);
  background-color: #0a2014;
  color: #cfe0d3;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--paper);
}

.site-footer ul {
  list-style-type: none;
  margin: initial;
  padding: initial;
}

.site-footer li {
  margin-bottom: 4px;
}

.footer-name,
.footer-title {
  font-family: var(--display);
  font-stretch: 85%;
  font-weight: 750;
  font-size: 1.2rem;
  color: var(--paper);
}

.footer-since {
  margin-top: 16px;
  color: var(--amber);
}

.site-footer .footer-legal {
  margin-top: 16px;
}

/* Consent banner, above the call bar until the visitor chooses */

.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  max-height: 75vh;
  overflow-y: auto;
  padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom));
  background-color: var(--forest);
  color: var(--cream);
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.3);
}

.consent-banner form {
  max-width: 900px;
  margin-inline: auto;
}

.consent-banner a {
  color: var(--paper);
}

.consent-title {
  margin-bottom: 0.4em;
  font-family: var(--display);
  font-stretch: 85%;
  font-weight: 750;
  font-size: 1.25rem;
  color: var(--paper);
}

.consent-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 0.6em;
}

.consent-actions .button {
  flex: 1;
  max-width: 240px;
}

.consent-more {
  margin-bottom: initial;
}

/* Cookie page */

.consent-status {
  font-weight: 600;
}

.consent-form .choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius);
  background-color: var(--cream);
}

.consent-form input[type="checkbox"] {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--green);
}

.consent-form label strong {
  display: block;
}

.cookie-table {
  width: 100%;
  margin-bottom: 1em;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.cookie-table th,
.cookie-table td {
  padding: 8px;
  border-bottom: 1px solid #d5ddd7;
  text-align: start;
  vertical-align: top;
}

.legal ul {
  padding-inline-start: 1.2em;
}

/* Wider screens */

@media (min-width: 600px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .card a {
    display: block;
  }

  .card img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .card-title {
    padding: 14px 16px 2px;
  }

  .card-text {
    padding: 0 16px 16px;
  }

  .proofs {
    grid-template-columns: repeat(4, 1fr);
  }

  .reviews ul {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  :root {
    --gutter: max(32px, calc((100vw - 1200px) / 2));
  }

  body {
    padding-bottom: 0;
  }

  .call-bar {
    display: none;
  }

  .header-phone,
  .header-quote {
    display: block;
  }

  .site-header {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .header-quote {
    padding: 0.55em 1.1em;
    font-size: 1rem;
  }

  .hero,
  .band,
  .service-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .hero-photo,
  .band-photo,
  .service-photo {
    position: relative;
    min-height: 460px;
  }

  .hero-photo picture,
  .band-photo picture,
  .service-photo picture {
    position: absolute;
    inset: 0;
  }

  .hero-photo img,
  .band-photo img,
  .service-photo img {
    height: 100%;
    aspect-ratio: auto;
  }

  .hero-text,
  .service-intro {
    align-self: center;
    padding: 56px var(--gutter) 56px 48px;
  }

  .hero {
    grid-template-columns: 5fr 6fr;
  }

  .hero-photo {
    order: 2;
  }

  .hero-photo img {
    object-position: 30% 55%; /* Keeps the climber in view in the wide framing */
  }

  .band-text {
    align-self: center;
    padding: 56px var(--gutter) 56px 48px;
  }

  .cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .reviews ul {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-narrow,
  .service-body {
    max-width: none;
    padding-right: max(var(--gutter), calc(100vw - 760px - var(--gutter)));
  }

  .site-footer {
    grid-template-columns: 1fr 2fr 1fr;
  }

  .footer-services ul {
    columns: 2;
  }
}

@media (min-width: 1360px) {
  .nav-narrow {
    display: none;
  }

  .nav-wide {
    display: block;
  }

  .site-header {
    padding-left: max(32px, calc((100vw - 1320px) / 2)); /* Wider than the 1200px content: the full menu, the phone and the quote button need about 1260px on one line. */
    padding-right: max(32px, calc((100vw - 1320px) / 2));
  }
}

.footer-contact a[data-phone],
.contact-phones a {
  display: block;
}

/* Ad landing pages */

.landing-photo img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.landing-main {
  padding: 24px var(--gutter) 32px;
  max-width: 640px;
}

.checks {
  list-style-type: none;
  padding-left: initial;
  margin-block: 0 1.2em;
}

.checks li {
  position: relative;
  padding-left: 1.6em;
  margin-bottom: 0.3em;
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--leaf);
  font-weight: 800;
}

.landing-call {
  font-weight: 600;
}

.landing-call a {
  white-space: nowrap;
}

.landing-more {
  padding: 0 var(--gutter) 48px;
}

@media (min-width: 900px) {
  .landing {
    display: grid;
    grid-template-columns: 2fr 3fr;
  }

  .landing-photo {
    position: relative;
  }

  .landing-photo picture {
    position: absolute;
    inset: 0;
  }

  .landing-photo img {
    height: 100%;
  }

  .landing-main {
    padding: 40px 48px 48px;
  }
}
