/* ==========================================================================
   Major Cool Beans — field-paper theme
   Deep logo teal on warm cream, amber accents. No frameworks.
   ========================================================================== */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/instrument-sans-latin.woff2') format('woff2');
}

:root {
  --teal: #0d4a56;          /* logo ink */
  --teal-deep: #072e36;     /* dark bands */
  --teal-deeper: #04222a;
  --ink: #123742;           /* body text on cream */
  --ink-soft: #48626b;
  --cream: #f7f2e7;         /* page */
  --cream-warm: #f1e9d7;    /* alt bands */
  --card: #fffdf7;
  --amber: #e3a94f;         /* CTA fill */
  --amber-deep: #b07818;    /* accents on cream */
  --gold-soft: rgba(227, 169, 79, 0.35);
  --line: rgba(13, 74, 86, 0.16);
  --line-dark: rgba(247, 242, 231, 0.16);

  --font-display: 'Bricolage Grotesque', 'Georgia', serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--teal);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }

a { color: var(--teal); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; top: -3rem; left: 1rem; z-index: 200;
  background: var(--teal); color: var(--cream);
  padding: 0.6rem 1rem; border-radius: 0 0 8px 8px;
  text-decoration: none; transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

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

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 0.85rem 1.7rem; border-radius: 10px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s ease;
}

.btn-primary {
  background: var(--amber);
  color: var(--teal-deeper);
  box-shadow: 0 2px 0 rgba(13, 74, 86, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px var(--gold-soft);
}

.btn-ghost {
  border-color: var(--line); color: var(--teal); background: transparent;
}
.btn-ghost:hover { background: rgba(13, 74, 86, 0.06); }

.btn-ghost-light {
  border-color: var(--line-dark); color: var(--cream); background: transparent;
}
.btn-ghost-light:hover { background: rgba(247, 242, 231, 0.08); }

.btn-nav {
  background: var(--teal); color: var(--cream) !important;
  padding: 0.55rem 1.2rem; border-radius: 8px; font-size: 0.9rem;
}
.btn-nav:hover { background: var(--teal-deep); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(247, 242, 231, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0.7rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  text-decoration: none;
}

.brand-name {
  font-family: var(--font-display); font-weight: 750; font-size: 1.15rem;
  color: var(--teal); letter-spacing: -0.01em; white-space: nowrap;
}
.brand-name em { font-style: normal; color: var(--amber-deep); }

.nav-menu {
  display: flex; align-items: center; gap: 1.9rem; list-style: none;
}

.nav-menu a:not(.btn-nav) {
  text-decoration: none; color: var(--ink-soft);
  font-size: 0.92rem; font-weight: 500;
  transition: color 0.25s ease;
}
.nav-menu a:not(.btn-nav):hover { color: var(--teal); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 9.5rem 1.5rem 5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 85% 20%, rgba(227, 169, 79, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 60% 45% at 10% 85%, rgba(13, 74, 86, 0.07) 0%, transparent 55%),
    var(--cream);
}

/* subtle drill-grid backdrop */
.hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(13, 74, 86, 0.12) 1px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 75% 70% at 65% 35%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 65% 35%, black 0%, transparent 70%);
}

.hero-inner {
  position: relative;
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem; align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--teal);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 0.45rem 1rem; border-radius: 100px;
  margin-bottom: 1.6rem;
  opacity: 0; animation: rise 0.8s var(--ease) 0.1s forwards;
}

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber-deep);
  box-shadow: 0 0 0 0 var(--gold-soft);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--gold-soft); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  font-weight: 800;
  margin-bottom: 1.3rem;
  opacity: 0; animation: rise 0.9s var(--ease) 0.25s forwards;
}

.hero h1 .accent {
  color: var(--amber-deep);
  text-decoration: underline;
  text-decoration-color: var(--gold-soft);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.13em;
}

.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 34em; margin-bottom: 2.1rem;
  opacity: 0; animation: rise 0.9s var(--ease) 0.4s forwards;
}

.hero-actions {
  display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1.9rem;
  opacity: 0; animation: rise 0.9s var(--ease) 0.55s forwards;
}

/* Emblem: the logo in slow-turning dashed rings.
   The container is a square that fully encloses the rings, so they can
   never bleed into neighboring sections. */
