/*
Theme Name: FILARMED Theme
Description: Custom child theme for FILARMED WEB project
Template: flatsome
Version: 1.0.0
Author: Ziggurat Consulting
Text Domain: filarmed-theme
*/

/* Import parent theme styles */
@import url("../flatsome/style.css");

/* Custom styles for FILARMED WEB */
:root {
  --filarmed-primary: #016075;
  --filarmed-secondary: #f7d275;
  --filarmed-accent: #fb6c00;
  --filarmed-text: #333333;
  --filarmed-light: #f8f9fa;
}

/* Global typography using Inter font */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0%;
  color: var(--filarmed-text);
  position: relative;
  margin: 0;
  padding: 0;
}

/* H1 styling */
h1 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 50px;
  line-height: 1.25;
  letter-spacing: -2.06px;
  vertical-align: middle;
  text-transform: uppercase;
  font-variant: small-caps;
}

/* Amarillo blob background */
.amarillo-blob {
  position: absolute;
  top: -2%;
  right: -5%;
  width: 700px;
  height: auto;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transform: translateX(20%);
  /* Temporary debug - remove once working */
}

/* Ensure image support */
.amarillo-blob img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* SVG fallback styles */
.amarillo-blob svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* H2 styling */
h2 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.25;
  letter-spacing: -1px;
  text-align: center;
  vertical-align: middle;
  text-transform: uppercase;
  font-variant: small-caps;
}

/* Custom button styles */
.btn-filarmed {
  background: linear-gradient(
    135deg,
    var(--filarmed-primary),
    var(--filarmed-secondary)
  );
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-filarmed:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(96, 188, 99, 0.3);
}
.button.secondary.expand span {
  color: var(--filarmed-text) !important;
}
.button.secondary {
  color: var(--filarmed-text) !important;
}
/* Header customization */
.site-header {
  background: var(--filarmed-light);
  border-bottom: 2px solid var(--filarmed-primary);
}

/* Footer customization */
.site-footer {
  background: var(--filarmed-secondary);
  color: white;
  padding: 40px 0;
}

.filarmed-hero-section {
  min-height: 100vh;
  width: 100%;
  position: relative;
}

.hero-heading-container {
  text-align: center;
  margin-bottom: 4rem;
  padding-top: 5rem;
}

.hero-title {
  font-size: 3.125rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -2.06px;
  text-align: center;
  max-width: 64rem;
  margin: 0 auto;
}

.hero-content {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-grid-container {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-center-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.hero-main-wrapper {
  position: relative;
  width: 90vw;
  height: 100%;
}

.hero-main-figure {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-video-container {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-main-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 1 !important;
  background: transparent !important;
  /* Prioritize height - video will always fill container height */
  z-index: 1;
}

.hero-fallback-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 1;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
  z-index: 10;
}

.hero-center-video:hover .hero-video-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.3);
}

.hero-video-label {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
}

.hero-institutional-video-btn {
  background: rgba(255, 255, 255, 0.95);
  color: #1f2937;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  display: inline-block;
  pointer-events: auto;
}

.hero-institutional-video-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.hero-institutional-video-btn span {
  color: #1f2937;
  font-weight: 600;
}

.hero-side-columns {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 1rem;
  padding: 0 1rem;
  margin: 0 auto;
  height: 100vh;
  background: transparent;
  pointer-events: none;
}

.hero-left-column,
.hero-right-column {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: white;
  padding: 2rem;
  pointer-events: auto;
  opacity: 1 !important;
}

.hero-center-column {
  height: 100%;
  background: transparent;
  pointer-events: none;
}

.hero-column-inner {
  display: flex;
  flex-direction: column;
  height: fit-content;
}

.hero-side-image {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.5rem;
  max-height: 40vh;
}

.hero-side-image:last-child {
  margin-bottom: 0;
  margin-top: 0.5rem;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-image:hover {
  transform: scale(1.05);
}

/* Responsive design */
@media (max-width: 768px) {
  h1 {
    font-size: 36px;
    letter-spacing: -1.5px;
  }

  h2 {
    font-size: 28px;
    letter-spacing: -0.8px;
  }

  .hero-title {
    font-size: 2.25rem;
    letter-spacing: -1.5px;
    margin-bottom: 2rem;
  }

  .hero-heading-container {
    padding-top: 2rem;
    margin-bottom: 2rem;
  }

  .hero-side-columns {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .hero-left-column,
  .hero-right-column {
    padding: 1rem;
    height: auto;
  }

  .hero-center-column {
    order: -1;
  }

  .hero-main-wrapper {
    width: 100%;
  }

  .hero-side-image {
    max-height: 30vh;
  }

  .hero-video-overlay {
    opacity: 1 !important;
  }

  .hero-video-label {
    bottom: 4rem;
  }
}

/* Hero subtitle styling */
.hero-subtitle {
  font-family: "Inter", sans-serif !important;
  color: var(--filarmed-text) !important;
  font-size: 1.6em !important;
  font-weight: 400 !important;
}

/* Azul blob 2 - DEBUG MODE */
.azul-blob-2 {
  position: absolute;
  right: -50%;

  z-index: 0;
  pointer-events: none;
  overflow: visible;

  transform: translateY(-50%);
}

.azul-blob-2 img {
  width: 100%;
  height: 100%;
  max-width: none;
  opacity: 1;
  object-fit: cover;
  transform: none;
}
/* Azul blob 3 - DEBUG MODE */
.azul-blob-3 {
  position: absolute;
  top: 2em;
  left: -50%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.azul-blob-3 img {
  width: 100%;
  height: 100%;
  max-width: none;
  opacity: 1;
  object-fit: cover;
  transform: none;
}
/* Ensure the page container allows absolute positioning */
.page-homepage {
  position: relative;
  overflow: visible;
}

/* ========================================
   REUSABLE BLOB TEMPLATE STYLES
   ======================================== */

/* Base blob container styles */
.filarmed-blob-container {
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

/* Base blob image styles */
.filarmed-blob-image {
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
}

/* Blue blob specific styles */
.filarmed-blob-blue .filarmed-blob-image {
  opacity: 0.8;
}

/* Yellow blob specific styles */
.filarmed-blob-yellow .filarmed-blob-image {
  opacity: 1;
}

/* Responsive adjustments for blobs */
@media (max-width: 768px) {
  .filarmed-blob-container[style*="width: 700px"] {
    width: 400px !important;
  }

  /* Adjust positioning for mobile */
  .filarmed-blob-container[style*="right: -50%"] {
    right: -30% !important;
  }

  .filarmed-blob-container[style*="left: -50%"] {
    left: -30% !important;
  }

  .filarmed-blob-container[style*="translateX(20%)"] {
    transform: translateX(10%) !important;
  }
}

/* ========================================
   LOGOS SECTION INTEGRATION
   ======================================== */

/* Ensure logos section integrates well with theme */
.filarmed-logos-section {
  position: relative;
  z-index: 1;
}

/* Override any conflicting styles from parent theme */
.filarmed-logos-section * {
  box-sizing: border-box;
}

/* Ensure proper spacing with adjacent sections */
.filarmed-logos-section + * {
  margin-top: 0;
}

* + .filarmed-logos-section {
  margin-top: 0;
}
.logos-container h3 {
  font-family: "Playfair Display SC", sans-serif;
  text-transform: uppercase;
  font-variant: small-caps;
}
