/* Colors are sampled from the Groves Coaching & Consultancy logo. */
@font-face {
  font-family: "Mulish";
  src: url("fonts/mulish.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mulish";
  src: url("fonts/mulish-italic.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --navy: #041e47;
  --navy-line: #24406b;
  --steel: #5281a3;
  --ice: #c4d8e8;
  --sage: #7ba47a;
  --sage-light: #93ba92;
  --sage-deep: #3a6849;
  --paper: #f8f7f2;
  --mist: #edf1ec;
  --line: #cfd5d6;
  --ink: #1f2d44;
  --ink-soft: #4a586c;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Mulish", "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(4rem, 9vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: 2px;
}
.hero :focus-visible,
.contact-copy :focus-visible,
.footer :focus-visible { outline-color: var(--sage-light); }

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: #fff;
  color: var(--navy);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.wrap {
  width: min(1180px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Caps with wide tracking, as in the logo's "Coaching & Consultancy". */
.label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.6;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.08;
}

/* Line, dot, line: the divider from the logo. */
.rule-dot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(100%, var(--rule-width, 360px));
  margin-inline: auto;
}
.rule-dot::before,
.rule-dot::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--steel);
}
.rule-dot::after { order: 2; }
.rule-dot {
  background: radial-gradient(circle at center, var(--steel) 0 4px, transparent 4.5px);
  height: 10px;
}
.rule-dot::before { margin-right: 0.5rem; }
.rule-dot::after { margin-left: 0.5rem; }

.button {
  display: inline-block;
  padding: 0.85em 2.1em;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.button-sage { background: var(--sage); color: var(--navy); }
.button-sage:hover { background: var(--sage-light); }
.button-navy { background: var(--navy); color: #fff; }
.button-navy:hover { background: #0b2f68; }
.button[disabled] { opacity: 0.65; cursor: progress; }

/* Hero: the logo lockup, set live so it stays sharp and readable. */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--navy);
  color: #fff;

  --w: min(78vw, 72vh, 620px);
}

.hero-nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: 1.25rem var(--gutter);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-nav a {
  padding-block: 0.5rem;
  color: var(--ice);
  text-decoration: none;
  transition: color 0.2s ease;
}
.hero-nav a:hover { color: #fff; }

.lockup {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem var(--gutter) clamp(2.5rem, 7vh, 4.5rem);
  text-align: center;
}

.mark {
  width: var(--w);
  height: auto;
  overflow: visible;
}

.lockup-title {
  width: min(100%, calc(var(--w) * 1.14));
  margin-top: calc(var(--w) * 0.05);
  font-weight: 300;
  text-transform: uppercase;
}

.lockup-name {
  display: flex;
  align-items: center;
  gap: calc(var(--w) * 0.04);
  font-size: calc(var(--w) * 0.122);
  letter-spacing: 0.3em;
  line-height: 1.15;
}
.lockup-name > span { margin-right: -0.3em; }
.lockup-name::before,
.lockup-name::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--steel);
}

.lockup-sub {
  display: block;
  margin-top: calc(var(--w) * 0.012);
  font-size: calc(var(--w) * 0.0525);
  letter-spacing: 0.15em;
  line-height: 1.3;
  white-space: nowrap;
}

.lockup .rule-dot {
  --rule-width: calc(var(--w) * 0.74);
  margin-block: calc(var(--w) * 0.035);
}

.lockup-tagline {
  color: var(--ice);
  font-size: max(1rem, calc(var(--w) * 0.044));
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.015em;
  line-height: 1.4;
  text-wrap: balance;
}
/* Wrap between the three phrases, never inside one. */
.lockup-tagline span { display: inline-block; }

.lockup-pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: calc(var(--w) * 0.045);
  font-size: max(0.75rem, calc(var(--w) * 0.0255));
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}
.lockup-pillars li { padding-inline: 1.5em; }
.lockup-pillars li + li { border-left: 1px solid var(--ice); }

.lockup .button { margin-top: calc(var(--w) * 0.07); }

/* Intro */
.intro {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  padding-top: var(--section);
}

.statement {
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 500;
  line-height: 1.04;
  text-wrap: balance;
}

.lede { color: var(--ink-soft); }

/* Focus: three columns with the logo's vertical dividers. */
.focus {
  padding-block: clamp(3.5rem, 7vw, 6rem) var(--section);
}

.focus .label {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--sage-deep);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.focus-grid article {
  padding-inline: clamp(1.5rem, 3.2vw, 3rem);
  border-left: 1px solid var(--line);
}
.focus-grid article:first-child { padding-left: 0; border-left: 0; }
.focus-grid article:last-child { padding-right: 0; }

