/*
  Moreton Bay Studios
  -------------------------------------------------------
  Most visual changes start in the :root block below.
  The four colours are taken from the sunset banner:
  charcoal background, warm paper text, amber, and gold.

  The page is written mobile-first. Rules for wider screens
  are gathered at the bottom under "WIDER SCREENS".

  Fonts: Fraunces and Outfit, SIL Open Font License.
  The licence files sit next to the font files in /fonts.
*/

/* 1. Colours, type, and a few shared sizes
   ----------------------------------------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
}

:root {
  --bg: #110e0c;
  --raise: #1b1714;
  --text: #f6f1ea;
  --soft: #d9cdc0;
  --muted: #b7aa9b;
  --amber: #e58934;
  --amber-hot: #f0a04a;
  --gold: #f2c48a;
  --ink: #1a120c;
  --line: rgba(246, 241, 234, 0.14);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --header: 4.5rem;
  --wrap: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 0.75rem);
  scrollbar-color: #3a312b var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3,
.brand,
.footer-name {
  font-family: var(--serif);
  font-weight: 560;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  margin-bottom: 0.9rem;
  text-wrap: balance;
}

h3 {
  font-size: 1.65rem;
  margin-bottom: 0.65rem;
}

p {
  color: var(--soft);
}

a {
  color: var(--gold);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--amber-hot);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::selection {
  background: var(--amber);
  color: var(--ink);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.skip {
  position: fixed;
  left: 1rem;
  top: 0.6rem;
  z-index: 80;
  transform: translateY(-160%);
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  font-weight: 560;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
}

.skip:focus {
  transform: none;
}

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

.kicker,
.eyebrow,
.subhead,
.soon-label,
.offer-index {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.kicker {
  font-size: 0.78rem;
  margin: 0 0 0.85rem;
}

.subhead {
  font-size: 0.78rem;
  margin: 2.75rem 0 0.9rem;
}

.lead {
  max-width: 40rem;
  margin-bottom: 2.5rem;
  font-size: 1.125rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: var(--amber);
  color: var(--ink);
  text-decoration: none;
  font-weight: 560;
  font-size: 1rem;
  line-height: 1;
  padding: 0.95rem 1.3rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  background: var(--amber-hot);
  color: var(--ink);
}

.btn svg {
  display: block;
  flex: none;
  transition: transform 0.2s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

/* 3. Header and navigation
   ------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: var(--header);
  background: rgba(17, 14, 12, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(17, 14, 12, 0.96);
  border-bottom-color: var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 1.15rem;
  line-height: 1.1;
}

.brand:hover {
  color: var(--gold);
}

.nav {
  display: flex;
  align-items: center;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  background: none;
  border: 0;
  color: var(--text);
  padding: 0;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }

.site-header.is-open .nav-toggle-bars { background: transparent; }

.site-header.is-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.is-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0.35rem 1.25rem 1rem;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #161310;
  border-bottom: 1px solid var(--line);
}

.site-header.is-open .nav-menu {
  display: flex;
  flex-direction: column;
}

.nav-menu a {
  display: block;
  padding: 0.9rem 0;
  color: var(--text);
  text-decoration: none;
  font-size: 1.125rem;
  border-bottom: 1px solid var(--line);
}

.nav-menu li:last-child a {
  border-bottom: 0;
}

.nav-menu a:hover {
  color: var(--gold);
}

@media (max-width: 859px) {
  body.nav-open { overflow: hidden; }
}

/* 4. Hero
   ------
   TUNE THE PHOTO: object-position moves the crop.
   The shade is the dark gradient that keeps the words readable.
   If you swap images/hero.jpg, adjust both until the title sits
   on a dark part of the picture and the subject stays visible.
*/
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #1a100c;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 40%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 6, 5, 0.28) 0%,
    rgba(8, 6, 5, 0.05) 30%,
    rgba(8, 6, 5, 0.08) 52%,
    rgba(8, 6, 5, 0.62) 74%,
    rgba(8, 6, 5, 0.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header) + 1.5rem);
  padding-bottom: clamp(2.75rem, 7vh, 4.75rem);
}

.eyebrow {
  font-size: 0.78rem;
  margin: 0 0 0.9rem;
}

.hero h1 {
  margin-bottom: 0.9rem;
  font-size: clamp(2.7rem, 6vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 0.96;
  color: var(--text);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.45);
}

.hero .lede {
  max-width: 28rem;
  margin-bottom: 1.6rem;
  font-size: 1.15rem;
  color: var(--text);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

/* 5. Sections
   ---------- */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  border-top: 1px solid var(--line);
}

.offers {
  display: grid;
  gap: 0;
}

.offer + .offer {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.offer-index {
  font-size: 0.78rem;
  margin: 0 0 0.7rem;
}

.offer p:last-child {
  margin-bottom: 0;
  max-width: 38rem;
}

.site-points,
.fits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}

.site-points {
  margin-top: 0.25rem;
  grid-template-columns: 1fr;
}

.site-points li,
.fits li {
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--text);
}

.site-points span,
.fits span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}

.soon {
  margin-top: 2.75rem;
  max-width: 40rem;
  padding: 0.15rem 0 0.15rem 1.1rem;
  border-left: 2px solid var(--amber);
}

.soon-label {
  font-size: 0.75rem;
  margin: 0 0 0.4rem;
}

.soon p:last-child {
  margin: 0;
}

.about-grid,
.contact-grid {
  display: grid;
  gap: 2.25rem;
}

