/* Leon Media Group — site styles (matched to the live site's real look) */

:root {
  --lmg-black: #0a0a0c;
  --lmg-blue: #3f7bf0;
  --lmg-blue-deep: #2f63cf;
  --lmg-red: #f16a5c;
  --lmg-red-deep: #e2503f;
  --lmg-white: #ffffff;
  --lmg-grey: #f2f2f3;
  --lmg-grey-mid: #8a8a92;
  --lmg-text: #1b1b1f;
  --radius: 22px;
  --max-width: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--lmg-text);
  background: var(--lmg-white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1rem;
  color: inherit;
  display: block;
  margin-bottom: 6px;
}

/* -------- Header -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--lmg-grey);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--lmg-blue);
}
.logo img { width: 40px; height: 40px; }

nav.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  color: #444;
}
nav.main-nav li { position: relative; }
nav.main-nav a:hover { color: var(--lmg-blue); }

.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--lmg-white);
  min-width: 180px;
  padding: 10px 0;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown li { padding: 0; }
.dropdown a { display: block; padding: 8px 18px; color: #333; }

.header-phone {
  font-weight: 700;
  color: var(--lmg-text);
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid #ccc;
  color: var(--lmg-text);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* -------- Buttons -------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-blue { background: var(--lmg-blue); color: var(--lmg-white); }
.btn-red  { background: var(--lmg-red); color: var(--lmg-white); }
.btn-black { background: var(--lmg-black); color: var(--lmg-white); }

/* -------- Floating Call Us -------- */
.floating-call {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

/* -------- Hero -------- */
.hero {
  position: relative;
  margin: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
}
.hero.hero-animated {
  background: linear-gradient(135deg, #0a0a0c 0%, #10204a 45%, #1d3f8f 75%, var(--lmg-blue) 100%);
}
.hero-animated-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-animated-bg::before,
.hero-animated-bg::after {
  content: "";
  position: absolute;
  width: 55%;
  padding-top: 55%;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  will-change: transform;
}
.hero-animated-bg::before {
  background: var(--lmg-blue);
  top: -18%;
  left: -12%;
  animation: heroBlobA 17s ease-in-out infinite;
}
.hero-animated-bg::after {
  background: var(--lmg-red);
  bottom: -22%;
  right: -10%;
  animation: heroBlobB 19s ease-in-out infinite;
}
.hero-sky {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.9;
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 75% 25%, #000 0%, transparent 65%);
  mask-image: radial-gradient(circle at 75% 25%, #000 0%, transparent 65%);
}
@keyframes heroBlobA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(7%, 9%) scale(1.18); }
}
@keyframes heroBlobB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-9%, -7%) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-animated-bg::before, .hero-animated-bg::after { animation: none; }
}
.hero .hero-card {
  position: relative;
  z-index: 2;
  background: var(--lmg-white);
  border-radius: var(--radius);
  padding: 48px 44px;
  max-width: 720px;
  margin: 24px;
}
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.08;
  margin: 0 0 20px;
  text-transform: uppercase;
}
.hero h1 .black { color: var(--lmg-black); }
.hero h1 .blue { color: var(--lmg-blue); }
.hero p { color: #333; margin: 0 0 14px; max-width: 560px; }
.hero .lede { font-weight: 700; margin-bottom: 26px; }

/* -------- Page hero (service pages) -------- */
.page-hero {
  padding: 90px 24px 60px;
  text-align: center;
  background: var(--lmg-grey);
}
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  margin: 0 0 28px;
  text-transform: uppercase;
}

/* -------- Media frames: full image always visible, never cropped/zoomed -------- */
.media-frame {
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--lmg-blue) 0%, var(--lmg-red) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--lmg-grey);
}

