/*
Theme Name: Flux & Fire Studio Block
Theme URI: https://fluxandfire.studio
Author: Flux and Fire Studio
Description: Editable block theme for Flux & Fire Studio with a full-screen hero, sticky header, editable colors, logo, layout, and homepage sections.
Version: 4.3.4
Requires at least: 6.2
Tested up to: 6.5
Text Domain: flux-fire-studio
*/

@font-face {
  font-family: "Become";
  src: url("assets/fonts/Become.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
  --wp--custom--ff-shadow: 0 16px 50px rgba(0,0,0,.18);
}

.ff-site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(10px);
  background: rgba(51,49,56,.82);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.ff-hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ff-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(37,142,166,.18), transparent 34%),
    radial-gradient(circle at 85% 68%, rgba(226,181,36,.16), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  pointer-events: none;
}

.ff-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: .22;
  pointer-events: none;
}

.ff-hero > .wp-block-group {
  position: relative;
  z-index: 2;
}

.ff-display,
.ff-display-small,
.ff-brand-lockup {
  font-family: "Become", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif !important;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: .03em;
}

.ff-display {
  font-size: clamp(4rem, 12vw, 11rem);
}

.ff-display-small {
  font-size: clamp(1.25rem, 3vw, 3.25rem);
}

.ff-brand-lockup {
  font-size: clamp(1.6rem, 2.5vw, 2.6rem);
}

.ff-brand-lockup small {
  display: block;
  font-size: .33em;
  letter-spacing: .14em;
}

.ff-bottom-nav {
  width: min(1140px, calc(100vw - 40px));
  border-radius: 999px;
  box-shadow: var(--wp--custom--ff-shadow);
}

.ff-home-pill a {
  display: inline-block;
  padding: .4rem .8rem;
  border-radius: 999px;
  background: var(--wp--preset--color--flux);
  color: #fff !important;
}

.ff-project-card {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
  transition: transform .22s ease, box-shadow .22s ease;
}
.ff-project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(0,0,0,.12);
}

.ff-project-media {
  min-height: 280px;
  background: linear-gradient(135deg, var(--wp--preset--color--flux), var(--wp--preset--color--fire));
}

.ff-section-light {
  background: var(--wp--preset--color--sand);
  color: var(--wp--preset--color--ink);
}

.ff-section-dark {
  background: var(--wp--preset--color--bg);
  color: var(--wp--preset--color--paper);
}

.ff-logo-row .custom-logo-link img,
.ff-logo-row .site-logo img {
  max-height: 64px;
  width: auto;
}

.ff-site-title a {
  text-decoration: none;
}

.ff-hide-on-mobile {
  display: block;
}
@media (max-width: 782px) {
  .ff-hide-on-mobile {
    display: none;
  }
  .ff-bottom-nav {
    width: calc(100vw - 28px);
  }
}

/* Helps editor preview fill the canvas nicely */
.editor-styles-wrapper .ff-hero {
  min-height: 85vh;
}


.ff-logo-row {
  gap: 1.5rem;
}

.ff-brand-slot {
  flex: 0 0 auto;
  min-width: 110px;
}

.ff-primary-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.ff-primary-nav .wp-block-navigation__container {
  flex-wrap: nowrap !important;
  justify-content: flex-end;
  gap: clamp(.75rem, 1.8vw, 2rem);
}

.ff-primary-nav .wp-block-navigation-item {
  white-space: nowrap;
}

.ff-primary-nav .wp-block-navigation-item__content {
  padding: .2rem 0;
}

@media (max-width: 1100px) {
  .ff-primary-nav .wp-block-navigation__container {
    gap: 1rem;
  }
}

/* Clean page-editor homepage patterns */
.ff-editable-home main,.ff-clean-home{margin-top:0}.ff-page-builder-main{padding-top:0!important}.ff-pattern-section{position:relative}.ff-home-hero-editable{min-height:min(760px,92vh);overflow:hidden}.ff-home-hero-editable .wp-block-cover__inner-container{position:relative;z-index:2}.ff-home-hero-editable::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 15% 15%,rgba(37,142,166,.28),transparent 34%),radial-gradient(circle at 78% 64%,rgba(226,134,101,.22),transparent 32%),linear-gradient(180deg,rgba(51,49,56,.08),rgba(51,49,56,.7))}.ff-home-hero-editable::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:.18;background-image:linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);background-size:44px 44px}.ff-service-card,.ff-portfolio-shell,.ff-cta-panel{border-radius:28px;box-shadow:0 18px 55px rgba(0,0,0,.10)}.ff-service-card{height:100%;transition:transform .22s ease,box-shadow .22s ease}.ff-service-card:hover{transform:translateY(-5px);box-shadow:0 24px 64px rgba(0,0,0,.14)}.ff-page-editor-note{border-left:4px solid var(--wp--preset--color--flux)}.ff-clean-home .wp-block-post-title{display:none}@media(max-width:782px){.ff-home-hero-editable{min-height:720px}.ff-display{font-size:clamp(3.4rem,18vw,7rem)}}

