/*
Theme Name: alph_01-Block
Author: odium
Author URI:
Theme URI:
Tags: full-site-editing, block-patterns
Text Domain: alph_01-block
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 6.4
Version: 104.0

License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ============================================================
   GLOBALS
   NOTE: Keep global rules minimal - broad selectors targeting
   generic HTML elements can interfere with the block editor.
   Only target what is strictly necessary here.
   ============================================================ */

html {
  scroll-behavior: smooth;
}

@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

/* Prevent media from ever overflowing their containers */
img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* ============================================================
   PRIMARY SECTIONS
   ============================================================ */

.section-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
  text-align: center;
}

/* CoverHeader hero-text */
  .CoverHeader .hero-text h2 {
    line-height: 1.14;
  }

  .CoverHeader .hero-text p {
    font-size: 1.5rem !important;
    line-height: 1.5 !important;
    margin: 40px 0 20px !important;
    max-width: 32rem;
  }

/* ============================================================
   NAVIGATION
   ============================================================ */

nav a {
  text-decoration: none !important;
}

nav a:hover {
  color: #fcb900 !important;
}

/* ============================================================
   BUTTONS
   ============================================================ */

/* Standard buttons */
.wp-block-buttons .wp-block-button:not(.contact-button) .wp-block-button__link {
  transition:
    background-color  0.25s ease-in-out,
    border-color      0.25s ease-in-out,
    box-shadow        0.25s ease-in-out,
    transform         0.25s ease-in-out;
}

.wp-block-buttons .wp-block-button:not(.contact-button) .wp-block-button__link:hover {
  border-color:     #ffce47 !important;
  background-color: #ffce47 !important;
  box-shadow: none;
}

/* CTA / contact button */
.contact-button .wp-block-button__link {
  transition:
    background-color  0.25s ease-in-out,
    border-color      0.25s ease-in-out,
    box-shadow        0.25s ease-in-out,
    transform         0.25s ease-in-out;
}

.contact-button .wp-block-button__link:hover {
  border-color:     #26262e !important;
  background-color: #26262e !important;
  box-shadow: none !important;
}

/* ============================================================
   INTERACTIVITY - grow / scale effects
   ============================================================ */

.grow {
  transition: transform 0.3s ease-in-out;
}

.growMenu {
  transition: transform 0.2s ease-in-out;
}

.grow:hover {
  transform: scale(1.1);
}

.growMenu:hover {
  transform: scale(1.2);
}

.panel {
  will-change: transform;
}

/* ============================================================
   OUR FOCUS ICONS GRID - flex grid replacing wp-block-columns
   ============================================================ */

.our-focus-icons-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0 !important;
}

.our-focus-icons-grid .wp-block-image {
  flex: 0 0 calc(33.33% - 1rem);
  display: flex;
  justify-content: center;
  margin: 0 !important;
}

.our-focus-icons-grid .wp-block-image img {
  width: min(200px, 100%);
  height: auto;
}

/* 2-per-row at mid widths where the column starts compressing */
@media (min-width: 782px) and (max-width: 1200px) {
  .our-focus-icons-grid .wp-block-image {
    flex: 0 0 calc(50% - 1rem);
  }
}

/* ============================================================
   SLOT-3 - base layout (all screen sizes)

   These are essential structural rules scoped to custom
   classes. Without them, the panel columns collapse.
   ============================================================ */


/* Headings at start and end of slot-3 */

.slot-3-h2-first {
  font-size: clamp(1.3rem, 4vw, 2rem) !important;
}

.slot-3-h2-last {
  font-size: clamp(1.3rem, 4vw, 2rem) !important;
}

/* Icon rows inside slot-3 */
.slot-3-toprow-3icons,
.slot-3-final-icon {
  gap: clamp(1.5rem, 12vw, 12rem);
}

.slot-3-toprow-3icons .wp-block-image,
.slot-3-final-icon .wp-block-image {
  margin: 0;
}

.slot-3-toprow-3icons img,
.slot-3-final-icon img {
  display: block;
  height: auto;
}

.Slot-3-Dollar-IMG {
  flex-basis: clamp(200px, 35vw, 550px) !important;
}

.Slot-3-Dollar-IMG img {
  width: 100%;
  height: auto;
}
/* ============================================================
   SLOT-4 / OTHER SECTIONS - base layout (all screen sizes)
   ============================================================ */

