/* Family Friends fixed navigation and compact generated hero banners.
   Versioned experiment: all original WordPress content/URLs remain unchanged.
   This stylesheet is loaded after homepage-canonical.css or subpages.css. */

/* Header & Brand Scale — unified across homepage and inner pages */
.ff-site-header .ff-header-inner {
  height: 94px !important;
  gap: 0 !important;
  padding-bottom: 2px;
}
.ff-site-header .ff-brand {
  display: inline-flex;
  align-items: center;
  gap: 15px !important;
  width: 270px !important;
  min-width: 270px !important;
  flex-shrink: 0;
}
.ff-site-header .ff-brand-mark {
  width: 68px !important;
  height: 68px !important;
}
.ff-site-header .ff-brand-copy strong {
  font-size: 28px !important;
  letter-spacing: -0.02em !important;
  line-height: 1.05;
}
.ff-site-header .ff-brand-copy small {
  font-size: 9.5px !important;
  letter-spacing: 0.12em !important;
  margin-top: 4px;
}

/* One header information architecture, used on homepage and every original inner page. */
.ff-fixed-nav .ff-unified-menu,
.ff-fixed-nav .ff-dropdown { list-style:none; padding:0; margin:0; }
.ff-fixed-nav .ff-unified-menu,
.ff-subpage .ff-subpage-nav.ff-fixed-nav .ff-unified-menu {
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:clamp(12px,1.6vw,26px) !important;
}
.ff-fixed-nav .ff-unified-item { position:relative; padding:0; margin:0; }
.ff-fixed-nav .ff-nav-mainlink { display:flex; align-items:center; min-height:48px; white-space:nowrap; }
.ff-fixed-nav .ff-nav-mainlink > a {
  display:inline-flex; align-items:center; padding:10px 0;
  height:auto; min-height:48px; color:#38423a;
  font-size:15.5px !important; line-height:1.35; font-weight:600;
  text-decoration:none; white-space:nowrap;
}
.ff-fixed-nav .ff-nav-mainlink > a::after { content:none !important; }
.ff-fixed-nav .ff-nav-mainlink > a:hover,
.ff-fixed-nav .ff-nav-active > .ff-nav-mainlink > a,
.ff-fixed-nav a[aria-current="page"] { color:#426b4b; }
.ff-fixed-nav .ff-drop-toggle {
  display:inline-flex; align-items:center; justify-content:center;
  min-width:27px; width:27px; height:44px;
  margin-left:2px; padding:0 3px;
  border:0; background:transparent; color:#526a57;
  font:inherit; cursor:pointer;
}
.ff-fixed-nav .ff-drop-toggle span { display:block; font-size:17px; transition:transform .15s ease; }
.ff-fixed-nav .ff-has-dropdown[data-open="true"] > .ff-nav-mainlink .ff-drop-toggle span { transform:rotate(180deg); }
.ff-fixed-nav .ff-dropdown {
  display:none; position:absolute; top:calc(100% - 2px); left:0;
  z-index:500; min-width:245px; max-width:315px;
  padding:10px; background:#fff; border:1px solid #e1e8df;
  border-radius:13px; box-shadow:0 16px 40px rgba(24,41,29,.15);
}
.ff-fixed-nav .ff-has-dropdown:hover > .ff-dropdown,
.ff-fixed-nav .ff-has-dropdown:focus-within > .ff-dropdown,
.ff-fixed-nav .ff-has-dropdown[data-open="true"] > .ff-dropdown { display:block; }
.ff-fixed-nav .ff-dropdown a,
.ff-desktop-nav.ff-fixed-nav .ff-dropdown a {
  display:block; height:auto; min-height:42px; padding:10px 14px;
  font-size:14.5px !important; font-weight:500; color:#38423a;
  text-decoration:none; white-space:normal; border-radius:7px;
}
.ff-fixed-nav .ff-dropdown a:hover,
.ff-fixed-nav .ff-dropdown a:focus-visible,
.ff-fixed-nav .ff-dropdown a[aria-current="page"] { background:#eef4ef; color:#355a40; }
.ff-fixed-nav :is(a,button):focus-visible {
  outline:3px solid #55715b; outline-offset:2px; border-radius:5px;
}
.ff-desktop-nav.ff-fixed-nav,
.ff-subpage .ff-subpage-nav.ff-fixed-nav {
  margin-left:clamp(20px,2.8vw,44px) !important;
  margin-right:auto !important;
  flex:0 1 auto !important;
}
@media (min-width:1086px) {
  .ff-site-header .ff-header-cta {
    font-size:14.5px !important;
    height:42px !important;
    padding:0 22px !important;
    width:auto !important;
    min-width:136px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
  }
}

/* Keep original Divi page bodies and plugin markup. Suppress ONLY legacy
   second-section pipe-link navigation, which is duplicated in the fixed header.
   Contact (ID 51) has useful body copy in section 2; do not hide it. */
.ff-subpage:not(.page-id-51) .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:nth-child(2) {
  display:none !important;
}

/* Program uses the existing bespoke hero; reduce it from fullscreen. */
.ff-subpage .ff-page-hero {
  height:clamp(245px,21vw,300px) !important; min-height:0 !important;
}
.ff-subpage .ff-page-hero-inner {
  align-items:center !important; padding:0 !important;
}
.ff-subpage .ff-page-hero-copy { width:min(550px,65%) !important; }
.ff-subpage .ff-page-hero-copy h1 {
  max-width:14ch !important; font-size:clamp(32px,3.6vw,48px) !important;
  line-height:1.08 !important;
}
.ff-subpage .ff-page-hero-description {
  margin-top:10px !important; font-size:clamp(14px,1.3vw,18px) !important;
}
.ff-subpage .ff-page-hero-handwriting { display:none !important; }
.ff-subpage .ff-page-hero-wave { height:clamp(30px,4.5vw,55px) !important; }

.ff-subpage-nav .ff-mobile-cta { display:none !important; }

/* Original Divi first sections remain the banner on the other 13 pages. */
.ff-subpage .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
  height:auto !important; min-height:clamp(245px,21vw,300px) !important;
  padding:25px 0 !important; background-size:cover !important;
  background-position:center center !important;
}
.ff-subpage .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child > .et_pb_row {
  padding:0 !important;
}
.ff-subpage .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child .et_pb_text_inner h1 {
  font-size:clamp(31px,3.6vw,48px) !important;
  text-shadow:0 2px 14px rgba(0,0,0,.75), 0 1px 4px rgba(0,0,0,.9) !important;
}

/* Selected generated imagery (illustrative, not documentation of real people or premises).
   Real named-person banners are explicitly excluded below. */
.ff-subpage.page-id-23 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
  background-image:url('../images/banners/values.webp') !important;
  background-position:center 35% !important;
}
.ff-subpage.page-id-26 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
  background-image:url('../images/banners/parent-sharing-circles.webp') !important;
  background-position:center 30% !important;
}
.ff-subpage.page-id-29 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
  background-image:url('../images/banners/enrollment-rates.webp') !important;
  background-position:center 25% !important;
}
.ff-subpage.page-id-32 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
  background-image:url('../images/banners/gallery.webp') !important;
  background-position:center 35% !important;
}
.ff-subpage.page-id-38 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
  background-image:url('../images/banners/book-a-session.webp') !important;
  background-position:center 45% !important;
}
.ff-subpage.page-id-41 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
  background-image:url('../images/banners/teaching.webp') !important;
  background-position:center 45% !important;
}
.ff-subpage.page-id-45 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
  background-image:url('../images/banners/upcoming-events.webp') !important;
  background-position:center 45% !important;
}
.ff-subpage.page-id-48 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
  background-image:url('../images/banners/newsletter.webp') !important;
  background-position:center 45% !important;
}
.ff-subpage.page-id-51 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
  background-image:url('../images/banners/contact.webp') !important;
  background-position:center 45% !important;
}
.ff-subpage.page-id-75 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
  background-image:url('../images/banners/events.webp') !important;
  background-position:center 40% !important;
}
/* Keep the existing Family Friends Mexico page (ID 400) image intact. */

