:root{
  --ink: #0b2942;
  --ink-2: #0e3252;
  --paper: #f7f8f6;
  --paper-2: #eef1ef;
  --paper-soft: #ffffff;
  --copper: #f0642b;
  --copper-deep: #c94e1a;
  --steel: #5c6b78;
  --teal: #0b6477;
  --mist: #e8f0f3;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Work Sans", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2{
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

a{ color: inherit; }
a:focus-visible, button:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 3px solid var(--copper);
  outline-offset: 3px;
}

.wrap{
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- hero ---------- */
/* Real photography leads the hero - a dark gradient keeps the overlaid
   text legible without hiding the photo. */
.hero{
  position: relative;
  color: var(--paper-soft);
  background: var(--ink) no-repeat center center / cover;
  isolation: isolate;
}
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,41,66,0.75) 0%, rgba(11,41,66,0.88) 55%, rgba(11,41,66,0.96) 100%);
  z-index: -1;
}

nav.top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 0;
  position: relative;
}
.brand{
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand img{
  display: block;
  height: 40px;
  width: auto;
}
/* Orange droplet mark (from the Figma reference) + wordmark, "CB" bold and
   "RØR" regular weight - no logo artwork beyond this exists for this
   client. */
.brand-icon{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--copper);
  margin-right: 10px;
  flex-shrink: 0;
}
.brand-icon svg{
  width: 16px;
  height: 16px;
}
.brand-text{
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 400;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--paper-soft);
}
.brand-text .brand-bold{ font-weight: 800; }
.nav-links{
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a{
  text-decoration: none;
  font-size: 15px;
  color: var(--paper-soft);
  opacity: 0.85;
}
.nav-links a:hover{ opacity: 1; }

/* Mobile menu toggle - pure CSS (checkbox hack), no JavaScript. Hidden
   entirely on desktop; nav-links stays a plain flex row there. */
.nav-toggle-input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.nav-toggle-label{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}
.nav-toggle-label span{
  display: block;
  width: 100%;
  height: 2px;
  background: var(--paper-soft);
}

.hero-grid{
  padding: 56px 0 40px;
  /* Width of 2 of the service-grid's 3 columns (2px gap), not the full
     .wrap width - full width read as too wide for a heading/lede. */
  max-width: calc((200% - 2px) / 3);
}
/* Small pill badge above the hero heading, matching the Figma reference's
   "DIN LOKALE RØRLEGGER I ..." treatment. */
.hero-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  color: var(--paper-soft);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-badge .dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--copper);
  flex-shrink: 0;
}
.hero h1{
  font-size: clamp(34px, 5vw, 54px);
}
.hero h1 .accent{ color: var(--copper); }
.hero .lede{
  margin: 18px 0 26px;
  color: var(--paper-soft);
  opacity: 0.92;
  font-size: 18px;
}
.cta-row{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn-primary, .btn-ghost, .btn-ghost-dark{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  border: 1.5px solid transparent;
}
.btn-primary svg, .btn-ghost svg, .btn-ghost-dark svg{
  width: 17px;
  height: 17px;
  stroke: currentColor;
  flex-shrink: 0;
}
.btn-primary{
  background: var(--copper);
  color: var(--paper-soft);
}
.btn-primary:hover{ background: var(--copper-deep); }
.btn-ghost{
  border-color: rgba(255,255,255,0.4);
  color: var(--paper-soft);
}
.btn-ghost:hover{ border-color: var(--paper-soft); }
.btn-ghost-dark{
  border-color: rgba(11,41,66,0.3);
  color: var(--ink);
}
.btn-ghost-dark:hover{ border-color: var(--ink); }

/* ---------- page header (non-homepage pages) ---------- */
.page-header{
  padding: 44px 0 56px;
}
.page-header h1{
  font-size: clamp(30px, 4vw, 44px);
}
.page-header .lede{
  max-width: 46ch;
  margin: 18px 0 0;
  color: var(--paper-soft);
  opacity: 0.9;
  font-size: 17px;
}
.page-header .cta-row{ margin-top: 26px; }

/* ---------- services ---------- */
.services{ padding: 76px 0; }
.section-head{ margin-bottom: 40px; }
/* Small uppercase label above the section heading, matching the Figma
   reference's "DETTE KAN VI HJELPE DEG MED" treatment. */
.eyebrow{
  display: block;
  color: var(--teal);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.services h2{ font-size: clamp(26px, 3vw, 34px); }
.section-head p{
  margin: 14px 0 0;
  color: var(--steel);
  max-width: 48ch;
  font-size: 15px;
}

/* Icon-grid service list - matches the convention most local plumber
   competitor sites use, reads as legible/professional. */
.service-grid{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
a.service-card{
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: var(--paper-soft);
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px solid rgba(11,41,66,0.08);
}
.service-card:hover{ background: var(--paper-2); }
/* Icon chip - a tinted rounded-square behind each service icon, matching
   the Figma reference's treatment instead of a bare stroked icon. Hover
   recolors both the icon and the card title. */
.icon-chip{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--mist);
}
.icon-chip svg{
  width: 26px;
  height: 26px;
  stroke: var(--teal);
}
.service-card:hover .icon-chip svg{ stroke: var(--copper); }
.service-name{
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 17px;
}
.service-card:hover .service-name{ color: var(--copper-deep); }
.service-desc{ color: var(--steel); font-size: 14.5px; }
/* "Les mer ->" - pinned to the card bottom regardless of description
   length. Same teal as the "Dette kan vi hjelpe deg med" eyebrow label,
   matching the Figma reference; stays that color on hover. */
.service-more{
  margin-top: auto;
  padding-top: 4px;
  color: var(--teal);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 14.5px;
}

/* ---------- workflow (process steps) ---------- */
/* Inspired by a competitor's site (Bergum Rørleggerservice's Rørkjøp
   profile, see business/contacts/cb-ror.md) - a plain-language 4-step
   process reduces uncertainty about what happens after the quote form is
   submitted. Each step has distinct copy, unlike the source page it was
   adapted from. */
.workflow{ padding: 76px 0; background: var(--paper-soft); }
.workflow-grid{
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px;
}
/* Single dashed line spanning center-to-center of the first and last step
   circles, passing behind the circles in between - reads as one
   continuous connector touching every step, rather than separate
   per-gap segments that stop short of each circle. */
.workflow-grid::before{
  content: "";
  position: absolute;
  top: 21px;
  left: 12.5%;
  right: 12.5%;
  border-top: 2px dashed rgba(11,41,66,0.25);
  z-index: 0;
}
.workflow-step{
  position: relative;
  text-align: center;
}
/* Numbered circle badge, centered above the step title - matches the
   Figma reference. Sits above the connector line via z-index. */
.step-circle{
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 17px;
}
.workflow-step .step-num{
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 8px;
}
.workflow-step p{ color: var(--steel); margin: 0; font-size: 14.5px; }

/* ---------- testimonials (placeholder content - see TODO.md) ---------- */
.testimonials{ padding: 76px 0; }
.testimonial-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  max-width: 60ch;
}
.testimonial-list li{
  border-left: 3px solid var(--copper);
  padding-left: 16px;
}
.testimonial-list .quote-text{
  color: var(--steel);
  font-style: italic;
  margin: 0 0 6px;
}
.testimonial-list .attribution{
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--steel);
}