.about-grid p:last-child {
  margin-bottom: 0;
}

.facts {
  margin: 0;
  padding: 0.25rem 1.15rem;
  background: var(--raise);
  border-radius: 16px;
  border: 1px solid var(--line);
}

.facts > div {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.facts > div:last-child {
  border-bottom: 0;
}

.facts dt {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.facts dd {
  margin: 0;
  color: var(--text);
}

/* Placeholder tiles. Colours are sampled from images/hero.jpg.
   They are not photographs. See the comment in index.html. */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

.shot {
  margin: 0;
}

.frame {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(246, 241, 234, 0.16);
}

.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.38) 100%);
  pointer-events: none;
}

.frame--1 {
  background: linear-gradient(180deg, #4a160e 0%, #c44712 24%, #f0a24a 48%, #8a3014 64%, #1a0c0a 100%);
}

.frame--2 {
  background:
    radial-gradient(70% 55% at 72% 42%, rgba(242, 196, 138, 0.55), transparent 62%),
    linear-gradient(180deg, #2a100c 0%, #8d3012 46%, #e58934 58%, #2a120e 76%, #100c0a 100%);
}

.frame--3 {
  background: linear-gradient(180deg, #16110f 0%, #3a160f 30%, #e39a4a 48%, #7a3014 64%, #140e0c 100%);
}

.frame--4 {
  background: linear-gradient(200deg, #7a2a12 0%, #d9641d 34%, #3a140e 62%, #100c0a 100%);
}

.frame--5 {
  background:
    radial-gradient(90% 70% at 20% 80%, rgba(229, 137, 52, 0.85), transparent 58%),
    linear-gradient(180deg, #24110e 0%, #4a1c12 42%, #14161c 100%);
}

.frame--6 {
  background: linear-gradient(180deg, #c2410c 0%, #e8a05a 16%, #7a2c12 42%, #2a100c 70%, #0e0c0a 100%);
}

.frame-tag {
  position: absolute;
  z-index: 1;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.28rem 0.5rem;
  background: rgba(12, 9, 8, 0.72);
  border: 1px solid rgba(246, 241, 234, 0.28);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shot figcaption {
  margin-top: 0.6rem;
  color: var(--soft);
  font-size: 0.98rem;
}

.email-line {
  margin: 0 0 1.35rem;
}

.email-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(1rem, 3.4vw, 1.3rem);
  border-bottom: 1px solid var(--amber);
  overflow-wrap: anywhere;
}

.email-link:hover {
  color: var(--gold);
}

.service-area {
  margin: 0;
  color: var(--text);
}

.service-area span {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.enquiry {
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem 1.15rem 1.3rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.95rem;
}

.field label {
  font-size: 0.92rem;
  color: var(--soft);
}

.field input,
.field textarea {
  font: inherit;
  font-size: 1.0625rem;
  color: var(--text);
  background: #100e0c;
  border: 1px solid rgba(246, 241, 234, 0.2);
  border-radius: 10px;
  padding: 0.8rem 0.85rem;
  width: 100%;
  caret-color: var(--gold);
}

.field textarea {
  resize: vertical;
  min-height: 9rem;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: transparent;
}

.field input:-webkit-autofill,
.field textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 1000px #100e0c inset;
  caret-color: var(--gold);
}

.form-hint,
.form-note,
.form-status {
  font-size: 0.92rem;
  color: var(--muted);
}

.form-hint {
  margin: 0.2rem 0 0.9rem;
}

.enquiry .btn {
  width: 100%;
}

.form-note {
  margin: 0.9rem 0 0;
}

/* Honeypot for Netlify Forms. Keep this field in the HTML, off screen.
   Do not use display:none or a hidden attribute. Bots fill it; people do not. */
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.thanks {
  padding-top: calc(var(--header) + clamp(3rem, 8vw, 5.5rem));
  min-height: calc(100vh - 8rem);
  min-height: calc(100svh - 8rem);
}

.thanks h1 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  margin-bottom: 0.9rem;
  text-wrap: balance;
}

.form-status {
  margin: 0.7rem 0 0;
  color: var(--gold);
  min-height: 1.2em;
}

/* 6. Footer
   -------- */
.site-footer {
  padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.footer-name {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  color: var(--text);
}

.footer-abn,
.footer-year {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-year {
  margin-top: 0.85rem;
}

/* 7. Wider screens
   --------------- */
@media (min-width: 640px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .site-points {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 800px) {
  .wrap {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .offers {
    grid-template-columns: 1fr 1fr;
    gap: 0 3rem;
  }

  .offer + .offer {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    padding-left: 3rem;
    border-left: 1px solid var(--line);
  }

  .fits {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 980px) {
  .site-points {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }

  .site-header .nav-menu,
  .site-header.is-open .nav-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.6rem;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
  }

  .nav-menu a,
  .nav-menu li:last-child a {
    display: inline;
    padding: 0.25rem 0;
    border: 0;
    font-size: 1rem;
  }

  .about-grid {
    grid-template-columns: 1.35fr 0.85fr;
    gap: 4rem;
    align-items: start;
  }

  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: start;
  }
}

@media (min-width: 980px) {
  .gallery {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem 1.15rem;
  }
}

@media (min-width: 860px) {
  .footer-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .footer-year {
    margin-top: 0;
  }
}

@media (max-height: 560px) {
  .hero {
    min-height: 36rem;
  }
}

/* 8. Reduced motion
   ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .btn:hover svg { transform: none; }
}
