/*
Theme Name: mobilebroadbanduk
Description: Phone-first landing page for a UK home broadband comparison service.
Version: 1.1.2
Requires PHP: 7.4
Text Domain: mobilebroadbanduk
*/
:root {
  color-scheme: light;
  --cream: #f5f6ed;
  --white: #fcfdf8;
  --ink: #17302a;
  --forest: #183e34;
  --muted: #475b53;
  --lime: #dcf47f;
  --line: #d6ded0;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--cream); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shell { width: min(100% - 6rem, 82rem); margin-inline: auto; }

.site-header { position: relative; z-index: 3; border-bottom: 1px solid var(--line); }
.site-header .shell, .site-footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header .shell { min-height: 5.25rem; padding-block: .6rem; }

.brand {
  color: var(--forest);
  font-size: clamp(1.22rem, 2.2vw, 1.55rem);
  font-weight: 550;
  letter-spacing: -.045em;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}
.brand strong { font-weight: 750; }
.brand-accent { color: #396a50; font-weight: 700; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.4rem; }
.site-nav a { color: var(--muted); font-size: .925rem; font-weight: 650; text-decoration: none; text-underline-offset: .25em; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--ink); text-decoration: underline; }
.site-nav a:focus-visible, .brand:focus-visible { outline: .15rem solid var(--forest); outline-offset: .25rem; }
.header-actions { display: flex; align-items: center; gap: .65rem; }
.header-menu { position: relative; }
.header-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 2.75rem;
  padding: .55rem .75rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  color: var(--ink);
  background: var(--white);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.header-menu summary::-webkit-details-marker { display: none; }
.header-menu summary:focus-visible { outline: .15rem solid var(--forest); outline-offset: .2rem; }
.header-menu[open] summary { border-color: var(--forest); }
.menu-icon { width: 1rem; height: .125rem; background: currentColor; box-shadow: 0 -.3rem 0 currentColor, 0 .3rem 0 currentColor; }
.header-menu .site-nav {
  position: absolute;
  inset-block-start: calc(100% + .55rem);
  inset-inline-end: 0;
  display: grid;
  width: 13rem;
  gap: .15rem;
  padding: .45rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: var(--white);
  box-shadow: 0 .7rem 1.8rem rgb(12 32 27 / 18%);
}
.header-menu:not([open]) .site-nav { display: none; }
.header-menu .site-nav a { display: block; padding: .75rem .7rem; border-radius: .3rem; }
.header-menu .site-nav a:hover, .header-menu .site-nav a[aria-current='page'] { background: #e8eedf; }

.call {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .65rem;
  width: fit-content;
  min-height: 3.75rem;
  padding: .65rem 1.2rem;
  border: 1px solid transparent;
  border-radius: .45rem;
  color: var(--ink);
  background: var(--lime);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.25;
  flex-shrink: 0;
}
.call[href]:hover { background: #ebfaaa; }
.call[href]:focus-visible { outline: .2rem solid var(--forest); outline-offset: .25rem; }
.call-icon { font-family: 'Segoe UI Symbol', sans-serif; font-size: 1.2rem; line-height: 1; }
.call-label { display: grid; gap: .16rem; text-align: left; }
.call-number { font-size: .875rem; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.call--header { min-height: 3.4rem; font-size: .925rem; }

.hero {
  position: relative;
  display: grid;
  align-items: center;
  isolation: isolate;
  min-height: clamp(35rem, 44vw, 43rem);
  padding-block: 3.75rem;
  color: var(--white);
  background: var(--forest);
}
.hero .shell { position: relative; z-index: 1; }
.hero-copy { max-width: 40rem; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.4rem;
  color: var(--forest);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 1.7rem; height: 1px; background: currentColor; }
.hero .eyebrow { color: var(--lime); }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
h1 { max-width: 11ch; font-size: clamp(3.55rem, 6.1vw, 6.15rem); line-height: .99; letter-spacing: -.062em; }
.intro { max-width: 39ch; margin-block: 1.5rem 1.75rem; color: #e7eee6; font-size: clamp(1.1rem, 1.6vw, 1.225rem); line-height: 1.55; }
.hero-visual { position: absolute; inset: 0; overflow: hidden; }
.hero-visual img { object-position: center 5%; }
.hero-visual::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(90deg, rgb(12 32 27 / 97%) 0%, rgb(12 32 27 / 91%) 26%, rgb(12 32 27 / 75%) 43%, rgb(12 32 27 / 26%) 61%, transparent 83%);
}
.hero .call:focus-visible { outline-color: var(--white); }
.guide-detail {
  position: absolute;
  right: .9rem;
  bottom: .9rem;
  overflow: hidden;
  width: 27%;
  aspect-ratio: 1.3;
  border: .25rem solid var(--cream);
  border-radius: .5rem;
  background: var(--cream);
  box-shadow: 0 .25rem 1.15rem #14292042;
}

.call-guide { padding-block: 3.4rem 3.65rem; color: var(--white); background: var(--forest); }
.call-guide .shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: center; gap: 4.25rem; }
.guide-visual { position: relative; overflow: hidden; aspect-ratio: 1.45; border-radius: .65rem; background: #325046; }
.guide-visual > img { object-position: center 58%; }
.call-guide h2 { margin-bottom: 1.35rem; font-size: clamp(2.15rem, 3.3vw, 3.4rem); letter-spacing: -.045em; line-height: 1.02; }
.call-guide ul { display: grid; gap: .95rem; list-style: none; padding: 0; margin: 0; }
.call-guide li { border-top: 1px solid #8ba897; padding-top: 1rem; }
.call-guide h3 { color: var(--lime); font-size: 1.075rem; line-height: 1.3; }
.call-guide p { margin-top: .42rem; color: #e7eee6; line-height: 1.5; }
.call-guide .guide-intro { margin: -0.6rem 0 1.3rem; }
.guide-link { display: inline-block; margin-top: 1.35rem; color: var(--lime); font-weight: 700; text-underline-offset: .25em; }
.site-footer .shell { min-height: 5rem; padding-block: .9rem; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer .brand { font-size: 1.2rem; }
.mobile-call { display: none; }

@media (max-width: 68rem) {
  .shell { width: min(100% - 4rem, 82rem); }
  .call-guide .shell { gap: 2rem; }
}

@media (max-width: 50rem) {
  .shell { width: calc(100% - 3rem); }
  .hero { align-items: end; min-height: clamp(41.5rem, 174vw, 47rem); padding-block: 3rem; }
  h1 { max-width: 14ch; font-size: clamp(3.05rem, 9vw, 5rem); }
  .hero-visual img { object-position: 52% top; }
  .hero-visual::after {
    background: linear-gradient(180deg, transparent 14%, rgb(12 32 27 / 16%) 29%, rgb(12 32 27 / 78%) 53%, rgb(12 32 27 / 93%) 73%, #0c201b 100%);
  }
  .call-guide .shell { grid-template-columns: 1fr; gap: 1.65rem; }
  .guide-copy { order: -1; }
}

@media (max-width: 45rem) {
  .site-footer .shell { flex-wrap: wrap; }
  .site-footer .site-nav { order: 1; flex-basis: 100%; }
}

@media (max-width: 37rem) {
  body { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
  .shell { width: calc(100% - 2.5rem); }
  .site-header .shell { gap: .8rem; padding-block: .85rem; }
  .site-nav { column-gap: 1.15rem; }
  .call--header { display: none; }
  .eyebrow { margin-bottom: 1rem; }
  h1 { max-width: 11ch; }
  .hero { padding-block: 2.15rem; }
  .intro { margin-block: 1.05rem 1.25rem; }
  .guide-detail { right: .55rem; bottom: .55rem; width: 29%; }
  .call-guide { padding-block: 2.25rem; }
  .call-guide li { padding-top: .8rem; }
  .site-footer .shell { padding-block: 1.1rem; }
  .site-footer .site-nav { order: 0; }
  .mobile-call {
    display: block;
    position: fixed;
    inset: auto 0 0;
    z-index: 2;
    padding: .55rem 1.25rem calc(.55rem + env(safe-area-inset-bottom));
    background: var(--cream);
    border-top: 1px solid var(--line);
  }
  .mobile-call .call { width: 100%; }
}
  

.faq { padding-block: 3.75rem; }
.faq .shell { display: grid; gap: 3.5rem; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.faq h2, .standard-page h1, .services-details h2, .services-process h2 {
  font-size: clamp(2.35rem, 4.2vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -.048em;
}
.faq-intro { max-width: 38ch; margin-block: 1rem 1.35rem; color: var(--muted); line-height: 1.6; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding-block: 1rem; cursor: pointer; font-weight: 700; }
.faq summary:focus-visible { outline: .18rem solid var(--forest); outline-offset: .25rem; }
.faq details p { max-width: 62ch; padding-bottom: 1rem; color: var(--muted); line-height: 1.6; }
.standard-page { max-width: 51rem; padding-block: 3rem; }
.standard-page article + article { margin-top: 2rem; }
.entry-content { margin-top: 1.5rem; line-height: 1.65; overflow-wrap: anywhere; }
.entry-content > * + * { margin-top: 1rem; }

.info-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 4.25rem; padding-block: 3.25rem; }
.info-hero h1 { max-width: none; }
.info-copy .entry-content { max-width: 42ch; margin-block: 1.25rem 1.5rem; color: var(--muted); font-size: 1.1rem; }
.info-visual { overflow: hidden; aspect-ratio: 1.45; border-radius: .65rem; background: #d8decc; }
.info-visual img { object-position: center 48%; }
.contact-method { margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.contact-method dt { margin-bottom: .3rem; font-weight: 700; }
.contact-method dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }

.services-details { padding-block: 3.4rem; color: var(--white); background: var(--forest); }
.service-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; margin: 1.8rem 0 0; padding: 0; }
.service-topics > * { border-top: 1px solid var(--line); padding-top: 1rem; }
.service-topics h3 { font-size: 1.075rem; }
.service-topics p { margin-top: .5rem; line-height: 1.55; }
.services-details .service-topics > * { border-top-color: #8ba897; }
.services-details .service-topics h3 { color: var(--lime); }
.services-details .service-topics p { color: #e7eee6; }
.services-process { padding-block: 3.4rem; }
.services-process ol { list-style: none; }
.services-process p { color: var(--muted); }
.services-faq { border-top: 1px solid var(--line); }

@media (max-width: 50rem) {
  .faq { padding-block: 2.5rem; }
  .faq .shell { grid-template-columns: 1fr; gap: 1.5rem; }
  .info-hero { grid-template-columns: 1fr; gap: 1.6rem; padding-block: 2.1rem; }
  .info-visual { aspect-ratio: 1.65; }
  .services-details, .services-process { padding-block: 2.4rem; }
}

@media (max-width: 37rem) {
  .service-topics { grid-template-columns: 1fr; gap: 1.05rem; }
}
