/* Harri Jones Chimney Sweep: a faithful rebuild of Harri's own site.
   Colours and fonts are his: charcoal, red, stone, warm grey, slate, white;
   Cinzel for headings, Poppins for text, Montserrat on service cards, Italiana for the hero line. */

:root {
  --charcoal: #1A1A1A;
  --red: #CB0000;
  --red-dark: #A30000;
  --red-on-dark: #FF4545; /* his red, lifted only where it sits on charcoal, for readable contrast */
  --stone: #DDD0BF;
  --warm-grey: #78685B;
  --slate: #2D3745;
  --white: #FFFFFF;
  --line: #D6D6D6;

  --serif: "Cinzel", Georgia, serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --card: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Italiana", Georgia, serif;

  --wrap: 1180px;
  --gutter: 48px;

  /* One rhythm for every page */
  --section-y: clamp(64px, 7vw, 96px);
  --head-size: clamp(2.1rem, 3.6vw, 3.1rem);
  --rule-gap: 28px;   /* heading to its red rule */
  --after-rule: 36px; /* red rule to the content below */
  --text: 1.0625rem;  /* 17px for running text in panels */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--slate); outline-offset: 3px; }
.band-dark :focus-visible, .hero :focus-visible, .topbar :focus-visible { outline-color: var(--white); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  background: var(--charcoal); color: var(--white); padding: 12px 18px; text-decoration: none;
  font-weight: 400;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- Header ---------- */
.topbar { background: var(--charcoal); text-align: center; padding: 6px 16px; }
.topbar a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  color: var(--red-on-dark); text-decoration: none; font-weight: 400; font-size: 1.15rem; letter-spacing: .02em;
}
.topbar a:hover { text-decoration: underline; text-underline-offset: 4px; }

.masthead { position: relative; z-index: 10; background: var(--white); box-shadow: 0 8px 22px rgba(0, 0, 0, .07); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 106px; }
.brand { display: block; flex: none; padding: 6px 0; }
.brand img { height: 70px; width: auto; }

.menu { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-left: clamp(24px, 4.5vw, 96px); }
.menu ul { display: flex; gap: clamp(20px, 2.8vw, 46px); list-style: none; margin: 0; padding: 0; }
.menu li { flex: none; }
.menu nav a {
  display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap;
  font-weight: 400; font-size: 1.0625rem; color: var(--charcoal); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.menu nav a:hover { border-bottom-color: var(--red); }
.menu nav a[aria-current="page"] { color: var(--red); }

.btn-book {
  display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: 50px; padding: 0 32px;
  background: var(--red); color: var(--white); text-decoration: none; font-weight: 400; font-size: 1rem;
  white-space: nowrap; transition: background-color .2s;
}
.btn-book:hover { background: var(--red-dark); }

.menu-toggle {
  display: none; flex: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 4px;
  background: var(--red); color: var(--white); cursor: pointer;
}
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
  display: block; width: 22px; height: 3px; margin: 0 auto; background: currentColor; border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.menu-toggle .bars { position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle .bars::before { top: -7px; }
.menu-toggle .bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); background: var(--white); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); background: var(--white); }

/* Language switch: a slim row under the header, its right edge lined up with Book Now */
.langbar {
  width: min(100% - var(--gutter), var(--wrap)); margin-inline: auto;
  display: flex; justify-content: flex-end;
}
.langbar a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0;
  color: var(--slate); text-decoration: none; font-weight: 400; font-size: .9375rem; letter-spacing: .03em;
}
.langbar a::before { content: ""; width: 18px; height: 2px; background: var(--red); }
.langbar a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Shared type and buttons ---------- */
.heading, .page-title {
  font-family: var(--serif); font-weight: 600; line-height: 1.14; margin: 0;
  font-size: var(--head-size); letter-spacing: .005em; text-wrap: balance;
}
.heading span, .page-title .block { display: block; }
.ruled { padding-bottom: var(--rule-gap); border-bottom: 3px solid var(--red); margin-bottom: var(--after-rule); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 52px;
  border: 0; border-radius: 999px; background: var(--red); color: var(--white);
  font-family: var(--sans); font-weight: 400; font-size: 1rem; text-decoration: none; cursor: pointer;
  white-space: nowrap; transition: background-color .2s;
}
.btn:hover { background: var(--red-dark); }
.btn--lg { min-height: 64px; padding: 10px 64px; }

.section { padding: var(--section-y) 0; }
.section:not(.band-dark) + .section:not(.band-dark):not(.section--follow) { padding-top: 0; }
.section--follow { padding-top: 0; }
.center { text-align: center; }

