/* ==========================================================
   LEVR Studios — site styles
   Colors and fonts live in the variables below, so changing
   one value here updates the whole site.
   ========================================================== */

:root {
  --bg: #0A0C0F;          /* page background */
  --surface: #14171C;     /* cards */
  --surface-2: #11141A;   /* alternate section background */
  --border: #1F242C;
  --border-strong: #343B46;
  --text: #F2F4F7;
  --text-soft: #C9D0DA;
  --muted: #A3ABB8;
  --orange: #F7850F;      /* LEVR orange (from the logo) */
  --orange-hover: #FFA94D;
  --on-orange: #1A0E02;   /* text color on orange buttons */
  --font-body: "Inter", system-ui, sans-serif;
  --font-head: "Space Grotesk", "Inter", sans-serif;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; display: block; }

a { color: var(--orange); }
a:hover { color: var(--orange-hover); }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0; }
h2 { font-size: clamp(30px, 4vw, 40px); }
p { margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 32px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }

.eyebrow {
  margin-bottom: 8px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange);
}
.muted { color: var(--muted); }
.small { font-size: 15px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  font: inherit; font-weight: 600;
  cursor: pointer;
}
.btn-primary { background: var(--orange); color: var(--on-orange); }
.btn-primary:hover { background: var(--orange-hover); color: var(--on-orange); }
.btn-outline { border: 1px solid #6B7380; color: var(--text); }
.btn-outline:hover { border-color: var(--text); color: var(--text); }
.btn-small { padding: 10px 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 12, 15, 0.92);
  border-bottom: 1px solid var(--orange);
  backdrop-filter: blur(6px);
}
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn) { color: #D5DAE1; text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--text); }

/* Hamburger button (phones only). Three bars that turn into an X when open. */
.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block; width: 24px; height: 2px; border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav.open .nav-toggle-bars { background: transparent; }
.nav.open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .js .nav-toggle { display: flex; }
  /* Menu drops down under the logo as a full-width list. */
  .js .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding-bottom: 8px;
    font-size: 17px;
  }
  .js .nav.open .nav-links { display: flex; }
  .js .nav-links a:not(.btn) { padding: 14px 0; border-top: 1px solid var(--border); }
  .js .nav-links .btn { margin-top: 12px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { transition: none; }
}

/* ---------- 360° panorama behind hero + about ----------
   js/hero360.bundle.js draws the 360 scene onto a <canvas> that fills
   this area. The plain background image below is only a fallback for
   devices that can't show 3D; the canvas covers it once ready. */
.pano {
  /* How far the panorama reaches down behind the Featured Project
     (about a third of it on desktop; less on small screens). */
  --pano-overlap: clamp(120px, 22vw, 300px);
  position: relative;
  overflow: hidden;
  background: var(--bg) url("../images/hero-360.jpg") center / cover no-repeat;
  min-height: 1000px;
}
.pano-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  /* Hidden until the 360 image is ready, then fades in over the still image */
  opacity: 0;
  transition: opacity 0.8s ease;
}
.pano.is-3d .pano-canvas { opacity: 1; }
/* Phones and small tablets: use the smaller (250 KB) panorama for the still
   background too. Keep this width in step with SMALL_SCREEN_MAX_WIDTH in src/hero360.js. */
