/* Provident Advisory Group · one-page site
   Colour: "Ink and moss". Type: Cormorant Garamond (wordmark, card and service titles),
   EB Garamond SemiBold (section titles), Schibsted Grotesk (text). */

:root {
  --bg: #ffffff;
  --bg-2: #f2f4f1;
  --ink: #14202b;
  --muted: #56616b;
  --accent: #2e7d6b;
  --on-accent: #ffffff;
  --line: rgba(20, 32, 43, 0.14);
  --tint: #e3eae6;

  --serif-display: "Cormorant Garamond", Georgia, serif;
  --serif-title: "EB Garamond", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 3vw, 40px);
  --section-y: clamp(64px, 7vw, 104px);
  --arch: 999px 999px 0 0;
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.85; }
a:focus-visible,
button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
section[id] { scroll-margin-top: 12px; }

.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
}
.skip-link:focus { top: 12px; }

/* Arrows that nudge on hover */
.go, .down { display: inline-block; transition: transform 0.2s ease; }
a:hover .go { transform: translateX(3px); }
a:hover .down { transform: translateY(3px); }
@media (prefers-reduced-motion: reduce) {
  .go, .down { transition: none; }
  a:hover .go, a:hover .down { transform: none; }
}

/* Photos */
.photo { overflow: hidden; background: var(--tint); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); }
.arch { border-radius: var(--arch); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--outline { border: 1px solid var(--line); }
.btn--small { padding: 10px 18px; font-size: 14px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-title {
  font-family: var(--serif-title);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--gutter);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand__name { font-family: var(--serif-display); font-weight: 600; font-size: 24px; line-height: 1; }

.site-nav { display: flex; flex-wrap: wrap; gap: 26px; font-size: 14px; font-weight: 500; }

.header-actions { display: flex; align-items: center; gap: 18px; font-size: 14px; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.menu-toggle__bars { position: relative; width: 14px; height: 10px; }
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}
.menu-toggle__bars::before { top: 2px; }
.menu-toggle__bars::after { top: 7px; }
.is-open .menu-toggle__bars::before { top: 4.5px; transform: rotate(45deg); }
.is-open .menu-toggle__bars::after { top: 4.5px; transform: rotate(-45deg); }

@media (max-width: 1100px) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    order: 3;
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    font-size: 17px;
    border-top: 1px solid var(--line);
  }
  .js .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .js .is-open .site-nav { display: flex; }
  .js .header-actions { gap: 10px; }
}

@media (max-width: 480px) {
  .site-header { gap: 12px; }
  .brand__name { font-size: 22px; }
  .btn--small { padding: 9px 14px; }
}

@media (max-width: 380px) {
  /* smallest phones: the menu button keeps its icon and its accessible name, but drops the visible word */
  .menu-toggle { padding: 9px 12px; }
  .menu-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .menu-toggle__bars { height: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Pencil drawing of the trees, kept to the outer edges so the wordmark sits on clear paper */
.hero__art { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 80%; }
.hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, transparent 5%, var(--bg) 25%, var(--bg) 75%, transparent 95%, transparent 100%),
    linear-gradient(180deg, var(--bg) 0%, transparent 30%);
}
@media (max-width: 700px) {
  /* on phones the text runs edge to edge, so the trees only show low down, beside the arches */
  .hero__art::after {
    background:
      linear-gradient(90deg, transparent 0%, var(--bg) 30%, var(--bg) 70%, transparent 100%),
      linear-gradient(180deg, var(--bg) 0%, var(--bg) 52%, transparent 78%);
  }
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: clamp(8px, 1.5vw, 24px) var(--gutter) clamp(36px, 3.6vw, 52px);
  text-align: center;
}

.wordmark {
  padding-top: clamp(28px, 5.7vw, 82px);
  font-family: var(--serif-display);
  font-size: clamp(76px, 10.5vw, 160px);
  font-weight: 600;
  line-height: 0.85;
  letter-spacing: -0.02em;
}
.wordmark__dot { color: var(--accent); }

