*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
/* html and body are footer navy; the page content (.page wrapper) carries the light background.
   iPhone Safari colours the area behind its see-through bottom toolbar (and the "bounce" past the
   end of the page) from the page/body background, so this continues the footer there instead of
   showing a white strip. Visually the page itself is unchanged. */
html { background: var(--color-navy-dark); }
.page { background: var(--color-white); }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-navy-dark);
  line-height: var(--line-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .75rem 1rem; border-radius: var(--radius-sm);
  background: var(--color-navy); color: #fff; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .6em;
  border: 0; border-radius: var(--radius-pill);
  font: inherit; font-weight: 600; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.btn svg { flex: none; width: 1.1em; height: 1.1em; }
.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, var(--color-orange-bright), var(--color-orange));
  box-shadow: var(--shadow-button);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(244, 119, 22, .32); }
.btn--primary:active { transform: translateY(0); box-shadow: var(--shadow-button); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* Placeholder sections (content pending owner input) */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); scroll-margin-top: 1rem; }
.section:nth-of-type(even) { background: var(--color-surface); }
.section__eyebrow {
  font-size: var(--text-sm); font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--color-orange);
}
.section__title {
  margin-top: .4rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.15;
}
.section__text { margin-top: 1rem; max-width: 60ch; color: var(--color-text-muted); }
.pending-note {
  display: inline-block; margin-top: 1.25rem;
  padding: .4rem .9rem; border: 1px dashed var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm); color: var(--color-text-muted); background: #fff;
}
.service-list { display: grid; gap: 1rem; margin-top: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.service-list li {
  padding: 1.25rem 1.5rem; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: #fff; box-shadow: var(--shadow-card); font-weight: 600;
}

.site-footer {
  padding-block: 2rem; background: var(--color-navy-dark); color: rgba(255,255,255,.75);
  font-size: var(--text-sm);
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Brand tagline under the logo (header, footer, legal pages) — real text, flanked by two short orange rules */
.brand__tag {
  display: flex; align-items: center; justify-content: center; gap: .4rem; width: 100%; margin-top: .2rem;
  font-size: clamp(.75rem, 2.9vw, .8rem); font-weight: 600; font-style: italic; line-height: 1.2; white-space: nowrap; color: var(--color-navy);
  transition: opacity .2s, max-height .25s var(--ease); max-height: 2em; overflow: hidden;
}
.brand__tag::before, .brand__tag::after { content: ""; flex: 1; max-width: 1.1rem; height: 1.5px; background: var(--color-orange); }
.brand__tag--light { color: #fff; }
/* Very small phones: no room for the side lines at a readable 12px, so the tagline shows on its own */
@media (max-width: 359px) { .site-header .brand__tag::before, .site-header .brand__tag::after { display: none; } }
.brand__tag:empty { display: none; }   /* tagline cleared in the admin panel */

/* ---------- Footer ---------- */
/* The footer is its own size container, so its phone layout works on every page (not only inside .page) */
.site-footer { container: page / inline-size; }
.site-footer { padding-block: clamp(3rem, 6vw, 4.5rem) 0; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: var(--color-orange-light); }
.site-footer__grid { display: grid; gap: 2.25rem 2rem; grid-template-columns: 1fr 1fr; }
.site-footer__brand { grid-column: 1 / -1; max-width: 22rem; }
.site-footer__logo { display: inline-grid; justify-items: center; text-decoration: none; }
.site-footer__brand img { width: 210px; height: auto; }
.site-footer__logo .brand__tag { font-size: .85rem; margin-top: .35rem; }
.site-footer__brand p { margin-top: 1rem; line-height: 1.6; }
.site-footer__heading {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff;
}
.site-footer__col ul { display: grid; gap: 0; margin-top: .55rem; }
.site-footer__col li { min-height: 2.75rem; display: flex; align-items: center; }   /* 44px rows = comfortable taps */
.site-footer__col li > a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.site-footer__contact { grid-column: 1 / -1; }
.site-footer__contact li { display: flex; align-items: center; gap: .6rem; }
.site-footer__contact svg { flex: none; width: 1.1rem; height: 1.1rem; color: var(--color-orange); }
.site-footer__contact a[href^="tel"] { color: #fff; font-weight: 600; }
.site-footer__col:last-child { grid-column: 1 / -1; }
@container page (min-width: 900px) {
  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.1fr; }
  .site-footer__brand, .site-footer__col:last-child { grid-column: auto; }
}
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-block: .9rem;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem;
}
.site-footer__bottom a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.ft-short { display: none; }

/* Phones / tablets: a compact footer — logo beside the tagline, contact as two tap buttons
   right under it, the two link lists side by side, and a centred one-line bottom bar.
   Every link keeps a 44px tap height. */
@container page (max-width: 899px) {
  .site-footer__grid { margin-top: -.75rem; }   /* 36px top space on phones (footer padding is 48px; a container cannot query its own size) */
  .site-footer__grid { gap: 1.5rem 1.25rem; }
  .site-footer__brand { display: grid; justify-items: start; gap: .9rem; max-width: none; }
  .site-footer__brand img { width: 170px; }
  .site-footer__logo .brand__tag { font-size: .78rem; }
  .site-footer__brand p { margin-top: 0; font-size: .85rem; line-height: 1.5; }
  /* contact block moves up, directly under the brand */
  .site-footer__col:last-child { order: -1; grid-row: 2; }
  .site-footer__brand { order: -2; }
  .site-footer__col:last-child .site-footer__heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .site-footer__col .site-footer__contact { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: .6rem; margin-top: 0 !important; }
  .site-footer__contact li:has(> span) { display: none; }   /* "Canberra & Surrounds" — already in the tagline */
  .site-footer__contact li {
    position: relative; justify-content: center; gap: .4rem; min-height: 2.75rem; padding-inline: .4rem;
    border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-pill); background: rgba(255,255,255,.06);
    transition: background-color .15s, border-color .15s;
  }
  .site-footer__contact li:hover { border-color: var(--color-orange-light); background: rgba(255,255,255,.1); }
  .site-footer__contact li > a { color: #fff; font-weight: 600; white-space: nowrap; font-size: clamp(.8rem, 3.7cqi, .95rem); }
  .site-footer__brand > a { display: inline-grid; }
  .site-footer__contact li > a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }  /* whole pill is the link */
  .site-footer__bottom {
    flex-direction: column; justify-content: center; gap: 0; margin-top: 1.5rem; padding-block: .6rem .4rem;
    text-align: center; font-size: .8rem;
  }
  .ft-long { display: none; }
  .ft-short { display: inline; }
}
@container page (max-width: 360px) {
  .site-footer__brand { gap: .75rem; }
  .site-footer__brand p { font-size: .8rem; }
  .site-footer__contact svg { display: none; }
}

/* Shared display heading: italic two-tone, same as Services / About / Contact */
.display-title {
  margin-top: .5rem;
  font-size: clamp(2.1rem, 4.4vw, 3.2rem); font-weight: 800; font-style: italic;
  line-height: 1; letter-spacing: -.025em; color: var(--color-navy);
}
.display-title span { display: block; color: var(--color-orange); }

/* Reviews: left-aligned header like other sections; rating cards stay centred */
.reviews .pending-note { margin-top: 1.5rem; }
.reviews .ratings__label { margin-top: clamp(1.75rem, 4vw, 2.5rem); }