@media (max-width: 900px) {
  .pano { background-image: url("../images/hero-360-2048.jpg"); }
}
.pano-shade {
  position: relative; /* sits on top of the canvas */
  min-height: inherit;
  background: linear-gradient(180deg,
    rgba(8, 10, 13, 0.35) 0%,
    rgba(8, 10, 13, 0.55) 50%,
    rgba(10, 12, 15, 0.85) 85%,
    var(--bg) 100%);
  /* Extra space at the bottom = the part that sits behind Featured Project */
  padding-bottom: calc(48px + var(--pano-overlap));
}
/* Pull Featured Project up so its top third overlaps the panorama. */
.featured {
  position: relative; /* draws on top of the panorama */
  margin-top: calc(-1 * clamp(120px, 22vw, 300px));
}
.hero { min-height: 560px; display: flex; align-items: center; }
.hero-inner { width: 100%; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; max-width: 860px; }
.hero-sub { font-size: 20px; color: #D5DAE1; max-width: 640px; }

.about { padding-top: 24px; }
.about .eyebrow { margin-bottom: 16px; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: start; }
.about-list { line-height: 1.15; }
/* All three About paragraphs share one size, weight and color. */
.about-text { display: flex; flex-direction: column; gap: 16px; font-size: 18px; font-weight: 400; color: var(--text-soft); }
.about-text p { margin: 0; }

/* ---------- Video frame (featured project) ---------- */
.video-frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; position: relative; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-placeholder {
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
}
.video-placeholder::before { content: ""; position: absolute; inset: 0; background: rgba(8, 10, 13, 0.45); }
.video-placeholder > * { position: relative; }
.badge { position: absolute; top: 20px; left: 20px; background: var(--on-orange); color: var(--orange); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.play { width: 88px; height: 88px; border-radius: 50%; background: var(--orange); }
.play::after { content: ""; position: absolute; left: 34px; top: 26px; border-style: solid; border-width: 18px 0 18px 28px; border-color: transparent transparent transparent var(--on-orange); }
/* Featured card: same base as .service-card, with an orange accent so it
   reads as the headline project rather than one more service. */
.service-card.featured-card { border-color: var(--orange); } /* thin orange outline */
.featured-card .video-frame { border-radius: 0; } /* the card clips the corners */
.featured-body p { font-size: 20px; line-height: 1.55; color: var(--text); }
@media (max-width: 640px) {
  .featured-body p { font-size: 17px; }
}
.hint { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); background: rgba(10, 12, 15, 0.85); font-size: 13px; padding: 6px 12px; border-radius: 6px; white-space: nowrap; }

/* Click-to-load video (the Vimeo player is added by js/main.js on click) */
.facade-button {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; background: #000; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
/* ".video-frame" makes this beat the general ".service-card img" height rule */
.video-frame .facade-button img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.2s; }
.facade-button:hover img, .facade-button:focus-visible img { opacity: 1; }
.facade-button .play { position: relative; transition: transform 0.2s; }
.facade-button:hover .play, .facade-button:focus-visible .play { transform: scale(1.08); }
.facade-fallback { position: absolute; bottom: 20px; left: 20px; background: rgba(10, 12, 15, 0.85); padding: 8px 14px; border-radius: 6px; }

/* ---------- Services: stacked cards ---------- */
.service-stack { display: flex; flex-direction: column; gap: 32px; }
.service-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.service-card img { width: 100%; height: 420px; object-fit: cover; }
/* Parallax: js/main.js sets --shift as the card scrolls past. The photo is
   enlarged a little so its edges never show while it moves. */
.service-stack .service-card > img { transform: translateY(var(--shift, 0px)) scale(1.2); will-change: transform; }
/* Text area sits above the photo so the moving image never covers it. */
.service-body { position: relative; background: var(--surface); padding: 32px 40px 36px; display: flex; flex-direction: column; gap: 12px; }
.service-body h3 { font-size: 30px; }
.service-body p { color: var(--text-soft); }
.more { font-weight: 600; text-decoration: none; }
@media (max-width: 640px) {
  .service-card img { height: 240px; }
  .service-body { padding: 24px; }
}

/* ---------- Selected work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.work-grid figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.work-grid img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; width: 100%; }
.work-grid figcaption strong { display: block; font-weight: 600; }
.work-grid figcaption span { color: var(--muted); font-size: 14px; }

/* ---------- Clients ---------- */
.clients-intro { max-width: 820px; font-size: 18px; color: var(--text-soft); }
.client-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; max-width: 820px; }
.client-list { list-style: none; margin: 0; padding: 0; }
.client-list li {
  padding: 12px 0 12px 22px;
  border-bottom: 1px solid var(--border);
  position: relative;
  font-size: 17px;
}
/* Small orange dash in front of each name */
.client-list li::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 10px; height: 2px; background: var(--orange);
}
.client-more summary { list-style: none; } /* hide the default triangle */
.client-more summary::-webkit-details-marker { display: none; }
.client-more summary::after { content: " +"; }
.client-more[open] summary::after { content: " –"; }
.client-more[open] summary { margin-bottom: 28px; }
.client-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 48px; }
.client-groups h3 {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin: 16px 0 4px;
}
.client-groups .client-list li { font-size: 15px; padding-top: 9px; padding-bottom: 9px; color: var(--text-soft); }
@media (max-width: 640px) {
  .client-cols { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact { background: var(--surface-2); border-top: 1px solid var(--border); }
.contact-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 56px; padding-top: 96px; padding-bottom: 96px; }
.contact-intro { display: flex; flex-direction: column; gap: 18px; }
.contact-links { font-size: 17px; line-height: 1.8; padding-top: 8px; }
.contact-form { display: flex; flex-direction: column; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-size: 16px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 6px; padding: 12px;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.contact-form textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.contact-form .optional { color: var(--muted); font-weight: 400; }
.contact-form button { align-self: flex-start; }
.form-status { min-height: 1.6em; font-size: 15px; }
.form-status.ok { color: #7FD69B; }
.form-status.error { color: #FF8A7A; }
/* Spam trap field: moved off-screen rather than display:none */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Quote ---------- */
.quote { padding-top: 112px; padding-bottom: 112px; text-align: center; max-width: 1000px; }
.quote blockquote { margin: 0; }
.quote p { font-family: var(--font-head); font-size: clamp(32px, 5vw, 52px); line-height: 1.15; font-weight: 700; }
.quote footer { margin-top: 20px; font-size: 18px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--orange); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 40px; padding-bottom: 40px; font-size: 14px; color: var(--muted); }
.social { display: flex; flex-wrap: wrap; gap: 20px; }
.social a { color: #D5DAE1; text-decoration: none; }
.social a:hover { color: var(--orange); }

/* Visible focus ring for keyboard users */
a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ---------- Award badge (home Featured card + case study pages) ----------
   Orange outline pill with a ribbon icon. Sits above the text it belongs to. */
.award-badge {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  padding: 8px 16px 8px 10px; border: 1px solid var(--orange); border-radius: 999px;
  background: rgba(247, 133, 15, 0.08); color: var(--text); font-size: 14px; line-height: 1.3;
}
.award-badge svg { color: var(--orange); flex-shrink: 0; }
.award-badge strong { display: block; color: var(--orange); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