/* ---------- Home: hero ---------- */
.hero {
  position: relative; display: grid; place-items: center; overflow: hidden;
  min-height: clamp(600px, 51vw, 740px); background: var(--slate); color: var(--white); text-align: center;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(16, 18, 22, .5); }
.hero__content { position: relative; z-index: 1; padding: 72px 24px; max-width: 920px; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.hero__eyebrow {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .55em; margin: 0 -.55em 20px 0;
  font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.6;
}
.hero__eyebrow span { display: inline-block; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.7rem, 6vw, 5.4rem); line-height: 1.04; margin: 0 0 26px; }
.hero h1 span { display: block; }
.hero__lede { font-size: clamp(1.0625rem, 1.45vw, 1.28rem); line-height: 1.6; max-width: 54ch; margin: 0 auto 36px; }

/* ---------- Two-column splits ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); align-items: start; }
/* the photo starts level with the red rule under the heading */
.split__media { margin-top: calc(var(--head-size) * 1.14 + var(--rule-gap)); }
.split__media img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; border-radius: 12px; }
.split__media--tall { margin-top: calc(var(--head-size) * 2.28 + var(--rule-gap)); }
.split__media--tall img { aspect-ratio: 4 / 5; object-position: 78% 50%; }
.prose { max-width: 34em; }
.prose ul { margin: 0 0 1em; padding-left: 1.4em; }
.prose li { padding-left: .2em; }
.prose strong { font-weight: 500; }
.prose .btn { margin-top: 18px; }

