/* Trevano - mobile-first global styles */

:root {
  --color-primary: #1B2A4A;
  --color-accent: #C8973A;
  --color-bg: #F9F7F4;
  --color-text: #1E1E1E;
  --color-gray: #EDEAE6;
  --color-white: #FFFFFF;
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --text-base: 17px;
  --leading: 1.7;
  --header-height: 4.25rem;
  --shadow-header: 0 2px 12px rgba(27, 42, 74, 0.12);
  --shadow-soft: 0 4px 24px rgba(27, 42, 74, 0.07);
  --shadow-card: 0 8px 32px rgba(27, 42, 74, 0.08), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  --shadow-hover: 0 14px 40px rgba(27, 42, 74, 0.12);
  --radius: 6px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --border-hairline: 1px solid rgba(27, 42, 74, 0.1);
  --section-space-y: 2.75rem;
  --section-space-y-lg: 4.5rem;
  --section-space-y-mobile: 3.35rem;
  --container: min(100% - 1.5rem, 72rem);
  --transition: 0.25s ease;
  --transition-lift: transform 0.28s ease, box-shadow 0.28s ease;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-in-section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .service-card:hover,
  .service-card,
  .step-item:hover,
  .step-item,
  .step-num-diamond,
  .step-num,
  .stat-panel:hover,
  .stat-panel,
  .fit-col:hover,
  .fit-col,
  .cta-primary:hover,
  .cta-submit:hover,
  .testimonial-card {
    transform: none !important;
  }

  .cta-primary:hover,
  .mobile-cta:hover,
  .cta-submit:hover {
    outline: none !important;
  }

  .section-divider {
    transform: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading);
  color: var(--color-text);
  background: var(--color-bg);
}

h1,
h2,
h3,
.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  margin: 0 0 1rem;
  color: var(--color-white);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.125rem);
  margin: 0 0 1.25rem;
}

h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

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

a {
  color: var(--color-accent);
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

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

@media (max-width: 767px) {
  .section-padding {
    padding-block: var(--section-space-y-mobile);
  }
}

@media (min-width: 768px) {
  .section-padding {
    padding-block: var(--section-space-y-lg);
  }
}

.section-kicker {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.65rem;
}

.section-title-centered {
  text-align: center;
  max-width: 22em;
  margin-inline: auto;
  text-wrap: balance;
}

.section-head {
  text-align: center;
  margin-bottom: 2.25rem;
}

.section-head .section-kicker {
  margin-bottom: 0.75rem;
}

.section-head .section-title-centered {
  margin-bottom: 0;
}

.section-head h2 {
  margin-bottom: 0;
}

.prose-narrow {
  max-width: 42rem;
  margin-inline: auto;
}

.prose-narrow p {
  font-size: 1.02rem;
  line-height: 1.75;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 2000;
  padding: 0.75rem 1rem;
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-primary);
  border-bottom: 1px solid #c8973a;
  transition: box-shadow var(--transition), opacity var(--transition);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-header), 0 3px 0 -1px #c8973a;
  border-bottom: 2px solid #c8973a;
  opacity: 0.98;
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: var(--container);
  margin-inline: auto;
  min-height: var(--header-height);
  padding-block: 0.5rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
  text-decoration: none;
  color: var(--color-accent);
}

.logo-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.logo-img {
  height: 2.5rem;
  width: auto;
  display: block;
  object-fit: contain;
}

@media (min-width: 900px) {
  .logo-img {
    height: 2.75rem;
  }
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.05;
  color: inherit;
}

@media (min-width: 900px) {
  .site-header .logo-text {
    font-size: 1.6rem;
    letter-spacing: 0.02em;
  }
}

.main-nav-desktop {
  display: none;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-list a:hover {
  color: var(--color-accent);
}

.header-cta {
  display: none;
  flex-shrink: 0;
  line-height: 1.25;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition),
    var(--transition-lift), filter var(--transition);
}

.cta-primary,
.mobile-cta,
.cta-submit {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: inset 0 0 0 1px #a67c2a;
  transition: background var(--transition), color var(--transition), border-color var(--transition),
    var(--transition-lift), filter var(--transition), box-shadow 0.2s ease, outline 0.2s ease;
}

