/* ============================================================
   Eastern Ranges Property Maintenance — shared styles
   Design language: Australian building-site signage.
   A "site ID board" cable-tied to a cyclone fence, job dockets,
   run sheets. Grounded in the tradie's own visual world.
   ============================================================ */

:root {
  /* --- Colour tokens: black / white / red, power-tool livery --- */
  --paper:        #FFFFFF; /* background */
  --paper-dark:   #F1F1F1; /* section alternation */
  --ink:          #141414; /* near-black, primary text */
  --ink-soft:     #55565A; /* secondary text */
  --bush:         #E4141F; /* red, primary brand colour */
  --bush-dark:    #141414; /* black, header/footer/hero */
  --timber:       #8A8A8A; /* mid grey accent */
  --steel:        #DADADA; /* light grey, borders/dividers */
  --amber:        #E4141F; /* red, CTA accent */
  --amber-dark:   #B10E17;
  --white:        #FFFFFF;

  /* --- Type --- */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body:    'Work Sans', 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --radius: 3px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0 0 0.4em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--bush);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--amber);
  display: inline-block;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
.btn-amber {
  background: var(--amber);
  color: var(--white);
}
.btn-amber:hover { background: var(--amber-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--paper);
  color: var(--paper);
}
.btn-outline:hover { background: rgba(251,250,246,0.1); transform: translateY(-1px); }

.btn-ink {
  background: var(--ink);
  color: var(--paper);
}
.btn-ink:hover { background: var(--bush-dark); transform: translateY(-1px); }

.btn-block { width: 100%; justify-content: center; }

/* ---------------- Header ---------------- */
.site-header {
  background: #000000;
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--amber);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 10px;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
  position: relative;
}
.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.logo-img {
  height: 150px;
  width: auto;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header-nav a.nav-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--steel);
  transition: color 0.15s ease;
}
.header-nav a.nav-link:hover { color: var(--amber); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-phone {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--white);
  white-space: nowrap;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--steel);
  color: var(--white);
  flex: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.social-link svg { width: 17px; height: 17px; }
.social-link:hover { border-color: var(--amber); color: var(--amber); }
.header-phone:hover { color: var(--amber); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--steel);
  border-radius: var(--radius);
  color: var(--white);
  padding: 8px 10px;
  cursor: pointer;
}

@media (max-width: 780px) {
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000000;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 3px solid var(--amber);
  }
  .header-nav.nav-open { display: flex; }
  .header-nav a.nav-link {
    width: 100%;
    padding: 14px 24px;
    border-top: 1px solid rgba(251,250,246,0.1);
  }
  .nav-toggle { display: inline-flex; }
  .header-phone span.phone-text { display: none; }
}

@media (max-width: 480px) {
  .footer-board { flex-direction: column; align-items: flex-start; }
  .footer-board .btn { width: 100%; justify-content: center; }

  .wrap { padding: 0 16px; }

  .header-actions { gap: 10px; }
  .header-actions .btn { padding: 10px 16px; font-size: 0.85rem; }
  .logo-img { height: 102px; }

  .hero { padding: 48px 0 56px; }
  .signboard { padding: 28px 22px; }
  .signboard::before, .signboard::after { display: none; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }

  .section { padding: 52px 0; }

  .quote-options { grid-template-columns: 1fr; }
  .option-card { padding: 22px 20px; }
  .checklist { padding: 22px 20px; }
}

/* ---------------- Hero / Sign board ---------------- */
.hero {
  position: relative;
  background: var(--bush-dark);
  overflow: hidden;
  padding: 72px 0 90px;
}
.fence-texture {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    repeating-linear-gradient(45deg, rgba(201,207,198,0.12) 0, rgba(201,207,198,0.12) 1px, transparent 1px, transparent 22px),
    repeating-linear-gradient(-45deg, rgba(201,207,198,0.12) 0, rgba(201,207,198,0.12) 1px, transparent 1px, transparent 22px);
  pointer-events: none;
}