/* ---------- Home: services band ---------- */
.band-dark { background: var(--charcoal); color: var(--white); }
.band-dark .heading { color: var(--white); }
.svc4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0 0 56px; padding: 0; }
.svc4 li { padding: 4px 28px 8px; text-align: center; border-right: 1px solid #4D4D4D; }
.svc4 li:last-child { border-right: 0; }
.svc4 svg { width: 60px; height: 60px; margin: 0 auto 20px; color: var(--red); }
.svc4 h3 { font-family: var(--sans); font-weight: 400; font-size: 1.25rem; line-height: 1.3; margin: 0 0 14px; }
.svc4 p { font-size: var(--text); line-height: 1.65; color: #E6E6E6; margin: 0; }

/* ---------- Home: why choose ---------- */
.why-list { list-style: none; margin: 0 0 1em; padding: 0; }
.why-list li { position: relative; padding: 0 0 10px 26px; }
.why-list li::before { content: ""; position: absolute; left: 4px; top: .74em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* ---------- Home: testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px); margin: 0; }
.quote { margin: 0; display: flex; flex-direction: column; }
.quote::before { content: ""; display: block; width: 110px; height: 2px; background: var(--red); margin-bottom: 24px; }
.quote blockquote { margin: 0 0 20px; font-size: var(--text); line-height: 1.7; }
.quote figcaption { line-height: 1.4; margin-top: auto; }
.quote cite { display: block; font-style: normal; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.quote .source { font-size: .95rem; color: #6A5B4F; font-weight: 400; }

/* ---------- Popular questions ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(40px, 6vw, 88px); }
.faq-col { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; padding: 16px 0;
  list-style: none; cursor: pointer; color: var(--red); font-weight: 500; font-size: 1rem; line-height: 1.45;
  text-transform: capitalize;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red-dark); }
.faq summary:focus-visible { outline-offset: 2px; }
.pm { position: relative; flex: none; width: 18px; height: 18px; }
.pm::before, .pm::after { content: ""; position: absolute; background: #555; transition: transform .2s; }
.pm::before { left: 0; right: 0; top: 8px; height: 2px; }
.pm::after { top: 0; bottom: 0; left: 8px; width: 2px; }
.faq details[open] .pm::after { transform: scaleY(0); }
.faq-a { padding: 0 38px 24px 0; }
.faq-a p { margin: 0; font-size: var(--text); line-height: 1.7; }

/* ---------- Contact block ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-grid > div:first-child { max-width: 520px; }
.contact-lines { margin: 0 0 40px; }
.contact-line {
  display: flex; align-items: center; gap: 20px; min-height: 52px; margin-bottom: 24px;
  font-family: var(--serif); font-weight: 400; font-size: 1.55rem; line-height: 1.2; color: var(--charcoal); text-decoration: none;
}
.contact-line:last-child { margin-bottom: 0; }
.contact-line:hover { color: var(--red); }
.contact-line svg { flex: none; width: 48px; height: 48px; }
.contact-line--email { font-size: 1.15rem; overflow-wrap: anywhere; }
.contact-line span { min-width: 0; }
.form-title { font-family: var(--sans); font-weight: 400; font-size: 1.55rem; line-height: 1.3; margin: 0 0 24px; }
.contact-media { margin-top: calc(var(--head-size) * 1.14 + var(--rule-gap)); }
.contact-media img { width: 100%; max-width: 520px; aspect-ratio: 3 / 4; object-fit: cover; margin-left: auto; }

.form { display: grid; gap: 20px; }
.field label { display: block; font-weight: 400; font-size: 1rem; line-height: 1.4; margin-bottom: 8px; }
.req { color: var(--red); margin-left: 2px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid #69727D; border-radius: 3px;
  background: var(--white); color: var(--charcoal); font: inherit; font-weight: 300; font-size: 1.0625rem; line-height: 1.5;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 136px; resize: vertical; display: block; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--charcoal) 50%), linear-gradient(-45deg, transparent 50%, var(--charcoal) 50%);
  background-position: right 22px center, right 16px center; background-size: 6px 6px; background-repeat: no-repeat;
}
.field input::placeholder, .field textarea::placeholder { color: #6B6B6B; opacity: 1; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--charcoal); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red);
  box-shadow: 0 0 0 5px rgba(203, 0, 0, .14);
}
.btn-send {
  justify-self: start; min-height: 52px; margin-top: 4px; padding: 0 56px; border: 0; border-radius: 3px;
  background: var(--red); color: var(--white); font-family: var(--sans); font-weight: 400; font-size: 1rem; cursor: pointer;
  transition: background-color .2s;
}
.btn-send:hover { background: var(--red-dark); }

/* ---------- Inner pages ---------- */
.page-head { padding-top: clamp(48px, 5vw, 72px); }

/* ---------- Services page: cards ----------
   Six-column grid: each card spans two, Stove Servicing spans the middle four of the last row.
   Each card is a two-row subgrid, so the tick lists start on the same line across a row. */
.cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; }
.card {
  grid-column: span 2; grid-row: span 2; display: grid; grid-template-rows: subgrid; row-gap: 0;
  border: 1px solid var(--red); font-family: var(--card); background: var(--white);
}
.card--wide { grid-column: 2 / span 4; }
.card__body { padding: 32px 28px 26px; }
.card h2 { font-family: var(--card); font-weight: 700; color: var(--red); font-size: clamp(1.4rem, 1.9vw, 1.7rem); line-height: 1.22; margin: 0 0 18px; }
.card p { margin: 0; font-size: 1rem; line-height: 1.7; letter-spacing: .04em; font-weight: 400; }
.card strong { font-weight: 700; }
.card ul {
  list-style: none; margin: 0; padding: 18px 28px 26px; border-top: 1px solid var(--red);
  font-size: 1rem; line-height: 1.6; letter-spacing: .04em; font-weight: 400;
}
.card li { position: relative; padding-left: 1.5em; }
.card li + li { margin-top: 6px; }
.card li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--red); font-weight: 700; }
@supports not (grid-template-rows: subgrid) {
  .card { display: flex; flex-direction: column; grid-row: auto; }
  .card__body { flex: 1; }
}

/* ---------- About page ---------- */
.about-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(32px, 4.5vw, 64px); align-items: start; }
.about-text p { max-width: 34em; }
.about-intro img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); }
.pillar::before { content: ""; display: block; width: 120px; height: 3px; background: var(--red); margin-bottom: 24px; }
.pillar h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.2; margin: 0 0 18px; }
.pillar p { font-size: 1.0625rem; line-height: 1.7; letter-spacing: .04em; margin: 0; }

