/* Woods & Co. — landing page styles.
   Base rules + hover states. Element geometry lives inline in index.html
   (faithful to the source design); hover states that inline CSS can't express
   are defined here as .wc-* classes. */

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

html, body {
  margin: 0;
  background: var(--bg-app);
}
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--onyx-800);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
a:hover { color: var(--onyx-950); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  text-wrap: pretty;
}
p { margin: 0; text-wrap: pretty; }

::selection { background: var(--ember-300); color: var(--ink-900); }

img { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ---- Eyebrow / label ---- */
.wc-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-accent);
}

/* ---- Interactive hover states (replacing the source `style-hover`) ---- */
.wc-btn { transition: background var(--dur-fast) var(--ease-standard); }

.wc-btn-onyx:hover      { background: var(--onyx-950); }
.wc-btn-ember:hover     { background: var(--ember-600); }
.wc-btn-outline:hover   { background: var(--bg-inset); }
.wc-btn-ghost-dark:hover{ background: var(--onyx-800); }
.wc-btn-icon:hover      { background: var(--bg-inset); }

/* ---- Scroll reveal (progressive enhancement; JS adds .wc-in) ---- */
.wc-reveal {
  opacity: 0;
  transform: translateY(24px);
}
.wc-reveal.wc-in {
  opacity: 1;
  transform: none;
  transition: opacity 640ms var(--ease-standard), transform 640ms var(--ease-standard);
}
@media (prefers-reduced-motion: reduce) {
  .wc-reveal { opacity: 1; transform: none; }
}
/* If JS is unavailable, never leave content hidden. */
.no-js .wc-reveal { opacity: 1; transform: none; }

/* ---- Dialog (browser-native <dialog>, rendered in the top layer) ---- */
dialog#pilot-dialog {
  padding: 0;
  border: none;
  background: transparent;
  width: calc(100% - 48px);
  max-width: 920px;
  max-height: 92vh;
  overflow: visible;
  color: var(--text-body);
}
dialog#pilot-dialog::backdrop {
  background: color-mix(in srgb, var(--ink-900) 55%, transparent);
  backdrop-filter: blur(2px);
}
.wc-dialog-panel {
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.wc-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 32px 22px;
  border-bottom: 1px solid var(--border-hairline);
}
.wc-dialog-close {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--surface-card);
  color: var(--text-strong);
  cursor: pointer;
}
.wc-dialog-close i { width: 20px; height: 20px; }
.wc-dialog-body {
  position: relative;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px 12px 12px;
}
#cal-inline-pilot {
  position: relative;
  width: 100%;
  min-height: 560px;
  overflow: hidden;   /* clips the trimmed top padding below */
}
/* Cal.com reserves ~45px of empty padding at the top of its booker, inside a
   cross-origin widget we can't style directly. Pull the whole embed up to reclaim
   it (cal-inline sits in normal block flow, so its margin is reliable; the iframe
   itself is a flex item and is not). #cal-inline-pilot clips the trimmed top.
   Tune this single value if you want the calendar tighter or looser to the header. */
#cal-inline-pilot cal-inline {
  display: block;
  margin-top: -34px;
}

/* Cal.com loading placeholder — sits behind the calendar so the iframe covers it when ready */
.wc-cal-loading {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 15px;
}
[data-cal-loading] i { animation: wc-spin 900ms linear infinite; }
@keyframes wc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  [data-cal-loading] i { animation: none; }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .wc-nav { display: none !important; }
  .wc-grid-2,
  .wc-engagements,
  .wc-split { grid-template-columns: 1fr !important; }
  .wc-method-grid { grid-template-columns: repeat(2, 1fr) !important; }
  /* Stack: rotate only the arrow disc so it points down toward the Cadence
     card, and keep the "Where most continue" label upright and centered. */
  .wc-arrow-cell {
    width: auto !important;
    justify-self: center;
    flex-direction: column;
    padding: 4px 0 10px;
  }
  .wc-arrow-cell > div { transform: rotate(90deg); }
  .wc-h1 { font-size: 48px !important; }
  .wc-h2-xl { font-size: 46px !important; }
  .wc-h2 { font-size: 34px !important; }
}
@media (max-width: 560px) {
  .wc-container-pad { padding-left: 22px !important; padding-right: 22px !important; }
  .wc-method-grid { grid-template-columns: 1fr !important; }
  .wc-h1 { font-size: 38px !important; }
  .wc-h2-xl { font-size: 36px !important; }
  .wc-hero-sub { font-size: 19px !important; }
}
