/* ==========================================================================
   Property Partners — design system
   Audience: Australian homeowners 50+ making significant property decisions.

   The brief is trust before conversion. That translates to: warm neutrals
   rather than clinical white, a serif for authority, generous type sizes,
   real structure and depth, and restraint everywhere else.
   ========================================================================== */

:root {

  /* --- Colour -------------------------------------------------------------
     Deep navy carries authority; warm stone keeps it human rather than
     corporate; gold appears only as an accent. */

  --navy-900:  #0d1f33;   /* headings                                       */
  --navy-800:  #16324f;   /* brand primary — 10.9:1 on stone-50             */
  --navy-700:  #1e4368;

  --slate-600: #4d5e6e;   /* body copy — 6.4:1 on stone-50                  */
  --slate-500: #5a6978;   /* meta text — 5.4:1 on stone-50, 5.6:1 on white  */

  --stone-50:  #fbf9f6;   /* page background — warm white                   */
  --stone-100: #f5f1ea;

  --line:      #e4e0d8;   /* default border                                 */

  /* Gold survives as a single decorative rule above "I want to:". If it is
     ever put on text or a meaningful icon, it must darken to #856527 first —
     #c9a961 is only 2.1:1 on stone and fails at any size. */
  --gold-400:  #c9a961;

  --white:     #ffffff;

  /* --- Type -------------------------------------------------------------- */

  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* --- Depth ------------------------------------------------------------- */

  --shadow-sm: 0 1px 2px rgba(13, 31, 51, .04),
               0 1px 3px rgba(13, 31, 51, .05);
  --shadow-md: 0 2px 4px rgba(13, 31, 51, .03),
               0 8px 20px rgba(13, 31, 51, .06);

  --radius-sm: 10px;
  --radius:    14px;

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

  --container: 68rem;
  --gutter:    clamp(1.25rem, 4.5vw, 2.5rem);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  font-size: 18px;              /* generous base — presbyopia is the norm 50+ */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--stone-50);
  color: var(--slate-600);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
svg { display: block; }
button { font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */

.masthead {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding-block: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.brand__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.3125rem;
  letter-spacing: -0.015em;
  color: var(--navy-800);
}

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

.hero {
  padding-block: clamp(1.75rem, 4.5vw, 3rem) clamp(1.5rem, 3.5vw, 2.25rem);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__headline {
  /* Wide enough that the 47-character headline balances onto two lines on
     desktop rather than three — a third line pushes the assurance line below
     the fold. Source Serif's `ch` is narrow (~0.41em), so this is roughly
     600px at the desktop size, against the ~530px two lines need. */
  max-width: 30ch;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4.8vw, 3.125rem);
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--navy-900);
  text-wrap: balance;
}

.hero__sub {
  margin-top: 0.95rem;
  max-width: 40ch;
  font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
  line-height: 1.6;
  color: var(--slate-600);
  text-wrap: pretty;
}

/* One decorative flourish — earns the "editorial" note in the brief without
   adding noise. */
.hero__prompt {
  position: relative;
  margin-top: clamp(1.5rem, 3vw, 2rem);
  padding-top: 1.3rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1875rem;
  color: var(--navy-900);
}

.hero__prompt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2.5rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-400);
}

/* --------------------------------------------------------------------------
   Pathway cards — the primary action
   -------------------------------------------------------------------------- */

.paths {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  width: 100%;
  margin-top: 1.1rem;
  text-align: left;
}

@media (min-width: 52rem) {
  .paths {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.125rem;
  }
}

.path {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, box-shadow .18s ease,
              transform .18s ease, background-color .18s ease;
}

@media (min-width: 52rem) {
  .path {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.35rem 1.4rem 1.2rem;
  }
}

.path__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.875rem;
  height: 2.875rem;
  border-radius: 11px;
  background: var(--stone-100);
  color: var(--navy-700);
  transition: background-color .18s ease, color .18s ease;
}

.path__icon svg { width: 1.5rem; height: 1.5rem; }

.path__body { flex: 1 1 auto; }

.path__title {
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1875rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}

.path__desc {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--slate-500);
}

.path__chevron {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: var(--slate-500);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .18s ease, transform .18s ease;
}

@media (min-width: 52rem) {
  /* On desktop the chevron sits on the icon row rather than trailing the
     text, so the three cards read as one set of equal choices. */
  .path__chevron {
    position: absolute;
    top: 1.9rem;
    right: 1.5rem;
  }
  .path__body { padding-right: 1.5rem; }
}

.path:hover {
  border-color: var(--navy-700);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.path:hover .path__icon {
  background: var(--navy-800);
  color: var(--white);
}

.path:hover .path__chevron {
  stroke: var(--navy-700);
  transform: translateX(3px);
}

.path:active { transform: translateY(0); }

/* --------------------------------------------------------------------------
   Assurances
   -------------------------------------------------------------------------- */

.assurances {
  margin-top: clamp(1.1rem, 2.2vw, 1.5rem);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate-600);
  text-wrap: balance;
}

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

.site-footer {
  padding-block: clamp(1.15rem, 2.4vw, 1.6rem);
  background: var(--stone-50);
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.site-footer__copy {
  font-size: 0.875rem;
  color: var(--slate-500);
}

.site-footer nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.875rem;
}

.site-footer a {
  color: var(--slate-600);
  text-decoration: none;
  padding: 0.35rem 0.15rem;
  border-radius: 4px;
}

.site-footer a:hover {
  color: var(--navy-800);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .sep { color: var(--line); }

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */

:focus-visible {
  outline: 3px solid var(--navy-700);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 20;
  padding: 0.85rem 1.35rem;
  background: var(--navy-800);
  color: var(--white);
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
}

.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --slate-500: #3c4b5a;
    --slate-600: #2c3b4a;
    --line:      #9aa7b3;
  }
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.doc {
  max-width: 44rem;
  margin-inline: auto;
  padding: clamp(2.25rem, 6vw, 3.5rem) var(--gutter) clamp(3rem, 8vw, 4.5rem);
}

.doc h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

.doc h2 {
  margin-top: 2.25rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy-900);
}

.doc p {
  margin-top: 0.85rem;
  line-height: 1.65;
}

.doc a { color: var(--navy-800); }

.doc .updated {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--slate-500);
}

.doc .back {
  display: inline-block;
  margin-top: 2.5rem;
  color: var(--navy-800);
  font-weight: 500;
}
