/* ===========================================================================
   MK Roofing LLC
   Laid out to match the existing mkroofingaus.com.au design so returning
   visitors recognise it: black header bar, blue accent, grey service band,
   dark footer.
   =========================================================================== */

:root {
  --blue: #2f80c2;
  --blue-dark: #24659b;
  --blue-light: #eaf3fa;
  --ink: #2b2b2b;
  --ink-2: #333333;
  --body: #6f6f6f;
  --muted: #8a8a8a;
  --line: #e3e3e3;
  --band: #eaeaea;
  --paper: #fff;
  --black: #000;
  --footer: #333333;
  --star: #f5a623;

  --wrap: 1180px;
  --radius: 4px;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, .07);
  --shadow-lift: 0 10px 30px rgba(0, 0, 0, .11);

  --head: "Poppins", "Segoe UI", Roboto, Arial, sans-serif;
  --sans: "Rubik", "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

h1, h2, h3, h4, h5 {
  font-family: var(--head);
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 .55em;
  font-weight: 700;
}
h1 { font-size: clamp(30px, 3.9vw, 46px); line-height: 1.2; }
h2 { font-size: clamp(26px, 3.1vw, 38px); }
h3 { font-size: clamp(19px, 1.7vw, 23px); }
h4 { font-size: 18px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(52px, 7vw, 86px) 0; }
.section--band { background: var(--band); }
.center { text-align: center; }

/* the little blue dash + small caps label used above headings */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--head); font-size: 12.5px; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 26px; height: 3px; background: var(--blue); }
.eyebrow.is-center { justify-content: center; }

/* the two-tone heading: bold line then a lighter one under it */
.duo { margin-bottom: 22px; }
.duo b { display: block; font-weight: 700; }
.duo span { display: block; font-weight: 400; color: var(--ink); }

