/* ===========================================================
   acaciadesign.com.au — pixel clone
   All values taken from getComputedStyle on the live site.
   =========================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--c-secondary);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 24px;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }

/* -----------------------------------------------------------
   Entrance animations (Elementor equivalents)
   -------------------------------------------------------- */
.is-invisible { opacity: 0; }

@keyframes fadeIn      { from { opacity: 0 } to { opacity: 1 } }
@keyframes fadeInUp    { from { opacity: 0; transform: translate3d(0, 100%, 0) } to { opacity: 1; transform: none } }
@keyframes slideInRight{ from { visibility: visible; transform: translate3d(100%, 0, 0) } to { transform: translate3d(0, 0, 0) } }
@keyframes slideInDown { from { visibility: visible; transform: translate3d(0, -100%, 0) } to { transform: translate3d(0, 0, 0) } }

.animated { animation-duration: var(--dur-anim); animation-fill-mode: both; opacity: 1; }
.animated.animated-slow { animation-duration: var(--dur-anim-slow); }
.animated.fadeIn       { animation-name: fadeIn; }
.animated.fadeInUp     { animation-name: fadeInUp; }
.animated.slideInRight { animation-name: slideInRight; }
.animated.slideInDown  { animation-name: slideInDown; }

@media (prefers-reduced-motion: reduce) {
  .is-invisible { opacity: 1; }
  .animated { animation: none !important; }
}

/* -----------------------------------------------------------
   Shared type
   -------------------------------------------------------- */
.eyebrow {
  font-family: var(--f-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  line-height: 14px;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--c-accent);
}

.display__title {
  font-family: var(--f-display);
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: var(--lh-display);
  color: var(--c-primary);
}
.display__title--tight { line-height: 1; }
/* Elementor nudges the optical left edge of the big serif */
.display--pull  { margin-left: -4px; }
.display--pull5 { margin-left: -5px; }

.lede {
  font-size: var(--fs-lede);
  line-height: var(--lh-lede);
  color: var(--c-text);
  margin-bottom: 14.4px;
}

/* -----------------------------------------------------------
   Button (.elementor-button + .elementor-animation-float)
   -------------------------------------------------------- */
.btn {
  display: inline-block;
  font-size: var(--fs-btn);
  font-weight: 500;
  line-height: 15.6px;
  letter-spacing: var(--ls-btn);
  text-transform: uppercase;
  text-align: center;
  color: var(--c-accent);
  background: var(--c-secondary);
  transition: transform .3s ease-out;
  padding-right: 4px;          /* Elementor counts the trailing letter-space */
}
.btn:hover, .btn:focus, .btn:active { transform: translateY(-8px); color: var(--c-white); }
.btn__inner { display: flex; align-items: center; justify-content: center; gap: 14px; }
.btn__icon  { display: flex; align-items: center; }
.btn__icon svg { width: 8px; height: 12.5px; fill: currentColor; }
.btn-wrap { height: 24px; line-height: 0; padding-top: 4px; }

/* -----------------------------------------------------------
   Header (overlays the hero) + left sticky rail
   -------------------------------------------------------- */
.site-header { position: relative; z-index: 3; }
.site-header__bar {
  display: flex;
  justify-content: space-between;
  padding: 20px 70px 20px 20px;
  margin-bottom: -112px;
  min-height: 111px;
}
.site-header__left { display: flex; align-items: center; }
.site-header__logo { position: sticky; top: 20px; display: block; width: 65px; height: 65px; }
.site-header__logo img { width: 65px; height: 65px; }

.rail {
  position: fixed;
  top: 0; left: 50px;
  width: 50px; height: 100vh;
  padding: 10px;
  z-index: 4;
  pointer-events: none;
}
.rail__chevron {
  position: absolute;
  top: 669px; left: -15px;
  width: 26px; height: 26px;
  pointer-events: auto;
  transition: .3s;
}
.rail__chevron svg { width: 13px; height: 24px; margin: 1px auto; }

