/* ==========================================================================
   Reusable components
   ========================================================================== */

/* --- Skip link ------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  z-index: 100;
  background: var(--color-dark);
  color: var(--color-background);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-sm);
}

/* --- Focus states ------------------------------------------------------ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --- Layout helpers ------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section {
  padding-block: var(--space-2xl);
}

.section--tight {
  padding-block: var(--space-xl);
}

.section--alt {
  background-color: var(--color-soft-rose);
}

/* Pale lavender is a supporting surface, used sparingly (e.g. Perspectives) —
   not a replacement for the cream/soft-rose alternating pattern. Padding is
   intentionally more generous than the base .section value so this section
   reads as a stronger, more substantial moment on the page — but still
   clearly smaller than the hero's own scale (see styles.css .hero). */
.section--lavender {
  background-color: var(--color-lavender);
  padding-block: 7rem;
}

.section--lavender .lede {
  font-size: var(--fs-lg);
  font-weight: 500;
}

#testimonials-heading {
  font-size: var(--fs-3xl);
}

.section-heading {
  max-width: 44rem;
  margin-bottom: var(--space-lg);
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

/* Used on the "Perspectives" section label. Kept as Dark Brown rather than
   Hot Pink: Hot Pink measures well under the 4.5:1 AA text minimum against
   every background in this palette (2.05–2.64:1), so it is reserved for
   decorative icons/borders only, never for text. */
.eyebrow--plum {
  color: var(--color-dark);
  font-size: var(--fs-sm);
}

/* --- Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  line-height: 1;
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  text-align: center;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-text-on-primary);
  border-color: var(--color-primary);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-dark);
  border-color: var(--color-dark);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background-color: var(--color-dark);
  color: var(--color-background);
}

.btn--on-dark {
  background-color: transparent;
  color: var(--color-background);
  border-color: var(--color-background);
}

.btn--on-dark:hover,
.btn--on-dark:focus-visible {
  background-color: var(--color-background);
  color: var(--color-dark);
}

.btn--text {
  padding: 0.5rem 0.1rem;
  border: none;
  border-bottom: 2px solid currentColor;
  border-radius: 0;
  color: var(--color-dark);
  font-weight: 600;
}

.btn--text:hover,
.btn--text:focus-visible {
  color: var(--color-primary);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
}

/* --- Utility bar ------------------------------------------------------- */
.utility-bar {
  background-color: var(--color-dark);
  color: var(--color-background);
}

.utility-bar__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-block: var(--space-2xs);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  text-align: center;
}

/* --- Site header ------------------------------------------------------- */
.site-header {
  background-color: var(--color-background);
  border-bottom: var(--border-width) solid var(--color-blush);
  position: sticky;
  top: 0;
  z-index: 80;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-block: var(--space-sm);
}

/* Official logo mark. Sized by height with width:auto so the image's
   own aspect ratio is always preserved — never stretched or squashed.
   Smaller below the 1200px cutover (see responsive.css) to match the
   compact mobile header without crowding the Menu control. */
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand__logo {
  display: block;
  height: 3.5rem;
  width: auto;
}

/* --- Desktop primary navigation (>=1200px is the default/base state) ---
   Anchored (not centered) with a fixed minimum offset from the logo:
   centering an item wider than its flex box lets it silently overflow
   both neighbors, so the nav gets a guaranteed left gap instead. */
.primary-nav {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 2.25rem;
  min-width: 0;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.primary-nav__list > li {
  display: flex;
}

.primary-nav__list a {
  position: relative;
  padding-block: var(--space-2xs);
}

.primary-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.primary-nav__list a:hover::after,
.primary-nav__list a:focus-visible::after,
.primary-nav__list a[aria-current="page"]::after {
  transform: scaleX(1);
}

.primary-nav__list a[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 700;
}

.header-cta {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.85rem 1.5rem;
}

/* --- "More" dropdown (desktop secondary links) --- */
.nav-more {
  position: relative;
}

.nav-more summary {
  display: flex;
  align-items: center;
  gap: 0.35em;
  cursor: pointer;
  list-style: none;
  padding-block: var(--space-2xs);
}

.nav-more summary::-webkit-details-marker {
  display: none;
}

.nav-more summary::marker {
  content: "";
}

.nav-more__chevron {
  width: 0.65em;
  height: 0.65em;
  color: var(--color-plum);
  transition: transform var(--transition-fast);
}

.nav-more[open] .nav-more__chevron {
  transform: rotate(180deg);
}

.nav-more__panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  min-width: 10rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-blush);
  border-radius: var(--radius-md);
  padding: 0.4rem;
  box-shadow: 0 14px 32px rgba(66, 38, 39, 0.16);
}