.cta-primary:hover,
.mobile-cta:hover,
.cta-submit:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 151, 58, 0.35), inset 0 0 0 1px #a67c2a;
  outline: 2px solid #c8973a;
  outline-offset: 3px;
}

.cta-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.hero .cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Hamburger */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  margin-inline: auto;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(100% - 3rem, 20rem);
  height: 100%;
  background: var(--color-primary);
  z-index: 999;
  transform: translateX(100%);
  transition: transform var(--transition);
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(200, 151, 58, 0.35);
}

.mobile-nav-logo {
  text-decoration: none;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
}

.mobile-nav-logo .logo-text {
  font-size: inherit;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}

.mobile-nav-links {
  list-style: none;
  margin: 0;
  padding: 1rem 1.25rem 2rem;
}

.mobile-nav-links li {
  margin-bottom: 0.5rem;
}

.mobile-nav-links a {
  display: block;
  padding: 0.65rem 0;
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
}

.mobile-nav-links a.mobile-cta {
  margin-top: 1rem;
  text-align: center;
  border-radius: var(--radius);
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 899px) {
  .header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem 0.65rem;
  }

  .header-inner .logo-link {
    grid-column: 1;
    align-self: center;
  }

  .header-cta {
    display: inline-flex;
    grid-column: 2;
    justify-self: center;
    align-self: center;
    margin: 0;
    padding: 0.5rem 0.75rem;
    max-width: 11.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    color: var(--color-white);
    background: transparent;
    border: 2px solid var(--color-accent);
    box-shadow: none;
    transform: none;
  }

  .header-cta:hover {
    color: var(--color-white);
    background: rgba(200, 151, 58, 0.14);
    filter: none;
    transform: none;
    outline: none;
    box-shadow: none;
  }

  .header-cta:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
  }

  .header-inner .mobile-menu-toggle {
    grid-column: 3;
    margin-left: 0;
    align-self: center;
  }

  .mobile-menu-toggle span {
    background: var(--color-accent);
  }
}

@media (min-width: 900px) {
  .mobile-menu-toggle {
    display: none;
  }

  .main-nav-desktop {
    display: block;
    flex: 1;
    margin-inline: 2rem;
  }

  .main-nav-desktop .nav-list {
    justify-content: center;
  }

  .header-cta {
    display: inline-flex;
    align-self: center;
    max-width: none;
    font-size: 1rem;
    padding: 0.7rem 1.35rem;
  }
}

/* Hero */
.hero-wrap {
  background: var(--color-primary);
}

.hero {
  position: relative;
  isolation: isolate;
  color: var(--color-white);
  padding-block: 3rem 2rem;
  min-height: clamp(22rem, 52vh, 38rem);
  display: flex;
  align-items: center;
  background-color: var(--color-primary);
  background-image: url("../images/hero-trevano-fractional-cmo.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    110deg,
    rgba(27, 42, 74, 0.96) 0%,
    rgba(27, 42, 74, 0.88) 38%,
    rgba(27, 42, 74, 0.55) 58%,
    rgba(27, 42, 74, 0.32) 100%
  );
}

@media (min-width: 768px) {
  .hero {
    padding-block: 4.5rem 2.25rem;
    min-height: clamp(26rem, 58vh, 42rem);
  }
}

.hero-eyebrow {
  display: none;
}

.hero-eyebrow-line {
  display: block;
  width: 2.75rem;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), rgba(200, 151, 58, 0.35));
  border-radius: 2px;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 40rem;
}

.hero-sub--mobile {
  display: none;
}

@media (max-width: 899px) {
  .hero-sub--desktop {
    display: none;
  }

  .hero-sub--mobile {
    display: block;
  }

  .hero .container {
    width: min(100% - 2.25rem, 72rem);
  }
}

.hero .cta-primary {
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35), inset 0 0 0 1px #a67c2a;
}

.hero .cta-secondary {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.hero h1 {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.6);
}

@media (max-width: 899px) {
  .hero {
    padding-block: 2.75rem 2.35rem;
  }

  .hero h1 {
    color: var(--color-accent);
    margin-bottom: 1.05rem;
  }

  .hero .hero-sub {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 1.65rem;
  }

  .hero .cta-buttons {
    gap: 0.9rem;
  }

  .cta-secondary {
    background: rgba(10, 18, 36, 0.75);
    border-color: var(--color-accent);
    color: var(--color-accent);
  }

  .hero .cta-secondary:hover {
    background: rgba(10, 18, 36, 0.9);
    color: var(--color-accent);
  }
}

