/*
Theme Name: Sonrisa Group Theme
Theme URI: https://sonrisa.group
Author: Siria Dev
Author URI: https://sonrisa.group
Description: Custom landing page theme for Sonrisa Group - SaaS Technology Consulting
Version: 1.1.3
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Template: hello-elementor
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sonrisa-group
*/

/* ─── View Transition ─── */
@view-transition {
  navigation: auto;
}

/* ─── CSS Custom Properties ─── */
:root {
  --brand-navy: #010028;
  --brand-blue-primary: #4A90D9;
  --brand-blue-deep: #2563EB;
  --brand-blue-light: #6BB5F0;
  --brand-accent-blue: #29ABE2;
  --brand-cream: #fffbf7;
  --brand-muted: #6b7280;
}

/* ─── Base ─── */
html {
  scroll-behavior: smooth;
  background-color: var(--brand-navy);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--brand-cream);
  overflow-x: hidden;
}

.font-serif {
  font-family: 'Lora', serif;
}

/* ─── Warm Card ─── */
.warm-card {
  background: white;
  border: 1px solid rgba(74, 144, 217, 0.05);
  box-shadow: 0 10px 25px -5px rgba(74, 144, 217, 0.04), 0 8px 10px -6px rgba(74, 144, 217, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.warm-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(74, 144, 217, 0.12);
  border-color: rgba(74, 144, 217, 0.2);
}

/* ─── Hero Background ─── */
.hero-bg {
  background: var(--brand-navy);
  overflow: hidden;
  position: relative;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ─── Glow Blobs ─── */
.glow-blob {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(74, 144, 217, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  animation: pulse 14s infinite alternate;
  pointer-events: none;
}

@keyframes pulse {
  0% { transform: translate(-5%, -5%) scale(1); opacity: 0.7; }
  100% { transform: translate(5%, 5%) scale(1.08); opacity: 1; }
}

/* ─── Buttons ─── */
.btn-blue {
  background: linear-gradient(135deg, #4A90D9 0%, #2563EB 100%);
  transition: all 0.3s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-blue:hover {
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
}

.btn-blue:active {
  transform: translateY(0);
}

.btn-outline {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ─── Wave Container ─── */
.wave-container {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 5;
}

.wave-container svg {
  position: relative;
  display: block;
  width: 100%;
  height: 80px;
}

@media (min-width: 768px) {
  .wave-container svg {
    height: 120px;
  }
}

/* ─── Reveal Animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Mobile Menu ─── */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 0, 40, 0.6);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(4px);
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--brand-navy);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  min-height: 48px;
  display: flex;
  align-items: center;
}

/* ─── WordPress Overrides ─── */
/* Remove any default Hello Elementor spacing/styles that conflict */
.sonrisa-landing .elementor-page,
.sonrisa-landing .site-main,
.sonrisa-landing .page-content {
  padding: 0;
  margin: 0;
}

/* Hello Elementor parent overrides logo/image dimensions — force ours */
#main-header #logo-img,
#main-header .h-8,
#main-header .h-10,
#main-header .sm\:h-10,
#mobile-menu img,
footer img {
  max-width: none !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

#main-header #logo-img {
  height: 32px !important;
}
@media (min-width: 640px) {
  #main-header #logo-img { height: 40px !important; }
}

#mobile-menu img {
  height: 32px !important;
}

footer img[alt] {
  height: 28px !important;
}
@media (min-width: 640px) {
  footer img[alt] { height: 32px !important; }
}

/* About bridge image — don't let parent theme stretch/clip it */
#about img {
  max-width: 100% !important;
  width: 100% !important;
  height: 300px !important;
  object-fit: cover !important;
  display: block !important;
}
@media (min-width: 640px) {
  #about img { height: 400px !important; }
}
@media (min-width: 1024px) {
  #about img { height: 500px !important; }
}
