/* ==========================================================================
   Figure 8 Capital — figure8capital.com.au recreation
   Palette + type sourced from the live site's computed styles.
   ========================================================================== */

:root {
  --charcoal: #2c3234;      /* header / footer / dark sections */
  --charcoal-mark: #404648; /* infinity mark on charcoal bg */
  --light-grey: #e7e8eb;    /* light section backgrounds */
  --black: #000000;
  --white: #ffffff;
  --text-dark: #2c3235;

  --font-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", Helvetica, Arial, "Lucida Grande", sans-serif;
  --font-form: "Didact Gothic", Helvetica, Arial, "Lucida Grande", sans-serif;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Buttons (Divi pill style) ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.7;
  padding: 5px 24px;
  border-radius: 90px;
  border: 1px solid;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

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

.btn--dark {
  color: var(--text-dark);
  border-color: var(--charcoal);
}

.btn--dark:hover {
  background: var(--charcoal);
  color: var(--white);
}

.btn--grey {
  color: var(--charcoal);
  border-color: var(--charcoal);
  background: var(--light-grey);
}

.btn--grey:hover {
  background: var(--charcoal);
  color: var(--white);
}

/* ---------- Layout helpers ---------- */

.container {
  width: 100%;
  max-width: 1088px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--charcoal);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__logo img {
  width: 216px;
  height: auto;
}

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

.hero {
  position: relative;
  min-height: 80vh;
  background-image: url("../assets/hero-ocean.png");
  background-size: cover;
  background-position: center;
  background-color: var(--charcoal);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 96px 64px;
  color: var(--white);
}

.hero__eyebrow {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: 50px;
  font-weight: 500;
  line-height: 1.15;
  max-width: 720px;
}

/* ---------- Generic section styles ---------- */

.section {
  padding: 110px 24px;
}

.section h2 {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.section p {
  font-size: 16px;
  line-height: 1.49;
  margin-bottom: 20px;
}

/* Section 1 — Property Development (light grey, centered text) */

.section--property {
  background: var(--light-grey);
  text-align: center;
}

.section--property .section__inner {
  max-width: 590px;
  margin: 0 auto;
}

/* Section 2 — Regulatory Structuring (charcoal + infinity mark bg, centered text) */

.section--regulatory {
  background-image: url("../assets/bg-mark-charcoal.png");
  background-size: cover;
  background-position: center right;
  background-color: var(--charcoal);
  padding-top: 150px;
  padding-bottom: 150px;
  text-align: center;
}

.section--regulatory .section__inner {
  max-width: 762px;
  margin: 0 auto;
}

.section--regulatory h2,
.section--regulatory p {
  color: var(--white);
}

/* Section 3 — Finance and Capital Raising (white, two columns) */

.section--finance {
  background: var(--white);
}

.section--finance .section__inner {
  max-width: 1088px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Section 4 — Supporting Compliant Growth (black, deep, centered) */

.section--growth {
  background-image: url("../assets/bg-arcs-black.png");
  background-size: cover;
  background-position: center;
  background-color: var(--black);
  padding-top: 193px;
  padding-bottom: 193px;
  text-align: center;
}

.section--growth h2 {
  color: var(--white);
}

.section--growth p {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.55;
  color: var(--white);
  max-width: 760px;
  margin: 0 auto;
}

/* Section 5 — Contact (light grey, two columns) */

.section--contact {
  background: var(--light-grey);
}

.section--contact .section__inner {
  max-width: 1088px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact__heading {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--black);
  margin-bottom: 8px;
}

.section p.contact__subheading {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 20px;
}

.contact__intro {
  max-width: 460px;
}

.contact__blurb {
  display: flex;
  gap: 20px;
  margin-top: 36px;
  align-items: flex-start;
}

.contact__blurb-icon {
  flex: 0 0 auto;
  width: 43px;
  height: 43px;
  border-radius: 90px;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-grey);
}

.contact__blurb-icon svg {
  width: 23px;
  height: 23px;
}

.contact__blurb h4 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 8px;
}

.contact__blurb p {
  margin-bottom: 4px;
}

.contact__blurb .contact__note {
  font-size: 13px;
  margin-top: 10px;
}

.contact__blurb a {
  color: var(--black);
  text-decoration: none;
}

.contact__blurb a:hover {
  text-decoration: underline;
}

/* ---------- Contact form (Divi pill style — transparent bg, black border) ---------- */

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-form);
  font-size: 16px;
  color: var(--black);
  background: transparent;
  border: 1px solid var(--black);
  padding: 16px;
  border-radius: 29px;
  height: 55px;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--black);
  opacity: 1;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--charcoal);
  box-shadow: 0 0 0 1px var(--charcoal);
}

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  grid-column: 1 / -1;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M0 0l6 7 6-7z' fill='%23000000'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  color: var(--black);
}