.hero-emblem {
  position: relative;
  width: min(470px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
  display: grid; place-items: center;
  opacity: 0; animation: rise 1.1s var(--ease) 0.45s forwards;
}

.hero-emblem picture { position: relative; z-index: 1; }

.hero-emblem img {
  width: 85%;
  margin: 0 auto;
  filter: drop-shadow(0 24px 40px rgba(13, 74, 86, 0.22));
  animation: bob 7s ease-in-out infinite;
}

.emblem-rings {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(13, 74, 86, 0.3);
  animation: spin 60s linear infinite;
}

.emblem-rings::before {
  content: '';
  position: absolute; inset: 7.5%;
  border-radius: 50%;
  border: 1px solid rgba(176, 120, 24, 0.35);
}

/* Star sits on the non-rotating container so it stays fixed at the top
   while the dashed ring spins beneath it */
.hero-emblem::after {
  content: '★';
  position: absolute; top: -0.75rem; left: 50%;
  transform: translateX(-50%);
  color: var(--amber-deep); font-size: 1.25rem;
  background: var(--cream); padding: 0 0.3rem;
  z-index: 2;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Sections ---------- */

.section { padding: 5.5rem 0; }
.section-alt { background: var(--cream-warm); }

.section-dark {
  background:
    radial-gradient(ellipse 55% 70% at 80% 0%, rgba(227, 169, 79, 0.1) 0%, transparent 55%),
    linear-gradient(175deg, var(--teal-deep) 0%, var(--teal-deeper) 100%);
  color: rgba(247, 242, 231, 0.85);
}
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark .eyebrow { color: var(--amber); }
.section-dark .section-sub { color: rgba(247, 242, 231, 0.7); }

.section-head { text-align: center; max-width: 46em; margin: 0 auto 3.2rem; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 0.8rem;
}

.section-sub { color: var(--ink-soft); margin-top: 0.9rem; font-size: 1.05rem; }

/* ---------- About ---------- */

.about-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem;
  align-items: start;
}

.about-copy p { color: var(--ink-soft); font-size: 1.06rem; }
.about-copy p + p { margin-top: 1.1rem; }

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

.card-grid { display: grid; gap: 1.3rem; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(176, 120, 24, 0.45);
  box-shadow: 0 18px 40px rgba(13, 74, 86, 0.12);
}

.card h3 { margin-bottom: 0.55rem; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }

.card-center { text-align: center; }

.card-icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(13, 74, 86, 0.07);
  border: 1px solid var(--line);
  color: var(--teal);
  margin-bottom: 1.1rem;
  transition: background 0.35s ease, color 0.35s ease;
}
.card-icon svg { width: 25px; height: 25px; }
.card:hover .card-icon { background: var(--teal); color: var(--amber); }

.marketplace-name {
  font-size: 1.6rem; font-weight: 800; margin-bottom: 0.6rem;
}

.pillar { position: relative; padding-top: 2.2rem; }
.pillar h3 { padding-right: 3.2rem; }
.pillar-num {
  position: absolute; top: 1.2rem; right: 1.4rem;
  font-family: var(--font-display); font-weight: 800; font-size: 2rem;
  color: rgba(176, 120, 24, 0.25); line-height: 1;
}

/* ---------- Credentials ---------- */

.cred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }

.cred-col {
  background: rgba(247, 242, 231, 0.045);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 2rem;
}

.cred-col h3 { color: var(--amber); margin-bottom: 1.2rem; }

.check-list { list-style: none; display: grid; gap: 0.9rem; }

.check-list li {
  position: relative; padding-left: 1.9rem;
  font-size: 0.95rem; color: rgba(247, 242, 231, 0.78);
}
.check-list li strong { color: var(--cream); font-weight: 600; }
.check-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: var(--amber); font-weight: 700;
}

/* ---------- Consulting lists ---------- */

.dash-list { list-style: none; display: grid; gap: 0.45rem; margin-top: 0.4rem; }
.dash-list li {
  position: relative; padding-left: 1.3rem;
  color: var(--ink-soft); font-size: 0.95rem;
}
.dash-list li::before {
  content: '—'; position: absolute; left: 0; color: var(--amber-deep);
}

.engagement { text-align: center; margin-top: 3rem; }
.engagement h3 { margin-bottom: 1rem; }

.engagement-tags {
  display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap;
}

.tag {
  background: var(--card);
  border: 1px solid rgba(176, 120, 24, 0.4);
  color: var(--teal);
  font-weight: 600; font-size: 0.9rem;
  padding: 0.5rem 1.1rem; border-radius: 100px;
}

/* ---------- CTA ---------- */

.cta { padding: 6rem 0; text-align: center; }

.cta-inner { max-width: 42em; }
.cta-inner h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 1rem; }
.cta-inner p { color: rgba(247, 242, 231, 0.75); font-size: 1.1rem; margin-bottom: 2.2rem; }

.cta-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

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

.footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 1.8rem;
}

.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand-col p {
  margin-top: 1rem; color: var(--ink-soft); font-size: 0.92rem; max-width: 26em;
}

.footer-col h4 {
  font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; display: grid; gap: 0.5rem; }

.footer-col a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.93rem;
  transition: color 0.25s ease;
}
.footer-col a:hover { color: var(--amber-deep); }

.footer-col address { font-style: normal; display: grid; gap: 0.5rem; }
.footer-col address p { color: var(--ink-soft); font-size: 0.93rem; }

.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  border-top: 1px solid var(--line); padding-top: 1.6rem;
  color: var(--ink-soft); font-size: 0.85rem;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Stagger siblings inside grids */
.card-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.card-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.card-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.card-grid .reveal:nth-child(5) { transition-delay: 0.4s; }
.card-grid .reveal:nth-child(6) { transition-delay: 0.5s; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 2rem; }
}

@media (max-width: 860px) {
  .hero { padding-top: 7.5rem; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-emblem { order: -1; width: min(290px, 78%); margin-top: 0.75rem; margin-bottom: 1rem; }
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .cred-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Mobile nav */
  .nav-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    background: transparent; border: 1px solid var(--line); border-radius: 8px;
    cursor: pointer;
  }
  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    display: block; width: 20px; height: 2px;
    background: var(--teal); border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s ease;
  }
  .nav-toggle-bar { position: relative; }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ''; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -6px; }
  .nav-toggle-bar::after { top: 6px; }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: rotate(-90deg) translateX(-6px); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { opacity: 0; }

  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1.2rem;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { padding: 0.55rem 0; }
  .nav-menu .btn-nav { display: inline-block; text-align: center; margin-top: 0.5rem; }
}

@media (max-width: 640px) {
  .cols-3, .cols-2 { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-badge, .hero h1, .hero-sub, .hero-actions, .hero-emblem,
  .reveal { opacity: 1; transform: none; }
}