.slot-4 {
  padding: 1.5rem clamp(1rem, 3vw, 2rem) !important;
}

.slot-4 .wp-block-cover__inner-container > p {
  max-width: 52rem;
  margin: 0 auto 2rem;
}

.slot-4 .panel {
  display: flex;
}

.slot-4 .panel > .wp-block-group {
  width: 100%;
  margin: 0;
  padding: 30px !important;
}

.panel h2,
.panel h3 {
  word-break: normal;
}

.slot-4-orange-card {
  margin-top: 100px;
}

/* Contact Pattern */

.contact-pattern {
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

.contact-pattern .wp-block-buttons {
  justify-content: center;
}

.contact-pattern .wp-block-button {
  width: 100%;
  max-width: 320px;
}

.contact-pattern .wp-block-button__link {
  width: 100%;
  text-align: center;
}

.footer-copyright {
  text-align: center;
}

/* ==================== BEGIN BREAKPOINT WORK  ==================== */


/* ============================================================
   HERO-TEXT SEMI-TRANSPARENT FROSTED TEXT-BOX
   ============================================================ */

/* INSERT HERO-TEXT WRAPPER BOX AT 1200 AND BELOW */
@media (max-width: 1200px) {

  .CoverHeader .hero-text {
    width: 100%;
    max-width: 43rem;
    margin: auto !important;
    padding: 22px 18px !important;
    background: linear-gradient(
      180deg,
      rgba(10, 31, 56, 0.88),
      rgba(10, 31, 56, 0.76)
    ) !important;
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
  }

  .CoverHeader .hero-text h2 {
    font-size: clamp(1.25rem, 6.3vw, 2.15rem) !important;
    margin: 0 0 18px !important;
  }

  .CoverHeader .hero-text p {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    margin: 0 0 20px !important;
    max-width: 42rem;
  }

}

/* 1200-1500 - REDUCE PADDING-LEFT:; OF HERO-TEXT */
@media (min-width: 1201px) and (max-width: 1500px) {

  .CoverHeader .hero-text {
    padding-left:0px !important;
  }

}

/* ============================================================
   OUR FOCUS ICONS - tablet vertical centering  (782 px – 1200 px)

   .our-focus-icons IS the wp-block-column (same element), so
   align-self centres it within the parent flex row directly.
   ============================================================ */

@media (min-width: 782px) and (max-width: 1200px) {
  .our-focus-icons {
    align-self: center !important;
    padding-top: 0 !important;
  }
}


/* ============================================================
   SLOT-2 - increase awkward padding between: (782 px – 1024 px)
   ============================================================ */
@media (min-width: 782px) and (max-width: 1024px) {
  /*SLOT-2 - DUAL IMAGE & TEXT */
  .slot-2-block-1 {
    padding-left:50px !important;
    padding-right:50px !important;
    gap:30px !important;
  }

  .slot-2-block-2 {
    padding-left:50px !important;
    padding-right:50px !important;
    gap:70px !important;
  }
}

/* ============================================================
   STICKY HEADER - DESKTOP  (> 900 px)

   Layout: the header is a flex row, logo on the left, nav on
   the right. The logo hangs *below* the bar using
   position: relative + top - more reliable than margin-bottom
   across different WordPress block wrappers.
   ============================================================ */

.CoverHeader {
  margin-top: 0;
}

/* Escape any alignwide / alignfull max-width constraint */
.wp-site-blocks > .stickyHeader.alignwide,
.wp-site-blocks > .stickyHeader.alignfull {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Base state */
.stickyHeader {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 140px;
  padding: 0 clamp(24px, 3vw, 40px);
  overflow: visible;
  box-sizing: border-box;

  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(18px, 2.4vw, 36px);

  transition: height 0.3s ease, padding 0.3s ease;
}

/* Admin bar compensation */
body.admin-bar .stickyHeader { top: 32px; }
@media (max-width: 781px) {
  body.admin-bar .stickyHeader { top: 46px; }
}

/*  ===== Stickyheader vs Wordpress defaults compensation =======
 At ≤ 600 px Wordpress defaults to switching the admin bar from
 position: fixed to position: absolute - so it scrolls away with the page.
 the below 3 lines sticks the stickyheader to the top of the page, to compensate for this behaviour
  */
@media (max-width: 600px) {
  body.admin-bar .stickyHeader { top: 0; }
}
/* END Compensation */

/* Shrunk state - JS adds .is-shrunk on scroll */
.stickyHeader.is-shrunk {
  height: 90px;
}

/* --- Logo --- */

.stickyHeader .wp-block-site-logo {
  display: block;
  line-height: 0;
  overflow: visible;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.stickyHeader .custom-logo-link {
  display: block;
  line-height: 0;
  overflow: visible;
}

/* Logo hangs below the bar via position: relative + top */
.stickyHeader .custom-logo {
  display: block;
  width: 300px;
  max-width: none;
  height: auto;
  padding-top: 0;
  margin: 0;
  position: relative;
  top: 68px;                     /* how far the logo hangs below the bar */
  transform-origin: left top;
  transition: transform 0.3s ease, top 0.3s ease;
}

.stickyHeader.is-shrunk .custom-logo {
  transform: scale(0.40);
  top: 105px;
}

/* --- Navigation (desktop - always visible, no hamburger) --- */

.custom-nav {
  width: auto;
  min-width: 0;
}

/* Hide the hamburger open button on desktop */
.custom-nav .wp-block-navigation__responsive-container-open {
  display: none !important;
}

/* Force the nav container to be permanently visible on desktop */
.custom-nav .wp-block-navigation__responsive-container {
  position: static !important;
  display: block !important;
  width: auto !important;
  background: transparent !important;
  color: inherit !important;
}

.custom-nav .wp-block-navigation__responsive-container-close {
  display: none !important;
}

.custom-nav .wp-block-navigation__responsive-dialog,
.custom-nav .wp-block-navigation__responsive-container-content {
  display: block !important;
  min-height: auto !important;
  padding: 0 !important;
  background: transparent !important;
}

/* Nav item row */
.custom-nav .wp-block-navigation__container {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-end;
  justify-content: flex-end;
  gap: clamp(2rem, 2.25vw, 2.5rem);
  margin: 0;
  padding: 0;
}

.custom-nav .wp-block-navigation-item {
  margin: 0;
  min-width: 0;
}

.custom-nav .wp-block-navigation-item__content {
  display: block;
  padding: 0.2rem 0;
}

/* Prevent labels from wrapping */
.custom-nav .wp-block-navigation-item__label,
.custom-nav .wp-block-navigation-item,
.custom-nav .wp-block-navigation-item__content {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

/* Fluid font size - capped at 1.2 rem */
.stickyHeader .custom-nav,
.stickyHeader .custom-nav .wp-block-navigation__container,
.stickyHeader .custom-nav .wp-block-navigation-item__content {
  font-size: clamp(1rem, 1.25vw, 1.50rem) !important;
  line-height: 1.15;
}

/* ============================================================
   STICKY HEADER & SLOT-2 - MEDIUM DESKTOP  (901 px – 1200 px)
   ============================================================ */

@media (min-width: 901px) and (max-width: 1200px) {

  .stickyHeader {
    height: 116px;
    gap: 18px;
    padding: 0 22px;
  }

  .stickyHeader .custom-logo {
    width: 228px;
    top: 50px;
  }

  .stickyHeader.is-shrunk {
    height: 82px;
  }

  .stickyHeader.is-shrunk .custom-logo {
    transform: scale(0.48);
    top: 68px;
  }

  .stickyHeader .custom-nav,
  .stickyHeader .custom-nav .wp-block-navigation__container,
  .stickyHeader .custom-nav .wp-block-navigation-item__content {
    font-size: 1rem !important;
  }

  .custom-nav .wp-block-navigation__container {
    gap: clamp(0.85rem, 1vw, 1.2rem);
  }

}

/* ============================================================
   STICKY HEADER - TABLET / HAMBURGER MENU  (≤ 900 px)

   On tablet and mobile the logo no longer hangs below the bar -
   it sits inline inside it. The nav collapses to a hamburger
   that opens a compact dropdown anchored to the right of the header.
   ============================================================ */

@media (max-width: 900px) {

  body {
    --wp--style--root--padding-right: 24px;
    --wp--style--root--padding-left: 24px;
  }

  .our-focus-text {
   padding-left:0px !important;
  }

  /* Header bar - flex row, all items vertically centred */
  .stickyHeader {
    height: 90px;
    padding: 0 16px;
    align-items: center;
    gap: 12px;
    overflow: visible;
    transition: height 0.28s ease, padding 0.28s ease;
  }

  .stickyHeader.is-shrunk {
    height: 70px;
  }

  /* Logo - cancel the desktop hang, sit inline */
  .stickyHeader .wp-block-site-logo,
  .stickyHeader .custom-logo-link {
    margin: 0 !important;
    padding-left: 0 !important;
  }

  .stickyHeader .custom-logo {
    width: 140px;
    max-width: none;
    position: static;             /* cancel position: relative from desktop */
    top: auto;
    transform: scale(1);
    transform-origin: left center;
    transition: transform 0.28s ease;
  }

  .stickyHeader.is-shrunk .custom-logo {
    transform: scale(0.74);
    top: auto;
  }

  /* ---- Hamburger open button ---- */
  .custom-nav .wp-block-navigation__responsive-container-open {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 10px !important;
    color: #ffffff !important;
    background: transparent !important;
    border: 0 !important;
    line-height: 1;
  }

  /* "MENU" label beneath the icon */
  .custom-nav .wp-block-navigation__responsive-container-open::after {
    content: "MENU";
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
  }

  .custom-nav .wp-block-navigation__responsive-container-open svg,
  .custom-nav .wp-block-navigation__responsive-container-close svg {
    fill: currentColor;
  }

  /* ---- Compact dropdown menu (hidden by default) ---- */
  .custom-nav .wp-block-navigation__responsive-container {
    position: absolute !important;
    inset: auto 0 auto auto;
    top: 100%;
    width: auto !important;
    background: linear-gradient(45deg, rgb(55, 75, 95) 0%, rgb(50, 52, 65) 100%) !important;
    color: #ffffff !important;
    border-radius: 8px;
    box-shadow: -4px 4px 12px rgba(0,0,0,0.3);
    /* Animation: start invisible and shifted up */
    display: block !important;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
  }

  /* WordPress adds is-menu-open — make it visible but not yet animated */
  .custom-nav .wp-block-navigation__responsive-container.is-menu-open {
    pointer-events: all;
  }

  /* JS adds is-animating-in one frame after is-menu-open — this triggers the animation */
  .custom-nav .wp-block-navigation__responsive-container.is-animating-in {
    opacity: 1;
    transform: translateY(0);
  }

  /* Close (X) button - hidden visually but still clickable by JS */
  .custom-nav .wp-block-navigation__responsive-container-close {
    display: none !important;
    color: #ffffff !important;
    background: transparent !important;
    border: 0 !important;
  }

  /* Overlay dialog */
  .custom-nav .wp-block-navigation__responsive-dialog {
    min-height: auto;
    margin-top: 0 !important;
    padding: 12px;
    background: transparent !important;
    color: #ffffff !important;
  }

  /* Nav list inside dropdown */
  .custom-nav .wp-block-navigation__responsive-container-content {
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
    padding-bottom: 8px;
    background: transparent !important;
  }

  .custom-nav .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    width: 100%;
    font-size: 1rem !important;
  }

  .custom-nav .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
    width: 100%;
  }

  .custom-nav .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
    display: block;
    width: 100%;
    padding: 10px 0;
    font-size: 1.2rem !important;
    line-height: 1.3;
  }

  /* All text in the dropdown is white */
  .custom-nav .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content,
  .custom-nav .wp-block-navigation__responsive-container-content .wp-block-navigation-item__label,
  .custom-nav .wp-block-navigation__responsive-container a {
    color: #ffffff !important;
  }

  /* Section spacing */
  .section-wide {
    padding: 4rem 1.5rem;
  }

  /* Slot-4 adjustments */
  .slot-4 {
    padding: 24px clamp(12px, 4vw, 16px) !important;
  }

  .slot-4 .panel > .wp-block-group {
    padding: 24px !important;
  }
}

/* ============================================================
   MOBILE  (≤ 781 px)
   ============================================================ */

@media (max-width: 781px) {

  body {
    font-size: 1.125rem;
    line-height: 1.55;
    --wp--style--root--padding-right: 16px;
    --wp--style--root--padding-left: 16px;
  }

  /* Header */
  .stickyHeader {
    height: 84px;
    padding: 0 14px;
    gap: 10px;
  }

  .stickyHeader .custom-logo {
    width: 128px;
  }

  .stickyHeader.is-shrunk {
    height: 68px;
  }

  .stickyHeader.is-shrunk .custom-logo {
    transform: scale(0.72);
  }


  .our-focus-text {
    padding-left: 10px !important;
  }

  /* Our focus icons - reflow into 2 columns on mobile.
     display:contents on the inner wp-block-columns lets the
     outer flex container treat each image cell directly. */
  .our-focus-icons {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 420px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
  }

  .our-focus-icons > .wp-block-columns {
    display: contents !important;
  }

  .our-focus-icons > .wp-block-columns > .wp-block-column {
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    margin: 0 !important;
    padding: 8px !important;
    box-sizing: border-box !important;
  }

.our-focus-icons .wp-block-image {
  width: min(160px, 40vw) !important;
  height: min(160px, 40vw) !important;
  min-height: unset !important;
}

.our-focus-icons .wp-block-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

  /* SLOT-2 - DUAL IMAGE & TEXT */

  .slot-2-spacer-above {
    display:none;
  }

  .slot-2 {
    padding:50px 20px !important;
  }

  /* SLOT-3 - 2 ROWS - 4 ICONS */
  .slot-3-spacer-above {
    height:5px !important;
  }

   /* Stack the icon rows into a single column */
  .slot-3-toprow-3icons,
  .slot-3-final-icon {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 100px !important;
    max-width:75% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .slot-3-final-icon {
     max-width:80% !important;
  }

  .slot-3-toprow-3icons > *,
  .slot-3-final-icon > * {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .slot-3-final-icon {
    margin-top:64px;
  }

  /* SLOT-4 - stack panels and icon rows vertically on mobile */
  .slot-4 {
    min-height: auto !important;
    padding: 24px clamp(12px, 4vw, 16px) !important;
  }

  .slot-4 .wp-block-cover__inner-container > p {
    margin-bottom: 24px !important;
    font-size: 1.05rem !important;
    line-height: 1.5 !important;
  }

  .slot-4 .wp-block-columns:has(.panel) {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    gap: 20px !important;
  }

  .slot-4 .panel {
    flex-basis: 100% !important;
  }

  .slot-4 .panel > .wp-block-group {
    padding: clamp(16px, 4vw, 20px) !important;
  }

  /* Slot 4 - 3 cards on black cover */
  .slot-4-orange-card {
    margin-top:0px !important;
  }

  /* Buttons - full width on small screens */
  .wp-block-buttons.is-layout-flex {
    width: 100%;
    justify-content: center;
  }

  .wp-block-buttons .wp-block-button {
    width: 100%;
    max-width: 320px;
  }

  .wp-block-buttons .wp-block-button__link {
    width: 100%;
    text-align: center;
  }

  /* Grow/scale - disable on touch devices (no real hover state) */
  .grow:hover,
  .growMenu:hover {
    transform: none;
  }

  /* Section spacing */
  .section-wide {
    padding: 3rem 1rem;
  }

  /* Footer */
  .footer-nav-group {
    align-items: center !important;
    padding-left: 0 !important;
  }

  .footer-nav-group .wp-block-navigation__container {
    align-items: center !important;
    width: 100%;
  }

  .footer-copyright {
    text-align: center;
  }
}

/* ============================================================
   OUR-FOCUS-ICONS (600px - 781px) - Increase icon gap & size
   ============================================================ */

@media (min-width: 600px) and (max-width: 781px) {
  .our-focus-icons-grid .wp-block-image img {
    width: min(240px, 28vw);
  }
}

/* ============================================================
   SMALL MOBILE  (≤ 480 px)
   ============================================================ */

@media (max-width: 480px) {
  .section-wide {
    padding: 2rem 0.75rem;
  }

  .header-logo-wrapper {
    padding-left:0px !important;
  }

  .nav-menu-wrapper {
    padding-right:0px !important;
  }

  .slot-2-spacer {
    height:50px !important;
  }

  .footer-copyright-wrapper p {
    font-size: clamp(0.5rem, 2vw, 0.8rem) !important;
  }

}
