/* Alea Agency — mobile layout */

:root {
  --black: #000000;
  --white: #ffffff;
  --hero-bg-top: #2a2a2a;
  --hero-bg-mid: #1a1a1a;
  --bar-height: 3.25rem;
  /* Side menu width — plain length so translateX(calc) works everywhere */
  --menu-panel-width: 13.25rem;
  /* Phone-width column on any screen — always “mobile view” */
  --mobile-max: 25rem;
  /* Single source of truth: never wider than phone frame; shrinks only if viewport is narrower */
  --column: min(100vw, var(--mobile-max));
  --font-serif: "Cormorant Garamond", "Times New Roman", Times, serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  /* Inner pages only — modern geometric sans */
  --font-inner: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--white);
  background: #0a0a0a;
  padding-top: var(--bar-height);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Phone frame only — menu + content stay inside this width (no extra strip beside the “phone”) */
.site-shell {
  position: relative;
  width: var(--column);
  max-width: 100%;
  flex-shrink: 0;
  overflow-x: hidden;
  isolation: isolate;
}

/* Main column slides left inside the frame; nav is layered on the right */
.site-shift {
  position: relative;
  z-index: 1;
  width: 100%;
  transition: transform 0.28s ease;
}

body.site-nav-open .site-shift {
  transform: translateX(calc(0px - var(--menu-panel-width)));
}

.site-shift__panel {
  width: 100%;
  min-width: 0;
}

/* ——— Top bar: fixed to same width/position as phone — never slides off-frame ——— */
/* Use 50% + translateX(-50%), not 50vw — 100vw includes scrollbar width on Windows and skews center */
.top-bar {
  position: fixed;
  top: 0;
  left: 50%;
  width: var(--column);
  max-width: 100vw;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
}

.top-bar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0.75rem;
  min-height: var(--bar-height);
}

.top-bar__spacer {
  grid-column: 1;
}

.top-bar__brand {
  grid-column: 2;
  justify-self: center;
  display: block;
  width: min(60vw, 11.5rem);
  height: 2rem;
  background: url("assets/topbar-logo.png") center center / contain no-repeat;
  color: transparent;
  text-decoration: none;
}

.top-bar__actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  border-radius: 4px;
}

.icon-btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

a.icon-btn {
  text-decoration: none;
}

.icon-btn__badge {
  position: absolute;
  top: 0.35rem;
  right: 0.2rem;
  min-width: 0.875rem;
  height: 0.875rem;
  padding: 0 0.2rem;
  font-size: 0.5625rem;
  font-weight: 500;
  line-height: 0.875rem;
  text-align: center;
  color: var(--black);
  background: var(--white);
  border-radius: 2px;
}

.top-bar__menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  border-radius: 4px;
}

.top-bar__menu-toggle:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.top-bar__menu-icon {
  display: block;
  flex-shrink: 0;
}

.top-bar__nav {
  position: fixed;
  top: var(--bar-height);
  right: calc(50% - var(--column) / 2);
  height: calc(100dvh - var(--bar-height));
  width: var(--menu-panel-width);
  max-width: min(var(--menu-panel-width), 100%);
  box-sizing: border-box;
  background: var(--black);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 120;
  clip-path: inset(0 0 0 100%);
  transition: clip-path 0.28s ease, opacity 0.2s ease, visibility 0s linear 0.28s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  pointer-events: none;
  color: var(--white);
  opacity: 0;
  visibility: hidden;
}

body.site-nav-open .top-bar__nav {
  clip-path: inset(0 0 0 0);
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transition: clip-path 0.28s ease, opacity 0.2s ease;
}

.top-bar__links {
  list-style: none;
  margin: 0;
  padding: 0.85rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.top-bar__links a {
  display: block;
  padding: 0.5rem 0;
  color: var(--white);
  text-decoration: none;
  font-size: 0.6875rem;
  font-weight: 200;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 1;
}

.top-bar__links a:hover,
.top-bar__links a:focus-visible {
  color: var(--white);
}

.top-bar__links a[aria-current="page"] {
  color: var(--white);
}

/* ——— Hero ——— */
.page {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: var(--black);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hero {
  text-align: center;
  padding: 2.25rem 1.25rem 2.5rem;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(80, 80, 80, 0.35) 0%, transparent 55%),
    linear-gradient(180deg, var(--hero-bg-top) 0%, var(--hero-bg-mid) 45%, var(--black) 100%);
}

/* Home only: main hero image */
.page:not(.page--inner) .hero {
  min-height: min(62rem, calc(var(--column) * 1.55));
  padding-bottom: 7rem;
  background:
    url("assets/hero-front-main.png") center top / cover no-repeat,
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(80, 80, 80, 0.35) 0%, transparent 55%),
    linear-gradient(180deg, var(--hero-bg-top) 0%, var(--hero-bg-mid) 45%, var(--black) 100%);
}

