/*
Theme Name: Ola and Oak
Theme URI: https://olaandoak.com/
Author: Digisap
Description: Tema propio para olaandoak.com. Reemplaza Hello Elementor + Elementor Pro + ElementsKit. Sin CMS: las páginas se sirven desde /content mediante rutas propias (ver functions.php).
Version: 2.2.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: olaandoak
*/

/* Base mínima. Los estilos de cada sección viven en el propio fragmento de /content
   y los globales del sitio en assets/css/global.css. */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #171717;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link.screen-reader-text:focus {
  position: fixed !important; top: 8px; left: 8px; z-index: 100000;
  width: auto; height: auto; margin: 0; padding: 12px 18px; clip: auto;
  background: #000; color: #fff; font-size: 14px; text-decoration: none;
}
body { overflow-x: clip; }
body.oa-lock { overflow: hidden; }

/* 1. Prevent blank page load: ensure reveal sections are visible immediately */
.reveal {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* 2. Photo & Image Frame Cover Fix (without breaking collage grid heights) */
.image-frame img,
.region-visual img,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 3. Cinematic Hero Pages (Full Cover Background Image with .hero-inner) */
.hero.cinematic,
.hero:has(.hero-inner) {
  position: relative;
  min-height: 75vh;
  width: 100%;
  overflow: hidden;
  background: #171614;
  color: #ffffff;
  display: flex;
  align-items: flex-end;
}
.hero.cinematic .hero-media,
.hero:has(.hero-inner) .hero-media {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero.cinematic .hero-media img,
.hero:has(.hero-inner) .hero-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero.cinematic .hero-inner,
.hero:has(.hero-inner) .hero-inner {
  position: relative;
  z-index: 2;
  width: min(1510px, 92vw);
  margin: 0 auto;
}
