/* Cannabis Capital Advisors: site styles (plain CSS, no build step) */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest: #0f2a1d;
  --deep: #002819;
  --brand: #298915;
  --leaf: #3fae2a;
  --cream: #f6f5ef;
  --white: #ffffff;
  --ink: #111111;
  --ink-80: rgb(17 17 17 / 0.8);
  --ink-70: rgb(17 17 17 / 0.7);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 80rem;
  --gutter: 1rem;
  --header-h: 4.5rem;
  --radius: 1rem;
}
@media (min-width: 640px) {
  :root {
    --gutter: 1.5rem;
  }
}
@media (min-width: 1024px) {
  :root {
    --gutter: 2rem;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
}
.skip-link:focus {
  top: 0.75rem;
}
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow {
  max-width: 56rem;
}
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
}
.on-dark .eyebrow,
.eyebrow-light {
  color: var(--leaf);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.btn-primary {
  background: var(--brand);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--leaf);
}
.btn-dark {
  background: var(--forest);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--brand);
}
.btn-outline {
  border-color: rgb(255 255 255 / 0.4);
  color: var(--white);
  background: transparent;
  padding-left: 0.75rem;
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgb(255 255 255 / 0.1);
}
.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}
.play-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--white);
  color: var(--forest);
}
.play-icon svg {
  width: 0.875rem;
  height: 0.875rem;
  margin-left: 2px;
  fill: currentColor;
}
.link-arrow {
  display: inline-flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--leaf);
  text-decoration: none;
}
.link-arrow:hover {
  color: var(--white);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0.5), transparent);
  transition:
    background-color 0.3s,
    box-shadow 0.3s;
}
.site-header.is-solid {
  background: rgb(15 42 29 / 0.96);
  box-shadow: 0 10px 25px -10px rgb(0 0 0 / 0.4);
  backdrop-filter: blur(8px);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand img {
  height: 2.75rem;
  width: auto;
}
.nav-desktop {
  display: none;
}
.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  color: rgb(255 255 255 / 0.85);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-link:hover,
.nav-link[aria-current='page'] {
  color: var(--white);
}
.nav-link[aria-current='page'] {
  border-bottom-color: var(--leaf);
}
.menu-toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}
.menu-toggle .icon-close,
.menu-toggle[aria-expanded='true'] .icon-open {
  display: none;
}
.menu-toggle[aria-expanded='true'] .icon-close {
  display: block;
}
.nav-mobile {
  border-top: 1px solid rgb(255 255 255 / 0.1);
}
.nav-mobile ul {
  padding: 1rem var(--gutter);
}
.nav-mobile a {
  display: block;
  padding: 0.75rem;
  border-radius: 0.375rem;
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
}
.nav-mobile a[aria-current='page'] {
  background: rgb(255 255 255 / 0.1);
}
.nav-mobile .btn {
  display: flex;
  margin-top: 0.5rem;
}
@media (min-width: 768px) {
  .nav-desktop {
    display: block;
  }
  .menu-toggle,
  .nav-mobile {
    display: none !important;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 60svh;
  overflow: hidden;
  background: var(--forest);
  color: var(--white);
}
.hero-bg,
.cover-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, var(--deep), rgb(0 40 25 / 0.7), rgb(0 40 25 / 0.3));
}
.hero-inner {
  padding-top: 8rem;
  padding-bottom: 3.5rem;
}
.hero h1 {
  max-width: 48rem;
  margin-top: 0.75rem;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
}
.hero-sub {
  max-width: 42rem;
  margin-top: 1.5rem;
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: rgb(255 255 255 / 0.85);
}
.hero-full {
  min-height: 100svh;
  align-items: center;
  text-align: center;
}
.hero-full .hero-inner {
  padding-top: 7rem;
  padding-bottom: 5rem;
}
.hero-full h1 {
  max-width: 64rem;
  margin-inline: auto;
  font-size: clamp(2rem, 9vw, 5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: uppercase;
}
/* Short white rule under the headline, carried over from the original site */
.hero-full h1::after {
  content: '';
  display: block;
  width: 5.5rem;
  height: 4px;
  margin: 2.25rem auto 0;
  background: var(--white);
}
.hero-full .hero-sub {
  margin-top: 2.25rem;
  margin-inline: auto;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}
.hero-full .hero-actions {
  justify-content: center;
}
@media (min-width: 768px) {
  .hero:not(.hero-full) {
    min-height: 30rem;
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: 5rem;
}
@media (min-width: 768px) {
  .section {
    padding-block: 7rem;
  }
}
.bg-white {
  background: var(--white);
}
.bg-cream {
  background: var(--cream);
}
.section-title {
  margin-top: 0.75rem;
  font-size: clamp(2.25rem, 4vw, 3rem);
  color: var(--forest);
}
.lead {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.6;
  color: var(--ink-80);
}
.split {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .split {
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
  }
}
.center {
  text-align: center;
}
.center .lead,
.center p {
  margin-inline: auto;
}

/* Stats */
.stats {
  border-block: 1px solid rgb(15 42 29 / 0.1);
}
.stats dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1rem;
  margin-block: 0;
  padding-block: 3.5rem;
}
@media (min-width: 1024px) {
  .stats dl {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  text-align: center;
}
.stat dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4vw, 3rem);
  color: var(--brand);
}
.stat dt {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--ink-70);
}

