/* =========================================================
   APEC Construction — Redesign Concept Stylesheet
   Font: Jost
   ========================================================= */

:root {
  --black: #0a0a0a;
  --near-black: #131313;
  --charcoal: #1c1c1a;
  --grey: #9a9a96;
  --muted: #8c8c88;
  --light-grey: #f2f1ef;
  --off-white: #0a0a0a;
  --white: #f6f5f2;
  --line: #2a2a27;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Jost', 'Century Gothic', Futura, Arial, sans-serif;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-weight: 300;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-weight: 300;
  letter-spacing: 0.02em;
  margin: 0 0 20px;
  color: var(--white);
}

h1 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.25; }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); letter-spacing: 0.03em; text-transform: uppercase; }
h3 { font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; }

p { color: var(--muted); margin: 0 0 16px; font-size: 1rem; font-weight: 300; }

.eyebrow {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.btn {
  display: inline-block;
  padding: 16px 38px;
  border: 1px solid var(--white);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-size: 0.68rem;
  transition: all 0.25s ease;
  color: var(--white);
}
.btn:hover { background: var(--white); color: var(--black); }

.btn.light { border-color: var(--white); color: var(--white); }
.btn.light:hover { background: var(--white); color: var(--black); }

.btn.filled { background: var(--white); color: var(--black); border-color: var(--white); }
.btn.filled:hover { background: transparent; color: var(--white); }

/* ---------- Header ---------- */
header.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
}

.hero { padding-top: 0; }

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  width: 100%;
  margin: 0;
}

.header-brand {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--white);
}

.header-tagline {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(6,6,6,0.35) 0%, rgba(6,6,6,0.3) 35%, rgba(8,8,8,0.7) 75%, rgba(10,10,10,0.96) 92%, var(--black) 100%),
    url('../img/vaucluse-copper-roof.jpg') center 42%/cover no-repeat;
  padding: 0 32px 100px;
}
.ap-shape {
  position: absolute;
  bottom: 0;
  left: calc(52% - 7.6px);
  height: 78%;
  width: auto;
  opacity: 0.16;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 65%, transparent 98%);
  mask-image: linear-gradient(to bottom, black 0%, black 65%, transparent 98%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero-content h1 { color: var(--white); margin-bottom: 24px; }
.hero-content p.lead {
  color: #c4c4c0;
  max-width: 520px;
  margin: 0 0 40px;
  font-size: 1rem;
}

/* ---------- Sections ---------- */
section { padding: 110px 0; }
section.tight { padding: 80px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 60px; }
.section-head p { margin: 0; }

.alt { background: var(--near-black); }

/* ---------- Slideshow ---------- */
.slideshow {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  aspect-ratio: 4/3;
  min-height: 420px;
  background: var(--charcoal);
  overflow: hidden;
}
.slideshow .slides { position: relative; width: 100%; height: 100%; }
.slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.slideshow .slide.active { opacity: 1; }
.slideshow .slide img { width: 100%; height: 100%; object-fit: cover; }
.slideshow .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 26px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: var(--white);
  border: none;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.slide-arrow:hover { background: rgba(0,0,0,0.65); }
.slide-arrow.prev { left: 14px; }
.slide-arrow.next { right: 14px; }
.slide-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.slide-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--white);
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.6;
}
.slide-dots .dot.active { background: var(--white); opacity: 1; }

@media (max-width: 560px) {
  .slideshow { aspect-ratio: 3/4; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}
.contact-info dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 22px;
  margin: 0 0 30px;
}
.contact-info dt {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-info dd { margin: 0; color: var(--white); font-weight: 300; }

form.enquiry { display: grid; gap: 30px; }
form.enquiry label {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
form.enquiry input,
form.enquiry select,
form.enquiry textarea {
  width: 100%;
  padding: 10px 2px 12px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 300;
  color: var(--white);
}
form.enquiry select option { background: var(--black); color: var(--white); }
form.enquiry input:focus,
form.enquiry select:focus,
form.enquiry textarea:focus {
  outline: none;
  border-bottom-color: var(--white);
}
form.enquiry textarea { resize: vertical; min-height: 100px; }

/* ---------- Social ---------- */
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-top: 22px;
  border: 1px solid #3a3a37;
  border-radius: 50%;
  color: var(--white);
  transition: all 0.25s ease;
}
.social-btn:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--black);
  color: #a8a8a4;
  padding: 80px 0 30px;
  border-top: 1px solid var(--line);
}
.footer-brand {
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line);
}
.footer-top h4 {
  color: var(--white);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  margin-bottom: 18px;
}
.footer-top ul { list-style: none; margin: 0; padding: 0; }
.footer-top li { margin-bottom: 10px; font-size: 0.9rem; color: #a8a8a4; }
.footer-top li a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: #6c6c68;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .header-tagline { display: none; }
}

@media (max-width: 560px) {
  .footer-bottom { flex-direction: column; gap: 10px; }
}
