/* ==========================================================================
   GracePath Education Consulting — stylesheet
   ========================================================================== */

:root {
  --navy: #002448;
  --navy-deep: #001830;
  --navy-soft: #0f3a63;
  --gold: #b8903c;
  --gold-light: #d9b673;
  --gold-pale: #f1e6d2;
  --paper: #f7f7f5;
  --paper-alt: #eef1f3;
  --ink: #14212f;
  --ink-soft: #4c5a6a;
  --ink-faint: #7c8896;
  --white: #ffffff;
  --line: #dcdfe3;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Libre Franklin", -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1180px;
  --radius-sm: 3px;
  --radius-md: 6px;
  --shadow-soft: 0 12px 32px -18px rgba(0, 21, 46, 0.35);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  margin: 0;
  font-weight: 600;
  line-height: 1.12;
}

p {
  margin: 0;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 999;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--navy-deep);
}

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

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-gold:hover {
  background: var(--gold-light);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-header.solid {
  background: var(--paper);
  border-bottom-color: var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  height: 68px;
  width: auto;
  transition: filter 0.25s ease;
}

.site-header:not(.solid) .brand img {
  filter: brightness(0) invert(1);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}

.site-header.solid .main-nav a {
  color: var(--ink);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transition: right 0.25s ease;
}

.main-nav a:hover::after {
  right: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.25s ease;
}

.site-header.solid .nav-toggle span,
.main-nav.open ~ div .nav-toggle span {
  background: var(--navy);
}

.main-nav.open a {
  color: var(--ink);
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 190px 0 160px;
  background: #0a1a2c;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(0, 18, 38, 0.94) 0%, rgba(0, 18, 38, 0.82) 32%, rgba(0, 18, 38, 0.48) 60%, rgba(0, 18, 38, 0.22) 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  color: var(--gold-light);
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  margin-bottom: 18px;
  display: block;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(38px, 4.6vw, 60px);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.hero p.lede {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 50ch;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */

section {
  padding: 104px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}

.section-head .kicker {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 18px;
  display: block;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  margin-bottom: 18px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 56ch;
}

.section-alt {
  background: var(--paper-alt);
}

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

.about .container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}

.about-art img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.about-copy p {
  color: var(--ink-soft);
  font-size: 17px;
  margin-bottom: 20px;
  max-width: 58ch;
}

.about-copy p:last-of-type {
  margin-bottom: 0;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding-top: 40px;
}

.stat-row div {
  padding-right: 20px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.stat-row div:first-child {
  border-left: none;
  padding-left: 0;
}

.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 40px;
  color: var(--navy);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 14px;
  color: var(--ink-faint);
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper-alt);
}

.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 18, 38, 0) 0%, rgba(0, 18, 38, 0.78) 100%);
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.service-row {
  display: grid;
  grid-template-columns: 64px 1.1fr 1.6fr;
  gap: 36px;
  align-items: start;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.service-row:last-child {
  border-bottom: 1px solid var(--line);
}

.service-icon {
  width: 48px;
  height: 48px;
}

.service-row h3 {
  font-size: 23px;
}

.service-row p {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 60ch;
}

/* --------------------------------------------------------------------------
   News digest
   -------------------------------------------------------------------------- */

.news-panel {
  background: var(--navy);
  border-radius: var(--radius-md);
  padding: 4px;
}

.news-panel-inner {
  background: var(--navy);
  border-radius: var(--radius-md);
  padding: 12px 0 0;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 130px 150px 1fr;
  gap: 28px;
  align-items: baseline;
  padding: 26px 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.news-date {
  color: var(--gold-light);
  font-size: 14px;
  font-family: var(--sans);
  font-weight: 600;
}

.news-tag {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 600;
}

.news-item h4 {
  font-family: var(--serif);
  color: var(--white);
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 6px;
}

.news-item p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  max-width: 60ch;
}

.news-disclaimer {
  padding: 24px 44px 32px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  max-width: 80ch;
}

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

.contact .container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
}

.contact-info h2 {
  font-size: clamp(28px, 3vw, 36px);
  margin-bottom: 20px;
}

.contact-info > p {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 36px;
  max-width: 42ch;
}

.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}

.contact-detail .label {
  font-size: 13px;
  color: var(--gold);
  font-weight: 700;
  width: 90px;
  flex-shrink: 0;
  padding-top: 2px;
}

.contact-detail .value {
  font-size: 16px;
  color: var(--ink);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 44px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 4px;
}

.form-success {
  display: none;
  background: var(--gold-pale);
  border: 1px solid var(--gold-light);
  color: var(--navy-deep);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  margin-bottom: 22px;
}

.form-success.visible {
  display: block;
}

.form-error {
  display: none;
  background: #fbeaea;
  border: 1px solid #e3a9a9;
  color: #7a1f1f;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  margin-bottom: 22px;
}

.form-error.visible {
  display: block;
}

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

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand img {
  height: 46px;
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: 14px;
  max-width: 32ch;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col h5 {
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-disclaimer {
  padding-top: 32px;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
  max-width: 980px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  flex-wrap: wrap;
  gap: 12px;
}

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

@media (max-width: 980px) {
  .about .container,
  .contact .container {
    grid-template-columns: 1fr;
  }

  .about-art {
    max-width: 480px;
    margin: 0 auto;
  }

  .about-art img {
    aspect-ratio: 16 / 11;
  }

  .hero {
    padding-top: 150px;
  }

  .hero-video {
    display: none;
  }

  .hero {
    background: url("../assets/hero-sydney.jpg") center 65% / cover no-repeat;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-row {
    grid-template-columns: 48px 1fr;
  }
  .service-row h3 {
    grid-column: 2;
  }
  .service-row p {
    grid-column: 2;
  }

  .stat-row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 32px;
  }
  .stat-row div:nth-child(3) {
    border-left: none;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 84px;
    left: 0;
    width: 100vw;
    bottom: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    transform: translateX(100vw);
    transition: transform 0.25s ease;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 24px;
  }

  .main-nav a {
    font-size: 20px;
  }

  .nav-toggle {
    display: block;
  }

  #header-cta {
    display: none;
  }

  section {
    padding: 72px 0;
  }

  .hero {
    padding: 56px 0 72px;
  }

  .contact-form {
    padding: 28px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
