/* ============================================================
   Auswood Timber Flooring — auswoodtimberflooring.com.au
   Single shared stylesheet. No frameworks, no build step.
   Palette drawn from the Auswood logo (teal arrow, herringbone
   timber, charcoal) and the established site branding.
   ============================================================ */

:root {
  --teal:        #009880;   /* logo emerald (sampled from wordmark) */
  --teal-bright: #00b890;   /* logo arrow — small accents */
  --teal-deep:   #06584b;   /* dark surfaces (footer, CTA) */
  --timber:      #b34012;   /* logo rust (sampled from wordmark) */
  --timber-lt:   #e09850;   /* logo timber highlight */
  --charcoal:    #201d1a;
  --charcoal-2:  #2b2723;
  --cream:       #faf7f2;
  --white:       #ffffff;
  --ink:         #2d2a26;
  --ink-soft:    #5c564e;
  --line:        #e7e0d6;

  --font-display: "Zilla Slab", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;

  --max-w: 1140px;
  --radius: 10px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal-deep); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--charcoal);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Herringbone divider — the signature motif, pure CSS */
.herringbone {
  height: 14px;
  background:
    repeating-linear-gradient(45deg,
      var(--timber-lt) 0 6px, transparent 6px 12px),
    repeating-linear-gradient(-45deg,
      var(--timber) 0 6px, transparent 6px 12px);
  opacity: 0.35;
}

/* ---------- Header: one horizontal row ---------- */
.masthead {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 8px rgba(32,29,26,0.10);
}
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  flex: none;
}
.brand-logo { width: 82px; height: 82px; }
.wordmark { height: 34px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 0.15rem; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius);
  white-space: nowrap;
}
.site-nav a:hover { color: var(--teal); background: rgba(0,152,128,0.08); }
.site-nav a[aria-current="page"] {
  color: var(--teal);
  box-shadow: inset 0 -3px 0 var(--teal-bright);
  border-radius: var(--radius) var(--radius) 0 0;
}
.site-nav .nav-call {
  background: transparent;
  color: var(--teal-bright);
  border: 2px solid var(--teal-bright);
  border-radius: var(--radius);
  margin-left: 0.6rem;
  padding: 0.55rem 1.2rem;
}
.site-nav .nav-call:hover { background: var(--teal-bright); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--line);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--charcoal);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  /* feathered edges: photo melts into the dark backdrop, no hard rectangle */
  -webkit-mask-image: radial-gradient(115% 100% at 50% 50%, #000 55%, transparent 98%);
  mask-image: radial-gradient(115% 100% at 50% 50%, #000 55%, transparent 98%);
}
.hero .wrap { position: relative; padding-top: 4rem; padding-bottom: 4rem; }
.hero h1 { color: var(--white); max-width: 16ch; text-wrap: balance; }
.hero p { max-width: 52ch; font-size: 1.15rem; color: #eee9e1; }

.btn {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  font-size: 1.05rem;
  cursor: pointer;
}
.btn:hover { background: var(--teal-deep); }
.btn.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
}
.btn.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-row { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section.alt { background: var(--white); }
.section-head { max-width: 62ch; margin-bottom: 2.25rem; }

/* Trust strip */
.trust-strip {
  background: var(--white);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 0;
}
.trust-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  justify-content: center;
  font-weight: 600;
  font-size: 0.98rem;
}
.trust-strip span { display: inline-flex; align-items: center; gap: 0.5rem; }
.trust-strip svg { width: 18px; height: 18px; fill: var(--teal); flex: none; }

/* Cards */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.section.alt .card { background: var(--cream); }
.card h3 { display: flex; align-items: center; gap: 0.6rem; }
.card h3::before {
  content: "";
  flex: none;
  width: 0.55em; height: 0.55em;
  border-top: 3px solid var(--teal);
  border-right: 3px solid var(--teal);
  transform: rotate(45deg);
}
.card p { margin: 0.4rem 0 0; color: var(--ink-soft); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-grid a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--charcoal);
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.gallery-grid a:hover img { transform: scale(1.04); opacity: 0.9; }

/* ---------- Quote / testimonial block ---------- */
.pullquote {
  border-left: 5px solid var(--teal);
  background: var(--white);
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  font-size: 1.15rem;
  font-family: var(--font-display);
  color: var(--charcoal);
  max-width: 60ch;
}
.pullquote footer {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--teal-deep);
  color: var(--white);
  text-align: center;
  padding: 3.5rem 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #cfe0d7; max-width: 55ch; margin: 0 auto 1.5rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1rem; max-width: 640px; }
.form-grid label { font-weight: 600; display: block; margin-bottom: 0.3rem; }
.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #c9c2b6;
  border-radius: var(--radius);
  font: inherit;
  background: var(--white);
}
.form-grid input:focus,
.form-grid textarea:focus {
  outline: 3px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}
.form-note { font-size: 0.85rem; color: var(--ink-soft); }
.form-error {
  background: #fbeae3;
  border: 1px solid var(--timber);
  color: #8a3210;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  margin-bottom: 1rem;
}
.form-success {
  background: #e5f4f1;
  border: 1px solid var(--teal);
  color: var(--teal-deep);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
}
/* Honeypot — hidden from humans, present for bots */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-deep);
  color: #cfe3df;
  padding: 0 0 2rem;
  font-size: 0.95rem;
}
.site-footer::before {
  content: "";
  display: block;
  height: 14px;
  margin-bottom: 3rem;
  background:
    repeating-linear-gradient(45deg,
      var(--timber-lt) 0 6px, transparent 6px 12px),
    repeating-linear-gradient(-45deg,
      var(--timber) 0 6px, transparent 6px 12px);
}
.site-footer a { color: var(--white); }
.footer-wordmark { height: 30px; width: auto; }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem 3rem;
}
.site-footer h3 { color: var(--white); font-size: 1.05rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }

/* ---------- Mobile call bar ---------- */
.mobile-call {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  background: var(--teal);
  color: var(--white);
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.9rem 1rem;
  text-decoration: none;
  box-shadow: 0 -3px 12px rgba(0,0,0,0.25);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .wordmark { height: 26px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    padding: 0.25rem 1rem 1rem;
    border-bottom: 3px solid var(--teal);
    box-shadow: 0 8px 16px rgba(32,29,26,0.15);
  }
  .site-nav.open { display: flex; }
  .site-nav a[aria-current="page"] { box-shadow: none; }
  .site-nav .nav-call { margin-left: 0; text-align: center; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand-logo { width: 52px; height: 52px; flex: none; }
  /* wordmark scales to whatever space is left — Menu button always fits */
  .wordmark { height: auto; width: 100%; max-width: 235px; }
  .nav-toggle { flex: none; }
}

@media (max-width: 680px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-call { display: block; }
  body { padding-bottom: 3.4rem; } /* clear the call bar */
  .section { padding: 2.75rem 0; }
}

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-grid img { transition: none; }
}
