/* ============================================================
   FRAMELINE MEDIA — COMPONENTS
   ============================================================ */

/* ─── FOOTER ─── */
.site-footer {
  padding-block: var(--space-16);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  max-width: 28ch;
}

.footer-nav h4,
.footer-social h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--space-4);
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav a {
  color: var(--text-muted);
  font-size: var(--text-sm);
  transition: color var(--t-fast);
}

.footer-nav a:hover { color: var(--gold); }

.footer-social-links {
  display: flex;
  gap: var(--space-4);
}

.footer-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}

.footer-social-links a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,167,106,0.06);
}

.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  color: var(--text-faint);
  font-size: var(--text-xs);
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ─── WORK CARD ─── */
.work-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.work-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.work-card-thumb {
  position: relative;
  overflow: hidden;
  background: #000;
}

.work-card-thumb video,
.work-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-io);
}

.work-card:hover .work-card-thumb video,
.work-card:hover .work-card-thumb img {
  transform: scale(1.04);
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,9,0.9) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-5);
  opacity: 0;
  transition: opacity var(--t-mid);
}

.work-card:hover .work-card-overlay {
  opacity: 1;
}

.work-play-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.work-card-meta {
  padding: var(--space-4) var(--space-5);
}

.work-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.work-card-tag {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── VIDEO MODAL ─── */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-mid);
  backdrop-filter: blur(10px);
}

.video-modal.open {
  opacity: 1;
  pointer-events: all;
}

.video-modal-inner {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform var(--t-mid);
}

.video-modal.open .video-modal-inner {
  transform: scale(1);
}

.video-modal-inner video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.15);
  transition: background var(--t-fast);
  z-index: 2;
}

.video-modal-close:hover { background: rgba(255,255,255,0.2); }

/* ─── SMART ASSISTANT POPUP ─── */
.assistant-launcher {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-3);
}

.assistant-window {
  width: clamp(300px, 90vw, 380px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(12px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--t-mid), opacity var(--t-mid);
  transform-origin: bottom right;
}

.assistant-window.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

.assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.assistant-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
}

.assistant-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--teal-light);
  box-shadow: 0 0 8px var(--teal-light);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.assistant-close-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: color var(--t-fast), background var(--t-fast);
}
.assistant-close-btn:hover { color: var(--text); background: var(--border); }

.assistant-messages {
  max-height: 280px;
  overflow-y: auto;
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  scroll-behavior: smooth;
}

.assistant-messages::-webkit-scrollbar { width: 4px; }
.assistant-messages::-webkit-scrollbar-track { background: transparent; }
.assistant-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.msg {
  max-width: 88%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  line-height: 1.5;
  animation: msg-in 0.3s var(--ease-out);
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.msg-bot {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.msg-user {
  background: var(--gold);
  color: #080809;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.assistant-questions {
  padding: var(--space-3) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.assistant-q-label {
  font-size: var(--text-xs);
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.quick-q {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: left;
  transition: border-color var(--t-fast), color var(--t-fast);
  cursor: pointer;
}

.quick-q:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.assistant-input-row {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--space-2);
}

.assistant-input {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--text);
  outline: none;
  transition: border-color var(--t-fast);
}

.assistant-input:focus {
  border-color: var(--gold);
}

.assistant-input::placeholder {
  color: var(--text-faint);
}

.assistant-send {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--gold);
  color: #080809;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-fast), transform var(--t-fast);
}

.assistant-send:hover {
  background: var(--gold-light);
  transform: scale(1.05);
}

.assistant-toggle-btn {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--gold);
  color: #080809;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(201,167,106,0.4);
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  border: none;
  cursor: pointer;
  position: relative;
}

.assistant-toggle-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 40px rgba(201,167,106,0.5);
  background: var(--gold-light);
}

.assistant-toggle-btn .btn-notif {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: var(--teal-light);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg);
  animation: notif-pulse 2s ease infinite;
}

@keyframes notif-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.15); }
}

/* ─── SCROLL DEAL BANNER ─── */
.deal-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 140;
  background: var(--gold);
  color: #080809;
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out);
  border-top: 2px solid var(--gold-light);
}