/* ---------- Gallery page ---------- */
.gallery-note { font-family: var(--card); font-weight: 400; letter-spacing: .08em; font-size: 1.0625rem; margin: 0 0 32px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; align-items: start; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #EEE; }
.gallery img.natural { aspect-ratio: 1125 / 1387; }

/* ---------- 404 ---------- */
.notfound p { max-width: 36em; }
.notfound ul { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(48px, 5vw, 72px); border-top: 1px solid #ECECEC; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-bottom: 32px; }
.foot-top ul { display: flex; flex-wrap: wrap; gap: 0 32px; list-style: none; margin: 0; padding: 0; }
.foot-top a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--charcoal); text-decoration: none; white-space: nowrap; }
.foot-top a:hover { color: var(--red); }
/* the footer's base: white like the rest of the footer, set off by a thin light line */
.foot-base { background: var(--white); border-top: 1px solid #ECECEC; }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 76px; padding: 12px 0; color: var(--slate); font-weight: 400; font-size: 1rem; }
.foot-bottom p { margin: 0; }
.foot-bottom a { color: var(--charcoal); text-decoration: underline; text-decoration-color: rgba(26, 26, 26, .35); text-underline-offset: 3px; }
.foot-bottom a:hover { text-decoration-color: currentColor; }
.foot-bottom .foot-social { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; color: #4A4A4A; text-decoration: none; }
.foot-bottom .foot-social svg { width: 36px; height: 36px; }
@media (min-width: 861px) { .foot-bottom .foot-social { margin-right: -4px; } }
.foot-bottom .foot-social:hover { color: var(--charcoal); }

/* ---------- Responsive ---------- */

/* Header: the full menu only where it fits on one line; the menu button below that */
@media (max-width: 1080px) {
  .masthead__inner { min-height: 96px; }
  .brand img { height: 56px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px calc(var(--gutter) / 2) 24px;
    background: var(--white); box-shadow: 0 14px 22px rgba(0, 0, 0, .1); border-top: 1px solid #EEE;
  }
  .menu.is-open { display: flex; }
  .menu ul { flex-direction: column; gap: 0; }
  .menu nav a { display: flex; min-height: 52px; border-bottom: 1px solid #EEE; font-size: 1.1rem; }
  .menu nav a:hover { border-bottom-color: #EEE; color: var(--red); }
  .btn-book { margin-top: 20px; min-height: 52px; }
}

@media (max-width: 980px) {
  .svc4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .svc4 li:nth-child(2n) { border-right: 0; }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .card--wide { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .quotes { gap: 32px; }
}

@media (max-width: 860px) {
  .split, .contact-grid, .about-intro { grid-template-columns: minmax(0, 1fr); }
  .split__media, .split__media--tall, .contact-media { margin-top: 0; }
  .split__media img { aspect-ratio: 4 / 3; }
  .split--home { text-align: center; }
  .split--home .prose { margin-inline: auto; }
  .split--home .prose ul { list-style-position: inside; padding-left: 0; }
  .prose { max-width: none; }
  .contact-grid > div:first-child { max-width: none; }
  .contact-media img { max-width: none; }
  .quotes { grid-template-columns: minmax(0, 1fr); max-width: 40em; gap: 44px; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq-col + .faq-col { border-top: 0; }
  .pillars { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .about-intro .about-text { text-align: center; }
  .about-text p { margin-inline: auto; }
  .foot-top { flex-direction: column; align-items: center; text-align: center; }
  .foot-top ul { justify-content: center; }
  .foot-bottom { flex-direction: column; justify-content: center; text-align: center; padding: 18px 0 14px; }
}

@media (max-width: 600px) {
  :root { --gutter: 40px; --rule-gap: 24px; --after-rule: 30px; --section-y: 60px; }
  body { font-size: 17px; }
  .topbar { padding: 2px 12px; }
  .topbar a { font-size: 1.05rem; }
  .brand img { height: 51px; }
  .masthead__inner { min-height: 88px; gap: 16px; }
  .hero { min-height: 680px; }
  .hero__img { object-position: 40% 62%; }
  .hero h1 { font-size: clamp(2.2rem, 10.5vw, 3rem); overflow-wrap: break-word; }
  .hero__content { padding: 56px 20px; }
  .hero__eyebrow { letter-spacing: .4em; margin-right: -.4em; }
  .heading, .page-title { text-align: center; }
  .svc4 { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .svc4 li { border-right: 0; border-bottom: 1px solid #4D4D4D; padding: 32px 8px; }
  .svc4 li:first-child { padding-top: 4px; }
  .svc4 li:last-child { border-bottom: 0; }
  .btn--lg { padding: 10px 48px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .card, .card--wide { grid-column: 1 / -1; }
  .card__body { padding: 28px 22px 22px; }
  .card ul { padding: 16px 22px 22px; }
  .card h2 br { display: none; }
  .contact-line { font-size: 1.25rem; gap: 16px; }
  .contact-line--email { font-size: 1rem; }
  .contact-line svg { width: 42px; height: 42px; }
  .form-title { font-size: 1.25rem; }
  .btn-send { justify-self: stretch; }
  .gallery { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .gallery-note { text-align: center; }
  .pillar { text-align: center; }
  .pillar::before { margin-inline: auto; }
  .foot-top a { font-size: 1.15rem; }
  .foot-top ul { gap: 0 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