.lede { font-size: 16.5px; max-width: 70ch; }
.center .lede { margin-inline: auto; }
.section-head { margin-bottom: clamp(30px, 4vw, 48px); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--sans); font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); }
.btn--outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue); color: #fff; }
.nav a, .nav-trigger, .brand-fallback .n, .brand-fallback .t { white-space: nowrap; }
.brand { flex: none; }
.btn--book { border-color: #ffffff; color: #fff; background: transparent; }
.btn--book:hover { background: #fff; color: var(--black); }
.btn--white { background: #fff; color: var(--blue); }
.btn--white:hover { background: #f0f0f0; }
.btn--pill { border-radius: 100px; padding: 14px 30px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.is-center { justify-content: center; }

/* ------------------------------------------------------------------- header */
.site-header { background: var(--black); position: sticky; top: 0; z-index: 60; }
.header-inner { display: flex; align-items: center; gap: 30px; min-height: 92px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-logo { height: 62px; width: auto; }
.drawer-logo { height: 50px; width: auto; }
.brand-fallback { display: flex; flex-direction: column; line-height: 1.15; }
.brand-fallback .n { font-family: var(--head); font-size: 19px; font-weight: 700; color: #fff; }
.brand-fallback .t { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > a, .nav-trigger {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 15px; font-size: 15.5px; color: #fff;
  background: none; border: none; font-family: var(--sans);
}
.nav > a:hover, .nav-trigger:hover, .nav > a.is-active { color: var(--blue); }
.nav-trigger svg { width: 10px; height: 10px; }

.has-menu { position: relative; }
.nav-menu {
  position: absolute; top: 100%; left: 0; min-width: 268px;
  background: var(--paper); box-shadow: var(--shadow-lift); padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.has-menu:hover .nav-menu, .has-menu:focus-within .nav-menu {
  opacity: 1; visibility: visible; transform: none;
}
.nav-menu a { display: block; padding: 10px 20px; font-size: 15px; color: var(--ink); }
.nav-menu a:hover { background: var(--blue); color: #fff; }

.header-cta { display: flex; align-items: center; gap: 10px; margin-left: 18px; }
.nav-toggle { display: none; background: none; border: none; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; }
.nav-toggle span + span { margin-top: 6px; }

.drawer {
  position: fixed; inset: 0; z-index: 200; background: var(--paper);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  overflow-y: auto; padding: 18px 22px 40px;
}
.drawer.is-open { transform: none; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer-top .brand-fallback .n { color: var(--ink); }
.drawer-close { background: none; border: none; font-size: 30px; line-height: 1; color: var(--ink); }
.drawer a { display: block; padding: 12px 0; border-bottom: 1px solid #eee; font-weight: 500; color: var(--ink); }
.drawer .grp { padding: 16px 0 4px; font-family: var(--head); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.drawer .sub { padding-left: 14px; font-size: 14.5px; color: var(--body); font-weight: 400; }
.drawer .btn { margin-top: 18px; }

/* --------------------------------------------------------------------- hero */
.hero { position: relative; background: #1d2b36; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 19, 27, .92) 0%, rgba(10, 19, 27, .82) 30%,
                           rgba(10, 19, 27, .55) 62%, rgba(10, 19, 27, .42) 100%),
    linear-gradient(180deg, rgba(10, 19, 27, .35) 0%, rgba(10, 19, 27, 0) 30%);
}
.hero .wrap { position: relative; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 420px);
  gap: 46px; align-items: start; padding: clamp(52px, 6.5vw, 84px) 0;
}
.hero h1 { color: #fff; max-width: 18ch; margin-bottom: 24px; }

.hero-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 9px; }
.hero-list li { display: flex; align-items: flex-start; gap: 11px; color: #fff; font-size: 16.5px; }
.hero-list svg { width: 18px; height: 18px; color: var(--star); flex: none; margin-top: 4px; }

.hero-cta-label { color: #fff; font-family: var(--head); font-weight: 700; font-size: 18px; margin-bottom: 16px; }

/* quote card */
.quote-card { background: var(--paper); padding: 26px 24px 28px; }
.quote-card h2 { text-align: center; font-size: 25px; margin-bottom: 20px; }
.field { margin-bottom: 12px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1px solid #d7d7d7; border-radius: 3px;
}
.field textarea { min-height: 92px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9a9a9a; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
}
.quote-card .btn { margin-top: 4px; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; text-align: center; }
.form-status { margin-top: 12px; padding: 11px 14px; border-radius: 3px; font-size: 14px; }
.form-status.is-ok { background: #e8f5ec; color: #1d7a45; }
.form-status.is-err { background: #fdecea; color: #b3261e; }

/* -------------------------------------------------- get to know / two panel */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 54px; align-items: start; }
.feature-item { display: flex; gap: 16px; margin-top: 26px; }
.feature-item svg { width: 30px; height: 30px; color: var(--ink); flex: none; margin-top: 4px; }
.feature-item h4 { margin-bottom: 6px; }
.feature-item p { font-size: 15.4px; margin: 0; }

.media-frame { background: #dfe3e6; aspect-ratio: 16 / 11; overflow: hidden; }
.media-frame img, .media-frame iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }

/* ------------------------------------------------------------- 4-up strip */
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #f2f3f5; }

/* -------------------------------------------------------------- stats strip */
.stats-strip { background: var(--ink); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { display: block; font-family: var(--head); font-size: clamp(28px, 3vw, 38px); font-weight: 700; color: #fff; }
.stat span { font-size: 14px; color: #b8bfc6; }
.usp {
  padding: 34px 28px; border-right: 1px dashed #c9ccd0;
}
.usp:last-child { border-right: none; }
.usp svg { width: 40px; height: 40px; color: var(--blue); margin-bottom: 18px; }
.usp h4 { margin-bottom: 12px; }
.usp p { font-size: 15px; margin: 0; }

/* ----------------------------------------------------------- service cards */
.card-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.card-grid > * { flex: 0 1 calc((100% - 52px) / 3); }
.svc-card {
  display: flex; flex-direction: column; background: var(--paper);
  box-shadow: var(--shadow-card); padding: 14px 14px 26px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.svc-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.svc-thumb { aspect-ratio: 4 / 3; overflow: hidden; background: #e8ebee; margin-bottom: 20px; }
.svc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.svc-card h3 { padding: 0 12px; margin-bottom: 10px; }
.svc-card p { padding: 0 12px; font-size: 15.2px; margin-bottom: 22px; }
.svc-card .btn { margin: auto 12px 0; align-self: flex-start; }

/* placeholder shown until a photo is dropped in */
.ph {
  width: 100%; height: 100%; display: grid; place-items: center; gap: 8px; align-content: center;
  background: repeating-linear-gradient(45deg, #eceff2 0 12px, #e5e9ed 12px 24px);
  color: var(--muted); font-size: 12.5px; text-align: center; padding: 16px;
}
.ph svg { width: 30px; height: 30px; opacity: .45; }

/* --------------------------------------------------------------- seo blocks */
.copy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; }
.copy-grid h3 { margin-bottom: 14px; }
.copy-grid p { font-size: 15.4px; margin: 0; }

/* ------------------------------------------------------------- blue banner */
.band {
  position: relative; background: var(--blue); color: #fff; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
}
.band-left { padding: 44px 44px; display: flex; align-items: center; gap: 20px; position: relative; z-index: 2; }
.band-left svg.ring { width: 56px; height: 56px; flex: none; }
.band-left h3 { color: #fff; margin: 0 0 4px; font-size: 26px; }
.band-left a { color: #fff; font-weight: 500; font-size: 17px; }
.band-right { position: relative; min-height: 190px; }
.band-right img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-badge {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 2;
  background: rgba(47, 128, 194, .93); color: #fff; padding: 18px 34px 18px 26px;
  display: flex; align-items: center; gap: 16px; min-width: 340px;
}
.band-badge b { font-family: var(--head); font-size: 46px; line-height: 1; font-weight: 700; }
.band-badge span { font-size: 17px; }

/* ------------------------------------------------------------------ reviews */
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.review { border: 1px solid var(--line); background: var(--paper); }
.review-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.review-head .avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--footer); color: #fff;
  display: grid; place-items: center; font-weight: 600; flex: none;
}
img.avatar { object-fit: cover; }
.review-head b { font-family: var(--head); color: var(--ink); font-size: 17px; }
.review-head svg { width: 22px; height: 22px; color: #1877f2; margin-left: auto; }
.review-body { padding: 18px 20px 22px; font-size: 15.2px; }
.review-empty {
  border: 1px dashed #cfd4d9; background: #fafbfc; padding: 40px 28px; text-align: center;
  color: var(--muted); font-size: 15px; grid-column: 1 / -1;
}

/* ------------------------------------------------------------------- areas */
.area-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.area-list li {
  list-style: none; padding: 8px 18px; border: 1px solid var(--line);
  border-radius: 100px; font-size: 14.5px; color: var(--ink); background: var(--paper);
}

/* --------------------------------------------------------------------- faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 0; background: none; border: none; text-align: left;
  font-family: var(--head); font-size: 17px; font-weight: 600; color: var(--ink);
}
.faq-q svg { width: 17px; height: 17px; color: var(--blue); flex: none; transition: transform .22s ease; }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 0 22px; font-size: 15.4px; max-width: 74ch; }
.faq-item.is-open .faq-a { display: block; }

/* ------------------------------------------------------------- map + form */
.map-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.map-frame { border: 6px solid var(--blue); }
.map-frame iframe { display: block; width: 100%; height: 430px; border: 0; }
.book-card { background: var(--paper); box-shadow: var(--shadow-lift); border-radius: 10px; padding: 26px 24px 28px; }
.book-card h2 { text-align: center; color: var(--blue); font-size: 27px; margin-bottom: 20px; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--footer); color: #cfcfcf; padding-top: 62px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1.1fr 1.2fr; gap: 34px; padding-bottom: 46px; }
.site-footer h4 { color: #fff; font-size: 21px; margin-bottom: 22px; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-links a.is-active { color: #e2574c; }
.footer-brand img { height: 118px; width: auto; margin-bottom: 20px; }
.footer-contact { display: grid; gap: 13px; }
.footer-contact div { display: flex; gap: 11px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; color: #fff; flex: none; margin-top: 5px; }
.footer-social { display: flex; gap: 10px; margin: 22px 0 20px; }
.footer-social a { width: 44px; height: 44px; border-radius: 6px; background: var(--blue); color: #fff; display: grid; place-items: center; }
.footer-social a:hover { background: var(--blue-dark); }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom { padding-bottom: 26px; font-size: 14.5px; }

/* ----------------------------------------------------------- page furniture */
.page-head { background: var(--black); color: #cfcfcf; padding: clamp(44px, 5.5vw, 72px) 0; text-align: center; }
.page-head h1 { color: #fff; margin-bottom: 8px; }
.crumb { font-size: 14.5px; color: #9aa2a9; }
.crumb a:hover { color: #fff; }

.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.aside-card { background: #f5f6f7; padding: 26px 24px; position: sticky; top: 116px; }
.aside-card h3 { font-size: 20px; }
.aside-list { list-style: none; margin: 0; padding: 0; }
.aside-list a { display: block; padding: 11px 0; border-bottom: 1px solid #e0e2e4; font-size: 15px; color: var(--ink); }
.aside-list a:hover, .aside-list a.is-active { color: var(--blue); }
.aside-list li:last-child a { border-bottom: none; }

.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.tick-list svg { width: 19px; height: 19px; color: var(--blue); flex: none; margin-top: 5px; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 34px; margin-bottom: 10px; }
.prose h3:first-of-type { margin-top: 30px; }
.prose p { margin-bottom: 16px; }

/* contact page info card */
.info-card { background: #f7f8f9; padding: 34px 30px; }
.info-row { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid #e4e6e8; }
.info-row:last-child { border-bottom: none; }
.info-ico { width: 56px; height: 56px; border-radius: 6px; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; }
.info-ico svg { width: 24px; height: 24px; }
.info-row b { display: block; font-family: var(--head); font-size: 19px; color: var(--ink); }

.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; background: var(--ink-2); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-lift);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s;
}
.to-top.is-on { opacity: 1; visibility: visible; }
.to-top svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------- breakpoints */
@media (max-width: 1520px) {
  /* First thing to go when the header runs out of room. */
  .btn--book { display: none; }
}

@media (max-width: 1080px) {
  .copy-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid > * { flex-basis: calc((100% - 26px) / 2); }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .usp:nth-child(2) { border-right: none; }
  .usp:nth-child(-n+2) { border-bottom: 1px dashed #c9ccd0; }
  .hero-grid, .about-grid, .split, .map-grid { grid-template-columns: 1fr; }
  .hero-media::after { background: rgba(10, 19, 27, .82); }
  .aside-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .band { grid-template-columns: 1fr; }
  .band-badge { position: static; transform: none; min-width: 0; justify-content: center; }
  .band-right { min-height: 0; }
  .band-right img { position: static; height: 200px; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .header-inner { min-height: 74px; gap: 12px; }
  .brand-logo { height: 46px; }
  .brand { margin-right: auto; }
  /* keep the wordmark on one line beside the phone button */
  .brand-fallback .n { font-size: 16px; white-space: nowrap; }
  .brand-fallback .t { font-size: 9.5px; white-space: nowrap; }
}
@media (max-width: 700px) {
  .copy-grid, .review-grid { grid-template-columns: 1fr; }
  .card-grid > * { flex-basis: 100%; }
  .usp-grid { grid-template-columns: 1fr; }
  .usp { border-right: none; border-bottom: 1px dashed #c9ccd0; }
  .usp:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .header-cta .btn { padding: 10px 16px; font-size: 14px; }
  .band-left { padding: 30px 22px; flex-direction: column; text-align: center; }
  .info-card { padding: 26px 20px; }
}

@media (max-width: 620px) {
  .brand-logo { height: 42px; }
  .header-cta { margin-left: 0; gap: 6px; }
  .header-cta .btn { padding: 9px 11px; font-size: 12.5px; }
}

@media (max-width: 480px) {
  /* Emblem only: the wordmark and the phone CTA stop fitting side by side. */
  .brand-fallback { display: none; }
}