/* -----------------------------------------------------------
   1. Hero
   -------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 50px 50px var(--pad-left);
  overflow: hidden;
}
.hero__video { position: absolute; inset: 0; z-index: 0; transition: opacity 1s; }
.hero__video video { width: 100%; height: 100%; object-fit: cover; }

.hero__title { position: relative; z-index: 1; padding: 10px; flex: 0 1 auto; white-space: nowrap; }
.hero__title h1 {
  font-family: var(--f-sans);
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: var(--ls-hero);
  text-transform: uppercase;
  color: var(--c-secondary);
}

.hero__scroll { position: relative; z-index: 1; }
.hero__scroll a {
  display: flex; align-items: center;
  font-size: var(--fs-scroll);
  line-height: 16.9px;
  letter-spacing: var(--ls-scroll);
  color: var(--c-secondary);
  white-space: nowrap;
}
.hero__scroll .icon { display: flex; width: 17.5px; }
.hero__scroll .icon svg { width: 17.5px; height: 9.3px; }
.hero__scroll .label { padding-left: 5px; transition: color .3s; }

/* -----------------------------------------------------------
   2. About  /  3. Work  — shared section shell
   -------------------------------------------------------- */
.about, .work {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: var(--sec-top) 0 0 var(--pad-left);
}
.about { min-height: 577px; }
.work  { min-height: 800px; }

.about__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: var(--indent);
}
.about__body .lede { max-width: 615px; }

/* the two 1px rules */
.rule-wrap {
  padding: 0 180px 0 var(--indent);
  margin-top: 80px;
}
.rule { border-top: 1px solid var(--c-primary); height: 1px; }

/* Work heading row */
.work__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-right: var(--pad-left);
}
.btn-wrap--head { flex: 0 0 auto; }
.btn-wrap--belowgrid { display: none; }

/* -----------------------------------------------------------
   Projects grid (Macy.js 2-col masonry, rebuilt as flex columns)
   -------------------------------------------------------- */
.work__gridwrap { padding: 50px var(--pad-left) 0 var(--indent); }
.grid { display: flex; gap: 0; margin: -35px -10px; }
.grid__col { flex: 1 1 50%; min-width: 0; display: flex; flex-direction: column; row-gap: 5px; }
.grid__col:first-child { row-gap: 11px; }   /* matches Macy's placement */

.card {
  display: block;
  padding: 35px 10px 55px;   /* 35 + inner 20px bottom padding */
}
.card__media { display: block; }
.card__media img { width: 100%; height: auto; transition: 1s; }
.card__caption {
  display: block;
  margin-top: 20px;
  font-size: 20px;
  font-weight: 500;
  line-height: 20px;
  color: var(--c-primary);
}

/* -----------------------------------------------------------
   4. Contact
   -------------------------------------------------------- */
.contact {
  display: flex;
  align-items: center;
  min-height: 804px;
  padding: 0 100px 0 var(--pad-left);
}
.contact__copy { display: flex; flex-direction: column; gap: 20px; width: 680px; max-width: 100%; }
.contact__text { padding-left: var(--indent); }
.contact__text .lede { max-width: 466px; }
.contact__btn { padding-left: var(--indent); }
.contact__media { padding: 10px; margin-left: auto; }
.contact__media img { width: 455px; height: 500px; object-fit: cover; }

/* -----------------------------------------------------------
   5. Footer
   -------------------------------------------------------- */
.footer { background: var(--c-text); color: var(--c-secondary); }

.footer__top {
  display: flex;
  align-items: center;
  min-height: 350px;
  padding: 0 100px;
}
.footer__logo { width: 214px; padding: 10px; display: flex; justify-content: center; }
.footer__logo img { width: 134px; height: 134px; }

.footer__content { flex: 1; padding: 10px; }
.footer__top { gap: 20px; }
.footer__headings, .footer__lists { display: flex; }
.footer__headings { margin-bottom: 32px; }

.footer__col--nav     { flex: 0 0 232px; }
.footer__col--contact { flex: 0 0 246px; }
.footer__col--social  { flex: 0 0 257px; }
.footer__col--top     { flex: 1; display: flex; justify-content: flex-end; }