.hero__lead {
  max-width: 40em;
  font-size: 18px;
  line-height: 1.45;
  color: var(--muted);
  text-wrap: balance;
}

.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.hero__actions .btn--outline { background: var(--bg); }

.arches {
  position: relative;
  margin-top: auto;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.arches__row { flex: 0 0 auto; display: flex; gap: 14px; }
.arches__item {
  position: relative;
  flex: 0 0 clamp(120px, 12.4vw, 180px);
  height: clamp(168px, 17.4vw, 252px);
}
.arches__tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--bg);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

/* ---------- Overview ---------- */
.overview { background: var(--bg-2); padding: var(--section-y) 0; }

.overview__intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px 48px;
}
.overview__heading { flex: 1 1 520px; min-width: min(100%, 320px); }
.overview__heading .section-title { margin-top: 14px; font-size: clamp(34px, 4.4vw, 64px); }
.overview__heading .accent { color: var(--accent); }
.overview__text { flex: 0 1 480px; min-width: min(100%, 320px); }
.overview__text p { font-size: 17px; line-height: 1.6; }
.overview__text p + p { margin-top: 12px; font-size: 15px; color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: clamp(36px, 4vw, 56px);
}
@media (max-width: 1080px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 2vw, 28px);
  border-radius: 12px;
  background: var(--bg);
}
.card__photo { width: 128px; height: 164px; margin-bottom: 14px; }
.card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.card__meta .down { font-size: 15px; letter-spacing: 0; }
.card h3 {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(26px, 2.3vw, 32px);
  line-height: 1.08;
  text-wrap: balance;
}
.card p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- Practices ---------- */
.practice { padding: var(--section-y) 0; }
.practice--tinted { background: var(--bg-2); }

.split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 36px clamp(40px, 6vw, 96px);
}
.split--reverse { flex-direction: row-reverse; }

.practice__photo {
  flex: 0 0 auto;
  width: clamp(240px, 30vw, 420px);
  max-width: 100%;
  height: clamp(280px, 35vw, 500px);
  margin-right: auto;
}
.practice__body { flex: 1 1 440px; min-width: min(100%, 440px); }
.practice__body .section-title { font-size: clamp(32px, 3.4vw, 50px); }
.practice__desc { margin-top: 22px; max-width: 54ch; font-size: 18px; line-height: 1.6; }

.services { margin-top: clamp(28px, 3vw, 36px); border-bottom: 1px solid var(--line); }
.services li { padding: 16px 0 18px; border-top: 1px solid var(--line); }
.services h3 {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(22px, 1.9vw, 26px);
  line-height: 1.15;
}
.services p { margin-top: 4px; font-size: 15px; line-height: 1.55; color: var(--muted); }

.practice__body .text-link { margin-top: 28px; }

/* ---------- Contact ---------- */
.contact { padding: clamp(56px, 6vw, 88px) 0; }
.contact__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px clamp(32px, 5vw, 72px);
}
.contact__photo { flex: 0 0 auto; width: 200px; height: 256px; }
.contact__photo img { object-position: 62% 50%; }
.contact__body { flex: 1 1 420px; min-width: min(100%, 320px); }
.contact__body .section-title { font-size: clamp(34px, 3.8vw, 54px); }
.contact__body > p { margin-top: 14px; max-width: 54ch; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.55; }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--bg); padding: clamp(56px, 6vw, 80px) 0 0; }
.footer__top { display: flex; flex-wrap: wrap; gap: 36px 24px; padding-bottom: 48px; }
.footer__brand {
  flex: 1 0 calc(25% - 18px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.footer__brand .brand { gap: 12px; }
.footer__brand .brand__name { font-size: 26px; }
.footer__brand p { max-width: 30ch; font-size: 14px; line-height: 1.6; opacity: 0.72; }

.footer__nav {
  flex: 1 1 calc(75% - 6px);
  min-width: min(100%, 560px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 260px));
  gap: 32px 24px;
}
.footer__heading {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}
.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  line-height: 1.4;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 24px 0 36px;
  border-top: 1px solid var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.footer__bottom > p { flex: 1 1 auto; opacity: 0.72; }

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