/* ==========================================================================
   Eternum Carpentry & Construction - mockup styles
   Dark-mode default per brand. Mobile-first. No framework.
   ========================================================================== */

:root {
  --ink: #0A0A0A;
  --ink-soft: #161616;
  --ink-line: #2A2A2A;
  --paper: #FFFFFF;
  --bone: #F4F1EA;
  --bone-soft: #ECE7DC;
  --bone-line: #E0DACC;
  --mute: #6B6258;
  --mute-light: #A6A099;
  --accent: #C97A2C;
  --accent-soft: #E29B53;

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --container: 1180px;
  --gap-mobile: 1.5rem;
  --gap-tablet: 2.5rem;

  --radius: 4px;
  --radius-lg: 12px;
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.18);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: .5rem 1rem;
  background: var(--accent);
  color: var(--ink);
  z-index: 1000;
}
.skip-link:focus { top: 1rem; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap-mobile);
}
@media (min-width: 720px) {
  .container { padding: 0 var(--gap-tablet); }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow--light { color: var(--accent-soft); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.section__title {
  font-size: clamp(1.85rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.section__lede {
  font-size: 1.05rem;
  color: var(--mute);
  max-width: 60ch;
  margin: 0 auto;
}
.section--dark .section__lede { color: var(--mute-light); }

.section {
  padding: 5rem 0;
}
@media (min-width: 720px) {
  .section { padding: 7rem 0; }
}

.section--dark {
  background: var(--ink);
  color: var(--paper);
}
.section--dark .section__title { color: var(--paper); }

.section--bone {
  background: var(--bone);
}

.section__header {
  text-align: center;
  margin-bottom: 4rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.65rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.btn--primary {
  background: var(--accent);
  color: var(--ink);
}
.btn--primary:hover {
  background: var(--accent-soft);
  color: var(--ink);
  transform: translateY(-1px);
}
.btn--block { width: 100%; }

/* ----- Header ----- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.35s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--ink-line);
}
.site-header.is-hidden {
  transform: translateY(-100%);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 76px;
  max-width: none;
}
.brand { display: inline-flex; align-items: center; }
.brand__logo {
  height: 52px;
  width: auto;
}
.brand__logo--footer { height: 92px; }
@media (min-width: 720px) {
  .brand__logo { height: 60px; }
}

.nav { display: flex; align-items: center; }
.nav__list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}
.nav__list a {
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav__list a:hover { color: var(--accent); }

.nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}
.nav__chev {
  display: none;
  transition: transform 0.2s ease;
}
.nav__item--mega:hover .nav__chev,
.nav__item--mega.is-open .nav__chev { transform: rotate(180deg); }

/* Mega menu panel (desktop) */
.mega {
  display: none;
}
@media (min-width: 880px) {
  .nav__chev { display: inline-block; }
  .mega {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--ink-line);
    border-bottom: 1px solid var(--ink-line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    box-shadow: 0 28px 50px rgba(0, 0, 0, 0.45);
    z-index: 49;
  }
  .nav__item--mega:hover .mega,
  .nav__item--mega.is-open .mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
.mega__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.5fr;
  align-items: stretch;
  gap: 0;
  padding: 2.75rem var(--gap-tablet);
}
.mega__intro {
  padding-right: 3.5rem;
}
.mega__eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.mega__heading {
  font-size: 1.55rem;
  line-height: 1.12;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin: 0 0 1.1rem;
}
.mega__desc {
  font-size: 0.96rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 1.5rem;
  max-width: 42ch;
}
.mega__all {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
}
.mega__all svg { transition: transform 0.2s ease; }
.mega__all:hover { color: var(--accent); }
.mega__all:hover svg { transform: translateX(4px); }

.mega__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2.5rem;
  padding-left: 3.5rem;
  border-left: 1px solid var(--ink-line);
}
.mega__svc {
  display: block;
  padding-left: 1.5rem;
  border-left: 1px solid var(--ink-line);
  transition: border-color 0.2s ease;
}
.mega__svc:hover { border-color: var(--accent); }
.mega__svc h5 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0 0 0.5rem;
}
.mega__svc p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
}
.mega__svc:hover h5 { color: var(--accent); }

.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--paper);
  border-radius: 1px;
}

.header-cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: var(--accent);
  color: var(--ink);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.18s ease;
}
.header-cta:hover { background: var(--accent-soft); color: var(--ink); }

@media (min-width: 880px) {
  .nav__toggle { display: none; }
  .nav__list { display: flex; }
  .header-cta { display: inline-flex; }
}

/* Mobile nav drawer */
@media (max-width: 879px) {
  .nav__list.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--ink);
    padding: 1.5rem var(--gap-mobile);
    border-bottom: 1px solid var(--ink-line);
    gap: 1.25rem;
  }
}

/* ----- Hero ----- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.15) 35%, rgba(10,10,10,0.2) 65%, rgba(10,10,10,0.55) 100%),
    rgba(10,10,10,0.12);
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  padding-top: 8rem;
  padding-bottom: 4rem;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 1.25rem;
}
.hero__eyebrow svg { color: var(--accent-soft); }
.hero__title {
  font-size: clamp(2.8rem, 7vw, 5.75rem);
  margin: 0 0 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.98;
  color: var(--paper);
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero__lede {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  max-width: 60ch;
  margin: 0 auto 2.25rem;
  text-shadow: 0 1px 16px rgba(0,0,0,0.3);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Pill buttons (hero) */
