/* Multigate Capital Investments Pty Ltd - custom styles (plain CSS, works alongside the Tailwind CDN) */

:root {
  --navy: #1B3A5C;
  --gold: #B8924A;
  --gold-dark: #7E6029;
  --gold-light: #D9BE86;
  --ink: #0F1E2E;
  --cream: #F6F4EF;
  --stone-text: #4A5562;
}

.scroll-target { scroll-margin-top: 5.5rem; }
#main:focus,
.scroll-target:focus { outline: none; }

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .75rem 1rem;
  border-radius: .5rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 1rem; }

/* Focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: .375rem;
}

/* Navigation */
.nav-link {
  position: relative;
  padding: .25rem 0;
  color: var(--ink);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

/* Hero background */
.hero-glow {
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgba(27, 58, 92, .9), transparent 60%),
    radial-gradient(40rem 25rem at 10% 100%, rgba(184, 146, 74, .14), transparent 60%);
}

/* Section eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--gold);
}

/* Clearly marked placeholders for details the company still has to supply */
.placeholder {
  display: inline-block;
  padding: .1rem .5rem;
  border: 1px dashed var(--gold-dark);
  border-radius: .375rem;
  background: rgba(184, 146, 74, .12);
  color: var(--gold-dark);
  font-size: .9em;
  font-style: italic;
  font-weight: 500;
}

/* Cards */
.card {
  border: 1px solid rgba(27, 58, 92, .1);
  border-radius: 1rem;
  background: var(--cream);
  padding: 1.75rem;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover {
  border-color: rgba(184, 146, 74, .55);
  box-shadow: 0 12px 30px -18px rgba(15, 30, 46, .35);
  transform: translateY(-2px);
}
@media (min-width: 640px) { .card { padding: 2rem; } }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: .75rem;
  background: var(--navy);
  color: var(--gold-light);
}
.card-icon svg { width: 1.5rem; height: 1.5rem; }

/* Key facts */
.fact {
  border: 1px solid rgba(27, 58, 92, .1);
  border-left: 3px solid var(--gold);
  border-radius: .75rem;
  background: #fff;
  padding: 1.1rem 1.25rem;
}
.fact-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--stone-text);
}
.fact-value {
  margin-top: .35rem;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.05rem;
  color: var(--navy);
}

/* Form */
.form-label {
  display: block;
  margin-bottom: .4rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
}
.form-input {
  display: block;
  width: 100%;
  border: 1px solid #C9CDD2;
  border-radius: .5rem;
  background: #fff;
  padding: .75rem .9rem;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(184, 146, 74, .35);
  outline: none;
}
.form-input[aria-invalid="true"] {
  border-color: #B42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, .12);
}
.form-error {
  margin-top: .4rem;
  font-size: .85rem;
  font-weight: 500;
  color: #B42318;
}

.link-button {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-button:hover { color: var(--gold-dark); }

/* Footer */
.footer-link {
  color: rgba(246, 244, 239, .85);
  text-decoration: none;
  transition: color .15s ease;
}
.footer-link:hover { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }

/* Legal modals */
.legal-modal {
  width: min(44rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(15, 30, 46, .5);
}
.legal-modal::backdrop { background: rgba(15, 30, 46, .65); }
.legal-modal__inner { display: flex; flex-direction: column; max-height: calc(100vh - 2rem); }
.legal-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(27, 58, 92, .12);
}
.legal-modal__body {
  overflow-y: auto;
  padding: 1.25rem 1.5rem 1.75rem;
  font-size: .95rem;
  line-height: 1.65;
  color: #2B3642;
}
.legal-modal__body h3 {
  margin-top: 1.4rem;
  margin-bottom: .35rem;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.05rem;
  color: var(--navy);
}
.legal-modal__body p + p { margin-top: .6rem; }
.legal-modal__body ul { margin: .5rem 0 .6rem 1.25rem; list-style: disc; }
.legal-modal__body li + li { margin-top: .3rem; }
.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: .5rem;
  color: var(--navy);
}
.modal-close:hover { background: rgba(27, 58, 92, .08); }

body.modal-open { overflow: hidden; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .card:hover { transform: none; }
}