@media (min-width: 900px) {
  .hero h1 {
    color: var(--color-white);
  }
}

.hero-stat-strip {
  background: linear-gradient(180deg, rgba(237, 234, 230, 0.95) 0%, var(--color-gray) 100%);
  padding-block: 1.5rem 1.75rem;
  border-top: var(--border-hairline);
}

.hero-stat-inner {
  display: grid;
  gap: 1rem;
  text-align: center;
}

.stat-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--color-white);
  padding: 1.25rem 1rem;
  border-radius: var(--radius-lg);
  border: var(--border-hairline);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-lift);
  height: 100%;
}

@media (max-width: 639px) {
  .stat-panel {
    padding: 1.35rem 1.2rem;
  }
}

.stat-panel:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

@media (min-width: 640px) {
  .hero-stat-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }

  .stat-panel {
    padding: 1.35rem 1.15rem;
  }
}

.hero .hero-sub {
  color: rgba(255, 255, 255, 0.96);
  max-width: 38rem;
  margin-bottom: 1.75rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55), 0 2px 12px rgba(0, 0, 0, 0.35);
}

.cta-secondary-mobile {
  display: none;
}

@media (max-width: 599px) {
  .cta-secondary-desktop {
    display: none;
  }

  .cta-secondary-mobile {
    display: inline;
  }
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

@media (min-width: 480px) {
  .cta-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

/* Credibility */
.credibility {
  background: var(--color-white);
}

.credibility-intro {
  max-width: 48rem;
  margin-bottom: 0;
}

.stat-label {
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  font-size: 1rem;
}

.stat-support {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  opacity: 0.92;
}

.about-cta-wrap {
  margin-top: 1.25rem;
  margin-bottom: 0;
}

.about-cta {
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-cta:hover {
  text-decoration-thickness: 2px;
}

/* About */
.about {
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-bg) 100%);
}

.about-grid {
  display: grid;
  gap: 2rem;
}

.about-copy .section-kicker {
  color: var(--color-accent);
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr minmax(200px, 280px);
    align-items: start;
    gap: 3rem;
  }
}

.pull-quote-block {
  position: relative;
  margin-top: 1.5rem;
  padding: 2rem 2.5rem;
  border-top: 1px solid #c8973a;
  border-bottom: 1px solid #c8973a;
  background: linear-gradient(#c8973a, #c8973a) 0 0 / 3px 100% no-repeat,
    linear-gradient(#c8973a, #c8973a) 7px 0 / 1px 100% no-repeat;
}

.pull-quote-block::before,
.pull-quote-block::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 7px;
  height: 7px;
  background: #c8973a;
  transform: translateX(-50%) rotate(45deg);
}

.pull-quote-block::before {
  top: 10px;
}

.pull-quote-block::after {
  bottom: 10px;
}

.pull-quote {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0;
}

.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding-block: 0.5rem;
}

.about-visual::before {
  content: "";
  position: absolute;
  width: min(280px, 78vw);
  height: min(280px, 78vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 151, 58, 0.22) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.headshot-frame {
  position: relative;
  z-index: 1;
  margin-inline: auto;
  line-height: 0;
  border-radius: 50%;
}

.headshot-frame::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(200, 151, 58, 0.4);
  pointer-events: none;
}

/* Services */
.services {
  background: var(--color-gray);
}

.service-cards {
  display: grid;
  gap: 1.35rem;
  overflow: visible;
}

@media (min-width: 640px) {
  .service-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.service-card {
  position: relative;
  overflow: visible;
  background: var(--color-white);
  padding: 1.65rem 1.5rem 1.5rem 1.85rem;
  border-radius: var(--radius-lg);
  border: var(--border-hairline);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-lift);
}