/* v4.3.1: make page-editor home sections truly full width */
.ff-clean-home,
.ff-page-builder-main,
.ff-editable-home { max-width: none !important; width: 100% !important; }
.ff-clean-home > .wp-block-post-content,
.ff-page-builder-main > .wp-block-post-content,
.entry-content { max-width: none !important; }
.ff-editable-home.alignfull,
.ff-pattern-section.alignfull,
.ff-home-hero-editable.alignfull { width: 100% !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.editor-styles-wrapper .is-root-container > .ff-editable-home,
.editor-styles-wrapper .is-root-container > .ff-pattern-section,
.editor-styles-wrapper .is-root-container > .ff-home-hero-editable,
.editor-styles-wrapper .block-editor-block-list__layout > .ff-editable-home { width: 100% !important; max-width: none !important; }
.ff-pattern-section > .wp-block-group.alignwide,
.ff-pattern-section > .wp-block-columns.alignwide,
.ff-home-hero-editable .wp-block-group.alignwide { width: min(1440px, calc(100vw - 48px)); max-width: 1440px; margin-left: auto; margin-right: auto; }

/* v4.3.3: live frontend hardening */
body.home .ff-clean-home,
body.page .ff-clean-home,
body.home .entry-content,
body.page .entry-content,
body.home .wp-site-blocks > main,
body.page .wp-site-blocks > main {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.home .ff-editable-home,
body.page .ff-editable-home,
body.home .ff-pattern-section,
body.page .ff-pattern-section,
body.home .ff-home-hero-editable,
body.page .ff-home-hero-editable {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}
body.home .ff-home-hero-editable,
body.page .ff-home-hero-editable {
  min-height: clamp(620px, 78vh, 820px) !important;
  display: flex !important;
  align-items: center !important;
}
body.home .ff-home-hero-editable .wp-block-cover__inner-container,
body.page .ff-home-hero-editable .wp-block-cover__inner-container {
  width: 100% !important;
}
body.home .ff-home-hero-editable .wp-block-site-logo img,
body.page .ff-home-hero-editable .wp-block-site-logo img {
  width: clamp(140px, 18vw, 260px) !important;
  max-width: 260px !important;
  height: auto !important;
}
body.home .ff-section-light,
body.page .ff-section-light {
  background: #e9e4d6 !important;
  color: #17161a !important;
}
body.home .ff-section-dark,
body.page .ff-section-dark {
  background: #333138 !important;
  color: #f7f5ef !important;
}
body.home .ff-service-card,
body.page .ff-service-card,
body.home .ff-portfolio-shell,
body.page .ff-portfolio-shell {
  background: #f7f5ef !important;
  color: #17161a !important;
}
body.home .ff-display,
body.page .ff-display {
  font-family: "Become", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif !important;
  font-size: clamp(4.8rem, 13vw, 12rem) !important;
  line-height: .82 !important;
  letter-spacing: .03em !important;
  text-transform: uppercase !important;
}
body.home .ff-display-small,
body.page .ff-display-small {
  font-family: "Become", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif !important;
  font-size: clamp(1.6rem, 3vw, 3.3rem) !important;
  line-height: .95 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}
@media (max-width: 782px) {
  body.home .ff-home-hero-editable,
  body.page .ff-home-hero-editable { min-height: 680px !important; }
  body.home .ff-display,
  body.page .ff-display { font-size: clamp(3.4rem, 18vw, 7rem) !important; }
}



/* v4.3.4: dropdown readability + normal page width restore */
.ff-site-header .wp-block-navigation__submenu-container,
.ff-site-header .wp-block-navigation .has-child .wp-block-navigation__submenu-container {
  background: #f7f5ef !important;
  color: #333138 !important;
  border: 1px solid rgba(51,49,56,.12) !important;
  box-shadow: 0 18px 45px rgba(0,0,0,.22) !important;
  min-width: 260px;
  z-index: 10000 !important;
}
.ff-site-header .wp-block-navigation__submenu-container .wp-block-navigation-item,
.ff-site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
.ff-site-header .wp-block-navigation__submenu-container a {
  color: #333138 !important;
  opacity: 1 !important;
  text-decoration: none !important;
}
.ff-site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  padding: 12px 16px !important;
  font-weight: 800;
  letter-spacing: .05em;
}
.ff-site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.ff-site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus {
  background: #258ea6 !important;
  color: #ffffff !important;
}
.ff-site-header .wp-block-navigation__responsive-container.is-menu-open {
  background: #333138 !important;
  color: #f7f5ef !important;
}
.ff-site-header .wp-block-navigation__responsive-container.is-menu-open a,
.ff-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  color: #f7f5ef !important;
}
body.page:not(.home) .wp-site-blocks > main.ff-standard-page {
  width: min(1040px, calc(100vw - 48px)) !important;
  max-width: 1040px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-top: clamp(28px, 4vw, 52px) !important;
  padding-bottom: clamp(44px, 6vw, 76px) !important;
  box-sizing: border-box !important;
}
body.page:not(.home) main.ff-standard-page .entry-content,
body.page:not(.home) main.ff-standard-page .wp-block-post-content,
body.page:not(.home) main.ff-standard-page > .wp-block-post-content {
  width: 100% !important;
  max-width: 1040px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}
body.page:not(.home) main.ff-standard-page .alignfull,
body.page:not(.home) main.ff-standard-page .alignwide {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (max-width: 782px) {
  body.page:not(.home) .wp-site-blocks > main.ff-standard-page {
    width: calc(100vw - 28px) !important;
  }
}
