/* ==========================================================================
   Top Agent — site styles
   Edit the colours and fonts in :root to restyle the whole site.
   ========================================================================== */

/* Self-hosted fonts (SIL Open Font License — see assets/fonts). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  /* Colours are HSL channels so they can also be used with transparency,
     e.g. hsl(var(--muted) / 0.3). */
  --background: 38 44% 96%;        /* cream page background */
  --foreground: 0 0% 4%;           /* near-black text and solid buttons */
  --primary: 43 89% 38%;           /* gold accent lines and bullets */
  --muted: 42 59% 78%;             /* tint behind the card sections */
  --muted-foreground: 38 44% 37%;  /* brown body text */
  --border: 36 40% 82%;            /* hairlines and card borders */
  --destructive: 0 84% 60%;        /* form error text */

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: "Cormorant Garamond", Georgia, serif;

  --radius: 4px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.58, 1);
}

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

*,
::before,
::after {
  box-sizing: border-box;
  border: 0 solid hsl(var(--border));
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  tab-size: 4;
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  line-height: inherit;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; font-family: var(--font-heading); }
a { color: inherit; text-decoration: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
img, svg { display: block; vertical-align: middle; }
img { max-width: 100%; height: auto; }

button, input, textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}
button {
  text-transform: none;
  -webkit-appearance: button;
  appearance: button;
  background-color: transparent;
  background-image: none;
  cursor: pointer;
}
textarea { resize: vertical; }
[hidden] { display: none !important; }

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

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: hsl(var(--background));
}

.container {
  margin-left: auto;
  margin-right: auto;
  max-width: 72rem;
}

.section { padding: 5rem 1.5rem; }
.section--hero { position: relative; overflow: hidden; padding: 7rem 1.5rem; }
.section--list { padding: 4rem 1.5rem; }
.section--ruled { border-top-width: 1px; }
.section--tinted { background-color: hsl(var(--muted) / 0.3); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom-width: 1px;
  background-color: hsl(var(--background) / 0.95);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.header-inner {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  max-width: 72rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.brand { flex-shrink: 0; }
.brand img {
  display: block;
  height: auto;
  width: auto;
  max-height: 2.5rem;
  max-width: 160px;
  object-fit: contain;
}

.nav-main { display: none; align-items: center; gap: 2rem; }

.nav-link {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: color 150ms var(--ease);
}
.nav-link:hover,
.nav-link[aria-current="page"] { color: hsl(var(--foreground)); }

.header-cta { display: none; }

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--foreground));
}
.menu-toggle .icon-close,
.menu-toggle.is-open .icon-menu { display: none; }
.menu-toggle.is-open .icon-close { display: block; }

.nav-mobile {
  border-top-width: 1px;
  background-color: hsl(var(--background));
  padding: 1rem 1.5rem 1.5rem;
}
.nav-mobile ul { display: flex; flex-direction: column; gap: 1rem; }
.nav-mobile .nav-link { display: block; font-size: 1rem; line-height: 1.5rem; }
.nav-mobile .btn { margin-top: 0.5rem; display: inline-block; }

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

.btn {
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}
.btn--solid {
  background-color: hsl(var(--foreground));
  color: hsl(var(--background));
  transition: opacity 150ms var(--ease);
}
.btn--solid:hover { opacity: 0.8; }
.btn--solid:disabled { opacity: 0.5; }
.btn--ghost {
  border-width: 1px;
  color: hsl(var(--foreground));
  transition: border-color 150ms var(--ease);
}
.btn--ghost:hover { border-color: hsl(var(--foreground)); }
.btn--outline {
  border-width: 1px;
  border-color: hsl(var(--foreground));
  padding: 0.5rem 1.25rem;
  color: hsl(var(--foreground));
  transition: color 150ms var(--ease), background-color 150ms var(--ease);
}
.btn--outline:hover {
  background-color: hsl(var(--foreground));
  color: hsl(var(--background));
}
.btn--wide { flex-shrink: 0; padding-left: 1.75rem; padding-right: 1.75rem; }

/* ---------- Shared text styles ---------- */

.eyebrow {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: hsl(var(--muted-foreground));
}

.rule { height: 1px; width: 3rem; background-color: hsl(var(--primary)); }
.rule--short { width: 2rem; }

.lead {
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: hsl(var(--muted-foreground));
}

.body-text {
  font-size: 1rem;
  line-height: 1.625;
  color: hsl(var(--muted-foreground));
}

/* ---------- Home hero ---------- */

.hero-art {
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 50%;
  opacity: 0.03;
  color: hsl(var(--foreground));
}
.hero-art svg { height: 100%; width: 100%; }
.hero-content { position: relative; }

.hero-title {
  margin-bottom: 1.5rem;
  max-width: 42rem;
  font-size: 3rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: hsl(var(--foreground));
}
.section--hero .rule { margin-bottom: 2rem; }
.section--hero .lead { margin-bottom: 2.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Inner page hero ---------- */

.page-title {
  margin-bottom: 1rem;
  max-width: 42rem;
  font-size: 2.25rem;
  line-height: 1.25;
  font-weight: 600;
  color: hsl(var(--foreground));
}
.page-hero .rule { margin-bottom: 1.5rem; }
.not-found-actions { margin-top: 2.5rem; }

/* ---------- Two-column intro / story ---------- */

.split { display: grid; gap: 3rem; }
.split-title {
  font-size: 1.875rem;
  line-height: 1.375;
  font-weight: 600;
  color: hsl(var(--foreground));
}
.split-body { display: flex; flex-direction: column; gap: 1rem; }
.split-body--loose { gap: 1.25rem; }

/* ---------- Cards ---------- */

.cards { display: grid; gap: 2rem; }
.cards--values { gap: 1.5rem; }

.card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-width: 1px;
  background-color: hsl(var(--background));
  padding: 2rem;
}
.card-title {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}
.card-text {
  font-size: 0.875rem;
  line-height: 1.625;
  color: hsl(var(--muted-foreground));
}
.cards--values .card { gap: 0.75rem; padding: 1.75rem; }
.cards--values .card-title { font-size: 1.125rem; }