/* Feature tiles */
.tiles {
  display: grid;
}
@media (min-width: 768px) {
  .tiles {
    grid-template-columns: 1fr 1fr;
  }
}
.tile {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 26rem;
  overflow: hidden;
  color: var(--white);
}
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, var(--deep), rgb(0 40 25 / 0.75), rgb(0 40 25 / 0.4));
}
.tile .cover-bg {
  transition: transform 0.7s;
}
.tile:hover .cover-bg {
  transform: scale(1.05);
}
.tile-body {
  padding: 2rem;
}
@media (min-width: 768px) {
  .tile-body {
    padding: 3rem;
  }
}
.tile h3 {
  font-size: clamp(1.875rem, 3vw, 2.25rem);
}
.tile p {
  max-width: 28rem;
  margin-top: 1rem;
  font-size: 1.125rem;
  color: rgb(255 255 255 / 0.85);
}

/* Services */
.service-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  border-bottom: 1px solid rgb(15 42 29 / 0.1);
  background: rgb(246 245 239 / 0.96);
  backdrop-filter: blur(8px);
}
.service-nav ul {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-block: 0.75rem;
}
.service-nav a {
  display: block;
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  color: var(--forest);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.service-nav a:hover {
  background: var(--forest);
  color: var(--white);
}
.service {
  scroll-margin-top: 9rem;
}
.service-grid {
  display: grid;
  align-items: center;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .service.is-flipped .service-text {
    order: 2;
  }
}
.service-text p {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: var(--ink-80);
}
.callout {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 2rem;
  border-radius: var(--radius);
  color: var(--white);
}
.callout::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(0 40 25 / 0.82);
}
@media (min-width: 768px) {
  .callout {
    padding: 3rem;
  }
}
.callout h3 {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
}
.callout p {
  margin-top: 1rem;
  color: rgb(255 255 255 / 0.85);
}
.cta-band {
  background: var(--forest);
  color: var(--white);
  text-align: center;
  padding-block: 4rem;
}
.cta-band h2 {
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  margin-bottom: 2rem;
}

