/* Ear Wax Removal at The Chestnut Practice
   Styled after fishpondspractice.co.uk: Lato, soft blue headings, white space, thin grey lines. */

:root {
  --text: #333;
  --text-soft: #5f5f5f;
  --heading: #5b8fc2;
  --link: #3b6a99;
  --link-hover: #2c5179;
  --focus: #55acee;
  --chestnut: #8f4f2c;
  --line: #e6e6e6;
  --band: #f5f6f8;
  --font: 'Lato', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
svg { display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

h1, h2, h3 { font-weight: 400; line-height: 1.2; color: var(--heading); }
h1 { font-size: clamp(2.1rem, 5vw, 2.6rem); margin-bottom: 24px; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2rem); margin-bottom: 20px; }
h3 { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
p { margin-bottom: 20px; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.2rem; font-weight: 300; }
.soft { color: var(--text-soft); }
.small { font-size: 15px; }
.center { text-align: center; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 14px; z-index: 20; }

/* ---- header ---- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { display: block; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; line-height: 1.25; }
.brand-sub { display: block; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-soft); line-height: 1.4; }

.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.site-nav a {
  display: block;
  padding: 8px 10px;
  font-size: 12.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--link); }
.site-nav a[aria-current="page"] { color: var(--link); border-bottom-color: var(--link); }
.site-nav .nav-call a { border: 1px solid var(--text); padding: 8px 14px; margin-left: 8px; font-weight: 700; }
.site-nav .nav-call a:hover { background: var(--text); color: #fff; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font: inherit;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  cursor: pointer;
}
.bars { width: 28px; height: 14px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.bars::after { content: ''; position: absolute; left: 0; right: 0; top: 4px; border-top: 2px solid currentColor; }

@media (max-width: 1000px) {
  .header-inner { flex-wrap: wrap; padding: 12px 20px; min-height: 72px; }
  .js .menu-toggle { display: flex; }
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 14px; }
  .site-nav li { border-top: 1px solid var(--line); }
  .site-nav a { padding: 14px 4px; font-size: 14px; }
  .site-nav a[aria-current="page"] { border-bottom-color: transparent; }
  .site-nav .nav-call { border-top: 0; }
  .site-nav .nav-call a { margin: 10px 0 0; text-align: center; padding: 14px; }
}
@media (max-width: 480px) {
  .header-inner { padding: 10px 16px; flex-wrap: wrap; }
  .brand { gap: 10px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 13px; letter-spacing: 1.5px; }
  .brand-sub { font-size: 11px; letter-spacing: 1px; }
  .menu-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-toggle { padding: 12px 6px; }
}

/* ---- buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.3;
  padding: 16px 28px;
  border: 1px solid var(--text);
  color: var(--text);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--text); color: #fff; }
.btn-call { background: var(--link); border-color: var(--link); color: #fff; }
.btn-call:hover { background: var(--link-hover); border-color: var(--link-hover); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }

/* ---- home hero ---- */
.hero { text-align: center; padding: 104px 24px 92px; background: linear-gradient(180deg, #f2f5f9 0%, #fff 100%); }
.hero-mark { width: 76px; height: 76px; margin: 0 auto 26px; }
.eyebrow { font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--text-soft); margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.5rem, 6.5vw, 3.6rem); margin-bottom: 22px; }
.h1-place { display: block; font-size: 0.42em; font-weight: 300; color: var(--text-soft); margin-top: 10px; letter-spacing: 0.5px; }
.hero .lead { max-width: 33em; margin: 0 auto; }
.hero-note { font-size: 15px; color: var(--text-soft); margin-top: 20px; }

/* ---- facts strip ---- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 26px 16px; text-align: center; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; }
.facts strong { display: block; font-size: 1.6rem; font-weight: 300; color: var(--link); line-height: 1.3; }
.facts span { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-soft); }
@media (max-width: 760px) {
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---- home bands ---- */
.band { padding: 96px 24px; }
.band.grey { background: var(--band); }
.band-inner { max-width: 768px; margin: 0 auto; }
.band-inner.wide { max-width: 1080px; }
.more { margin-top: 28px; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; }
.more a { text-decoration: none; }
.more a:hover { text-decoration: underline; }

/* ---- the five steps ---- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 40px; text-align: left; }
.steps li { background: #fff; border: 1px solid var(--line); padding: 24px 20px; }
.steps .letter { display: block; font-size: 2.4rem; font-weight: 300; color: var(--link); line-height: 1; margin-bottom: 12px; }
.steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.steps p { font-size: 16px; color: var(--text-soft); line-height: 1.6; }
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: baseline; padding: 20px; }
  .steps .letter { grid-row: span 2; margin: 0; font-size: 2rem; }
}

/* ---- testimonial ---- */
.testimonial { padding: 96px 24px; border-bottom: 1px solid var(--line); text-align: center; }
.quote-mark { display: block; font-size: 5.5rem; line-height: 0.6; height: 0.45em; color: var(--chestnut); font-weight: 300; margin-top: 10px; }
.pull { max-width: 22em; margin: 0 auto 32px; font-size: clamp(1.6rem, 3.6vw, 2.1rem); font-weight: 300; font-style: italic; line-height: 1.35; color: var(--heading); }
.testimonial figure { max-width: 640px; margin: 0 auto; text-align: left; }
.testimonial blockquote p { font-size: 17px; color: var(--text-soft); margin-bottom: 14px; }
.testimonial figcaption { margin-top: 22px; text-align: center; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-soft); }
@media (max-width: 640px) { .testimonial { padding: 64px 20px; } }

/* ---- prices ---- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.price { border: 1px solid var(--line); padding: 32px 24px; text-align: center; background: #fff; }
.price .amount { font-size: 3rem; font-weight: 300; color: var(--link); line-height: 1; margin-bottom: 14px; }
.price h3 { font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; }
.price p { font-size: 16px; color: var(--text-soft); line-height: 1.6; }
@media (max-width: 760px) { .prices { grid-template-columns: 1fr; } }

/* ---- two columns ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 48px; } }

.dash { list-style: none; margin-bottom: 20px; }
.dash li { position: relative; padding-left: 26px; margin-bottom: 12px; }
.dash li::before { content: ''; position: absolute; left: 0; top: 0.85em; width: 12px; height: 1px; background: var(--text); }

/* ---- inner pages ---- */
.page { max-width: 768px; margin: 0 auto; padding: 96px 24px 110px; }
.page h2 { margin-top: 56px; }
.page .steps-list { list-style: none; margin-top: 8px; }
.page .steps-list li { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.page .steps-list li:last-child { border-bottom: 1px solid var(--line); }
.page .steps-list .letter { font-size: 2.2rem; font-weight: 300; color: var(--link); line-height: 1; grid-row: span 2; }
.page .steps-list h3 { margin-bottom: 4px; }
.page .steps-list p { margin: 0; }

.method { border-left: 3px solid var(--heading); padding: 4px 0 4px 22px; margin: 26px 0; }
.method h3 { margin-bottom: 6px; }

.price-table { width: 100%; border-collapse: collapse; margin: 12px 0 28px; }
.price-table th, .price-table td { text-align: left; padding: 20px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table tr:first-child th, .price-table tr:first-child td { border-top: 1px solid var(--line); }
.price-table th { font-weight: 700; padding-right: 24px; }
.price-table th span { display: block; font-weight: 400; font-size: 16px; color: var(--text-soft); margin-top: 4px; }
.price-table td { text-align: right; font-size: 2rem; font-weight: 300; color: var(--link); white-space: nowrap; line-height: 1.2; }

.creds { list-style: none; border-top: 1px solid var(--line); margin: 8px 0 0; }
.creds li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.sign { font-size: 1.3rem; font-weight: 300; font-style: italic; margin-top: 28px; }

.qa { border-top: 1px solid var(--line); padding: 30px 0; }
.qa:last-of-type { border-bottom: 1px solid var(--line); }
.page .qa h2 { font-size: 1.25rem; font-weight: 700; color: var(--text); margin: 0 0 10px; }

.info { margin: 8px 0 0; }
.info dt { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-soft); margin-top: 26px; }
.info dd { margin: 4px 0 0; }
.big-phone { font-size: 2rem; font-weight: 300; line-height: 1.3; }
.big-phone a { text-decoration: none; }
.big-phone a:hover { text-decoration: underline; }

.cta-box { margin-top: 72px; padding: 44px 32px; border: 1px solid var(--line); background: var(--band); text-align: center; }
.page .cta-box h2 { margin-top: 0; }

@media (max-width: 640px) {
  body { font-size: 18px; }
  .band { padding: 64px 20px; }
  .hero { padding: 64px 20px 60px; }
  .page { padding: 56px 20px 72px; }
  .cta-box { padding: 34px 20px; margin-top: 56px; }
  .price-table td { font-size: 1.6rem; }
  .btn { width: 100%; text-align: center; }
}

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 24px 44px; text-align: center; font-size: 16px; color: var(--text-soft); }
.footer-mark { width: 34px; height: 34px; margin: 0 auto 16px; }
.site-footer p { margin-bottom: 6px; }
.site-footer strong { color: var(--text); font-weight: 700; }
.site-footer .small { font-size: 14px; margin-top: 18px; }