.section-title {
  margin-bottom: 3rem;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

/* ---------- Call-to-action band ---------- */

.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
.cta-title {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}
.cta-text { margin-top: 0.5rem; color: hsl(var(--muted-foreground)); }

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

.service-list { display: flex; flex-direction: column; gap: 0; }
.service {
  display: grid;
  gap: 2rem;
  border-bottom-width: 1px;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.service-number {
  margin-bottom: 0.75rem;
  display: block;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: hsl(var(--muted-foreground));
}
.service-title {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}
.service-summary {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-style: italic;
  color: hsl(var(--muted-foreground));
}
.service-body { margin-bottom: 1.5rem; }
.outcomes { display: flex; flex-direction: column; gap: 0.5rem; }
.outcomes li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--foreground));
}
.outcomes .dot {
  margin-top: 0.375rem;
  height: 0.375rem;
  width: 0.375rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background-color: hsl(var(--primary));
}

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

.contact-grid { display: grid; gap: 4rem; }
.contact-title { max-width: none; }
.contact-rule { margin-bottom: 1.5rem; }
.contact-intro { margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-email {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  text-underline-offset: 4px;
}
.contact-email:hover { text-decoration-line: underline; }
.small-muted {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-radius: var(--radius);
  border-width: 1px;
  padding: 2rem;
}
.form-title {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}
.field { display: flex; flex-direction: column; gap: 0.375rem; }
.field label {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
}
.field input,
.field textarea {
  border-radius: var(--radius);
  border-width: 1px;
  background-color: hsl(var(--background));
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--foreground));
}
.field input::placeholder,
.field textarea::placeholder { opacity: 1; color: hsl(var(--muted-foreground)); }
.field input:focus,
.field textarea:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 1px hsl(var(--foreground));
}
.form-trap { position: absolute; left: -9999px; }
.form-status { font-size: 0.875rem; line-height: 1.25rem; color: hsl(var(--muted-foreground)); }
.form-status.is-error { color: hsl(var(--destructive)); }

.form-thanks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: var(--radius);
  border-width: 1px;
  padding: 2.5rem;
}
.form-thanks h2 {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}
.form-thanks p { color: hsl(var(--muted-foreground)); }

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

.site-footer { border-top-width: 1px; background-color: hsl(var(--background)); }
.footer-inner {
  margin-left: auto;
  margin-right: auto;
  max-width: 72rem;
  padding: 3rem 1.5rem;
}
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-brand img {
  display: block;
  height: auto;
  width: auto;
  max-height: 2rem;
  max-width: 140px;
  object-fit: contain;
}
.footer-brand p { max-width: 20rem; }
.footer-nav { display: flex; flex-wrap: wrap; column-gap: 2rem; row-gap: 0.5rem; }
.footer-link { transition: color 150ms var(--ease); }
.footer-link:hover { color: hsl(var(--foreground)); }
.footer-bottom {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top-width: 1px;
  padding-top: 1.5rem;
}
.footer-bottom,
.footer-bottom a {
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
}
.footer-bottom a { transition: color 150ms var(--ease); }
.footer-bottom a:hover { color: hsl(var(--foreground)); }

/* ---------- Tablet and up (768px) ---------- */

@media (min-width: 768px) {
  .section { padding-top: 7rem; padding-bottom: 7rem; }
  .section--hero { padding-top: 9rem; padding-bottom: 9rem; }
  .section--list { padding-top: 6rem; padding-bottom: 6rem; }

  .nav-main { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-toggle,
  .nav-mobile { display: none; }

  .hero-title { font-size: 3.75rem; line-height: 1; }
  .page-title { font-size: 3rem; line-height: 1; }

  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5rem; }
  .split-title { font-size: 2.25rem; line-height: 2.5rem; }

  .cards--pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards--values { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .cta { flex-direction: row; align-items: center; justify-content: space-between; }

  .service { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3rem; }
  .service-head { grid-column: span 4 / span 4; }
  .service-detail { grid-column: span 8 / span 8; }
  .service-title { font-size: 1.875rem; line-height: 2.25rem; }

  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6rem; }
  .contact-form { padding: 2.5rem; }

  .footer-top { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Desktop (1024px) ---------- */

@media (min-width: 1024px) {
  .cards--values { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Motion ---------- */

@keyframes ta-rise {
  from { opacity: 0; transform: translateY(var(--rise, 16px)); }
  to { opacity: 1; transform: none; }
}

/* Plays once when the page loads (works without JavaScript). */
.rise {
  animation: ta-rise var(--dur, 0.6s) var(--ease-out) var(--delay, 0s) both;
}

/* Fades in when scrolled into view (only hidden when JavaScript is running). */
.js .reveal {
  opacity: 0;
  transform: translateY(var(--rise, 16px));
  transition:
    opacity var(--dur, 0.6s) var(--ease-out) var(--delay, 0s),
    transform var(--dur, 0.6s) var(--ease-out) var(--delay, 0s);
}
.js .reveal.is-visible,
.js.reveal-all .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