/* Genuine original portrait banners: pure natural photography for Ezra and Suyin (Option A). */
.ff-subpage.page-id-19 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
  background-image:url('../images/banners/about-suyin.webp') !important;
  background-repeat:no-repeat !important;
  background-size:cover !important;
  background-position:center 25% !important;
}
.ff-subpage.page-id-35 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
  background-image:url('../images/banners/about-ezra.webp') !important;
  background-repeat:no-repeat !important;
  background-size:cover !important;
  background-position:center 25% !important;
}
.ff-subpage:is(.page-id-19,.page-id-35) .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child .et_pb_row {
  max-width:1200px !important;
  width:90% !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
.ff-subpage:is(.page-id-19,.page-id-35) .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child .et_pb_text_0 {
  max-width:min(540px,60%) !important;
  margin-left:0 !important;
  margin-right:auto !important;
}
.ff-subpage:is(.page-id-19,.page-id-35) .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child .et_pb_text_inner h1 {
  text-align:left !important;
  margin:0 !important;
  padding-left:clamp(10px,3.5vw,40px) !important;
  max-width:none !important;
  white-space:nowrap !important;
  color:#ffffff !important;
  text-shadow:0 2px 10px rgba(0,0,0,0.85), 0 4px 24px rgba(0,0,0,0.7) !important;
}

/* Mobile: use existing drawer/toggle, with expandable child links. */
@media (max-width:1085px) {
  .ff-site-header .ff-header-inner { height: 78px !important; }
  .ff-site-header .ff-brand { width: auto !important; min-width: 0 !important; margin-right: auto !important; gap: 12px !important; }
  .ff-site-header .ff-brand-mark { width: 52px !important; height: 52px !important; }
  .ff-site-header .ff-brand-copy strong { font-size: 23px !important; }
  .ff-site-header .ff-brand-copy small { display: none !important; }
  .ff-site-header .ff-header-cta { display: none !important; }
  .ff-site-header .ff-mobile-toggle {
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .ff-desktop-nav.ff-fixed-nav { display:none !important; }
  .ff-mobile-drawer .ff-mobile-nav.ff-fixed-nav { display:block; }
  .ff-mobile-drawer .ff-unified-menu { display:block; }
  .ff-mobile-drawer .ff-nav-mainlink { width:100%; }
  .ff-mobile-drawer .ff-nav-mainlink > a { flex:1; height:auto; min-height:44px; padding:10px 0; font-size:16px !important; }
  .ff-mobile-drawer .ff-drop-toggle { width:44px; height:44px; }
  .ff-mobile-drawer .ff-dropdown { position:static; display:none; min-width:0; max-width:none; box-shadow:none; border:0; border-left:2px solid #dfe8dd; border-radius:0; padding:3px 0 5px 12px; margin:0 0 8px 10px; }
  .ff-mobile-drawer .ff-has-dropdown:hover > .ff-dropdown,
  .ff-mobile-drawer .ff-has-dropdown:focus-within > .ff-dropdown { display:none; }
  .ff-mobile-drawer .ff-has-dropdown[data-open="true"] > .ff-dropdown { display:block; }
  .ff-mobile-drawer .ff-dropdown a { min-height:42px; padding:9px 12px; font-size:14.5px !important; }
  .ff-mobile-drawer.is-open { max-height:calc(100vh - 76px); overflow-y:auto; }
  .ff-mobile-drawer .ff-mobile-cta { display:block; }
  .ff-subpage .ff-subpage-nav.ff-fixed-nav {
    display:none; position:absolute; z-index:200; top:100%; left:0; right:0;
    margin:0; padding:8px 24px 20px; background:#fff;
    border-top:1px solid #e4eae2; border-bottom:1px solid #e4eae2;
    box-shadow:0 15px 28px rgba(20,40,25,.13);
  }
  .ff-subpage.ff-nav-open .ff-subpage-nav.ff-fixed-nav { display:block; }
  .ff-subpage .ff-mobile-toggle { display:inline-flex; }
  .ff-subpage .ff-subpage-nav.ff-fixed-nav .ff-unified-menu { display:block; padding:8px 0; }
  .ff-subpage .ff-subpage-nav.ff-fixed-nav .ff-nav-mainlink { width:100%; }
  .ff-subpage .ff-subpage-nav.ff-fixed-nav .ff-nav-mainlink > a { flex:1; min-height:44px; padding:11px 0; font-size:16px !important; }
  .ff-subpage .ff-subpage-nav.ff-fixed-nav .ff-drop-toggle { width:44px; height:44px; }
  .ff-subpage .ff-subpage-nav.ff-fixed-nav .ff-dropdown { position:static; display:none; min-width:0; max-width:none; box-shadow:none; border:0; border-left:2px solid #dfe8dd; border-radius:0; padding:3px 0 5px 12px; margin:0 0 8px 10px; }
  .ff-subpage .ff-subpage-nav.ff-fixed-nav .ff-has-dropdown:hover > .ff-dropdown,
  .ff-subpage .ff-subpage-nav.ff-fixed-nav .ff-has-dropdown:focus-within > .ff-dropdown { display:none; }
  .ff-subpage .ff-subpage-nav.ff-fixed-nav .ff-has-dropdown[data-open="true"] > .ff-dropdown { display:block; }
  .ff-subpage .ff-subpage-nav.ff-fixed-nav .ff-dropdown a { min-height:42px; padding:9px 12px; font-size:14.5px !important; }
  .ff-subpage .ff-site-header { position:relative; z-index:100; }
  .ff-subpage .ff-subpage-nav.ff-fixed-nav { max-height:calc(100vh - 80px); overflow-y:auto; }
  .ff-subpage .ff-subpage-nav.ff-fixed-nav .ff-mobile-cta {
    display:block !important;
    margin:14px 0 6px;
    padding:13px 20px;
    background:#426b4b;
    color:#fff;
    font-size:14px;
    font-weight:600;
    text-align:center;
    text-decoration:none;
    border-radius:999px;
  }
  .ff-subpage .ff-subpage-nav.ff-fixed-nav .ff-mobile-cta:hover {
    background:#33563b;
  }
  .ff-subpage .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
    min-height:clamp(195px,40vw,240px) !important; padding:22px 0 !important;
  }
  .ff-subpage .ff-page-hero { height:clamp(195px,40vw,240px) !important; }
  .ff-subpage .ff-page-hero-inner { width:calc(100% - 36px) !important; padding:0 !important; align-items:center !important; }
  .ff-subpage .ff-page-hero-copy { width:min(480px,86%) !important; }
  .ff-subpage .ff-page-hero-copy h1 { font-size:clamp(28px,7vw,40px) !important; max-width:15ch !important; }
  .ff-subpage .ff-page-hero-description { font-size:clamp(13px,3vw,16px) !important; margin-top:8px !important; }
}
@media (max-width:767px) {
  .ff-subpage:is(.page-id-19,.page-id-35) .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
    background-size:cover !important;
    background-position:center 25% !important;
  }
  .ff-subpage:is(.page-id-19,.page-id-35) .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child .et_pb_text_inner h1 {
    font-size:clamp(26px,7vw,34px) !important;
    max-width:58% !important;
    padding-left:10px !important;
  }
  .ff-subpage .ff-page-hero-copy {
    width:min(92%, 460px) !important;
    background:rgba(22, 38, 28, 0.52);
    padding:12px 18px !important;
    border-radius:12px;
    backdrop-filter:blur(5px);
    -webkit-backdrop-filter:blur(5px);
  }
  .ff-subpage .ff-page-hero-copy h1 {
    font-size:clamp(22px, 5.8vw, 28px) !important;
    line-height:1.15 !important;
    margin-bottom:4px !important;
    text-shadow:0 2px 10px rgba(0,0,0,.8) !important;
  }
  .ff-subpage .ff-page-hero-description {
    font-size:13px !important;
    line-height:1.35 !important;
    margin-top:4px !important;
    text-shadow:0 1px 6px rgba(0,0,0,.8) !important;
  }
}
@media (max-width:600px) {
  .ff-subpage .ff-page-hero { height:clamp(205px,52vw,235px) !important; min-height:0 !important; }
  .ff-subpage .ff-page-hero-inner { width:calc(100% - 34px) !important; padding:0 !important; align-items:center !important; }
  .ff-subpage .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
    min-height:215px !important; padding:18px 0 !important;
  }
}
@media (prefers-reduced-motion:reduce) {
  .ff-fixed-nav *, .ff-fixed-nav *::before, .ff-fixed-nav *::after { transition:none !important; }
}