.focus-grid h3 {
  margin-bottom: 0.6rem;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.4vw, 2.125rem);
  font-weight: 600;
  line-height: 1.15;
}
.focus-grid p { color: var(--ink-soft); }

/* About */
.about {
  padding-block: var(--section);
  background: var(--mist);
}

.about-grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: clamp(2.5rem, 7vw, 6.5rem);
  align-items: start;
}

.portrait {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}
/* The logo's C wraps the portrait the way it wraps the sprout. */
.portrait::before {
  content: "";
  position: absolute;
  inset: -8% -6% -8% -13%;
  background: url("assets/gcc-c.svg") center / contain no-repeat;
}
.portrait img {
  position: relative;
  width: 86%;
  height: 86%;
  margin: 7%;
  border-radius: 50%;
  object-fit: cover;
}

.about-copy { max-width: 42rem; }
.about-copy .section-title { color: var(--navy); }
.about-role {
  margin: 0.75rem 0 1.75rem;
  color: var(--sage-deep);
}
.about-copy > p + p:not(.about-role) { margin-top: 1rem; }

.career {
  margin-block: 2rem 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.career li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.career-date {
  flex: none;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.text-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration-color: var(--sage);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}
.text-link:hover { color: var(--sage-deep); }

/* Contact */
.contact {
  padding-block: var(--section);
  background: var(--navy);
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 7vw, 6.5rem);
  align-items: start;
}

.contact-copy > p:first-of-type {
  margin-top: 1.25rem;
  color: var(--ice);
}

.rule-dot-left {
  --rule-width: 220px;
  margin: 2.25rem 0;
}

.contact-detail { color: var(--ice); }
.contact-detail + .contact-detail { margin-top: 1.25rem; }
.contact-detail .label {
  display: block;
  color: var(--sage-light);
}
.contact-detail a {
  color: #fff;
  overflow-wrap: anywhere;
  text-decoration-color: var(--sage);
  text-underline-offset: 0.25em;
}

.form-card {
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}

.field + .field { margin-top: 1.25rem; }

.field label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 600;
}
.optional {
  color: var(--ink-soft);
  font-weight: 400;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #98a4b3;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--sage-deep);
  outline-offset: 0;
}

/* Off screen rather than display:none, so form-filling bots still find it. */
.field-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

form .button { margin-top: 1.5rem; }

.form-status {
  margin-top: 1rem;
  color: #a12a2a;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.form-status:empty { display: none; }

.form-note {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.form-thanks:focus { outline: none; }
.form-thanks h3 {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.2;
}
.form-thanks p { margin-top: 0.5rem; }

/* Footer */
.footer {
  padding-block: 1.75rem;
  border-top: 1px solid var(--navy-line);
  background: var(--navy);
  color: var(--ice);
  font-size: 0.875rem;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 2rem;
}
.footer-tagline { font-style: italic; }

.privacy { margin-top: 0.75rem; }
.privacy summary {
  width: fit-content;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}
.privacy-body {
  max-width: 44rem;
  margin-top: 0.75rem;
}
.privacy-body p + p { margin-top: 0.6rem; }

/* Tablet and below */
@media (max-width: 900px) {
  .intro,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .intro { align-items: start; }

  .focus-grid { grid-template-columns: 1fr; }
  .focus-grid article,
  .focus-grid article:first-child,
  .focus-grid article:last-child {
    padding: 1.75rem 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .focus-grid article:first-child { padding-top: 0; }
  .focus-grid article:last-child { padding-bottom: 0; border-bottom: 0; }

  .portrait { width: min(70%, 280px); }
  .about-copy { max-width: none; }
}

/* Phones */
@media (max-width: 560px) {
  .lockup-pillars { flex-direction: column; gap: 0.35rem; }
  .lockup-pillars li + li { border-left: 0; }

  .career li { flex-direction: column; gap: 0.1rem; }

  .form-card .button { width: 100%; }
}

/* A brief growth on load, drawn from the sprout in the logo. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .sprout-leaves {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: sprout-grow 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both;
  }
  .sprout-dots circle {
    animation: rise-in 0.7s ease 0.75s both;
  }
  .lockup > :not(svg) {
    animation: rise-in 0.8s ease 0.35s both;
  }

  @keyframes sprout-grow {
    from { opacity: 0; transform: scaleY(0.55); }
    to { opacity: 1; transform: none; }
  }
  @keyframes rise-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
  }
}