/* Team page */
.person {
  scroll-margin-top: 8rem;
}
.person-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.avatar {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.75rem;
}
.person-head h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--forest);
}
.member-role {
  margin-top: 0.375rem;
  color: var(--ink-70);
}
.person-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 900px) {
  .person-grid.has-bio {
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
  }
}
.bio p {
  font-size: 1.0625rem;
  color: rgb(17 17 17 / 0.85);
}
.bio p + p {
  margin-top: 1.25rem;
}
.person-creds h3,
.person-engagements h3 {
  margin-top: 2.25rem;
  font-size: 1.375rem;
  color: var(--forest);
}
.person-creds h3:first-child {
  margin-top: 0;
}
.person-engagements {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgb(15 42 29 / 0.12);
}
.person-engagements h3 {
  margin-top: 0;
}
.person.bg-cream .tags li {
  background: var(--white);
}
.dot-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}
.dot-list li {
  position: relative;
  padding-left: 1.25rem;
  color: rgb(17 17 17 / 0.85);
}
.dot-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--brand);
}
.muted {
  margin-top: 0.5rem;
  color: var(--ink-70);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.tags li {
  padding: 0.375rem 1rem;
  border: 1px solid rgb(15 42 29 / 0.15);
  border-radius: 999px;
  background: var(--cream);
  color: var(--forest);
  font-size: 0.875rem;
}
.tags li.tag-more {
  border: 0;
  background: none;
  color: rgb(17 17 17 / 0.6);
}

/* NDA */
.nda-title {
  font-size: 1.875rem;
  color: var(--forest);
}
.nda {
  max-height: 32rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  overflow-y: auto;
  border: 1px solid rgb(15 42 29 / 0.15);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.95rem;
  color: rgb(17 17 17 / 0.85);
}
@media (min-width: 768px) {
  .nda {
    padding: 2.5rem;
  }
}
.nda ol {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.nda h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--forest);
}
.nda li p {
  margin-top: 0.5rem;
}

/* ---------- Contact + forms ---------- */
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--forest);
  color: var(--white);
}
.contact .cover-bg {
  opacity: 0.2;
}
.contact-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 2fr 3fr;
  }
}
.contact h2 {
  margin-top: 0.75rem;
  font-size: clamp(2.25rem, 4vw, 3rem);
}
.contact-copy p:not(.eyebrow) {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: rgb(255 255 255 / 0.8);
}
.social {
  display: flex;
  gap: 0.75rem;
}
.social a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 50%;
  color: rgb(255 255 255 / 0.85);
  transition:
    background-color 0.2s,
    border-color 0.2s;
}
.social a:hover {
  border-color: var(--leaf);
  background: var(--leaf);
  color: var(--white);
}
.social svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.form {
  display: grid;
  gap: 1.25rem;
}
.form-row {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
}
.field .optional {
  font-weight: 400;
  opacity: 0.7;
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  margin-top: 0.375rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgb(0 0 0 / 0.15);
  border-radius: 0.5rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgb(63 174 42 / 0.35);
}
.form-dark .field label,
.form-dark .check {
  color: rgb(255 255 255 / 0.9);
}
.form-dark .field input,
.form-dark .field textarea {
  border-color: rgb(255 255 255 / 0.2);
  background: rgb(255 255 255 / 0.1);
  color: var(--white);
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
}
.check input {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.1rem 0 0;
  accent-color: var(--brand);
}
.error {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #b91c1c;
}
.form-dark .error {
  color: #fca5a5;
}
.error:empty {
  display: none;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.form-success {
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: rgb(41 137 21 / 0.1);
}
.form-dark + .form-success,
.contact .form-success {
  background: rgb(255 255 255 / 0.1);
}
.form-success strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--deep);
  color: rgb(255 255 255 / 0.7);
}
.footer-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-block: 3rem;
}
@media (min-width: 768px) {
  .footer-main {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.footer-main img {
  height: 3rem;
  width: auto;
}
.footer-main p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.875rem;
}
.footer-nav a {
  text-decoration: none;
}
.footer-nav a:hover {
  color: var(--white);
}
.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 0.1);
  padding-block: 1.25rem;
  font-size: 0.75rem;
}

/* ---------- Video dialog ---------- */
/* Keep the page behind an open pop-up from scrolling */
html:has(dialog[open]) {
  overflow: hidden;
}
.video-dialog {
  width: min(92vw, 1100px);
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.video-dialog::backdrop {
  background: rgb(0 0 0 / 0.85);
}
.video-close {
  position: absolute;
  top: -3rem;
  right: 0;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.video-close:hover {
  background: rgb(255 255 255 / 0.1);
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #000;
}
.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.video-fallback {
  margin-top: 0.75rem;
  text-align: right;
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.7);
}
.video-fallback a {
  font-weight: 600;
  color: var(--white);
}

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
