/* ============================================================
   Calibran Advisory — Design System
   ============================================================ */

/* ============================================================
   0. FONTS — Self-hosted Inter (variable font, weights 300–600)
   ============================================================ */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.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: 300 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.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;
}

/* ============================================================
   1. CUSTOM PROPERTIES
   ============================================================ */

:root {
  /* Colors */
  --ink: #0d1b2e;
  --mineral-blue: #3a6b8c;
  --white: #ffffff;
  --gray-1: #6b7280;
  --gray-2: #d1d5db;
  --muted: #f5f5f4;

  /* Typography */
  --font: "Inter", system-ui, -apple-system, sans-serif;

  /* Type scale */
  --fs-h1: clamp(40px, 5vw, 52px);
  --fs-h2: 26px;
  --fs-h3: 18px;
  --fs-body: 16px;
  --fs-nav: 14px;
  --fs-label: 12px;
  --fs-footer: 12px;

  /* Layout */
  --max-width: 1100px;
  --section-gap: 72px;
  --page-pad: clamp(24px, 5vw, 64px);
  --nav-h: 64px;
}

/* ============================================================
   2. BASE RESET + BODY
   ============================================================ */

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

body {
  margin: 0;
  padding-top: var(--nav-h);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--mineral-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1,
.t-h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2,
.t-h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
}

h3,
.t-h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
}

.t-body {
  font-size: var(--fs-body);
  line-height: 1.7;
}

.t-label {
  font-size: var(--fs-label);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-1);
}

.t-caption {
  font-size: var(--fs-label);
  color: var(--gray-1);
}

.t-accent {
  color: var(--mineral-blue);
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */

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

.section {
  padding: var(--section-gap) 0;
}

.section--lane {
  background: var(--muted);
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.grid-3col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .grid-2col {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .grid-3col {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
  }
}

/* ============================================================
   5. NAVIGATION
   ============================================================ */

/* Hidden checkbox — powers the mobile overlay without JS */
#nav-toggle {
  display: none;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-2);
  z-index: 50;
}

.site-nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav__wordmark {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-nav__wordmark img {
  height: 22px;
  width: auto;
}

.site-nav__links {
  display: none;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__links a {
  font-size: var(--fs-nav);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}

.site-nav__links a:hover {
  color: var(--mineral-blue);
}

.site-nav__links a.is-active {
  color: var(--mineral-blue);
  border-bottom-color: var(--mineral-blue);
}

@media (min-width: 768px) {
  .site-nav__links {
    display: flex;
  }

  .site-nav__hamburger {
    display: none !important;
  }
}

/* Hamburger button */
.site-nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  background: none;
  border: none;
}

.site-nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
}

/* Mobile overlay */
.site-nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 49;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.site-nav__overlay a {
  font-size: 24px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-nav__overlay a:hover {
  color: var(--gray-2);
}

.site-nav__overlay-close {
  position: absolute;
  top: 16px;
  right: var(--page-pad);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

/* Checkbox-powered open state */
#nav-toggle:checked ~ .site-nav .site-nav__overlay {
  display: flex;
}

/* ============================================================
   6. FOOTER
   ============================================================ */

.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--gray-2);
  font-size: var(--fs-footer);
  color: var(--gray-1);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-footer__copy {
  color: var(--gray-1);
}

.site-footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-footer__links a {
  color: var(--gray-1);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer__links a:hover {
  color: var(--ink);
}

@media (min-width: 768px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ============================================================
   7. BUTTONS / CTAs
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: var(--fs-nav);
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition:
    filter 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--mineral-blue);
  color: var(--white);
  border-color: var(--mineral-blue);
}

.btn-primary:hover {
  filter: brightness(0.92);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}

/* ============================================================
   8. CARDS
   ============================================================ */

.card {
  background: var(--white);
  border: 1px solid var(--gray-2);
  padding: 32px;
}

.card__heading {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}

