/*
 Theme Name: Makai Twenty Twenty-Five Child
 Theme URI: https://example.com/
 Description: Child theme of Twenty Twenty-Five customized for Makai brand.
 Author: Your Name
 Template: twentytwentyfive
 Version: 1.0.0
 Text Domain: makai-twentyfive-child
*/

/* Import fonts via CSS variables and fallback. Fonts are enqueued via functions.php */

:root {
  --makai-dark: #0b2141;
  --makai-blue: #445e83;
  --makai-cream: #f5e8dc;
  --makai-offwhite: #faf7f1;
  --makai-deep: #071c31;
  --font-heading: 'Ribery', serif;
  --font-body: 'Poppins', sans-serif;
}

/* Base styling */
body {
  background-color: var(--makai-offwhite);
  color: var(--makai-dark);
  font-family: var(--font-body);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--makai-dark);
  letter-spacing: 0.5px;
}

/* Header styling: blanco al inicio, blur/transparente al hacer scroll */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 1); /* Blanco s車lido */
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
header.scrolled {
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  background: rgba(255, 255, 255, 0.2); /* Transparente */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
header .wp-block-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}
header .wp-block-site-title a {
  font-family: var(--font-heading);
  color: var(--makai-dark);
  text-decoration: none;
  font-size: 2rem;
}
header .wp-block-navigation a {
  color: var(--makai-dark);
  font-family: var(--font-heading);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  position: relative;
  transition: color 0.3s ease;
}
header .wp-block-navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
header .wp-block-navigation a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
  color: var(--makai-blue);
}

.group-overlay-base {
  position: relative;
}

.overlay-container {
  position: absolute;
  inset: 0; /* cubre todo el grupo */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4); /* Fondo oscuro semitransparente */
  z-index: 10;
  transition: opacity 0.3s ease;
}

/* Mobile overlay menu con animaci車n */
.wp-block-navigation__responsive-container {
  backdrop-filter: blur(12px);
  background: rgba(0,0,0,0.6);
  transition: transform 0.4s ease;
}
.wp-block-navigation__responsive-container.is-menu-open {
  transform: translateX(0%);
}
.wp-block-navigation__responsive-container:not(.is-menu-open) {
  transform: translateX(100%);
}

/* Button styling */
.wp-block-button .wp-block-button__link {
  background-image: linear-gradient(90deg, var(--makai-blue), var(--makai-dark));
  color: var(--makai-cream);
  border-radius: 8px;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  transition: filter 0.3s ease;
}
.wp-block-button .wp-block-button__link:hover {
  filter: brightness(1.1);
}

/* Hide the page title on the home page to avoid duplicate headings when using Cover blocks */
.home .wp-block-post-title {
  display: none;
}

/* Hero fade effect (image brightness controlled via JS) */
.hero-fade img {
  transition: filter 0.6s ease;
}
