/*
Theme Name: Modern Fullscreen Hero Theme
Theme URI: https://example.com/modern-fullscreen-theme
Author: Carlos Avila
Author URI: https://example.com
Description: A modern WordPress theme featuring a full-viewport image or video background hero with a floating header, sticky navigation toggle, and complete block editor support.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: modern-fullscreen
*/

:root {
  --mf-nav-bg: rgba(17, 24, 39, 0.85);
  --mf-nav-text: #ffffff;
  --mf-nav-hover: #38bdf8;
  --mf-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--mf-font);
  background-color: #0f172a;
  color: #334155;
  overflow-x: hidden;
}

/* =========================================================
   1. FLOATING & STICKY HEADER
   ========================================================= */
.mf-header {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 92%);
  z-index: 1000;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mf-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: var(--mf-nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.35);
}

/* Site Branding / Logo */
.mf-branding a {
  color: var(--mf-nav-text);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

/* Navigation List */
.mf-primary-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.mf-primary-nav a {
  color: var(--mf-nav-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.mf-primary-nav a:hover,
.mf-primary-nav .current-menu-item > a {
  color: var(--mf-nav-hover);
}

/* STICKY BEHAVIOR TRIGGERED BY JS */
.mf-header.is-sticky {
  position: fixed;
  top: 16px;
  width: min(1100px, 94%);
}

.mf-header.is-sticky .mf-header-inner {
  background: rgba(15, 23, 42, 0.94);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  padding: 10px 24px;
}

/* =========================================================
   2. FULLSCREEN HERO (IMAGE OR VIDEO BACKGROUND)
   ========================================================= */
.mf-hero-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mf-hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Dimmer Overlay for text contrast */
.mf-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
}

/* Hero Text & Actions */
.mf-hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 840px;
  padding: 0 20px;
}

.mf-hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 18px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.mf-hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  line-height: 1.5;
  margin: 0 0 32px;
  opacity: 0.9;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.mf-hero-btn {
  display: inline-block;
  padding: 14px 36px;
  background: #38bdf8;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 9999px;
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.4);
  transition: transform 0.2s, background-color 0.2s;
}

.mf-hero-btn:hover {
  background: #7dd3fc;
  transform: translateY(-2px);
}

/* =========================================================
   3. MAIN CONTENT AREA
   ========================================================= */
.mf-main-content {
  background-color: #ffffff;
  position: relative;
  z-index: 4;
  padding: 70px 24px;
  min-height: 60vh;
}

.mf-content-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.75;
  font-size: 1.1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .mf-header {
    top: 12px;
    width: 95%;
  }
  .mf-header-inner {
    padding: 10px 18px;
  }
  .mf-primary-nav ul {
    gap: 12px;
  }
  .mf-primary-nav a {
    font-size: 0.85rem;
  }
}