.deal-banner.visible {
  transform: translateY(0);
}

.deal-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) clamp(1.25rem, 5vw, 4rem);
  max-width: var(--content-wide);
  margin-inline: auto;
}

.deal-banner-text {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.deal-banner-text span {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  opacity: 0.75;
  margin-left: var(--space-2);
}

.deal-banner-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.deal-banner .btn-dark {
  background: #080809;
  color: var(--gold);
  border: none;
  padding: 0.55rem 1.4rem;
  font-size: var(--text-xs);
  border-radius: var(--radius-full);
  transition: background var(--t-fast), transform var(--t-fast);
}
.deal-banner .btn-dark:hover {
  background: #1a1a1e;
  transform: translateY(-1px);
}

.deal-banner-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.15);
  color: #080809;
  cursor: pointer;
  border: none;
  transition: background var(--t-fast);
}
.deal-banner-close:hover { background: rgba(0,0,0,0.25); }

@media (max-width: 600px) {
  .deal-banner-inner {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }
}

/* ─── HERO ─── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(8,8,9,1) 0%, rgba(8,8,9,0.5) 35%, rgba(8,8,9,0.15) 70%),
    linear-gradient(to right, rgba(8,8,9,0.6) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content .eyebrow {
  margin-bottom: var(--space-4);
  display: block;
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 50ch;
  line-height: 1.55;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  right: clamp(1.25rem, 5vw, 4rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.hero-scroll span {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  writing-mode: vertical-rl;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─── PAGE HERO (sub-pages) ─── */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(4rem, 8vw, 7rem));
  padding-bottom: clamp(3rem, 5vw, 5rem);
  text-align: center;
}

.page-hero .eyebrow {
  display: block;
  margin-bottom: var(--space-4);
}

.page-hero h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.page-hero p {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 52ch;
  margin-inline: auto;
}

/* ─── SERVICES STRIP ─── */
.services-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.service-item {
  background: var(--bg);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.service-num {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.service-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.service-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 32ch;
}

/* ─── TESTIMONIAL ─── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  color: var(--gold);
}

.testimonial-quote {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-muted);
  flex: 1;
}

.testimonial-author {
  font-size: var(--text-sm);
  font-weight: 600;
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ─── PROCESS STEPS ─── */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.process-step {
  background: var(--bg-card);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-6);
  align-items: start;
  padding: var(--space-6) var(--space-8);
  transition: background var(--t-fast);
}

.process-step:hover { background: var(--bg-2); }

/* A process genuinely is ordered, so the number earns its place —
   but at 2xl in grey it read as a broken image, which is what John
   was seeing. Small and gold says "this is step two" instead. */
.process-step-num {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
  line-height: 1;
  padding-top: 0.4em;
  min-width: 2.2ch;
}

.process-step-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.process-step-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 52ch;
}

@media (max-width: 600px) {
  .process-step {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
}

/* ─── ABOUT SPLIT ─── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(201,167,106,0.15);
  pointer-events: none;
}

@media (max-width: 768px) {
  .about-split {
    grid-template-columns: 1fr;
  }
}

/* ─── FULL-BLEED STATEMENT ─── */
.statement-section {
  padding-block: clamp(var(--space-20), 12vw, var(--space-32));
  text-align: center;
  position: relative;
}

.statement-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,167,106,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.statement-text {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 18ch;
  margin-inline: auto;
}

.statement-text em {
  font-style: italic;
  color: var(--gold);
}

/* ─── CONTACT SECTION ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: start;
}

.contact-info h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.contact-info p {
  color: var(--text-muted);
  font-size: var(--text-base);
  margin-bottom: var(--space-6);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.contact-detail svg {
  color: var(--gold);
  flex-shrink: 0;
}

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.contact-form-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}

.contact-form-meta small {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

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

/* ─── LOGO STRIP ─── */
.logo-strip {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-6), 4vw, var(--space-12));
  flex-wrap: wrap;
  justify-content: center;
}

.logo-strip-item {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--t-fast);
}

.logo-strip-item:hover { color: var(--text-muted); }