.page:not(.page--inner) .below-fold {
  margin-top: 2rem;
}

/* Title / tagline / caption: empty slots — add copy when ready */
.hero__title-block {
  margin: 0 auto 1.25rem;
  min-height: 2.75rem;
  max-width: 22rem;
}

.hero__tagline-block {
  margin: 0 auto 2rem;
  min-height: 2.75rem;
  max-width: 20rem;
}

/* Same footprint as layered placeholders; Contact only (no card divs) */
.hero__collage {
  position: relative;
  width: min(100%, 20rem);
  margin: 0 auto 1.5rem;
  min-height: 14.5rem;
}

.hero__contact {
  position: absolute;
  left: 50%;
  top: 25%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.5rem;
  min-height: 2.25rem;
  padding: 0.55rem 1.85rem;
  font-size: 0.6875rem;
  font-weight: 200;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 4px;
}

.hero__contact:hover,
.hero__contact:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.hero__caption-block {
  margin: 0 auto;
  min-height: 0.875rem;
  max-width: 18rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Lower block: gradient strip + home content (replaces long empty scroll) ——— */
.below-fold {
  padding: 0;
}

.below-fold__placeholder {
  width: 100%;
  min-height: min(22rem, calc(var(--column) * 0.65));
  background:
    linear-gradient(180deg, #2b2b2b 0%, #0d0d0d 40%, #000 100%),
    radial-gradient(ellipse 80% 50% at 50% 35%, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  background-blend-mode: normal, overlay;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.below-fold__body {
  background: var(--black);
}

.below-fold__body .media-placeholder--compact {
  min-height: 11rem;
}

/* Home: social row after last copy (replaces final image slot) */
.social-strip {
  padding: 2.25rem 1.25rem 2.75rem;
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.social-strip__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.05rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-strip__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.social-strip__link:hover,
.social-strip__link:focus-visible {
  border-color: rgba(255, 255, 255, 0.78);
  outline: none;
}

.social-strip__icon {
  width: 0.875rem;
  height: 0.875rem;
  display: block;
}

/* Slightly larger than Instagram, but eased back from filling the ring */
.social-strip__icon--telegram {
  width: 1.0625rem;
  height: 1.0625rem;
}

.social-strip__icon--whatsapp {
  width: 1.0625rem;
  height: 1.0625rem;
}

/* ——— Home copy + empty image slot ——— */
.copy-block {
  padding: 1.75rem 1.25rem 2rem;
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.copy-block p {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.7;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.82);
  text-align: left;
}

.copy-block p:last-child {
  margin-bottom: 0;
}

.copy-block__headline {
  margin: 0 0 1rem;
  font-family: var(--font-inner);
  font-size: 0.8125rem;
  font-weight: 200;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.copy-block__lead {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.media-placeholder {
  width: 100%;
  min-height: 14rem;
  margin: 0;
  background: linear-gradient(160deg, #161616 0%, #0a0a0a 55%, #050505 100%);
  border: solid rgba(255, 255, 255, 0.09);
  border-width: 1px 0;
  box-sizing: border-box;
}

.media-placeholder--home-main-next {
  background: url("assets/home-below-main.png") center center / cover no-repeat;
}

.media-placeholder--home-revenue {
  background: #f6f8fb url("assets/home-main-slot-image.png") center center / contain no-repeat;
}

.media-placeholder--home-next-open {
  background: #0a0a0a url("assets/home-next-unset-slot.png") center center / cover no-repeat;
}

.home-empty-space {
  min-height: clamp(140px, 18vw, 240px);
}

.home-secret-note {
  min-height: clamp(150px, 20vw, 240px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(0.78rem, 1.4vw, 0.95rem);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.52);
  text-align: center;
}

.home-end-space {
  min-height: clamp(180px, 24vw, 320px);
}

/* ——— Inner pages ——— */
.page--inner {
  min-height: calc(100dvh - var(--bar-height));
  font-family: var(--font-inner);
}

.page--inner .page-title {
  font-family: var(--font-inner);
  font-size: 1.0625rem;
  font-weight: 300;
  letter-spacing: 0.14em;
}

.page--inner .page-body p,
.page--inner .copy-block p {
  font-weight: 200;
  letter-spacing: 0.04em;
}

.page--inner .copy-block__lead {
  font-weight: 300;
  letter-spacing: 0.15em;
}

.page--inner .contact-fields label {
  font-weight: 300;
}

.page--inner .contact-fields input,
.page--inner .contact-fields textarea {
  font-weight: 200;
}

.page--inner .btn-submit {
  font-weight: 300;
}

/* Inner pages: modest extra scroll (home no longer uses a long tail) */
.page--inner::after {
  content: "";
  display: block;
  width: 100%;
  min-height: 600vh;
}

.page--about::after {
  content: "";
  display: block;
  width: 100%;
  min-height: 6rem;
}

.page-header {
  padding: 2rem 1.25rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}

.page-body {
  padding: 1.5rem 1.25rem 3rem;
}

.page-body p {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.7;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.78);
}

.page-body p:last-child {
  margin-bottom: 0;
}

.page-body a {
  color: inherit;
  text-decoration: none;
}

.page-body a:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

/* ——— Courses storefront (screenshot style) ——— */
.page--courses {
  background: #ececec;
  color: #111111;
}

.page--courses::after {
  content: none;
  display: none;
  min-height: 0;
}

.page-header--courses {
  padding: 2rem 1.45rem 0.5rem;
  text-align: left;
  border-bottom: 0;
  background: #ececec;
}

.page-title--courses {
  margin: 0;
  font-family: var(--font-inner);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #111111;
}

.courses-breadcrumb {
  margin: 0.8rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-inner);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #575757;
}

.courses-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.courses-catalog {
  padding: 0.2rem 1.45rem 2.2rem;
  background: #ececec;
}

.courses-catalog__sort {
  margin: 0 0 0.65rem;
  text-align: right;
  font-family: var(--font-inner);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #666666;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 1rem;
}

.course-card {
  color: #131313;
}

.course-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  border: 1px solid #e3e3e3;
  background: #ffffff;
}

.course-card__image span {
  text-align: center;
  font-family: var(--font-inner);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.course-card__image--reddit {
  background: #000000;
  border-color: #000000;
}

.course-card__image--reddit span {
  color: #ffffff;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.course-card__image--light span {
  color: #2a2a2a;
}

.course-card__image--photo {
  padding: 0;
  overflow: hidden;
  border-color: #d9d9d9;
  background: #000000;
}

.course-card__image--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.course-card__image--ideas img {
  object-position: center 30%;
}

.course-card__image--script img {
  object-position: center 28%;
}

.course-card__title {
  margin: 0.8rem 0 0.25rem;
  text-align: center;
  font-family: var(--font-inner);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #1d1d1d;
}

.course-card__price {
  margin: 0;
  text-align: center;
  font-family: var(--font-inner);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #121212;
}

.course-card__stock {
  margin: 0.2rem 0 0;
  text-align: center;
  font-family: var(--font-inner);
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  color: #6f6f6f;
}

/* Accounts: denser product stack with smaller cards */
.page--accounts .courses-catalog {
  padding: 0.2rem 1.05rem 2.2rem;
}

.page--accounts .course-grid {
  gap: 0.95rem 0.8rem;
}

.page--accounts .course-card__image {
  max-width: 8rem;
  margin-inline: auto;
}

.page--accounts .course-card__title {
  margin-top: 0.55rem;
  font-size: 0.5rem;
}

.page--accounts .course-card__price {
  font-size: 0.9rem;
}

.page--accounts .course-card__stock {
  font-size: 0.44rem;
}

.contact-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
  max-width: 100%;
}

.contact-fields label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.contact-fields input,
.contact-fields textarea {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
}

.contact-fields textarea {
  min-height: 6rem;
  resize: vertical;
}

.contact-fields input::placeholder,
.contact-fields textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.btn-submit {
  margin-top: 0.5rem;
  align-self: flex-start;
  padding: 0.65rem 1.75rem;
  font-size: 0.6875rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 4px;
  cursor: pointer;
}

.btn-submit:hover,
.btn-submit:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

/* ——— Calendly floating button (aligned to phone column) ——— */
.calendly-float-btn {
  position: fixed;
  bottom: 4.125rem;
  right: calc(50% - var(--column) / 2 + 2.75rem);
  width: 2.95rem;
  height: 2.95rem;
  padding: 0;
  background: #000000;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.calendly-float-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.calendly-float-btn svg {
  width: 2.5rem;
  height: 2.5rem;
  stroke: #ffffff;
  stroke-width: 0.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

/* Desktop layout: keep style, remove forced narrow mobile width */
@media (min-width: 1024px) {
  :root {
    --mobile-max: 72rem;
    --menu-panel-width: 16rem;
  }

  .top-bar__inner {
    padding: 0 1.25rem;
  }

  .hero {
    padding: 3rem 2.25rem 3.5rem;
  }

  .below-fold__placeholder {
    min-height: min(28rem, calc(var(--column) * 0.42));
  }

  .copy-block,
  .page-body {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .media-placeholder {
    min-height: 20rem;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .calendly-float-btn {
    right: calc(50% - var(--column) / 2 + 1.75rem);
  }
}

.media-placeholder--about-top {
  background: #e9edf2 url("assets/about-top-image.png") center center / contain no-repeat;
}

.media-placeholder--about-second {
  background: #eceff3 url('assets/about-second-image.png') center center / contain no-repeat;
}

.media-placeholder--home-next {
  background: #edf0f4 url("assets/home-second-after-main.png") center center / contain no-repeat;
}