@media (max-width: 639px) {
  .service-card {
    padding: 1.65rem 1.35rem 1.5rem 1.75rem;
  }

  .service-cards {
    gap: 1.5rem;
  }
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 12px;
  background: linear-gradient(
    90deg,
    #c8973a 0,
    #c8973a 3px,
    transparent 3px,
    transparent 6px,
    #c8973a 6px,
    #c8973a 7px,
    transparent 7px
  );
  border-radius: 0;
  right: auto;
  height: auto;
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 3px;
  width: 6px;
  height: 6px;
  background: #c8973a;
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 0;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.service-card h3 {
  color: var(--color-primary);
  margin-top: 0.15rem;
}

/* How it works */
.how-it-works {
  background: var(--color-white);
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (max-width: 899px) {
  .steps-list {
    gap: 1.65rem;
  }

  .step-item {
    padding: 1.65rem 1.35rem;
  }
}

@media (min-width: 900px) {
  .steps-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    position: relative;
  }

  .steps-list::before {
    content: "";
    position: absolute;
    top: 2.55rem;
    left: 14%;
    right: 14%;
    height: 1px;
    background: #c8973a;
    z-index: 0;
    pointer-events: none;
  }
}

.step-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--color-white);
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius-lg);
  border: var(--border-hairline);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-lift);
  position: relative;
  z-index: 1;
}

.step-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.step-num-diamond {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #c8973a;
  background: var(--color-white);
  transform: rotate(45deg);
  z-index: 1;
}

.step-num {
  flex-shrink: 0;
  width: auto;
  height: auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  color: var(--color-primary);
  font-weight: 700;
  font-family: var(--font-body);
  border-radius: 0;
  box-shadow: none;
  transform: rotate(-45deg);
}

.step-item h3 {
  color: var(--color-primary);
}

/* Fit */
.fit {
  background: var(--color-gray);
}

.fit-columns {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .fit-columns {
    grid-template-columns: 1fr 1fr;
  }
}

.fit-col {
  background: var(--color-white);
  padding: 1.65rem 1.5rem;
  border-radius: var(--radius-lg);
  border: var(--border-hairline);
  border-top: 3px solid var(--color-accent);
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--transition), transform var(--transition);
}

.fit-col:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.fit-col.fit-bad {
  border-top-color: rgba(138, 58, 58, 0.45);
}

.fit-col h3 {
  margin-bottom: 1rem;
}

.fit-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fit-col li {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  align-items: flex-start;
}

@media (max-width: 639px) {
  .fit-col {
    padding: 1.65rem 1.25rem;
  }

  .fit-col li {
    gap: 0.85rem;
  }

  .fit-columns {
    gap: 1.5rem;
  }
}

.fit-icon {
  flex-shrink: 0;
  font-weight: 700;
}

.fit-yes {
  color: var(--color-primary);
}

.fit-no {
  color: #8a3a3a;
}

/* Testimonials */
.testimonials {
  background: var(--color-white);
}