.contact-form textarea {
  grid-column: 1 / -1;
  min-height: 150px;
  height: 150px;
  resize: vertical;
  border-radius: 29px;
}

.contact-form__captcha {
  grid-column: 1 / -1;
}

.contact-form__submit-row {
  grid-column: 1 / -1;
  text-align: right;
}

.contact-form__submit {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.65px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black);
  border: 1px solid var(--black);
  border-radius: 29px;
  padding: 8px 26px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.contact-form__submit:hover {
  background: transparent;
  color: var(--black);
}

.contact-form__submit:disabled {
  opacity: 0.5;
  cursor: default;
}

.contact-form__success {
  grid-column: 1 / -1;
  font-weight: 500;
  color: var(--text-dark);
  display: none;
}

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

.site-footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 80px 24px 40px;
}

.site-footer__inner {
  max-width: 1088px;
  margin: 0 auto;
}

.site-footer__logo img {
  width: 240px;
  margin-bottom: 48px;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.site-footer__col h5 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.site-footer__col p,
.site-footer__col a {
  font-size: 14px;
  line-height: 1.7;
  color: var(--white);
  text-decoration: none;
}

.site-footer__col a:hover {
  text-decoration: underline;
}

.site-footer__legal {
  display: grid;
  grid-template-columns: 248px 1fr;
  gap: 40px;
  padding-top: 48px;
}

.site-footer__abn {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--white);
}

.site-footer__legal h5 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.site-footer__legal p {
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}

.site-footer__legal a {
  color: var(--white);
}

/* ---------- Disclaimer popup ---------- */

.disclaimer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 22, 23, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.disclaimer-overlay[hidden] {
  display: none;
}

.disclaimer-card {
  background: var(--light-grey);
  max-width: 576px;
  width: 100%;
  max-height: calc(100svh - 3rem);
  overflow-y: auto;
  padding: 40px 44px;
  text-align: center;
}

.disclaimer-card__mark {
  width: 48px;
  margin: 0 auto 24px;
}

.disclaimer-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.disclaimer-card .btn {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-dark);
  border-color: var(--charcoal);
  background: var(--white);
}

.disclaimer-card .btn:hover {
  background: var(--charcoal);
  color: var(--white);
}

body.disclaimer-open {
  overflow: hidden;
}

/* ---------- Privacy policy page ---------- */

.privacy-page {
  background: var(--white);
  padding: 80px 24px;
}

.privacy-page__inner {
  max-width: 860px;
  margin: 0 auto;
}

.privacy-page h1 {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 32px;
}

.privacy-page h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--text-dark);
  margin: 32px 0 12px;
}

.privacy-page p,
.privacy-page li {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.privacy-page ul {
  padding-left: 24px;
  margin-bottom: 12px;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero__content {
    padding: 80px 32px;
  }

  .section--finance .section__inner,
  .section--contact .section__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .site-footer__cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__legal {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero__eyebrow {
    font-size: 26px;
    margin-bottom: 16px;
  }

  .hero__title {
    font-size: 34px;
    line-height: 1.1;
  }

  .section {
    padding: 72px 24px;
  }

  .section--regulatory,
  .section--growth {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .section h2 {
    font-size: 30px;
  }

  .site-header__logo img {
    width: 168px;
  }

  .site-header__inner {
    padding: 12px 20px;
  }

  .btn {
    font-size: 14px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .site-footer__cols {
    grid-template-columns: 1fr;
  }

  .disclaimer-card {
    padding: 32px 24px;
  }
}