.signboard {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 44px 40px;
  max-width: 760px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.signboard::before,
.signboard::after,
.signboard .tie-br,
.signboard .tie-bl {
  content: '';
  position: absolute;
  width: 26px;
  height: 12px;
  background: var(--bush);
  border-radius: 2px;
}
.signboard::before { top: -8px; left: 26px; transform: rotate(-4deg); }
.signboard::after { top: -8px; right: 26px; transform: rotate(4deg); }
.signboard .tie-br, .signboard .tie-bl { display: none; }

.hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  max-width: 14ch;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.hero-note {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

/* ---------------- Sections ---------------- */
.section { padding: 76px 0; }
.section-alt { background: var(--paper-dark); }
.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head p { color: var(--ink-soft); }
.section-head.left { margin-left: 0; text-align: left; }

/* ---------------- Service tags/dockets ---------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.services-pricing-link {
  text-align: center;
  margin: 36px 0 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.services-pricing-link a {
  color: var(--bush);
  text-decoration: none;
  font-weight: 600;
}
.services-pricing-link a:hover { text-decoration: underline; }
.tag-card {
  background: var(--white);
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tag-card::before {
  content: '';
  position: absolute;
  top: 18px;
  left: -1px;
  width: 4px;
  height: 34px;
  background: var(--amber);
  border-radius: 0 2px 2px 0;
}
.tag-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(35,40,31,0.1);
}
.tag-icon {
  width: 36px;
  height: 36px;
  color: var(--bush);
  margin-bottom: 14px;
}
.tag-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.35em;
}
.tag-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------------- Why us ---------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.why-item .why-mark {
  font-family: var(--font-mono);
  color: var(--amber-dark);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.why-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3em;
}
.why-item p { color: var(--ink-soft); margin: 0; }

/* ---------------- Service area / run sheet ---------------- */
.runsheet {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
}
.runsheet-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  border-bottom: 1px solid rgba(251,250,246,0.14);
}
.runsheet-row:last-child { border-bottom: none; }
.runsheet-row .rs-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 20px 18px;
  border-right: 1px solid rgba(251,250,246,0.14);
}
.runsheet-row .rs-body {
  padding: 20px 22px;
}
.runsheet-row .rs-body h3 {
  color: var(--paper);
  font-size: 1.05rem;
  margin-bottom: 0.25em;
}
.runsheet-row .rs-body p {
  color: var(--steel);
  margin: 0;
  font-size: 0.92rem;
}
@media (max-width: 560px) {
  .runsheet-row { grid-template-columns: 1fr; }
  .runsheet-row .rs-label { border-right: none; border-bottom: 1px solid rgba(251,250,246,0.14); padding-bottom: 8px; }
}

/* ---------------- Gallery placeholders ---------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.photo-slot {
  background: var(--white);
  border: 1px dashed var(--steel);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink-soft);
  transform: rotate(var(--tilt, 0deg));
  position: relative;
}
.photo-slot span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.photo-slot svg { width: 30px; height: 30px; opacity: 0.5; }
.gallery-grid .photo-slot:nth-child(1) { --tilt: -1.5deg; }
.gallery-grid .photo-slot:nth-child(2) { --tilt: 1deg; }
.gallery-grid .photo-slot:nth-child(3) { --tilt: -0.8deg; }
.gallery-grid .photo-slot:nth-child(4) { --tilt: 1.6deg; }

/* ---------------- Pricing page ---------------- */
.price-grid {
  column-count: 2;
  column-gap: 24px;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  padding: 26px 26px 10px;
  break-inside: avoid;
  margin-bottom: 24px;
  position: relative;
}
.price-card::before {
  content: '';
  position: absolute;
  top: 18px;
  left: -1px;
  width: 4px;
  height: 34px;
  background: var(--amber);
  border-radius: 0 2px 2px 0;
}
.price-card h3 {
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--steel);
  font-size: 0.92rem;
}
.price-row:last-child { border-bottom: none; }
.price-row .item { color: var(--ink-soft); }
.price-row .amount {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--bush);
  white-space: nowrap;
  text-align: right;
}
.price-note {
  max-width: 760px;
  margin: 20px auto 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
}
.price-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}
@media (max-width: 780px) {
  .price-grid { column-count: 1; }
}

/* ---------------- Quote page: option cards ---------------- */
.quote-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 20px;
}
.option-card {
  background: var(--white);
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.option-card .opt-icon {
  width: 34px;
  height: 34px;
  color: var(--bush);
}
.option-card h3 { font-size: 1.15rem; margin-bottom: 0; }
.option-card p { color: var(--ink-soft); margin: 0; }
.option-card .opt-contact {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--ink);
}
.checklist {
  background: var(--paper-dark);
  border-radius: var(--radius);
  padding: 30px 32px;
}
.checklist h3 { margin-bottom: 0.6em; }
.checklist ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-soft);
}
.checklist li svg {
  width: 18px;
  height: 18px;
  color: var(--bush);
  flex: none;
  margin-top: 3px;
}
.checklist li strong { color: var(--ink); }

/* ---------------- Footer / sign board repeat ---------------- */
.site-footer {
  background: var(--bush-dark);
  color: var(--paper);
  padding: 60px 0 34px;
  position: relative;
}
.footer-board {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 34px 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.3);
  margin-bottom: 34px;
}
.footer-board h2 {
  font-size: 1.3rem;
  margin: 0 0 6px;
}
.footer-board p { margin: 0; color: var(--ink-soft); }
.footer-contacts {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: var(--ink-soft);
}
.footer-contacts a { text-decoration: none; color: var(--ink); }
.footer-contacts a:hover { color: var(--bush); }
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--steel);
  text-transform: uppercase;
}
.footer-bottom a { text-decoration: none; color: var(--steel); }
.footer-bottom a:hover { color: var(--amber); }

/* ---------------- Utility ---------------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
