/* Klass Living: the website's only stylesheet.
   Colours, fonts and sizes are set once in :root below; change them there rather than in individual rules.
   The look follows the 2014–2017 klassliving.com.au "Hipster" storefront. */

:root {
  --c-bg: #f5f5f5;
  --c-surface: #fff;
  --c-footer: #ededed;
  --c-topbar: #464646;
  --c-text: #5f5f5f;
  --c-heading: #333;
  --c-muted: #6e6e6e;
  --c-line: #dcdcdc;
  --c-accent: #ff7800;        /* decorative only: fails contrast as text */
  --c-accent-text: #a84600;   /* orange text on light backgrounds */
  --c-accent-strong: #b84d00; /* button fill behind white text */

  --f-body: "Trebuchet MS", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-display: "Droid Sans", "Open Sans", "Segoe UI", Roboto, Arial, sans-serif;

  --container: 960px;
  --gutter: 20px;
  --radius: 4px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font: 15px/1.6 var(--f-body);
  /* Main content grows so the footer sits at the bottom of short pages. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--c-accent-text); }
a:hover { color: var(--c-heading); }

:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
main:focus { outline: none; }

h1, h2, h3 { color: var(--c-heading); font-family: var(--f-display); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p, ul, ol { margin: 0 0 1em; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 10;
  background: var(--c-surface); color: var(--c-heading); padding: .6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* ---------- Top bar ---------- */

.topbar { background: var(--c-topbar); color: #d0d0d0; font: 12px/1.4 var(--f-display); }
.topbar a { color: #fff; text-decoration: none; font-weight: 700; }
.topbar a:hover { text-decoration: underline; }
.topbar__list {
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .25rem 0;
  min-height: 38px; margin: 0; padding: .5rem 0; list-style: none;
}
.topbar__list li { padding: 0 12px; border-right: 1px solid #5c5c5c; }
.topbar__list li:last-child { border-right: 0; padding-right: 0; }

/* ---------- Header and navigation ---------- */

.site-header { background: var(--c-bg); }
.site-header__inner { position: relative; display: flex; align-items: center; justify-content: center; min-height: 92px; }
.logo { display: block; padding: 8px 0; }
.logo img { width: 400px; }

.header-cta {
  position: absolute; right: var(--gutter); display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem 1rem; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-surface);
  color: var(--c-accent-text); font: 700 13px var(--f-display); text-decoration: none;
}
.header-cta:hover { border-color: var(--c-accent); color: var(--c-heading); }

.nav-toggle {
  display: none; position: absolute; left: var(--gutter);
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--c-accent); color: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}

.site-nav { border-top: 1px solid #e6e6e6; border-bottom: 1px solid #e6e6e6; }
.site-nav__list { display: flex; justify-content: center; flex-wrap: wrap; list-style: none; margin: 0 auto; padding-block: 12px; }
.site-nav li + li { border-left: 1px solid #9a9a9a; }
.site-nav a {
  display: block; padding: 8px 17px; color: #555; text-decoration: none; text-transform: uppercase;
  font: 700 14px/1.2 var(--f-display); letter-spacing: .01em;
}
.site-nav a:hover { color: var(--c-accent-text); }
.site-nav a[aria-current="page"] { color: var(--c-accent-text); box-shadow: inset 0 -2px 0 var(--c-accent); }

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

main { display: block; flex: 1 0 auto; padding-bottom: 40px; }
main:has(> .cta-band:last-child) { padding-bottom: 0; }

.page-header { padding-top: 36px; padding-bottom: 8px; }
.page-header .lead { font-size: 1.05rem; max-width: 70ch; }
.breadcrumb { font-size: 13px; margin-bottom: .75rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; padding: 0 .5rem; color: var(--c-muted); }

.grid { display: grid; gap: var(--gutter); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ---------- Home intro ---------- */

.home-intro { padding-top: 30px; text-align: center; }
.home-intro h1 { font-size: 1.6rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: .3em; }
.home-intro > p { max-width: 70ch; margin-inline: auto; text-wrap: balance; }

/* ---------- Carousels (after the original FlexSlider "Hipster" slideshow) ---------- */

.carousel { --slides-visible: 3; --slide-gap: var(--gutter); position: relative; text-align: left; }
.carousel--up-2 { --slides-visible: 2; }
.carousel--up-4 { --slides-visible: 4; }
.carousel__track {
  position: relative; display: grid; grid-auto-flow: column; gap: var(--slide-gap);
  grid-auto-columns: calc((100% - (var(--slides-visible) - 1) * var(--slide-gap)) / var(--slides-visible));
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
}
.carousel__track.is-animating { scroll-snap-type: none; }
.js .carousel__track { scrollbar-width: none; }
.js .carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { position: relative; scroll-snap-align: start; }

.carousel--banner { --slide-gap: 21px; margin-top: 24px; }
.carousel--banner .carousel__slide { aspect-ratio: 1; overflow: hidden; background: #333; }
.carousel__image { width: 100%; height: 100%; object-fit: cover; }
/* Button-only overlays sit at the bottom and leave the picture unshaded; text gets a gradient for legibility. */
.carousel__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding: 18px;
}
.carousel__overlay--shaded { justify-content: center; background: linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .15)); }
.carousel__title { color: #fff; font: 400 1.25rem/1.25 var(--f-display); text-transform: uppercase; margin-bottom: .8rem; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.carousel__text { color: #fff; font-size: 14px; margin-bottom: .8rem; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.carousel__overlay > :last-child { margin-bottom: 0; }
.pill {
  display: inline-block; padding: .35rem 1rem; border-radius: 999px; background: #fff;
  color: var(--c-accent-text); font: 700 14px var(--f-display); text-decoration: none;
  box-shadow: 0 0 2px rgba(50, 50, 50, .2);
}
.pill:hover { background: var(--c-accent-strong); color: #fff; }

/* Controls are created by main.js: round arrows at the ends, square paging dots in the middle. */
.carousel__controls { position: relative; display: flex; justify-content: center; align-items: center; min-height: 57px; padding: 0 44px; }
.carousel__controls[hidden] { display: none; }
.carousel__controls svg { pointer-events: none; }
.carousel__dots { display: flex; flex-wrap: wrap; justify-content: center; }
.carousel__arrow {
  position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center;
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
  background: #fff; color: var(--c-topbar); box-shadow: 0 0 3px #bbb; cursor: pointer;
}
.carousel__arrow--prev { left: 0; }
.carousel__arrow--next { right: 0; }
.carousel__arrow:hover { background: var(--c-accent-strong); color: #fff; }
.carousel__dot {
  display: grid; place-items: center; width: 29px; height: 29px; padding: 0; border: 0; background: none; cursor: pointer;
}
.carousel__dot::before { content: ""; width: 13px; height: 13px; background: var(--c-topbar); }
.carousel__dot:hover::before { background: var(--c-accent-text); }
.carousel__dot[aria-current="true"]::before { background: var(--c-accent); box-shadow: inset 0 0 0 1px var(--c-accent-text); }

/* Shown instead of a picture whose file is missing. */
.media-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #e6e6e6 0 12px, #ececec 12px 24px);
  color: var(--c-muted); font: 700 12px var(--f-display); text-transform: uppercase; letter-spacing: .08em;
}

/* ---------- Link tiles (404 page) ---------- */

.tile { display: flex; flex-direction: column; background: var(--c-surface); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; }
.tile__body { display: block; padding: 14px 16px 16px; }
.tile__title { display: block; color: var(--c-heading); font: 700 15px var(--f-display); text-transform: uppercase; margin-bottom: .3rem; }
.tile:hover .tile__title { color: var(--c-accent-text); }
.tile__text { display: block; font-size: 13.5px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; padding: .6rem 1.3rem; border: 0; border-radius: var(--radius);
  background: var(--c-accent-strong); color: #fff; font: 700 14px/1.2 var(--f-display); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--c-heading); color: #fff; }

/* ---------- Content blocks ---------- */

.cta-band { margin-top: 44px; background: var(--c-topbar); color: #e6e6e6; }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 28px; }
.cta-band h2 { color: #fff; margin: 0 0 .2rem; font-size: 1.2rem; }
.cta-band p { margin: 0; }
.cta-band a:not(.btn) { color: #fff; }

.prose { max-width: 76ch; }
.prose h2 { font-size: 1.15rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .3em; }
.prose > :first-child { margin-top: 0; }

.panel { background: var(--c-surface); padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow); }
.panel h2 { font-size: 1.05rem; text-transform: uppercase; }
.panel > :last-child { margin-bottom: 0; }
.contact-panel { max-width: 480px; }

.plain-list { list-style: none; padding: 0; }
.plain-list li { margin-bottom: 6px; }

.error-code { font: 400 5rem/1 var(--f-display); color: #8a8a8a; margin: 0 0 .2em; }

/* ---------- Footer ---------- */

.site-footer { background: var(--c-footer); padding-top: 44px; font-size: 13.5px; }
/* Columns share the width equally however many sections the footer has, and stack on narrow screens. */
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; }
.footer-title {
  color: var(--c-accent-text); font: 700 14px var(--f-display); text-transform: uppercase;
  padding-bottom: 12px; border-bottom: 1px solid #cfcfcf; margin-bottom: 14px;
}
.site-footer a { color: #555; text-decoration: none; }
.site-footer a:hover, .site-footer a[aria-current="page"] { color: var(--c-accent-text); text-decoration: underline; }
.footer-bottom { margin-top: 24px; padding: 18px 0 8px; border-top: 1px solid #dcdcdc; font-size: 12.5px; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .carousel { --slides-visible: 2; }
  .carousel--up-4 { --slides-visible: 3; }
  .logo img { width: 300px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  h1 { font-size: 1.55rem; }

  .topbar__list { justify-content: center; }
  .topbar__list li, .topbar__list li:last-child { padding: 0 8px; border-right: 0; }

  .site-header__inner { min-height: 72px; }
  /* As wide as fits between the menu and quote buttons (44px each, plus gutters). */
  .logo img { width: min(250px, 100vw - 2 * (var(--gutter) + 44px + 12px)); }
  .header-cta { font-size: 0; gap: 0; padding: 0; width: 44px; height: 44px; justify-content: center; border-radius: 50%; }
  .header-cta svg { width: 20px; height: 20px; }

  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; padding-block: 0; }
  .site-nav li + li { border-left: 0; border-top: 1px solid #e6e6e6; }
  .site-nav a { padding: 14px var(--gutter); }

  .carousel, .carousel--up-4 { --slides-visible: 1; }
  .carousel--banner .carousel__slide { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .topbar, .site-nav, .nav-toggle, .header-cta, .site-footer .footer-grid, .cta-band { display: none; }
  body { background: #fff; }
}