.btn--pill {
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.98rem;
  font-weight: 500;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn--pill-primary {
  background: rgba(15,15,15,0.55);
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--paper);
  padding: 0.5rem 0.55rem 0.5rem 1.6rem;
  gap: 0.85rem;
}
.btn--pill-primary:hover {
  background: rgba(15,15,15,0.8);
  color: var(--paper);
  transform: translateY(-1px);
}
.btn__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  flex: none;
}
.btn--pill-ghost {
  background: rgba(15,15,15,0.4);
  border: 1px solid rgba(255,255,255,0.34);
  color: var(--paper);
  padding: 0.85rem 1.7rem;
}
.btn--pill-ghost:hover {
  background: rgba(255,255,255,0.14);
  color: var(--paper);
  transform: translateY(-1px);
}

/* ----- Services (bento) ----- */

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.tile {
  position: relative;
  display: flex;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 340px;
  background: var(--ink-soft);
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.tile:hover img { transform: scale(1.04); }
.tile__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.1) 38%, rgba(10,10,10,0.3) 68%, rgba(10,10,10,0.82) 100%);
}
.tile__body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.75rem;
  padding: 1.85rem;
}
.tile__text h3 {
  color: var(--paper);
  font-size: 1.9rem;
  margin: 0 0 0.55rem;
}
.tile__text p {
  color: rgba(255,255,255,0.85);
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 0;
  max-width: 44ch;
}
.tile__btn {
  align-self: flex-start;
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(255,255,255,0.6);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tile__btn:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

/* Solid (no-image) tile - used where we don't yet have a photo */
.tile--solid {
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  transition: border-color 0.25s ease;
}
.tile--solid:hover { border-color: rgba(255,255,255,0.25); }

@media (min-width: 800px) {
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, minmax(270px, 1fr));
  }
  .tile { min-height: 0; }
  .tile--carpentry { grid-area: 1 / 2 / 3 / 3; }
  .tile--concreting { grid-area: 1 / 1 / 2 / 2; }
  .tile--landscaping { grid-area: 2 / 1 / 3 / 2; }
}

/* ----- Gallery ----- */

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, minmax(240px, 1fr));
  }
  .gallery__item--tall { grid-row: 1 / span 2; }
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  margin: 0;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 100%);
  padding: 1.25rem 0.75rem 0.5rem;
  border-radius: 0 0 var(--radius) var(--radius);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.gallery__item:hover figcaption,
.gallery__item:focus-within figcaption {
  opacity: 1;
  transform: translateY(0);
}

.work__more {
  text-align: center;
  margin-top: 2.5rem;
  color: var(--mute);
  font-size: 0.95rem;
}
.work__more a {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* ----- About ----- */

.about__grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 880px) {
  .about__grid { grid-template-columns: 1.15fr 1fr; gap: 4.5rem; }
}
.about__copy .section__title { text-align: left; }
.about__copy p {
  color: rgba(255,255,255,0.82);
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
}
.about__points {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.about__points li {
  position: relative;
  padding-left: 1.5rem;
  color: rgba(255,255,255,0.88);
  font-size: 0.98rem;
}
.about__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}
.about__points strong { color: var(--paper); }

.about__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
}
.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----- Service Area ----- */

.area .section__header { margin-bottom: 2.5rem; }
.suburbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 800px;
}
.suburbs li {
  background: var(--paper);
  border: 1px solid var(--bone-line);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 500;
}
.area__note {
  text-align: center;
  margin-top: 2.5rem;
  color: var(--mute);
  font-size: 0.95rem;
}

/* ----- Contact ----- */

.contact__grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .contact__grid { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
}
.contact__copy .section__title { text-align: left; }
.contact__copy p {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
}
.contact__details {
  list-style: none;
  margin: 2rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--ink-line);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.contact__details li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
}
.contact__label {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mute-light);
  min-width: 90px;
}
.contact__value {
  color: var(--paper);
  font-size: 1rem;
  font-weight: 500;
}
a.contact__value:hover { color: var(--accent); }

.contact__form {
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
@media (min-width: 720px) {
  .contact__form { padding: 2.5rem; }
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-row {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 520px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
.field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute-light);
}
.field input,
.field select,
.field textarea {
  background: var(--ink);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  color: var(--paper);
  font-family: inherit;
  font-size: 0.98rem;
  transition: border-color 0.18s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 100px; }

.form__fineprint {
  text-align: center;
  font-size: 0.82rem;
  color: var(--mute-light);
  margin: 0;
}

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

.site-footer {
  background: #050505;
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
  border-top: 1px solid var(--ink-line);
}
.site-footer__inner {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .site-footer__inner { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
}
.site-footer__brand p {
  font-size: 0.95rem;
  max-width: 38ch;
  margin: 1rem 0 0;
}
.site-footer h5 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0 0 1rem;
}
.site-footer__col p,
.site-footer__col li {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}
.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer__col a:hover { color: var(--accent); }

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid var(--ink-line);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.site-footer__legal a:hover { color: var(--accent); }

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