.testimonial-grid {
  display: grid;
  gap: 1.35rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

@media (max-width: 767px) {
  .testimonial-grid {
    gap: 1.75rem;
    margin-bottom: 1.75rem;
  }

  .testimonial-card {
    padding: 1.75rem 1.35rem 1.5rem;
  }
}

.testimonial-card {
  margin: 0;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #243358 0%, var(--color-primary) 55%, #152038 100%);
  color: var(--color-white);
  padding: 1.65rem 1.5rem 1.5rem;
  border-radius: var(--radius-lg);
  position: relative;
  border: 1px solid rgba(200, 151, 58, 0.22);
  box-shadow: var(--shadow-hover);
  transition: box-shadow 0.28s ease;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0.18rem;
  left: 0.95rem;
  width: 20px;
  height: 20px;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #c8973a 2.5px, transparent 3px),
    linear-gradient(#c8973a, #c8973a) 50% 0 / 1px 6px no-repeat,
    linear-gradient(#c8973a, #c8973a) 50% 100% / 1px 6px no-repeat,
    linear-gradient(90deg, #c8973a, #c8973a) 0 50% / 6px 1px no-repeat,
    linear-gradient(90deg, #c8973a, #c8973a) 100% 50% / 6px 1px no-repeat,
    linear-gradient(45deg, #c8973a, #c8973a) 2px 2px / 1px 4px no-repeat,
    linear-gradient(45deg, #c8973a, #c8973a) calc(100% - 2px) 2px / 1px 4px no-repeat,
    linear-gradient(-45deg, #c8973a, #c8973a) 2px calc(100% - 2px) / 1px 4px no-repeat,
    linear-gradient(-45deg, #c8973a, #c8973a) calc(100% - 2px) calc(100% - 2px) / 1px 4px no-repeat;
}

.testimonial-card:hover {
  box-shadow: 0 22px 52px rgba(27, 42, 74, 0.28);
}

.testimonial-card p {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  margin-bottom: 0;
}

.quote-mark {
  position: absolute;
  top: 0.35rem;
  left: 0.85rem;
  font-family: var(--font-heading);
  font-size: 4.25rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.35;
  z-index: 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.testimonial-author {
  margin-top: auto;
  padding-top: 1.15rem;
  flex-shrink: 0;
  font-weight: 600;
  font-style: normal;
  color: var(--color-accent);
  font-size: 0.95rem;
  line-height: 1.35;
}

.logo-bar-label {
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.logo-bar {
  min-height: 3.5rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(27, 42, 74, 0.14);
  box-shadow: inset 0 2px 8px rgba(27, 42, 74, 0.04);
}

.logo-bar:empty {
  display: none;
}

.logo-bar-label:has(+ .logo-bar:empty) {
  display: none;
}

/* FAQ */
.faq {
  background: var(--color-white);
}

.faq-intro {
  text-align: center;
  margin: -0.35rem auto 2rem;
  max-width: 36rem;
  color: var(--color-text);
  opacity: 0.92;
  font-size: 1.02rem;
  line-height: 1.65;
}

.faq-list {
  max-width: 44rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--color-gray);
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq-item summary {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary);
  padding: 1.15rem 2.75rem 1.15rem 1.35rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  line-height: 1.35;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "\2013";
}

.faq-answer {
  padding: 0 1.35rem 1.2rem;
  border-top: 1px solid rgba(27, 42, 74, 0.08);
}

.faq-answer p {
  margin: 0;
  padding-top: 0.9rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--color-text);
}

/* Local SEO */
.local-seo {
  background: var(--color-white);
}

.local-seo h2 {
  max-width: 20em;
  text-wrap: balance;
  margin-top: 0;
}

.local-seo .section-kicker {
  margin-bottom: 0.75rem;
}

.local-seo .prose-narrow p {
  max-width: none;
}

.contact-intro .section-kicker {
  margin-bottom: 0.65rem;
}

.contact-intro h2 {
  margin-top: 0;
}

.headshot-img {
  display: block;
  width: min(220px, 78vw);
  height: min(220px, 78vw);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 3px solid var(--color-accent);
  box-shadow: var(--shadow-hover), 0 0 0 6px rgba(255, 255, 255, 0.95), 0 0 0 7px rgba(200, 151, 58, 0.35);
}

@media (min-width: 768px) {
  .headshot-img {
    width: 240px;
    height: 240px;
  }

  .about-visual::before {
    width: 300px;
    height: 300px;
  }
}

.inline-cta {
  font-weight: 700;
}

/* Contact */
.contact {
  background: var(--color-gray);
}

.contact-inner {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .contact-inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.trust-block {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(27, 42, 74, 0.12);
}

.trust-block a {
  color: var(--color-primary);
  font-weight: 600;
}

.contact-form {
  background: var(--color-white);
  padding: 2rem 1.75rem;
  border-radius: var(--radius-xl);
  border: var(--border-hairline);
  box-shadow: var(--shadow-card);
}

@media (max-width: 639px) {
  .contact-form {
    padding: 1.75rem 1.25rem;
  }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-primary);
}

.req {
  color: var(--color-accent);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font: inherit;
  border: 1px solid rgba(27, 42, 74, 0.2);
  border-radius: var(--radius);
  background: var(--color-white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.cta-submit {
  width: 100%;
  border: none;
}

.form-status {
  margin-top: 1rem;
  min-height: 1.5rem;
  font-weight: 600;
}

.form-status.success {
  color: var(--color-primary);
}

.form-status.error {
  color: #8a3a3a;
}

/* Footer */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #152038 0%, var(--color-primary) 45%, #121a2e 100%);
  color: var(--color-white);
  padding-block: 3rem 2.35rem;
  border-top: 1px solid #c8973a;
}

@media (min-width: 768px) {
  .site-footer {
    padding-block: 3.75rem 2rem;
  }
}

.site-footer a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-footer .footer-contact a:hover,
.site-footer .footer-nav a:hover {
  color: var(--color-accent);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 2rem 3rem;
    text-align: left;
    align-items: start;
    justify-content: space-between;
  }
}

.footer-brand {
  padding-bottom: 0.25rem;
  text-align: center;
}

.footer-brand-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 16rem;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .footer-brand {
    justify-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand-stack {
    margin-inline: auto;
  }
}

.footer-logo-rule {
  display: block;
  width: clamp(3.5rem, 52%, 5.85rem);
  height: 1px;
  margin: 0.55rem 0 0;
  flex-shrink: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(200, 151, 58, 0.25) 12%,
    #c8973a 35%,
    #c8973a 65%,
    rgba(200, 151, 58, 0.25) 88%,
    transparent
  );
  box-shadow: 0 0 12px rgba(200, 151, 58, 0.15);
}

.footer-wordmark {
  margin: 0.7rem 0 0;
  padding: 0;
  width: fit-content;
  font-family: var(--font-heading);
  font-size: clamp(1.48rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.045em;
  font-variant-numeric: proportional-nums;
  color: var(--color-accent);
  line-height: 1.08;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 0 1px rgba(200, 151, 58, 0.35);
}

.footer-logo-link {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}

.footer-logo-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.footer-logo-img {
  height: clamp(3.25rem, 12vw, 4.75rem);
  width: auto;
  max-width: 5.5rem;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.45));
}

@media (min-width: 768px) {
  .footer-logo-img {
    height: clamp(4.875rem, 18vw, 7.125rem);
    max-width: 7.5rem;
  }

  .footer-logo-rule {
    width: clamp(4.25rem, 58%, 6.75rem);
    margin-top: 0.65rem;
  }

  .footer-wordmark {
    margin-top: 0.8rem;
    letter-spacing: 0.05em;
  }
}

.footer-col-title {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  opacity: 0.95;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-links a {
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.92;
}

.footer-contact p {
  margin: 0 0 0.55rem;
  font-size: 0.94rem;
  line-height: 1.55;
}

.footer-contact p:last-child {
  margin-bottom: 0;
}

.footer-address {
  margin: 0.65rem 0 0;
  font-style: normal;
  opacity: 0.88;
  font-size: 0.92rem;
}

@media (max-width: 767px) {
  .footer-links a {
    color: rgba(255, 255, 255, 0.95);
    font-family: var(--font-body);
    font-weight: 500;
  }

  .footer-links a:hover {
    color: var(--color-accent);
  }
}

.footer-legal {
  margin: 0 0 0.75rem;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  opacity: 0.9;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.footer-legal a:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

.footer-legal-sep {
  margin-inline: 0.5rem;
  opacity: 0.45;
  font-weight: 300;
}

.footer-bottom {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
}

.copyright {
  margin: 0 0 0.55rem;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  opacity: 0.72;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.builder-credit {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  opacity: 0.78;
  color: rgba(255, 255, 255, 0.88);
}

.builder-credit a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.builder-credit a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Scroll margin for anchors */
#main > section[id],
#contact,
#results {
  scroll-margin-top: calc(var(--header-height) + 0.75rem);
}

/* Art Deco accents (home; ornaments #C8973A only) */
body {
  overflow-x: clip;
}

.hero-art-frame {
  position: absolute;
  inset: 22px;
  z-index: 1;
  pointer-events: none;
}

.hero-corner {
  position: absolute;
  width: 28px;
  height: 28px;
}

.hero-corner::before,
.hero-corner::after {
  content: "";
  position: absolute;
  background: #c8973a;
}

.hero-corner--tl {
  top: 0;
  left: 0;
}

.hero-corner--tl::before {
  left: 0;
  top: 0;
  width: 26px;
  height: 1px;
  box-shadow: 0 3px 0 #c8973a;
}

.hero-corner--tl::after {
  left: 0;
  top: 0;
  width: 1px;
  height: 26px;
  box-shadow: 3px 0 0 #c8973a;
}

.hero-corner--tr {
  top: 0;
  right: 0;
}

.hero-corner--tr::before {
  right: 0;
  top: 0;
  width: 26px;
  height: 1px;
  box-shadow: 0 3px 0 #c8973a;
}

.hero-corner--tr::after {
  right: 0;
  top: 0;
  width: 1px;
  height: 26px;
  box-shadow: -3px 0 0 #c8973a;
}

.hero-corner--bl {
  bottom: 0;
  left: 0;
}

.hero-corner--bl::before {
  left: 0;
  bottom: 0;
  width: 26px;
  height: 1px;
  box-shadow: 0 -3px 0 #c8973a;
}

.hero-corner--bl::after {
  left: 0;
  bottom: 0;
  width: 1px;
  height: 26px;
  box-shadow: 3px 0 0 #c8973a;
}

.hero-corner--br {
  bottom: 0;
  right: 0;
}

.hero-corner--br::before {
  right: 0;
  bottom: 0;
  width: 26px;
  height: 1px;
  box-shadow: 0 -3px 0 #c8973a;
}

.hero-corner--br::after {
  right: 0;
  bottom: 0;
  width: 1px;
  height: 26px;
  box-shadow: -3px 0 0 #c8973a;
}

@media (max-width: 899px) {
  .hero-corner {
    display: none !important;
  }

  .hero-art-frame::before,
  .hero-art-frame::after {
    content: none;
    display: none;
  }
}

.section-divider,
.footer-deco-ornament {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: min(92%, 36rem);
  margin-inline: auto;
  padding: 0.65rem 1rem;
  box-sizing: border-box;
}

.section-divider::before,
.section-divider::after,
.footer-deco-ornament::before,
.footer-deco-ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #c8973a;
  min-width: 1rem;
}

.footer-deco-ornament {
  width: 100%;
  max-width: min(100% - 1.5rem, 72rem);
  margin-inline: auto;
  padding: 0.35rem 1rem 0.85rem;
}

.section-divider__mid {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: #c8973a;
  transform: rotate(45deg);
  position: relative;
}

.section-divider__mid::before,
.section-divider__mid::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  background: #c8973a;
  transform: translateY(-50%) rotate(45deg);
  left: -13px;
}

.section-divider__mid::after {
  left: auto;
  right: -13px;
}

@media (max-width: 767px) {
  @media (prefers-reduced-motion: no-preference) {
    .section-divider {
      transform: scale(0.7);
      transform-origin: center center;
    }
  }
}

main h2 {
  position: relative;
  letter-spacing: 0.04em;
  padding-top: 0.9rem;
}

main h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 6.5rem;
  height: 1px;
  margin-left: -3.25rem;
  background: linear-gradient(
    90deg,
    transparent,
    #c8973a 0.85rem,
    #c8973a calc(100% - 0.85rem),
    transparent
  );
}

main h2::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 7px;
  height: 7px;
  background: #c8973a;
  transform: translate(-50%, -50%) rotate(45deg);
}

.legal-doc h2 {
  letter-spacing: normal;
  padding-top: inherit;
}

.legal-doc h2::before,
.legal-doc h2::after {
  display: none;
  content: none;
}

/* Legal pages (Privacy, Terms) */
.legal-page-hero {
  background: linear-gradient(145deg, var(--color-primary) 0%, #121d33 100%);
  padding: 2.25rem 0 2.5rem;
  border-bottom: 3px solid var(--color-accent);
}

.legal-page-hero .container {
  max-width: min(100% - 1.5rem, 48rem);
}

.legal-page-hero .section-kicker {
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.legal-page-title {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
  margin: 0 0 0.65rem;
}

.legal-page-meta {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}

.legal-doc {
  max-width: min(100% - 1.5rem, 42rem);
  margin-inline: auto;
  padding-bottom: var(--section-space-y-lg);
}

.legal-doc > section {
  margin-bottom: 2rem;
}

.legal-doc > section:last-child {
  margin-bottom: 0;
}

.legal-doc h2 {
  font-size: 1.2rem;
  margin: 0 0 0.65rem;
  padding-top: 0.25rem;
}

.legal-doc section:not(:first-of-type) h2 {
  margin-top: 2rem;
}

.legal-doc p,
.legal-doc li {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--color-text);
}

.legal-doc ul {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.legal-doc li {
  margin-bottom: 0.45rem;
}

.legal-doc li:last-child {
  margin-bottom: 0;
}

.legal-doc .legal-lead {
  font-size: 1.05rem;
  color: rgba(30, 30, 30, 0.92);
}

.legal-doc-nav {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: var(--border-hairline);
}

.legal-doc-nav p {
  margin: 0;
  font-size: 0.95rem;
}

.legal-doc-nav a {
  font-weight: 600;
}

/* Fade-in */
.fade-in-section {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}