.card__body {
  font-size: var(--fs-body);
  color: var(--ink);
  line-height: 1.7;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-link:hover .card {
  border-color: var(--mineral-blue);
}

/* ============================================================
   9. DIVIDERS
   ============================================================ */

.rule {
  border: none;
  border-top: 1px solid var(--gray-2);
  margin: 0;
}

.rule--accent {
  border: none;
  border-top: 1px solid var(--mineral-blue);
  width: 64px;
  margin: 0;
}

/* ============================================================
   10. HERO — full-bleed photo, tagline top-left, cards at fold
   ============================================================ */

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-image: url("/assets/images/home-hero.jpg");
  background-size: cover;
  background-position: center top;
  overflow: hidden;
}

/* Gradient overlay — dark top-left for text, lighter centre so photo breathes */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    150deg,
    rgba(13, 27, 46, 0.78) 0%,
    rgba(13, 27, 46, 0.45) 55%,
    rgba(13, 27, 46, 0.7) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: calc(var(--max-width) + 2 * var(--page-pad));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 88px) var(--page-pad) 0;
}

.hero-positioning {
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  margin: 0 0 28px;
  max-width: 760px;
  white-space: pre-line;
}

/* Practice cards — pinned to bottom of viewport */
.hero__cards {
  position: relative;
  z-index: 2;
  background: rgba(13, 27, 46, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-practice-cards {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero-card {
  display: block;
  padding: 28px 48px 28px 0;
  text-decoration: none;
  border-top: 2px solid transparent;
  transition: border-top-color 0.2s ease;
}

.hero-card + .hero-card {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 40px;
  padding-right: 0;
}

.hero-card:hover {
  border-top-color: var(--mineral-blue);
}

.hero-card__name {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mineral-blue);
  margin: 0 0 10px;
}

.hero-card__headline {
  display: block;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.15;
  margin: 0 0 10px;
}

.hero-card__desc {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  margin: 0 0 16px;
}

.hero-card__arrow {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 767px) {
  .hero {
    min-height: auto;
    background-position: center center;
  }

  .hero__content {
    padding-top: 48px;
  }

  .hero-practice-cards {
    grid-template-columns: 1fr;
  }

  .hero-card + .hero-card {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 0;
    padding-right: 0;
  }
}

/* ============================================================
   11. SECTION TYPOGRAPHY
   ============================================================ */

.section__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-1);
  margin-bottom: 24px;
}

.section__rule {
  border: none;
  border-top: 1px solid var(--gray-2);
  margin: 0 0 56px;
}

.section__close {
  margin-top: 48px;
  color: var(--gray-1);
  font-size: 14px;
  max-width: 680px;
}

/* ============================================================
   12. PRACTICE COLUMNS (What We Do — no boxes)
   ============================================================ */

.practice-col h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.practice-col p {
  font-size: 15px;
  color: var(--gray-1);
  line-height: 1.7;
}

/* ============================================================
   13. HOW WE WORK — ruled list
   ============================================================ */

.how-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--gray-2);
}

.how-item:last-child {
  border-bottom: 1px solid var(--gray-2);
}

.how-item h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.how-item p {
  font-size: 15px;
  color: var(--gray-1);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 767px) {
  .how-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ============================================================
   14. LATEST WRITING — editorial row list
   ============================================================ */

.post-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--gray-2);
  text-decoration: none;
  color: var(--ink);
}

.post-row:last-child {
  border-bottom: 1px solid var(--gray-2);
}

.post-row:hover .post-row__title {
  color: var(--mineral-blue);
}

.post-row__title {
  font-size: 15px;
  font-weight: 500;
  flex: 1;
  transition: color 0.15s ease;
}

.post-row__meta {
  font-size: 12px;
  color: var(--gray-1);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .post-row {
    flex-direction: column;
    gap: 4px;
  }

  .post-row__meta {
    order: -1;
  }
}

/* ============================================================
   15. PAGE HERO IMAGE BAND (interior pages)
   ============================================================ */

.page-hero-img {
  width: 100%;
  height: 440px;
  overflow: hidden;
  margin-top: 0;
}

.page-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: grayscale(20%) contrast(1.05);
}

@media (max-width: 767px) {
  .page-hero-img {
    height: 260px;
  }
}

/* ============================================================
   16. PAGE HEADER (interior pages)
   ============================================================ */