.nav-more__panel li a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--color-dark);
}

.nav-more__panel li a:hover,
.nav-more__panel li a:focus-visible {
  background-color: var(--color-lavender);
}

/* --- Mobile navigation (hidden by default; shown below 1200px) --- */
.mobile-nav {
  display: none;
}

.mobile-nav__toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  cursor: pointer;
  list-style: none;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--color-blush);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-dark);
}

.mobile-nav__toggle::-webkit-details-marker {
  display: none;
}

.mobile-nav__toggle::marker {
  content: "";
}

.mobile-nav__icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 13px;
  flex-shrink: 0;
}

.mobile-nav__icon .bar {
  display: block;
  height: 2px;
  border-radius: 1px;
  background-color: currentColor;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-nav[open] .mobile-nav__icon .bar:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.mobile-nav[open] .mobile-nav__icon .bar:nth-child(2) {
  opacity: 0;
}

.mobile-nav[open] .mobile-nav__icon .bar:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.mobile-nav__toggle-label--open {
  display: none;
}

.mobile-nav[open] .mobile-nav__toggle-label--closed {
  display: none;
}

.mobile-nav[open] .mobile-nav__toggle-label--open {
  display: inline;
}

/* Fixed to the viewport (not the header) so it always starts directly
   below the header row and is fully reachable regardless of scroll
   position — an absolutely-positioned panel would otherwise anchor to
   the header's containing block and could render off-screen once the
   page had been scrolled before the menu was opened. */
.mobile-nav__panel {
  position: fixed;
  top: var(--header-height-mobile);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background-color: var(--color-background);
  border-top: 1px solid var(--color-blush);
  padding: var(--space-md) var(--container-padding) var(--space-lg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 18px 36px rgba(66, 38, 39, 0.16);
}

/* Lock background scroll while the mobile menu is open, without JS.
   Falls back gracefully (page stays scrollable) in browsers without
   :has() support. */
body:has(.mobile-nav[open]) {
  overflow: hidden;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  margin-bottom: var(--space-md);
}

.mobile-nav__list a {
  display: block;
  padding: 0.85rem 0.25rem;
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--color-dark);
  border-bottom: 1px solid var(--color-blush);
}

.mobile-nav__list a[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 700;
}

.mobile-nav__cta {
  width: 100%;
}

/* --- Cards --------------------------------------------------------- */
.card {
  background-color: var(--color-surface);
  border: var(--border-width) solid var(--color-blush);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  height: 100%;
}

.card--soft {
  background-color: var(--color-soft-rose);
  border-color: transparent;
}

.card__icon {
  width: 3rem;
  height: 3rem;
  color: var(--color-hot-pink);
  margin-bottom: var(--space-sm);
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  color: var(--color-dark);
  margin-bottom: var(--space-2xs);
}

.card__text {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

/* --- Image placeholders ------------------------------------------------ */
.img-placeholder {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  background-color: var(--color-soft-rose);
  background-image:
    repeating-linear-gradient(135deg, rgba(66, 38, 39, 0.06) 0, rgba(66, 38, 39, 0.06) 2px, transparent 2px, transparent 14px);
  border: 1px dashed var(--color-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  color: var(--color-dark);
}

.img-placeholder--16-9 { aspect-ratio: 16 / 9; }
.img-placeholder--4-3 { aspect-ratio: 4 / 3; }
.img-placeholder--1-1 { aspect-ratio: 1 / 1; }
.img-placeholder--3-4 { aspect-ratio: 3 / 4; }
.img-placeholder--4-5 { aspect-ratio: 4 / 5; }
.img-placeholder--21-9 { aspect-ratio: 21 / 9; }

/* Container for a real photo (as opposed to .img-placeholder's dashed
   "no image yet" treatment). Pairs with the aspect-ratio modifiers above,
   e.g. class="media-photo img-placeholder--4-5". */
.media-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

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

.img-placeholder__icon {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 1.75rem;
  height: 1.75rem;
  color: var(--color-primary);
  opacity: 0.6;
}

/* --- Tags / pills -------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background-color: var(--color-blush);
  color: var(--color-dark);
}

.tag--outline {
  background-color: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

/* --- Logo strip ------------------------------------------------------- */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg) var(--space-xl);
}

.logo-strip__item {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  opacity: 0.85;
}

/* --- Featured project cards --------------------------------------- */
.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-blush);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-surface);
  height: 100%;
}

.project-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  flex: 1;
}

.project-card__category {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.project-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  color: var(--color-dark);
}

.project-card__text {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  flex: 1;
}

.project-card__link {
  margin-top: var(--space-xs);
  font-weight: 700;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
  width: fit-content;
}

