@font-face {
  font-family: Anton;
  src: url("../fonts/anton.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

body[data-page="home"] {
  --color-page: #101110;
  --color-section-alt: #171817;
  --color-surface: #191a18;
  --color-ink: #f7f5ef;
  --color-muted: #c7c6c1;
  --color-line: #343530;
  --color-brand: #ff631b;
  --color-brand-hover: #ff823d;
  --color-accent: #ff631b;
  --color-on-brand: #101110;
  --font-display: Anton, Impact, sans-serif;
  --site-width: 1320px;
  --radius: 3px;
  --button-radius: 2px;
  --section-space: 96px;
  --gutter: clamp(20px, 4.8vw, 76px);
  background: #101110;
}

body[data-page="home"] h1,
body[data-page="home"] h2,
body[data-page="home"] h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.015em;
}

body[data-page="home"] .site-header {
  background: rgba(12, 13, 12, .96);
  border-color: #ffffff15;
  padding-top: 12px;
  padding-bottom: 12px;
  box-shadow: none;
}

.brand-wordmark {
  display: grid;
  line-height: 1;
  text-transform: uppercase;
}

.brand-wordmark strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 34px;
  letter-spacing: .07em;
}

.brand-wordmark small {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 17px;
  letter-spacing: .13em;
  margin-top: 5px;
}

body[data-page="home"] .americana-logo { width: 76px; height: 76px; }
body[data-page="home"] .nav { gap: 28px; }
body[data-page="home"] .nav-links { gap: 26px; }
body[data-page="home"] .nav-links a {
  position: relative;
  color: #f5f3ed;
  font: 700 17px "Barlow Condensed", sans-serif;
  letter-spacing: .035em;
  transition: color .2s;
}

body[data-page="home"] .nav-links a::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}

body[data-page="home"] .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 54px;
  padding: 16px 26px;
  font: 700 19px/1 "Barlow Condensed", sans-serif;
  letter-spacing: .04em;
  box-shadow: none;
  transition: background .2s, transform .25s, box-shadow .25s;
}

body[data-page="home"] .button::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: translate .25s;
}

body[data-page="home"] a:focus-visible,
body[data-page="home"] button:focus-visible {
  outline: 3px solid #ff9b5e;
  outline-offset: 5px;
}

body[data-page="home"] .home-hero {
  padding-top: 88px;
  padding-bottom: 88px;
  isolation: isolate;
  background: #101110;
}

.home-hero .home-hero-layout {
  display: block;
  padding: 0;
  min-height: 510px;
}

.home-hero .hero-copy { position: relative; z-index: 2; max-width: 900px; }
.home-hero .home-hero-photo {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 78%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
  filter: grayscale(1);
  border-radius: 0;
}

.home-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #090a09 4%, #090a09eb 30%, #090a098a 66%, #090a0940), linear-gradient(0deg, #090a0999, transparent 45%);
}

.home-hero .hero-kicker {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 700px;
  margin-bottom: 24px;
  color: #f6f3ed;
  font: 700 15px/1.5 "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: .13em;
}

.hero-kicker::before,
body[data-page="home"] .section-eyebrow::before {
  content: "";
  width: 42px;
  height: 3px;
  flex: 0 0 auto;
  background: #ff631b;
}

body[data-page="home"] .home-hero h1 {
  font-size: clamp(48px, 6.3vw, 92px);
  line-height: 1.09;
  max-width: 100%;
  margin-bottom: 26px;
}

.home-hero h1 span { display: block; }
body[data-page="home"] .home-hero .hero-copy > p:not(.hero-kicker) {
  max-width: 590px;
  color: #eeece7;
  font-size: 17px;
  line-height: 1.65;
}

.home-hero .hero-actions { margin-top: 6px; }
.home-hero .hero-copy em { font-style: normal; font-size: 15px; }