.page-header {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--gray-2);
}

.page-header__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mineral-blue);
  margin: 0 0 20px;
}

.page-header__title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--ink);
}

.page-header__intro {
  font-size: 16px;
  color: var(--gray-1);
  max-width: 620px;
  line-height: 1.75;
  margin: 0;
}

/* ============================================================
   17. WORK ITEMS — 2-up grid
   ============================================================ */

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
}

@media (max-width: 767px) {
  .work-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.work-item__heading {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink);
}

.work-item__body {
  font-size: 15px;
  color: var(--gray-1);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   18. DELIVERY CALLOUT
   ============================================================ */

.delivery-callout {
  padding: 48px;
  background: var(--muted);
  max-width: 760px;
}

.delivery-callout__heading {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  color: var(--ink);
}

.delivery-callout__body {
  font-size: 15px;
  color: var(--gray-1);
  line-height: 1.75;
  margin: 0;
}

/* ============================================================
   19. JEEVES SHOWCASE
   ============================================================ */

.jeeves-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 767px) {
  .jeeves-showcase {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.jeeves-showcase__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mineral-blue);
  margin: 0 0 16px;
}

.jeeves-showcase__heading {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  color: var(--ink);
}

.jeeves-showcase__body {
  font-size: 15px;
  color: var(--gray-1);
  line-height: 1.75;
  margin: 0;
}

.jeeves-showcase__image {
  border: 1px solid var(--gray-2);
  overflow: hidden;
}

.jeeves-showcase__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   20. PAGE CTA BLOCK
   ============================================================ */

.page-cta {
  padding: 64px 0;
  border-top: 1px solid var(--gray-2);
}

.page-cta__heading {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: var(--ink);
}

.page-cta__body {
  font-size: 15px;
  color: var(--gray-1);
  margin: 0 0 28px;
  max-width: 480px;
  line-height: 1.7;
}

/* ============================================================
   21. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   22. ABOUT — story + bio block
   ============================================================ */

.about-story p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  max-width: 720px;
  margin: 0 0 1.5em;
}

.about-story p:last-child {
  margin-bottom: 0;
}

/* Bio block — photo left, text right */
.bio-block {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}

.bio-block + .bio-block {
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid var(--gray-2);
}

@media (max-width: 767px) {
  .bio-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .bio-block + .bio-block {
    margin-top: 48px;
    padding-top: 48px;
  }
}

.bio-block__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--muted);
  border: 1px solid var(--gray-2);
}

.bio-block__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bio-block__name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 20px;
  color: var(--ink);
}

.bio-block__bio {
  font-size: 15px;
  color: var(--gray-1);
  line-height: 1.8;
  margin: 0 0 28px;
}

.bio-block__linkedin {
  font-size: var(--fs-nav);
  font-weight: 500;
  color: var(--mineral-blue);
  text-decoration: none;
}

.bio-block__linkedin:hover {
  text-decoration: underline;
}

/* Growth note */
.growth-note {
  font-size: 14px;
  color: var(--gray-1);
  border-top: 1px solid var(--gray-2);
  padding-top: 32px;
  margin-top: 64px;
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================================
   23. CONTACT FORM
   ============================================================ */

.contact-layout {
  max-width: 600px;
}

.contact-form {
  margin: 0;
}

.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-1);
  margin-bottom: 10px;
}

.form-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
}

.form-group input,
.form-group textarea {
  display: block;
  width: 100%;
  font-family: var(--font);
  font-size: var(--fs-body);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--gray-2);
  border-radius: 0;
  padding: 12px 16px;
  line-height: 1.5;
  transition: border-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--mineral-blue);
}

.form-group textarea {
  height: 160px;
  resize: vertical;
  min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-2);
}

.form-submit {
  margin-top: 8px;
}

/* Below-form links */
.form-links {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-2);
  flex-wrap: wrap;
}

.form-links a {
  font-size: var(--fs-nav);
  font-weight: 500;
  color: var(--gray-1);
  text-decoration: none;
  transition: color 0.15s ease;
}

.form-links a:hover {
  color: var(--mineral-blue);
}
