/* =============================================================
   AMO Cleaning — styles
   Palette is limited to black, white and the logo blue (#6bc2f5).
   Change the colours in :root below to restyle the whole site.
   ============================================================= */

:root {
  --black: #000000;
  --white: #ffffff;
  --blue: #6bc2f5;

  /* Transparent tints of the three brand colours (no extra hues) */
  --blue-soft: rgba(107, 194, 245, 0.14);
  --black-muted: rgba(0, 0, 0, 0.68);
  --white-muted: rgba(255, 255, 255, 0.72);
  --line: rgba(0, 0, 0, 0.12);

  --font: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --radius: 4px;           /* Square-ish corners, echoing the logo's frame */
  --border: 3px solid var(--black);
  --max-width: 1160px;
  --header-height: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  margin: 0 0 0.5em;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 820px; }

.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.85em 1.5em;
  border: var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translate(-2px, -2px); }
.btn:active { transform: translate(0, 0); box-shadow: none; }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Black button with a blue offset "shadow" — the main CTA style */
.btn-black { background: var(--black); color: var(--white); box-shadow: 5px 5px 0 var(--blue); }
.btn-black:hover { box-shadow: 7px 7px 0 var(--blue); }

.btn-blue { background: var(--blue); color: var(--black); }
.btn-blue:hover { box-shadow: 4px 4px 0 var(--black); }

.btn-outline { background: var(--white); color: var(--black); }
.btn-outline:hover { background: var(--blue); box-shadow: 4px 4px 0 var(--black); }

.btn-large { padding: 1.05em 1.75em; font-size: 1.1rem; }
.btn-small { padding: 0.5em 1em; font-size: 0.95rem; border-width: 2px; }

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  padding: 0.35em 0.9em;
  background: var(--blue);
  color: var(--black);
  border: 2px solid var(--black);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-dark { background: var(--black); color: var(--blue); border-color: var(--black); }

/* ---------- Sticky header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.header-logo img { height: 52px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  position: relative;
}
/* Blue underline on hover */
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav a:not(.btn):hover::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 10px;
  background: none;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 3px;
  background: var(--black);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
  /* Faint window-grid pattern in the background */
  background-image:
    linear-gradient(var(--blue-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-soft) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;   /* Single centred column: logo, then text */
  justify-items: center;
  text-align: center;
  gap: 40px;
}
.hero h1 {
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  margin: 22px 0 14px;
  text-transform: uppercase;
}
/* "Toowoomba" sits on a blue bar, like CLEANING in the logo */
.hero h1 .highlight {
  display: inline-block;
  background: var(--blue);
  padding: 0 0.12em;
  font-weight: 500;
  letter-spacing: 0;
}
.hero-sub {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  color: var(--black-muted);
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
}
.free-quotes {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  font-size: 1.1rem;
}
.free-quotes .icon { background: var(--blue); border-radius: 50%; padding: 2px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  font-weight: 500;
  color: var(--black-muted);
}
.hero-points li::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--blue);
  border: 2px solid var(--black);
  margin-right: 8px;
}

/* Logo centred at the top of the hero, on a white tile (the logo is transparent).
   height: auto keeps the logo's proportions so it never stretches. */
.hero-visual { display: flex; justify-content: center; }
.hero-visual img {
  width: 100%;
  max-width: 420px;
  height: auto;
  background: var(--white);
  padding: 16px 24px;
  border: 6px solid var(--black);
  box-shadow: 12px 12px 0 var(--blue);
}

/* ---------- Generic sections ---------- */
.section { padding: 96px 0; }
.section-slim { padding: 56px 0; }
.section-dark { background: var(--black); color: var(--white); }
.section-tint { background: var(--blue-soft); }

.section-head { margin-bottom: 48px; }
.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-bottom: 3px solid var(--blue);
}
.section-intro { color: var(--black-muted); margin: 0; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Services ---------- */
.card {
  padding: 32px 28px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--blue); }
.card p { color: var(--black-muted); margin: 0; }
.card-icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  background: var(--blue);
  border: 2px solid var(--black);
  margin-bottom: 22px;
}
.card-icon svg { width: 28px; height: 28px; fill: var(--black); }

.note {
  margin: 36px 0 0;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
}
.note::before, .note::after { content: " — "; color: var(--blue); }