/* ---------- before/after gallery (placeholder content - see TODO.md) ---------- */
.gallery{ padding: 76px 0; }
.gallery-project{ margin-bottom: 48px; }
.gallery-project:last-child{ margin-bottom: 0; }
.gallery-project h3{
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 16px;
}
.before-after-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ---------- service detail page ---------- */
.service-detail{ padding: 76px 0; }
.service-detail-grid{
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: start;
}
.image-placeholder{
  aspect-ratio: 4 / 3;
  border: 1.5px dashed rgba(11,41,66,0.3);
  border-radius: 6px;
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--steel);
  font-size: 14px;
}
.image-placeholder svg{
  width: 48px;
  height: 48px;
  stroke: var(--steel);
  opacity: 0.6;
}
/* Real stock photography for the service pages - see README.md for the
   honesty policy on what's real vs. placeholder. */
.detail-photo{
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  display: block;
}
.service-detail p{ color: var(--ink); max-width: 50ch; }
/* Plain checkmark list - normal weight text, one item per line. */
.service-detail-list{
  list-style: none;
  margin: 24px 0 32px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.service-detail-list li{
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
}
.service-detail-list li svg{
  width: 18px;
  height: 18px;
  stroke: var(--teal);
  flex-shrink: 0;
}

/* ---------- quote request form ---------- */
.quote{ padding: 76px 0; }
.quote-form{
  max-width: 640px;
  display: grid;
  gap: 22px;
}
.form-field{
  display: grid;
  gap: 8px;
}
.form-field label{
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 14px;
}
.form-field .optional{
  font-family: "Work Sans", sans-serif;
  font-weight: 400;
  color: var(--steel);
}
.form-field input,
.form-field select,
.form-field textarea{
  font-family: "Work Sans", sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper-soft);
  border: 1.5px solid rgba(11,41,66,0.25);
  border-radius: 4px;
  padding: 12px 14px;
}
.form-field textarea{
  resize: vertical;
  min-height: 120px;
}
.quote-form button.btn-primary{
  font-family: "Work Sans", sans-serif;
  border: none;
  cursor: pointer;
  justify-self: start;
}

