/*
Theme Name: Lymad Density Child
Template: twentytwentyfour
Version: 1776279329
*/

/* --- LYMAD SAAS DENSITY v18.2 --- */
:root {
  --wp--preset--color--primary: #7c3aed !important;
  --wp--preset--color--secondary: #a78bfa !important;
  --lymad-bg: #0a0b0f;
  --lymad-text: #f8f8f8;
  --lymad-radius: 24px;
}

html, body { min-height: 100vh !important; display: flex !important; flex-direction: column !important; margin: 0 !important; padding: 0 !important; background: #0a0b0f !important; color: #f8f8f8 !important; font-family: 'DM Sans', sans-serif !important; overflow-x: hidden; }
.wp-site-blocks, .entry-content, main { flex: 1 0 auto !important; display: flex !important; flex-direction: column !important; }
h1, h2, h3, h4 { font-family: 'Outfit', sans-serif !important; color: #f8f8f8 !important; font-weight: 800 !important; tracking: -0.02em; }
.wp-block-post-title, h1.entry-title, h1.page-title { display: none !important; }

/* HEADER & FOOTER */
header, .wp-block-template-part-header { padding: 0 !important; margin: 0 !important; width: 100%; min-height: 0 !important; }
header > *, .wp-block-template-part-header > * { padding-top: 20px !important; padding-bottom: 5px !important; }
footer, .footer-container, .wp-block-template-part-footer { margin-top: auto !important; padding: 80px 0 40px 0 !important; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-container h2 { font-size: 1.5rem !important; margin-bottom: 15px !important; color: #fff !important; }
.footer-container p { color: rgba(255,255,255,0.5) !important; font-size: 0.95rem !important; margin-bottom: 15px !important; }
.footer-container strong { color: #fff !important; font-size: 0.75rem !important; text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-bottom: 20px !important; }
.footer-container ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.footer-container li { color: rgba(255,255,255,0.6) !important; font-size: 0.95rem !important; margin-bottom: 10px !important; }

/* SECTION SPACING */
.wp-site-blocks > .wp-block-group:not(.footer-container), .entry-content > .wp-block-group:not(.footer-container), main > .wp-block-group:not(.footer-container) { padding: 45px 0 !important; margin: 0 !important; }
.wp-site-blocks, .entry-content, main { gap: 0 !important; padding-top: 0 !important; margin-top: 0 !important; }
.alignwide { max-width: 1440px !important; margin: 0 auto !important; padding: 0 40px; }

/* PSEUDO-ELEMENT BACKGROUND SYSTEM */
.lymad-hero-section { position: relative !important; min-height: 800px !important; display: flex !important; align-items: center !important; justify-content: center !important; overflow: hidden !important; margin-top: -85px !important; z-index: 1 !important; }
.lymad-hero-section::before { content: '' !important; position: absolute !important; top: 0; left: 0; right: 0; bottom: 0; background-image: var(--hero-bg) !important; background-size: cover !important; background-position: center !important; filter: blur(8px) brightness(0.4) !important; transform: scale(1.1); z-index: -1 !important; pointer-events: none !important; }
.lymad-hero-section > * { position: relative !important; z-index: 10 !important; }
.wp-block-template-part-header { background: transparent !important; position: relative !important; z-index: 100 !important; }
.hero-title { font-size: clamp(2.5rem, 6vw, 4.5rem) !important; line-height: 1.1; margin-bottom: 20px !important; font-weight: 900 !important; text-shadow: 0 10px 40px rgba(0,0,0,0.8); }
.hero-subtitle { color: #ffffff !important; font-size: 1.3rem; margin-bottom: 35px !important; line-height: 1.6; max-width: 800px; text-shadow: 0 2px 10px rgba(0,0,0,0.8); opacity: 0.9; }

/* FLEXBOX GRID SYSTEM */
.lymad-flex-container { max-width: 1440px !important; margin: 0 auto !important; padding: 0 40px !important; }
.lymad-flex-row { display: flex !important; flex-wrap: wrap !important; gap: 40px !important; width: 100% !important; align-items: center !important; }
.lymad-col-4 { flex: 1 1 calc(33.333% - 40px) !important; min-width: 300px !important; }
.lymad-col-6 { flex: 1 1 calc(50% - 40px) !important; min-width: 350px !important; }
.lymad-col-hero-text { flex: 1 1 55% !important; min-width: 400px !important; }
.lymad-col-hero-img { flex: 1 1 35% !important; min-width: 300px !important; }
.lymad-col-hero-img img { border-radius: 24px; box-shadow: 0 30px 60px rgba(0,0,0,0.4); }

/* CARDS & SERVICES */
.glass-card { background: rgba(255,255,255,0.03) !important; border: 1px solid rgba(255,255,255,0.08) !important; border-radius: 24px !important; padding: 40px !important; backdrop-filter: blur(10px); }
.lymad-icon { font-size: 48px !important; margin-bottom: 20px !important; }
.card-title { font-size: 1.8rem !important; margin-bottom: 15px !important; }
.card-desc { color: rgba(255,255,255,0.6); line-height: 1.6; }

/* ABOUT SECTION */
.lymad-about-img img { border-radius: 24px !important; box-shadow: 0 15px 30px rgba(0,0,0,0.3) !important; }
.lymad-large-text { font-size: 1.25rem !important; line-height: 1.7 !important; color: rgba(255,255,255,0.8) !important; }
.lymad-padding-left { padding-left: 50px !important; }

/* CTA & BUTTONS */
.lymad-cta-card { text-align: center; padding: 80px 40px !important; }
.wp-block-button__link { border-radius: 12px !important; padding: 16px 36px !important; font-weight: 700 !important; background: #7c3aed !important; color: #000 !important; border: none !important; transition: transform 0.2s ease; }
.wp-block-button__link:hover { transform: scale(1.04); }
.wp-block-site-footer, .wp-block-post-navigation-link { display: none !important; }

/* FINAL LAYOUT OVERRIDES - MUST BE LAST */
.wp-site-blocks > :first-child, .entry-content > :first-child, main > :first-child { padding-top: 0 !important; margin-top: 0 !important; }
.wp-site-blocks > :first-child * { margin-top: 0 !important; }
