/* ==========================================================================
   DIY Blinds — satellite site stylesheet
   Brand: Roboto / #000BA5. Matches the main diy-blinds.com.au Shopify store.
   ========================================================================== */

:root {
  --blue: #000ba5;
  --blue-deep: #00076e;
  --ink: #15161c;
  --muted: #5b6070;
  --line: #e4e6ec;
  --paper: #f5f6f8;
  --white: #ffffff;

  --nav-h: 76px;
  --inset: 16px;
  --radius-nav: 18px;
  --radius-card: 14px;
  --wrap: 1240px;
  --read: 68ch;

  --shadow-nav: 0 6px 28px rgba(14, 16, 32, 0.14);
  --shadow-card: 0 2px 10px rgba(14, 16, 32, 0.07);
  --shadow-card-hi: 0 14px 34px rgba(14, 16, 32, 0.14);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Roboto, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

a { color: var(--blue); }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:where(a, button, summary):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------- nav ---- */

.nav {
  position: fixed;
  inset: var(--inset) var(--inset) auto;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--nav-h);
  padding: 0 28px;
  background: var(--white);
  border-radius: var(--radius-nav);
  box-shadow: var(--shadow-nav);
}

.nav__logo { flex: none; display: inline-flex; }
.nav__logo img { height: 40px; width: auto; }

.nav > nav { margin-left: auto; }

.nav__links {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0;
  list-style: none;
}

.nav__links a {
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* Body gets top padding on every page except the video hero, which sits under
   the floating bar on purpose. */
.page { padding-top: calc(var(--nav-h) + var(--inset) * 2); }

/* ------------------------------------------------------------ buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.18s ease;
}

.btn--primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); transform: translateY(-1px); }

.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.75); color: var(--white); }
.btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

.btn--small { padding: 10px 22px; font-size: 0.9375rem; }

/* --------------------------------------------------------------- hero ---- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #11131c;
  text-align: center;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The source clip is 640x360, so it is upscaled hard on desktop. A touch of
     scale + saturation keeps it reading as footage rather than soft pixels. */
  transform: scale(1.02);
  filter: saturate(1.08);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 12, 24, 0.5) 0%, rgba(10, 12, 24, 0.32) 42%, rgba(10, 12, 24, 0.68) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 940px;
  padding: calc(var(--nav-h) + 48px) 24px 72px;
  color: var(--white);
}

.hero h1 {
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(2.25rem, 6.2vw, 4.5rem);
  line-height: 1.04;
  text-wrap: balance;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.34);
}

.hero__sub {
  max-width: 60ch;
  margin: 22px auto 0;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

/* ------------------------------------------------------------ sections --- */

.section { padding: 96px 0; }
.section--paper { background: var(--paper); }
.section--tight { padding: 72px 0; }

.section__head {
  max-width: 62ch;
  margin: 0 auto 48px;
  text-align: center;
}

.section__head h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  text-transform: uppercase;
}

.section__head p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* --------------------------------------------------------------- cards --- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 28px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover { box-shadow: var(--shadow-card-hi); transform: translateY(-3px); }

.card__media { aspect-ratio: 16 / 10; background: var(--paper); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }

.card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }

.card .card__kicker {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card h3 { font-size: 1.1875rem; line-height: 1.3; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--blue); }

.card p { margin: 12px 0 0; color: var(--muted); font-size: 0.9688rem; line-height: 1.6; }

.card__foot {
  margin-top: auto;
  padding-top: 18px;
  color: var(--muted);
  font-size: 0.8438rem;
}

/* -------------------------------------------------------------- strip ---- */

.strip {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 84px 0;
}

.strip h2 {
  font-size: clamp(1.625rem, 3.2vw, 2.375rem);
  text-transform: uppercase;
  text-wrap: balance;
}

.strip p {
  max-width: 56ch;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.88);
}

.strip .btn--primary {
  margin-top: 32px;
  background: var(--white);
  border-color: var(--white);
  color: var(--blue);
}

.strip .btn--primary:hover { background: rgba(255, 255, 255, 0.88); border-color: rgba(255, 255, 255, 0.88); }

/* ------------------------------------------------------------- article --- */

.article { padding-bottom: 24px; }

.article__head {
  max-width: var(--read);
  margin-inline: auto;
  padding: 56px 24px 40px;
  text-align: center;
}

.crumbs {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.875rem;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }

.article__head h1 {
  font-size: clamp(1.875rem, 4.4vw, 3rem);
  line-height: 1.1;
  text-wrap: balance;
}

.article__standfirst {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.65;
}

.article__meta { margin: 24px 0 0; color: var(--muted); font-size: 0.875rem; }

.article__hero {
  max-width: var(--wrap);
  margin: 0 auto 56px;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 21 / 9;
}
.article__hero img { width: 100%; height: 100%; object-fit: cover; }

.prose { max-width: var(--read); margin-inline: auto; }

.prose :where(p, ul, ol, blockquote, figure, table) { margin-block: 0; }
.prose > * + * { margin-top: 1.15em; }

.prose h2 {
  margin-top: 2.1em;
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
  line-height: 1.22;
}

.prose h3 {
  margin-top: 1.7em;
  font-size: 1.1875rem;
  line-height: 1.35;
}

.prose :where(ul, ol) { padding-left: 1.35em; }
.prose li + li { margin-top: 0.5em; }
.prose strong { font-weight: 700; }

.prose blockquote {
  margin-inline: 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--blue);
  color: var(--ink);
  font-size: 1.0625rem;
}

.callout {
  padding: 24px 26px;
  background: var(--paper);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}
.callout > :first-child { margin-top: 0; }
.callout p { margin-block: 0; }
.callout p + p { margin-top: 0.8em; }

.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9688rem;
}
.spec caption { margin-bottom: 12px; color: var(--muted); font-size: 0.875rem; text-align: left; }
.spec th, .spec td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec thead th { background: var(--paper); font-weight: 700; }
.spec tbody tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

/* FAQ — plain headings, open by default, so answer engines read them. */
.faq { margin-top: 2.1em; }
.faq h2 { margin-top: 0; }
.faq__item + .faq__item { margin-top: 28px; }
.faq__item h3 { margin-top: 0; }
.faq__item p { margin: 10px 0 0; }

/* ------------------------------------------------------------- footer ---- */

.footer {
  padding: 64px 0 40px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9375rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer img { height: 38px; width: auto; }
.footer p { margin: 18px 0 0; max-width: 42ch; line-height: 1.6; }

.footer h4 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li + li { margin-top: 10px; }
.footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }

.footer__base {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 0.8438rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------------------------------------------------------- responsive --- */

@media (max-width: 900px) {
  :root { --nav-h: 66px; --inset: 12px; }

  .nav { gap: 16px; padding: 0 16px; }
  .nav__logo img { height: 32px; }
  .nav__links { gap: 20px; }
  .nav__links a { font-size: 0.8125rem; letter-spacing: 0.01em; }

  .section { padding: 72px 0; }
  .article__hero { aspect-ratio: 16 / 9; margin-bottom: 40px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .cards { gap: 18px; }
  .card__media { aspect-ratio: 3 / 2; }
  .card__body { padding: 20px 20px 22px; }
  .card h3 { font-size: 1.125rem; }
  .card p { font-size: 0.9375rem; }
  .card__foot { padding-top: 14px; }

  .nav { gap: 10px; padding: 0 14px; }
  .nav__logo img { height: 28px; }
  .nav__links { gap: 14px; }
  .nav__links a { font-size: 0.75rem; }
  .hero__actions .btn { width: 100%; }
}

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