/* ---------- opening hours ---------- */
.hours{ padding: 76px 0; }
.hours h2{ font-size: clamp(26px, 3vw, 34px); margin-bottom: 18px; }
.hours-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.hours-table{
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(11,41,66,0.15);
}
.hours-table li{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(11,41,66,0.15);
}
.hours-table .day{
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
}
.hours-table .time{ color: var(--steel); }
.hours-note{
  border-left: 3px solid var(--copper);
  padding: 4px 0 4px 16px;
}
.hours-note .note-title{
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 20px;
  display: block;
  margin-bottom: 8px;
}
.hours-note p{ color: var(--steel); margin: 0; max-width: 40ch; }

/* ---------- contact / footer ---------- */
.contact{
  background: var(--ink);
  color: var(--paper-soft);
  padding: 68px 0 40px;
}
.contact h2{
  font-size: clamp(26px, 3vw, 34px);
  color: var(--paper-soft);
  margin-bottom: 22px;
}
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-line{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 16px;
}
.contact-icon{
  width: 20px;
  height: 20px;
  margin-top: 2px;
  stroke: var(--copper);
  flex-shrink: 0;
}
.contact a{ text-decoration: none; }
.contact a.contact-value{
  color: var(--paper-soft);
  border-bottom: 1px solid rgba(255,255,255,0.4);
}
.contact a.contact-value:hover{ border-color: var(--paper-soft); }
.fine-print{
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  font-size: 13.5px;
}

@media (max-width: 760px){
  .nav-toggle-label{ display: flex; }
  .nav-links{
    display: none;
    flex-direction: column;
    gap: 18px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    padding: 20px 24px;
    z-index: 20;
  }
  .nav-toggle-input:checked ~ .nav-links{ display: flex; }
  .hero-grid{ padding: 36px 0 32px; }
  .service-grid{ grid-template-columns: 1fr; }
  .workflow-grid{ grid-template-columns: 1fr; gap: 32px; }
  /* Switches to a left-aligned stepper on mobile: circle in its own
     column with the connector line running through it, title/description
     in a column to the right - keeps the dashed line from passing through
     the text the way a centered stacked layout would. */
  .workflow-grid::before{
    top: 21px;
    bottom: 21px;
    left: 22px;
    right: auto;
    width: 0;
    border-top: none;
    border-left: 2px dashed rgba(11,41,66,0.25);
  }
  .workflow-step{
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 16px;
    row-gap: 4px;
    text-align: left;
  }
  .workflow-step .step-circle{
    grid-column: 1;
    grid-row: 1 / 3;
    margin: 0;
    align-self: start;
  }
  .workflow-step .step-num{ grid-column: 2; grid-row: 1; }
  .workflow-step p{ grid-column: 2; grid-row: 2; }
  .hours-grid{ grid-template-columns: 1fr; gap: 32px; }
  .service-detail-grid{ grid-template-columns: 1fr; gap: 28px; }
  .before-after-grid{ grid-template-columns: 1fr; gap: 16px; }
  .contact-grid{ grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 980px) and (min-width: 761px){
  .service-grid{ grid-template-columns: repeat(2, 1fr); }
}