body[data-page="home"] .home-intro,
body[data-page="home"] .location-contact {
  --color-ink: #151613;
  --color-muted: #44443e;
  --color-line: #d9d7cf;
  background: #f3f1eb;
  color: var(--color-ink);
  position: relative;
  isolation: isolate;
  clip-path: inset(0);
}

body[data-page="home"] .home-intro::before,
body[data-page="home"] .location-contact::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("../media/images/americana-logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(88vw, 110vh, 1100px);
  opacity: .055;
  filter: grayscale(1);
  pointer-events: none;
}

body[data-page="home"] .section h2 { font-size: clamp(38px, 4.5vw, 64px); line-height: 1.12; margin-bottom: 24px; }
body[data-page="home"] .section p { line-height: 1.75; }
body[data-page="home"] .section-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--color-muted);
  font: 700 14px/1.5 "Barlow Condensed", sans-serif;
  letter-spacing: .13em;
  margin-bottom: 20px;
}

.home-intro .about-photo-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  column-gap: 56px;
  row-gap: 30px;
}

.home-intro .about-photo {
  grid-column: 1;
  grid-row: 1 / 3;
  height: 100%;
  min-height: 600px;
  object-fit: cover;
  object-position: center;
}

.home-intro .about-copy { grid-column: 2; grid-row: 1; }
.home-intro .coach-copy { grid-column: 2; grid-row: 2; border-top: 1px solid #d5d2c9; padding-top: 28px; }
.coach-copy h3 { font-size: 29px; margin-bottom: 10px; }
.coach-copy > p:first-of-type { color: #bd410b; text-transform: uppercase; font: 700 16px "Barlow Condensed", sans-serif; letter-spacing: .07em; }

body[data-page="home"] .home-services { background: #101110; }
.home-services .inner { position: relative; }
body[data-page="home"] .home-services h2 { max-width: 880px; }
.home-services .service-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; margin-top: 38px; }
body[data-page="home"] .service-item {
  position: relative;
  padding-bottom: 24px;
  background: #141513;
  border: 1px solid #3b3b35;
  border-radius: 3px;
  box-shadow: none;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}

.home-services .service-card-media { margin-bottom: 0; }
.home-services .service-card-media::after {
  content: "";
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(transparent, #141513);
  pointer-events: none;
}

.home-services .service-card-image {
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: center;
  filter: saturate(.65);
  transition: transform .65s cubic-bezier(.2,.65,.3,1), filter .45s;
}

body[data-page="home"] .service-item h3 { position: relative; margin: -8px 19px 16px; font-size: clamp(23px, 2vw, 29px); line-height: 1.2; }
.service-item h3::after { content: ""; display: block; width: 30px; height: 3px; background: #ff631b; margin-top: 16px; transition: width .3s; }
body[data-page="home"] .service-item p { margin: 0 19px; font-size: 14px; line-height: 1.6; color: #d4d3ce; }
.home-services .hero-actions { justify-content: flex-end; margin-top: 12px; }

body[data-page="home"] .reviews { background: #1a1b18; }
.reviews .inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.reviews .section-eyebrow, .reviews h2, .reviews .inner > p:last-child { grid-column: 1 / -1; }
.reviews .section-eyebrow, body[data-page="home"] .reviews h2 { margin-bottom: 0; }
.reviews figure { margin: 8px 0 0; padding: 28px; border-top: 2px solid #ff631b; background: #11120f; transition: transform .3s, background .3s; }
.reviews blockquote { margin: 0 0 24px; }
.reviews blockquote::before { content: "“"; display: block; color: #ff631b; font: 56px/1 Georgia, serif; }
body[data-page="home"] .reviews blockquote p { color: #f2f0e9; font-size: 18px; }
.reviews figcaption { color: #ff8c51; font: 700 17px "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .05em; }
.reviews .inner > p:last-child { font-size: 13px; }

.reviews .google-review { padding: 28px; }
.reviews .google-review figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f5f2e9;
  font: 16px/1.4 var(--font-body);
  text-transform: none;
  letter-spacing: 0;
}
.google-review figcaption > span:last-child { min-width: 0; }
.google-review figcaption strong { display: block; }
.google-review figcaption small { display: block; margin-top: 3px; color: #b7b7ac; font-size: 12px; }
.review-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #373326;
  color: #ffb88d;
  font: 700 17px "Barlow Condensed", sans-serif;
}
.review-stars { margin: 22px 0 14px; color: #ffb33b; font-size: 20px; letter-spacing: 3px; }
.reviews .google-review blockquote { margin: 0; }
.reviews .google-review blockquote::before { content: none; }
body[data-page="home"] .reviews .google-review blockquote p { font-size: 15px; line-height: 1.75; }

body[data-page="home"] .visit-photo { min-height: 450px; object-fit: cover; }
body[data-page="home"] .contact-details a { color: #a93b0c; }
.academy-map {
  grid-column: 1 / -1;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9d7cf;
  border-radius: 3px;
  background: #e8e5dc;
}
.academy-map iframe {
  display: block;
  width: 100%;
  height: clamp(280px, 36vw, 420px);
  border: 0;
}
.map-directions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 22px;
  background: #171815;
  color: #f5f2e9;
  font: 700 18px/1.3 "Barlow Condensed", sans-serif;
  text-decoration: none;
  transition: color .2s, background .2s;
}
.map-directions span { color: #ff7c37; }
.map-directions:hover { background: #25261f; color: #ff965c; }
body[data-page="home"] .site-footer { background: #0b0c0a; border-top: 1px solid #33352d; }
body[data-page="home"] .footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; padding: 30px 0; }
body[data-page="home"] .footer-links { display: flex; flex-wrap: wrap; gap: 24px; margin-left: auto; }
body[data-page="home"] .footer-links a { color: #e3e0d7; transition: color .2s; }

.scroll-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.65,.3,1); }
.scroll-reveal.is-visible { opacity: 1; transform: none; }
.service-item.scroll-reveal:nth-child(2), .reviews figure:nth-of-type(2) { transition-delay: 60ms; }
.service-item.scroll-reveal:nth-child(3), .reviews figure:nth-of-type(3) { transition-delay: 120ms; }
.service-item.scroll-reveal:nth-child(4) { transition-delay: 180ms; }
.service-item.scroll-reveal:nth-child(5) { transition-delay: 240ms; }

@media (hover: hover) and (pointer: fine) {
  body[data-page="home"] .button:hover { transform: translateY(-3px); box-shadow: 0 8px 24px #ff631b30; }
  body[data-page="home"] .button:hover::after { translate: 4px 0; }
  body[data-page="home"] .nav-links a:hover, body[data-page="home"] .footer-links a:hover { color: #ff7c37; }
  body[data-page="home"] .nav-links a:hover::after { transform: scaleX(1); }
  body[data-page="home"] .service-item:hover { transform: translateY(-8px); border-color: #ff631b; box-shadow: 0 18px 40px #0005; transition-delay: 0s; }
  .service-item:hover .service-card-image { transform: scale(1.05); filter: saturate(1); }
  .service-item:hover h3::after { width: 54px; }
  .reviews figure:hover { transform: translateY(-5px); background: #20211b; }
}

@media (max-width: 1100px) {
  body[data-page="home"] .nav { gap: 16px; }
  body[data-page="home"] .nav-links { gap: 16px; }
  .brand-wordmark strong { font-size: 28px; }
  .brand-wordmark small { font-size: 14px; }
  body[data-page="home"] .nav-action .button { font-size: 16px; padding: 15px; gap: 12px; }
  .home-services .service-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-intro .about-photo-layout { gap: 28px; }
}

@media (max-width: 800px) {
  body[data-page="home"] { --section-space: 64px; }
  body[data-page="home"] .home-hero { padding-top: 64px; padding-bottom: 64px; }
  .home-hero .home-hero-photo { width: 100%; object-position: 60% center; opacity: .65; }
  .home-hero::after { background: linear-gradient(90deg,#090a09ed,#090a0980),linear-gradient(0deg,#090a09b0,transparent); }
  .home-hero .home-hero-layout { min-height: 0; }
  body[data-page="home"] .home-hero h1 { font-size: clamp(45px, 8.4vw, 65px); }
  .home-intro .about-photo-layout { grid-template-columns: 1fr; }
  .home-intro .about-copy { grid-column: 1; grid-row: 1; }
  .home-intro .about-photo { grid-column: 1; grid-row: 2; min-height: 0; height: auto; aspect-ratio: 4/3; }
  .home-intro .coach-copy { grid-column: 1; grid-row: 3; }
  .home-services .service-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .reviews .inner { grid-template-columns: 1fr; }
  .reviews figure { grid-column: 1; }
  body[data-page="home"] .visit-photo { min-height: 0; height: auto; }
  body[data-page="home"] .nav-toggle { background: #1b1c18; border-color: #48493f; }
  body[data-page="home"] .nav-toggle span { background: #f7f4ec; }
}

@media (max-width: 520px) {
  body[data-page="home"] .americana-logo { width: 54px; height: 54px; }
  body[data-page="home"] .brand-wordmark { display: none; }
  body[data-page="home"] .nav { gap: 10px; }
  body[data-page="home"] .nav-action .button { font-size: 15px; min-height: 44px; padding: 12px; }
  body[data-page="home"] .home-hero .hero-kicker { font-size: 12px; letter-spacing: .07em; gap: 12px; }
  .hero-kicker::before { width: 24px; }
  body[data-page="home"] .home-hero h1 { font-size: clamp(39px, 10vw, 52px); }
  body[data-page="home"] .home-hero .hero-copy > p:not(.hero-kicker) { font-size: 15px; }
  .home-services .service-list { grid-template-columns: 1fr; gap: 24px; }
  .home-services .service-card-image { aspect-ratio: 4/3; }
  body[data-page="home"] .service-item h3 { font-size: 30px; }
  body[data-page="home"] .service-item p { font-size: 16px; }
  .home-services .hero-actions { justify-content: flex-start; }
  body[data-page="home"] .footer-links { margin-left: 0; }
}

.trial-dialog {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: clamp(24px, 5vw, 40px);
  color: #f5f2ea;
  background: #171815;
  border: 1px solid #545348;
  border-top: 4px solid #ff631b;
  border-radius: 4px;
  overflow-y: auto;
  box-shadow: 0 24px 100px #0009;
}
.trial-dialog::backdrop { background: #000b; backdrop-filter: blur(5px); }
.demo-close {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid #ffffff30; border-radius: 3px;
  background: transparent; color: #f5f2ea; cursor: pointer; font: 28px/1 sans-serif;
}
.trial-dialog > .demo-close { position: absolute; right: 15px; top: 15px; }
.demo-close:hover { background: #ffffff15; }
.demo-eyebrow { color: #ff8b4f; font: 700 14px "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .08em; padding-right: 32px; }
.trial-dialog h2 { font-size: clamp(34px, 6vw, 44px); line-height: 1.15; margin: 16px 0; }
.trial-dialog > p:not(.demo-eyebrow) { color: #c6c4ba; font-size: 15px; }
.demo-trial-form { display: grid; gap: 18px; margin-top: 26px; }
.demo-trial-form label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; }
.demo-trial-form input, .demo-chat-form input {
  width: 100%; min-width: 0; border: 1px solid #57574d; border-radius: 3px;
  background: #24251f; color: #fff; padding: 12px 14px; font: 16px/1.4 var(--font-body);
}
.demo-trial-form input:focus, .demo-chat-form input:focus { outline: 2px solid #ff7c37; outline-offset: 2px; }
body[data-page="home"] .demo-trial-form .button { width: 100%; margin-top: 5px; }
.demo-note { font-size: 12px !important; margin: 20px 0 0; }
.demo-trial-form[hidden], .demo-trial-success[hidden], .demo-chat[hidden] { display: none; }
.demo-trial-success { padding-top: 24px; }
.demo-trial-success h3 { font-size: 30px; line-height: 1.2; margin: 18px 0; }
.demo-trial-success p { color: #cac7bb; }
.demo-success-mark { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #ff631b; color: #111; font-size: 26px; }
.chat-launcher {
  position: fixed; z-index: 90; right: 24px; bottom: max(24px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; padding: 15px 20px;
  border: 1px solid #ff8a4d; border-radius: 50px; background: #ff631b; color: #111;
  box-shadow: 0 8px 35px #0006; cursor: pointer;
  font: 700 19px "Barlow Condensed", sans-serif; transition: transform .2s, background .2s;
}
.chat-launcher svg { width: 25px; height: 25px; }
.chat-launcher:hover { transform: translateY(-3px); background: #ff843e; }
.demo-chat {
  position: fixed; z-index: 91; right: 24px; bottom: max(100px, calc(env(safe-area-inset-bottom) + 80px));
  display: flex; flex-direction: column; width: min(380px, calc(100vw - 32px));
  max-height: min(600px, calc(100dvh - 120px)); overflow: hidden;
  border: 1px solid #4d4e42; border-radius: 10px; background: #181914; color: #f6f3e9;
  box-shadow: 0 18px 70px #0008;
}
.demo-chat-header { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; padding: 17px; border-bottom: 1px solid #45463b; background: #10110e; }
.demo-chat-header h2 { font: 700 21px "Barlow Condensed", sans-serif !important; margin: 0; }
.demo-chat-header p { margin: 3px 0 0; font-size: 11px; color: #bab9ae; }
.demo-chat-header .demo-close { margin-left: auto; flex-shrink: 0; width: 32px; height: 32px; }
.demo-chat-messages { min-height: 80px; overflow-y: auto; padding: 18px; overscroll-behavior: contain; }
.chat-message { width: fit-content; max-width: 92%; padding: 12px 14px; margin: 0 0 12px; border-radius: 9px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.chat-bot { background: #2a2c24; }
.chat-user { margin-left: auto; background: #ff631b; color: #111; }
.demo-chat-options { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; flex: 0 0 auto; }
.demo-chat-options button { padding: 8px 10px; border: 1px solid #726044; border-radius: 20px; background: transparent; color: #ffac77; cursor: pointer; font: 12px var(--font-body); }
.demo-chat-options button:hover { background: #ffffff0d; border-color: #ff631b; }
.chat-trial-link { margin: 0 16px 12px; padding: 10px; background: transparent; border: 1px solid #ff631b; border-radius: 3px; color: #ff965c; cursor: pointer; font: 700 16px "Barlow Condensed", sans-serif; flex: 0 0 auto; }
.demo-chat-form { display: flex; gap: 8px; padding: 12px 16px 8px; border-top: 1px solid #45463b; flex: 0 0 auto; }
.demo-chat-form button { flex: 0 0 44px; background: #ff631b; color: #111; border: 0; border-radius: 3px; font-size: 26px; cursor: pointer; }
.demo-chat-note { margin: 0; padding: 0 16px 12px; color: #b8b7ac; font-size: 10px; flex: 0 0 auto; }
.demo-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 520px) {
  .chat-launcher { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); padding: 14px; }
  .chat-launcher span { display: none; }
  .demo-chat { right: 16px; bottom: max(82px, calc(env(safe-area-inset-bottom) + 72px)); max-height: calc(100dvh - 100px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body[data-page="home"] *, body[data-page="home"] *::before, body[data-page="home"] *::after {
    transition: none !important;
    animation: none !important;
  }
  .scroll-reveal { opacity: 1; transform: none; }
}