.footer__heading {
  font-size: var(--fs-eyebrow);
  line-height: 14px;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--c-secondary);
}
.footer__list li { line-height: 0; padding: 5px 0; }
.footer__list li:last-child { padding-bottom: 0; }
.footer__list a {
  display: inline-block;
  font-size: 14px;
  line-height: 19.6px;
  color: var(--c-secondary);
  transition: color .3s;
}
.footer__backtotop { display: flex; align-items: center; }
.footer__backtotop .icon svg { width: 16.9px; height: 9.2px; }
.footer__backtotop .label {
  padding-left: 5px;
  font-size: 14px;
  line-height: 19.6px;
  color: var(--c-secondary);
  transition: color .3s;
}

.footer__bottom {
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 0 101px 0 344px;
  gap: 20px;
  font-size: 12px;
  line-height: 12px;
  color: var(--c-secondary);
}
.footer__legal   { flex: 0 1 572px; }
.footer__privacy { flex: 0 0 206px; }
.footer__credit  { flex: 0 0 161px; text-align: right; }

/* ===========================================================
   Responsive — the live site collapses to one column at ≤1024px
   =========================================================== */
@media (max-width: 1024px) {
  :root { --fs-display: var(--fs-display-sm); }

  .site-header__bar { padding: 20px; margin-bottom: -86px; min-height: 86px; }

  .rail { display: none; }

  /* Hero: title bottom-left, SCROLL DOWN on its own line beneath it
     (matches the wrapped flex lines the original produces at ≤1024) */
  .hero {
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
  }
  .hero__title { padding: 0; white-space: normal; align-self: stretch; }
  .hero__title h1 { font-size: 14px; letter-spacing: 4.2px; line-height: 19.6px; }
  .hero__scroll { flex: 0 0 auto; }

  .about, .work { padding: var(--sec-top-mobile) var(--pad-mobile) 0; }
  .about { min-height: 0; }
  .work  { min-height: 0; padding-bottom: var(--sec-top-mobile); }

  .display--pull, .display--pull5 { margin-left: -3px; }
  .about__body { padding-left: 0; }
  .about__body .lede { max-width: none; }

  .rule-wrap { padding: 0; margin-top: 60px; }

  .work__head { padding-right: 0; flex-direction: column; align-items: flex-start; }
  .btn-wrap--head { display: none; }
  .btn-wrap--belowgrid { display: block; padding-top: 30px; }

  .work__gridwrap { padding: 30px 0 0; }
  .grid { flex-direction: column; margin: 0; }
  .grid__col { flex: 1 1 auto; }
  /* single-column source order: Raglan, Errard, Clyde, Lucas, Kelsall */
  .grid__col:first-child .card:nth-child(1) { order: 1; }
  .grid__col:first-child .card:nth-child(2) { order: 4; }
  .grid__col:last-child  .card:nth-child(1) { order: 2; }
  .grid__col:last-child  .card:nth-child(2) { order: 3; }
  .grid__col:last-child  .card:nth-child(3) { order: 5; }
  .grid { display: flex; }
  .grid__col { display: contents; }
  .card { padding: 15px 0; }

  .contact {
    flex-direction: column-reverse;
    align-items: stretch;
    min-height: 0;
    padding: 0 var(--pad-mobile) var(--sec-top-mobile);
  }
  .contact__copy { width: auto; }
  .contact__text, .contact__btn { padding-left: 0; }
  .contact__text .lede { max-width: none; }
  .contact__media { padding: 0 0 40px; margin: 0; }
  .contact__media img { width: 100%; height: 301px; }

  .footer__top { flex-direction: column; align-items: flex-start; padding: 50px 10px 0; min-height: 0; }
  .footer__logo { width: auto; padding: 10px 10px 30px; justify-content: flex-start; }
  .footer__content { width: 100%; }
  .footer__headings { display: none; }
  .footer__lists { flex-direction: column; gap: 0; }
  .footer__col--nav, .footer__col--contact, .footer__col--social { flex: 0 0 auto; }
  .footer__col--top { display: none; }
  .footer__lists .footer__col { padding-bottom: 24px; }
  .footer__lists .footer__col::before {
    content: attr(data-label);
    display: block;
    font-size: var(--fs-eyebrow);
    line-height: 14px;
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    padding-bottom: 12px;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 10px 30px;
    min-height: 0;
  }
  .footer__legal, .footer__privacy, .footer__credit { flex: 0 0 auto; text-align: left; }
}

@media (max-width: 767px) {
  .hero { gap: 154px; }   /* measured at 390×844 on the source */
}
