/* =========================================================
   Elite Media Group - style.css
   Cleaned, consolidated and fixed header/hero/form issues
========================================================= */

/* THEME + TYPOGRAPHY VARIABLES */
:root {
  --teal: #2644ee;
  --brand: #4facfe;
  --black: #0a0a0a;
  --white: #ffffff;
  --muted: #bfc7cf;
  --gray: #cccccc;
  --card-bg: rgba(255,255,255,0.06);
  --glass-dark: rgba(0,0,0,0.32);

  /* header (balanced default) */
  --nav-height: 128px;

  --container: 1200px;
  --radius: 14px;
  --focus: 3px solid rgba(0,191,166,0.16);
  --transition: 0.28s ease;
  --shadow-lg: 0 12px 30px rgba(2,6,23,0.45);

  /* fluid typography anchors */
  --fs-base: 1rem;     /* 16px */
  --fs-lg: 1.125rem;   /* 18px */
}

/* RESET & BASE */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { font-size: 100%; } /* 16px base */
body {
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--white);
  background:
    linear-gradient(rgba(10,10,10,0.75), rgba(10,10,10,0.75)),
    url('../assets/leadgen.gif') center center / cover no-repeat;
  background-attachment: fixed;
  line-height: 1.6;
  min-height: 100vh;
  text-align: center;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: 60px;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* HELPERS */
.sr-only, .visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; z-index: 9999;
}
.skip-link:focus {
  left: 1rem; top: 1rem; width: auto; height: auto; padding: 8px 12px; background: #000; color: #fff; border-radius: 6px;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

:focus { outline: none; box-shadow: var(--focus); border-radius: 6px; }

/* ---------------------------
   Fluid typography
   --------------------------- */
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.75rem, 6.5vw, 3.2rem);
  line-height: 1.06;
  margin: 0 0 0.85rem 0;
}

section h2 {
  font-size: clamp(1.25rem, 3.5vw, 1.9rem);
}

p { font-size: clamp(0.95rem, 2.6vw, 1.12rem); line-height: 1.6; }

/* responsive image helper */
.responsive-img { width: 100%; height: auto; display: block; max-width: 100%; }

/* =========================================================
   NAVBAR (compact, centered title)
========================================================= */
.site-header { position: sticky; top: 0; z-index: 9999; }

/* main nav row */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 10px 28px;
  background: rgba(10,10,10,0.28);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}

/* brand / logo (constrained) */
.nav-left { display: flex; align-items: center; gap: 12px; z-index: 3; }
.brand img, .nav-logo { max-height: 128px; width: auto; display: block; }

/* centered title (visual only) */
.nav-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
  text-align: center;
}
.nav-title {
  font-size: 3.05rem;   /* reasonable size for desktop */
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  pointer-events: none;
}

/* right-side nav links */
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 16px;
  align-items: center;
  z-index: 3;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a:focus { color: var(--brand); background: rgba(255,255,255,0.03); }

.nav-links a.btn-secondary {
  background: rgba(255,255,255,0.04);
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.04);
}

/* mobile toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--white);
  font-size: 20px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle:focus { box-shadow: var(--focus); }

/* mobile open state */
.nav-links.open { display: flex; flex-direction: column; gap: 12px; }

/* =========================================================
   HERO / PAGE SPACING
========================================================= */
.hero-section {
  padding-top: calc(var(--nav-height) + 56px);
  padding-bottom: 60px;
}

.hero-content {
  max-width: 980px;
  margin: 0 auto;
  padding: 72px 36px;
  background: rgba(0,0,0,0.36);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.06);
  text-align: left;
}

.hero-inner { display:flex; gap: 36px; align-items: center; flex-wrap: wrap; }
.hero-copy { flex: 1 1 420px; min-width: 280px; }
.hero-media { flex: 0 0 420px; min-width: 220px; }

/* hero text */
.hero-highlight { color: var(--brand); display: inline-block; margin-top: 6px; }

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 750px;
}

/* hero CTAs */
.hero-ctas { display:flex; gap: 14px; align-items:center; margin-top: 12px; flex-wrap:wrap; }
.btn-primary {
  display:inline-block;
  background: var(--brand);
  color: #00110d;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 6px 22px rgba(0,0,0,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 16px;
  border-radius: 10px;
}

/* proofs */
.hero-proofs { list-style: none; display:flex; gap:18px; margin-top:18px; padding:0; color:var(--muted); font-weight:600; align-items:center; }
.hero-proofs li strong { color: var(--white); display:block; font-size:1.05rem; }