/* ---------- Bond cleaning ---------- */
/* White panel with a thick border and blue offset "shadow", like the logo */
.bond {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--blue);
}
/* "bond cleans" sits on a blue bar, like the hero heading */
.bond h2 .highlight {
  background: var(--blue);
  padding: 0 0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.bond-copy p { color: var(--black-muted); margin: 18px 0 28px; }
.bond-list { list-style: none; padding: 0; margin: 0; border-top: var(--border); }
.bond-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
/* Small blue square markers, matching the hero points */
.bond-list li::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--blue);
  border: 2px solid var(--black);
  margin-right: 12px;
}

/* ---------- Why choose us ---------- */
.section-dark .eyebrow { color: var(--white); }
.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.why-list li {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 24px 8px 0;
}
.why-list .num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.why-list p { color: var(--white-muted); margin: 0; }

/* ---------- Before / After ---------- */
.ba-pair { margin: 0; }
.ba-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ba-placeholder {
  position: relative;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* "Before" — hatched to suggest dirty glass */
.ba-placeholder.before {
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,0.08) 0 10px, rgba(0,0,0,0.02) 10px 20px),
    var(--white);
  border-right: 3px solid var(--black);
}
/* "After" — clean blue glass with a shine */
.ba-placeholder.after {
  background:
    linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.7) 30% 42%, transparent 42% 55%, rgba(255,255,255,0.5) 55% 60%, transparent 60%),
    var(--blue);
}
.ba-label {
  position: absolute;
  top: 14px; left: 14px;
  padding: 0.2em 0.7em;
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ph-tag {
  padding: 0.3em 0.8em;
  background: var(--white);
  border: 2px dashed var(--black);
  font-size: 0.85rem;
  font-weight: 600;
}
.ba-pair figcaption {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--black-muted);
}

/* ---------- Reviews ---------- */
.review {
  margin: 0;
  padding: 32px 28px;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.stars {
  color: var(--blue);
  font-size: 1.35rem;
  letter-spacing: 0.1em;
  -webkit-text-stroke: 1px var(--black);
  margin-bottom: 14px;
}
.review p { flex: 1; font-size: 1.05rem; }
.review footer {
  display: flex;
  flex-direction: column;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.review footer span { color: var(--black-muted); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq { border-top: var(--border); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
/* Plus / minus icon */
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--black);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
  transition: background 0.2s ease;
}
.faq details[open] summary::after { content: "−"; background: var(--blue); }
.faq summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.faq details p { padding: 0 50px 22px 0; margin: 0; color: var(--black-muted); }

/* ---------- Join the team ---------- */
.join {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px;
  border: 2px dashed var(--black);
  border-radius: var(--radius);
}
.join h2 { font-size: 1.6rem; }
.join p { margin: 0; color: var(--black-muted); }
.join .btn { flex-shrink: 0; }

/* ---------- Contact ---------- */
.contact { background: var(--blue); border-top: var(--border); }
.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.contact h2 { margin-top: 20px; }
.contact p { font-size: 1.2rem; margin-bottom: 32px; }
.contact .btn-black { box-shadow: 5px 5px 0 var(--white); }
.contact .btn-black:hover { box-shadow: 7px 7px 0 var(--white); }
.fb-link {
  margin-top: 26px;
  font-weight: 600;
  text-underline-offset: 4px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* Logo shown on a white tile so it stays unchanged on the black footer */
.footer-logo { background: var(--white); padding: 10px 14px; margin-bottom: 20px; }
.footer-logo img { height: 56px; width: auto; }
.footer-name { font-size: 1.1rem; margin-bottom: 10px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--blue); text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.copyright { color: var(--white-muted); font-size: 0.9rem; margin: 8px 0 0; }

/* ---------- Scroll reveal animation (toggled by script.js) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* =============================================================
   Responsive
   ============================================================= */

/* Tablet */
@media (max-width: 960px) {
  .hero-visual img { max-width: 340px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .bond { grid-template-columns: 1fr; gap: 32px; }

  /* Collapse navigation into a dropdown menu */
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: var(--white);
    border-bottom: var(--border);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 18px; }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --header-height: 68px; }
  .header-logo img { height: 44px; }
  .section { padding: 72px 0; }
  .hero { padding: 40px 0 72px; }
  .hero-visual img { max-width: 280px; padding: 10px 14px; border-width: 4px; box-shadow: 8px 8px 0 var(--blue); }
  .hero-actions .btn { width: 100%; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .bond { padding: 28px 22px; box-shadow: 6px 6px 0 var(--blue); }
  .bond .btn { width: 100%; }
  .join { flex-direction: column; align-items: flex-start; padding: 24px; }
  .join .btn { width: 100%; }
  .contact .btn { width: 100%; }
  .btn-large { font-size: 1rem; padding: 1em 1.2em; }
}