/* Service-page intro: text + framed visual side by side */
.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.intro-grid .intro-copy p:first-child { margin-top: 0; }
.intro-grid .media-frame {
  aspect-ratio: 4 / 5;
  max-height: 560px;
  margin: 0 auto;
  width: 100%;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/* Secondary supporting visual, centered, landscape framing */
.media-frame-wide {
  aspect-ratio: 16 / 9;
  max-width: 780px;
  margin: 0 auto 48px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/* -------- Section generic -------- */
section { padding: 70px 24px; }
.section-light { background: var(--lmg-white); }
.section-tint { background: var(--lmg-grey); }
.section-dark { background: var(--lmg-black); color: var(--lmg-white); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0;
  text-transform: uppercase;
}

/* -------- About (black card) -------- */
.about-card {
  background: var(--lmg-black);
  color: var(--lmg-white);
  border-radius: var(--radius);
  margin: 0 24px;
  padding: 56px;
  display: flex;
  gap: 56px;
  align-items: flex-start;
}
.about-copy { flex: 1 1 62%; min-width: 0; }
.about-card .kicker {
  display: inline-block;
  background: var(--lmg-white);
  color: var(--lmg-black);
  font-weight: 800;
  padding: 4px 10px;
  margin-bottom: 10px;
  font-size: 1.3rem;
  text-transform: uppercase;
}
.about-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 26px;
  text-transform: uppercase;
}
.about-card p { color: #d8d8dc; max-width: 560px; margin: 0 0 16px; }
.about-card .lede { color: var(--lmg-white); font-weight: 700; }
.about-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

.about-stats {
  flex: 1 1 32%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: stretch;
  justify-content: center;
}
.about-stats .stat {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 22px 24px;
  background: rgba(255,255,255,0.04);
}
.about-stats .stat strong {
  display: block;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  color: var(--lmg-white);
}
.about-stats .stat span { color: #9a9aa2; font-size: 0.85rem; }

/* -------- Services grid -------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--lmg-white);
  border: 1px solid #ececec;
  display: flex;
  flex-direction: column;
}
.service-card .thumb {
  height: 190px;
  background: var(--lmg-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.service-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  box-sizing: border-box;
}
.service-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { margin: 0 0 8px; font-size: 1.02rem; text-transform: uppercase; }
.service-card p { margin: 0 0 16px; color: #555; font-size: 0.92rem; flex: 1; }
.service-card .read-more {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--lmg-blue);
}

/* -------- Portfolio bar + logo wall -------- */
.portfolio-bar {
  background: var(--lmg-black);
  color: var(--lmg-white);
  border-radius: var(--radius);
  margin: 0 24px 50px;
  padding: 36px 48px;
  text-align: right;
}
.portfolio-bar h2 { margin: 0; text-transform: uppercase; }

/* Auto-scrolling logo ticker, matching the live site's client strip */
.logo-marquee {
  width: 100%;
  overflow: hidden;
  padding: 10px 0 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.logo-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 72px;
  animation: logo-scroll 36s linear infinite;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-tile {
  flex: 0 0 auto;
  height: 70px;
  width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  text-align: center;
}
.logo-tile img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.logo-tile img:hover {
  filter: grayscale(0%);
  opacity: 1;
}
.logo-tile .fallback-label { display: none; }
.logo-tile img[data-broken="true"] { display: none; }
.logo-tile img[data-broken="true"] ~ .fallback-label { display: block; }

@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
  .logo-marquee { overflow-x: auto; }
}

/* -------- Showcase: browser-mockup cards, full screenshot always visible -------- */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.showcase-card {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: var(--lmg-white);
  border: 1px solid #ececec;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(0,0,0,0.12);
}
.showcase-chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 11px 14px;
  background: #f5f5f6;
  border-bottom: 1px solid #ececec;
}
.showcase-chrome .dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.showcase-chrome .dot:nth-child(1) { background: #f16a5c; }
.showcase-chrome .dot:nth-child(2) { background: #f0c75e; }
.showcase-chrome .dot:nth-child(3) { background: #3fc77b; }
.showcase-chrome span {
  margin-left: 8px;
  font-size: 0.75rem;
  color: #888;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.showcase-media {
  aspect-ratio: 16 / 10;
  background: var(--lmg-grey);
  overflow: hidden;
}
.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.center { text-align: center; }

/* -------- Contact -------- */
.contact-section { background: var(--lmg-white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  border-radius: var(--radius);
  overflow: hidden;
}
.contact-photo {
  min-height: 420px;
  background: var(--lmg-black);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 28px;
  box-sizing: border-box;
}
.contact-form-wrap { padding: 48px; background: var(--lmg-white); }
.contact-form-wrap .eyebrow { text-align: left; }
.contact-form-wrap h2 { margin: 0 0 30px; text-transform: uppercase; }
form.contact-form label {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 6px;
}
form.contact-form .field { margin-bottom: 22px; }
form.contact-form input {
  width: 100%;
  padding: 8px 2px;
  border: none;
  border-bottom: 1px solid #ccc;
  font-size: 1rem;
  background: transparent;
}
form.contact-form input:focus { outline: none; border-bottom-color: var(--lmg-blue); }
form.contact-form .actions { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
form.contact-form button { width: 100%; }

/* -------- Closing band (service pages) -------- */
.closing-band {
  text-align: center;
  padding: 70px 24px;
  background: var(--lmg-grey);
}
.closing-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 28px; text-transform: uppercase; }

/* -------- Footer -------- */
.site-footer {
  background: var(--lmg-black);
  color: #bdbdc2;
  border-radius: var(--radius);
  margin: 0 24px 24px;
  padding: 50px 48px 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 30px;
}
.footer-wordmark {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--lmg-white);
  text-transform: uppercase;
}
.footer-logo { width: 90px; height: 90px; }
.footer-contact p { margin: 0 0 8px; font-size: 0.92rem; }
.footer-legal { display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; text-align: right; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* -------- Responsive -------- */
@media (max-width: 920px) {
  .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-track { gap: 48px; animation-duration: 26s; }
  .logo-tile { width: 130px; height: 56px; }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-grid .media-frame { order: -1; aspect-ratio: 16 / 10; max-height: 360px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-legal { text-align: center; }
  .about-card { flex-direction: column; }
  .about-card p { max-width: none; }
  .portfolio-bar { text-align: left; }
}

@media (max-width: 760px) {
  nav.main-nav ul { display: none; }
  .menu-toggle { display: inline-block; }
  .header-phone { display: none; }
  .hero { margin: 12px; min-height: auto; }
  .hero .hero-card { margin: 16px; padding: 28px; }
  .about-card, .portfolio-bar, .site-footer { margin-left: 12px; margin-right: 12px; }
  .showcase-grid { grid-template-columns: 1fr; }
}

/* -------- Scroll entrance animations -------- */
[data-animate] {
  opacity: 0;
  transition: opacity 0.75s ease, transform 0.75s ease;
  will-change: opacity, transform;
}
[data-animate="up"] { transform: translateY(28px); }
[data-animate="fade"] { transform: none; }
[data-animate="left"] { transform: translateX(-28px); }
[data-animate="right"] { transform: translateX(28px); }
[data-animate].in-view {
  opacity: 1;
  transform: none;
}

/* Staggered delays for grid/card groups */
.services-grid [data-animate]:nth-child(1) { transition-delay: 0s; }
.services-grid [data-animate]:nth-child(2) { transition-delay: 0.08s; }
.services-grid [data-animate]:nth-child(3) { transition-delay: 0.16s; }
.services-grid [data-animate]:nth-child(4) { transition-delay: 0.24s; }

.showcase-grid [data-animate]:nth-child(1) { transition-delay: 0s; }
.showcase-grid [data-animate]:nth-child(2) { transition-delay: 0.08s; }
.showcase-grid [data-animate]:nth-child(3) { transition-delay: 0.16s; }
.showcase-grid [data-animate]:nth-child(4) { transition-delay: 0.24s; }
.showcase-grid [data-animate]:nth-child(5) { transition-delay: 0.32s; }

.about-stats [data-animate]:nth-child(1) { transition-delay: 0s; }
.about-stats [data-animate]:nth-child(2) { transition-delay: 0.08s; }
.about-stats [data-animate]:nth-child(3) { transition-delay: 0.16s; }

.logo-marquee, .logo-marquee [data-animate] {
  /* Logo strip should not wait on scroll — it's already in motion. */
  transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    transition: none;
    opacity: 1;
    transform: none;
  }
}