/* Image buttons */
.image-buttons { display:flex; flex-wrap:wrap; justify-content:flex-start; gap: 20px; margin-top:20px; }
.img-card { position: relative; width: 300px; height: 200px; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--glass-dark); border: 1px solid rgba(255,255,255,0.08); transition: transform 0.35s ease, box-shadow 0.35s ease; }
.img-card img { width: 100%; height: 100%; object-fit: cover; display:block; }
.img-card:hover { transform: scale(1.035); box-shadow: 0 12px 30px rgba(0,0,0,0.45); }
.img-card .overlay { position: absolute; bottom: 0; width: 100%; background: rgba(0,0,0,0.56); padding: 12px; font-weight: 600; font-size: 1.05rem; color: var(--white); }

/* BUFFER */
.buffer { max-width: 900px; margin: 3rem auto; padding: 3.2rem 2.2rem; background: rgba(0,0,0,0.34); backdrop-filter: blur(4px); border-radius: 16px; border: 1px solid rgba(255,255,255,0.06); text-align: left; }
.buffer h2 { font-size: 2.2rem; margin-bottom: 1rem; font-weight: 600; }
.buffer p { color: var(--muted); font-size: 1.12rem; }

/* SECTIONS */
section { max-width: 980px; margin: 3rem auto; padding: 2.6rem 2rem; background: var(--card-bg); backdrop-filter: blur(5px); border-radius: 14px; border: 1px solid rgba(255,255,255,0.06); text-align: left; }
section h2 { font-size: 2rem; margin-bottom: 0.75rem; font-weight: 600; }
section p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1rem; line-height: 1.65; }

/* BULLET LIST */
.bullet-list { text-align: left; max-width: 650px; margin: 0 auto 1.5rem; padding-left: 1.25rem; color: var(--muted); }
.bullet-list li { margin-bottom: 0.6rem; }

/* GRID & SERVICES */
.grid-3 { display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items:start; }
.services-teaser article { background: rgba(255,255,255,0.02); padding: 20px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.03); }

/* TRUSTED LOGOS */
.trusted .logo-grid { display:flex; gap:18px; align-items:center; justify-content:flex-start; flex-wrap:wrap; padding:0; list-style:none; margin-top:10px; }
.trusted .logo-grid li img { max-height: 48px; opacity: 0.94; filter: grayscale(0.02) contrast(1.02); }

/* CASE CARD */
.case-teaser .case-card { background: rgba(0,0,0,0.18); padding: 20px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.04); }

/* CONTACT FORM */
.contact .lead-form { display:grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items:start; margin-top: 12px; }
.lead-form label { display:block; width: 100%; text-align: left; font-size: 0.95rem; color: var(--muted); }
.lead-form input, .lead-form textarea, .lead-form select {
  width:100%; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03); color: var(--white);
}
.lead-form textarea { min-height: 100px; resize: vertical; }
.lead-form .form-actions { grid-column: 1 / -1; display:flex; gap: 10px; margin-top: 6px; }
#formStatus { margin-top: 10px; color: var(--brand); font-size: 0.95rem; }

/* Buttons for forms */
.btn-ghost-inline { background: transparent; border: 1px solid rgba(255,255,255,0.06); color: var(--white); padding: 10px 14px; border-radius: 8px; }

/* LOGO ROTATOR */
.logo-rotator { position: relative; width: 200px; height: 130px; margin: 2.5rem auto; }
.logo-slide { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; opacity:0; transition: opacity 0.9s ease-in-out; display:flex; align-items:center; justify-content:center; }
.logo-slide img { max-height: 100%; max-width: 100%; object-fit: contain; }
.logo-slide.active { opacity:1; }

/* FOOTER */
footer { background: rgba(0,0,0,0.6); padding: 28px 20px; color: #cfcfcf; text-align:center; font-size: 0.92rem; margin-top: 3.5rem; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-inner { display:flex; justify-content:space-between; align-items:center; gap:12px; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.footer-links { list-style:none; display:flex; gap:12px; margin:0; padding:0; align-items:center; justify-content:center; }

/* RESPONSIVE & MOBILE */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.6rem; }
  .hero-inner { gap: 22px; }
  .hero-media { flex-basis: 360px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  body { background-attachment: scroll; background-position: center top; }

  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    right: 16px;
    top: calc(var(--nav-height) + 6px);
    background: rgba(0,0,0,0.72);
    padding: 12px;
    border-radius: 8px;
    display: none;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--white); padding: 10px 12px; }
  .nav-center { display: none; }
  .hero-content { padding: 48px 20px; border-radius: 12px; }
  .grid-3 { grid-template-columns: 1fr; }
  .image-buttons { justify-content: center; }
  .img-card { width: 92%; height: 180px; }
  .lead-form { grid-template-columns: 1fr; }
  .trusted .logo-grid { justify-content:center; }
  .footer-inner { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 1.9rem; }
  .hero-subtitle { font-size: 0.98rem; }
  .brand img { max-height: 56px; }
}