.project-card__link:hover,
.project-card__link:focus-visible {
  color: var(--color-dark);
  border-color: var(--color-dark);
}

/* --- Testimonial cards ---------------------------------------------- */
.testimonial-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-blush);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.testimonial-card__quote {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  line-height: var(--lh-snug);
  color: var(--color-dark);
}

.testimonial-card__quote::before {
  content: "\201C";
  color: var(--color-primary);
}

.testimonial-card__quote::after {
  content: "\201D";
  color: var(--color-primary);
}

.testimonial-card__meta {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.testimonial-card__meta strong {
  display: block;
  color: var(--color-dark);
}

/* --- Social-proof category cards (neutral, no fabricated quotes) --- */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.proof-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid var(--color-hot-pink);
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
  height: 100%;
}

.proof-card__icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: var(--color-lavender);
  color: var(--color-hot-pink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.proof-card__icon svg {
  width: 1.875rem;
  height: 1.875rem;
}

.proof-card__label {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  color: var(--color-dark);
}

/* --- Founder / split section ----------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.split--reverse .split__media {
  order: 2;
}

/* --- Differentiators list --------------------------------------------- */
.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.check-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  font-size: var(--fs-md);
  color: var(--color-dark);
}

.check-list__icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-primary);
  margin-top: 0.15em;
}

/* --- Video reel -------------------------------------------------------- */
.video-feature {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.video-feature__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background-color: var(--color-background);
  /* Burgundy rather than Hot Pink: this is a functional play control, not a
     decorative icon, so it must clear the 3:1 non-text AA minimum — Hot Pink
     fails against every background in this palette (max 2.64:1). */
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-background);
}

.video-feature__play svg {
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 3px;
}

.video-feature__caption {
  position: absolute;
  bottom: var(--space-lg);
  left: 0;
  right: 0;
  text-align: center;
  color: var(--color-background);
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
}

/* --- Forms (visual only in Phase 1) ------------------------------------ */
.form-grid {
  display: grid;
  gap: var(--space-md);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.form-field label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-dark);
}

.form-field input,
.form-field textarea,
.form-field select {
  border: 1px solid var(--color-blush);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  background-color: var(--color-surface);
  font-size: var(--fs-sm);
}

.form-field--radio-group {
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
}

.form-note {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* --- Calendly placeholder ---------------------------------------------- */
.calendly-placeholder {
  border: 1px dashed var(--color-primary);
  border-radius: var(--radius-md);
  background-color: var(--color-soft-rose);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

/* --- Footer ------------------------------------------------------- */
.site-footer {
  background-color: var(--color-dark);
  color: var(--color-background);
}

.site-footer a {
  color: var(--color-background);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--color-blush);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: var(--space-lg);
  padding-block: var(--space-xl) var(--space-md);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blush);
  margin-bottom: var(--space-sm);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-size: var(--fs-sm);
}

.footer-logo {
  display: block;
  height: 3rem;
  width: auto;
  margin-bottom: var(--space-sm);
}

.footer-tagline {
  font-size: var(--fs-sm);
  color: var(--color-blush);
  margin-bottom: var(--space-sm);
}

.footer-desc {
  font-size: var(--fs-sm);
  color: var(--color-soft-rose);
  max-width: 32ch;
}

.social-row {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.social-row a {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-blush);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-row svg {
  width: 1.1rem;
  height: 1.1rem;
}

.newsletter-form {
  display: flex;
  gap: var(--space-2xs);
  margin-top: var(--space-xs);
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-blush);
  border-radius: var(--radius-sm);
  background-color: transparent;
  color: var(--color-background);
}

.newsletter-form input::placeholder {
  color: var(--color-blush);
}

.footer-bottom {
  border-top: 1px solid rgba(246, 222, 212, 0.2);
  padding-block: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--color-soft-rose);
}

/* --- Placeholder page notice --------------------------------------- */
.notice-banner {
  background-color: var(--color-soft-rose);
  border: 1px solid var(--color-blush);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.notice-banner__title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  color: var(--color-dark);
  margin-bottom: var(--space-2xs);
}

/* --- Page hero (interior pages) ------------------------------------ */
.page-hero {
  background-color: var(--color-dark);
  color: var(--color-background);
}

.page-hero__inner {
  padding-block: var(--space-2xl) var(--space-xl);
  max-width: 46rem;
}

.page-hero__eyebrow {
  color: var(--color-soft-rose);
}

.page-hero h1 {
  color: var(--color-background);
}

.page-hero p {
  color: var(--color-blush);
  font-size: var(--fs-md);
  margin-top: var(--space-sm);
}

/* --- Breadcrumb-style back link ------------------------------------ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-primary);
}
