/**
 * Homepage Spacing Fixes
 * Comprehensive spacing overhaul for professional appearance
 * Uses high-specificity selectors to override Divi's dynamic CSS
 */

/* ==========================================================================
   HERO IMAGE FIX - Force above-the-fold animations to be visible
   Divi waypoint animations set opacity:0 and wait for scroll trigger.
   Elements already visible on page load may never trigger.
   ========================================================================== */
.im-hero .et_pb_image.et-waypoint,
.im-hero .et_pb_image.et_animated,
.et_pb_section_0 .et_pb_image.et-waypoint,
.et_pb_section_0 .et_pb_image.et_animated,
body #page-container .et-db #et-boc .et-l .im-hero .et_pb_image,
body #page-container .et-db #et-boc .et-l .et_pb_section_0 .et_pb_image {
    opacity: 1 !important;
    animation: none !important;
    -webkit-animation: none !important;
}

/* ==========================================================================
   TEXT-TRANSFORM FIX - Override Divi theme uppercase settings
   Local site shows headings in normal case, staging incorrectly uppercases
   ========================================================================== */
body #page-container .et-db #et-boc .et-l h2,
body #page-container .et-db #et-boc .et-l h3,
body #page-container .et-db #et-boc .et-l h4,
body #page-container .et-db #et-boc .et-l h5,
body #page-container .et-db #et-boc .et-l .et_pb_blurb_content h4,
body #page-container .et-db #et-boc .et-l .et_pb_toggle_title,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l h2,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l h3,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l h4,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l h5,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_blurb_content h4,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_toggle_title {
    text-transform: none !important;
}

/* Footer heading fix */
body #page-container .et-db #et-boc .et-l footer h3,
body.et_pb_pagebuilder_layout #page-container footer h3 {
    text-transform: none !important;
}

/* ==========================================================================
   TYPOGRAPHY FIX - Divi dynamic CSS didn't generate font styles on staging
   These rules replicate what LOCAL's Divi generates for text modules
   ========================================================================== */

/* Hero eyebrow text - "OmniCare Platform" */
.et_pb_text_0,
body .et_pb_text_0,
body #page-container .et_pb_text_0 {
    font-size: 15px !important;
    letter-spacing: 0.3em !important;
}

/* Hero title - "Your EHR documents the recommendation" - THE BIG FIX */
.et_pb_text_1,
body .et_pb_text_1,
body #page-container .et_pb_text_1,
body #page-container .et-db #et-boc .et-l .et_pb_text_1,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_text_1 {
    font-family: Raleway, Helvetica, Arial, Lucida, sans-serif !important;
    font-weight: 700 !important;
    font-size: 54px !important;
    line-height: 1.15em !important;
}

/* Hero copy text */
.et_pb_text_2,
body .et_pb_text_2,
body #page-container .et_pb_text_2 {
    font-size: 18px !important;
}

/* Hero meta text */
.et_pb_text_3,
body .et_pb_text_3,
body #page-container .et_pb_text_3 {
    font-size: 15px !important;
}

/* Trusted by section text */
.et_pb_text_4,
body .et_pb_text_4,
body #page-container .et_pb_text_4 {
    font-family: Lato, Helvetica, Arial, Lucida, sans-serif !important;
    font-weight: 600 !important;
    font-size: 18px !important;
}

/* Blurb/card descriptions */
.et_pb_text_5, .et_pb_text_15, .et_pb_text_16, .et_pb_text_17, .et_pb_text_18,
body .et_pb_text_5, body .et_pb_text_15, body .et_pb_text_16, body .et_pb_text_17, body .et_pb_text_18 {
    font-size: 16px !important;
}

/* "Outcomes your teams feel day one" header */
.et_pb_text_6,
body .et_pb_text_6,
body #page-container .et_pb_text_6 {
    font-family: Raleway, Helvetica, Arial, Lucida, sans-serif !important;
    font-weight: 700 !important;
    font-size: 42px !important;
}

/* Blurb card body text */
.et_pb_text_7, .et_pb_text_8, .et_pb_text_9, .et_pb_text_21, .et_pb_text_22, .et_pb_text_23,
body .et_pb_text_7, body .et_pb_text_8, body .et_pb_text_9, body .et_pb_text_21, body .et_pb_text_22, body .et_pb_text_23 {
    font-size: 17px !important;
}

/* "Where EHRs stop..." header */
.et_pb_text_10,
body .et_pb_text_10,
body #page-container .et_pb_text_10 {
    font-family: Raleway, Helvetica, Arial, Lucida, sans-serif !important;
    font-weight: 700 !important;
    font-size: 34px !important;
    line-height: 1em !important;
}

/* Process steps text */
.et_pb_text_11, .et_pb_text_12, .et_pb_text_25,
body .et_pb_text_11, body .et_pb_text_12, body .et_pb_text_25 {
    font-size: 18px !important;
}

/* "OmniCare solution areas" header */
.et_pb_text_13,
body .et_pb_text_13,
body #page-container .et_pb_text_13 {
    font-family: Raleway, Helvetica, Arial, Lucida, sans-serif !important;
    font-weight: 700 !important;
    font-size: 40px !important;
}

/* "Capture → Assign → Act → Document" header */
.et_pb_text_14, .et_pb_text_24,
body .et_pb_text_14, body .et_pb_text_24,
body #page-container .et_pb_text_14, body #page-container .et_pb_text_24 {
    font-family: Raleway, Helvetica, Arial, Lucida, sans-serif !important;
    font-weight: 700 !important;
    font-size: 38px !important;
}

/* "Navigator stories" header */
.et_pb_text_19,
body .et_pb_text_19,
body #page-container .et_pb_text_19 {
    font-size: 36px !important;
}

/* "Support, training..." header */
.et_pb_text_20,
body .et_pb_text_20,
body #page-container .et_pb_text_20 {
    font-family: Raleway, Helvetica, Arial, Lucida, sans-serif !important;
    font-weight: 700 !important;
    font-size: 36px !important;
}

/* ==========================================================================
   COLUMN PADDING - The core fix for content breathing room
   Padding goes on columns, NOT sections (avoids double-spacing)
   ========================================================================== */

/* All columns get horizontal padding for content breathing room */
body #page-container .et-db #et-boc .et-l .et_pb_column,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_column {
	padding-left: 20px !important;
	padding-right: 20px !important;
}

/* Single-column rows (full width content) need more padding */
body #page-container .et-db #et-boc .et-l .et_pb_row .et_pb_column.et_pb_column_4_4,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_row .et_pb_column.et_pb_column_4_4 {
	padding-left: 40px !important;
	padding-right: 40px !important;
}

/* Multi-column rows - moderate padding */
body #page-container .et-db #et-boc .et-l .et_pb_row .et_pb_column.et_pb_column_1_2,
body #page-container .et-db #et-boc .et-l .et_pb_row .et_pb_column.et_pb_column_1_3,
body #page-container .et-db #et-boc .et-l .et_pb_row .et_pb_column.et_pb_column_1_4,
body #page-container .et-db #et-boc .et-l .et_pb_row .et_pb_column.et_pb_column_2_3,
body #page-container .et-db #et-boc .et-l .et_pb_row .et_pb_column.et_pb_column_3_4,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_row .et_pb_column.et_pb_column_1_2,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_row .et_pb_column.et_pb_column_1_3,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_row .et_pb_column.et_pb_column_1_4,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_row .et_pb_column.et_pb_column_2_3,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_row .et_pb_column.et_pb_column_3_4 {
	padding-left: 15px !important;
	padding-right: 15px !important;
}


/* ==========================================================================
   ROW LAYOUT - Proper centering and max-width
   ========================================================================== */

/* Rows should be centered with reasonable max-width */
body #page-container .et-db #et-boc .et-l .et_pb_row,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_row {
	max-width: 1200px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	width: 90% !important; /* Creates natural edge breathing room */
}

/* Wider rows for hero/impact sections */
body #page-container .et-db #et-boc .et-l .et_pb_row_0.et_pb_row,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_row_0.et_pb_row {
	width: 95% !important;
	max-width: 1400px !important;
}


/* ==========================================================================
   SECTION PADDING - Remove horizontal, keep vertical for breathing room
   ========================================================================== */

/* Sections should NOT have horizontal padding (let rows/columns handle it) */
body #page-container .et-db #et-boc .et-l .et_pb_section,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_section {
	padding-left: 0 !important;
	padding-right: 0 !important;
}


/* ==========================================================================
   VERTICAL SPACING - Header rows need breathing room
   ========================================================================== */

/* "Trusted by hospitals..." row - more space from hero */
body #page-container .et-db #et-boc .et-l .et_pb_row_1.et_pb_row,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_row_1.et_pb_row {
	padding-top: 50px !important;
}

/* Tickertape row - more vertical padding */
body #page-container .et-db #et-boc .et-l .et_pb_row_2.et_pb_row,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_row_2.et_pb_row {
	padding-top: 30px !important;
	padding-bottom: 50px !important;
}

/* "Outcomes your teams feel day one" header */
body #page-container .et-db #et-boc .et-l .et_pb_row_3.et_pb_row,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_row_3.et_pb_row {
	padding-top: 30px !important;
	padding-bottom: 20px !important;
}

/* "Where EHRs stop, OmniCare keeps the loop moving" */
body #page-container .et-db #et-boc .et-l .et_pb_row_5.et_pb_row,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_row_5.et_pb_row {
	padding-top: 60px !important;
}

/* "OmniCare solution areas" header */
body #page-container .et-db #et-boc .et-l .et_pb_row_6.et_pb_row,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_row_6.et_pb_row {
	padding-top: 30px !important;
	padding-bottom: 20px !important;
}

/* "Capture → Assign → Act → Document" header */
body #page-container .et-db #et-boc .et-l .et_pb_row_9.et_pb_row,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_row_9.et_pb_row {
	padding-top: 50px !important;
}

/* Capture/Assign/Act/Document cards row */
body #page-container .et-db #et-boc .et-l .et_pb_row_10.et_pb_row,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_row_10.et_pb_row {
	padding-bottom: 40px !important;
}

/* "Navigator and physician stories" header */
body #page-container .et-db #et-boc .et-l .et_pb_row_11.et_pb_row,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_row_11.et_pb_row {
	padding-top: 40px !important;
}

/* "Support, training, and contact" header */
body #page-container .et-db #et-boc .et-l .et_pb_row_13.et_pb_row,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_row_13.et_pb_row {
	padding-top: 50px !important;
}

/* Support cards row */
body #page-container .et-db #et-boc .et-l .et_pb_row_14.et_pb_row,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_row_14.et_pb_row {
	padding-bottom: 50px !important;
}


/* ==========================================================================
   TEXT MODULE SPACING - Ensure text content is readable
   ========================================================================== */

/* Text modules need internal padding when cramped */
body #page-container .et-db #et-boc .et-l .et_pb_text,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_text {
	margin-bottom: 15px !important;
}

/* Headers inside text modules */
body #page-container .et-db #et-boc .et-l .et_pb_text h1,
body #page-container .et-db #et-boc .et-l .et_pb_text h2,
body #page-container .et-db #et-boc .et-l .et_pb_text h3 {
	margin-bottom: 10px !important;
}


/* ==========================================================================
   CARD/BLURB MODULES - Professional spacing for card layouts
   ========================================================================== */

/* Blurb modules (used for cards) */
body #page-container .et-db #et-boc .et-l .et_pb_blurb,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_blurb {
	padding: 20px !important;
}

/* Ensure blurb content has breathing room */
body #page-container .et-db #et-boc .et-l .et_pb_blurb_content,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_blurb_content {
	padding: 10px 0 !important;
}


/* ==========================================================================
   BUTTON FIXES - Ensure button text is visible
   ========================================================================== */

/* Fix for buttons showing as blank blue rectangles */
.et_pb_button {
	font-size: 14px !important;
	line-height: 1.5 !important;
	padding: 12px 24px !important;
}

/* CRITICAL: Force white text on ALL blue background buttons */
/* Divi's et_pb_bg_layout_light sometimes creates blue-on-blue invisible text */
.et_pb_button,
.et_pb_button.et_pb_bg_layout_light,
body .et_pb_button,
body #page-container .et_pb_button,
body #page-container .et-db .et_pb_button,
body #page-container .et-db #et-boc .et_pb_button,
body #page-container .et-db #et-boc .et-l .et_pb_button,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_button {
	color: #ffffff !important;
}

/* Specific fix for support section buttons that show blue-on-blue */
.et_pb_button_2,
.et_pb_button_3,
body .et_pb_button_2,
body .et_pb_button_3,
body #page-container .et_pb_button_2,
body #page-container .et_pb_button_3 {
	color: #ffffff !important;
}

/* Secondary/outline buttons should have blue text on white/transparent bg */
body #page-container .et-db #et-boc .et-l .et_pb_button.im-btn--secondary,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_button.im-btn--secondary {
	color: #088eff !important;
	background-color: transparent !important;
	border: 2px solid #088eff !important;
}

/* Ensure button text is not hidden */
.et_pb_button:after {
	display: inline-block;
}


/* ==========================================================================
   HERO SECTION RESPONSIVE LAYOUT
   - Fluid scaling at medium widths (text scales with viewport)
   - Stacked layout on mobile (image below text)
   ========================================================================== */

/* Hero section - DESKTOP: keep float-based layout (no changes needed) */
/* The float:right on the image is set by Divi and works fine at desktop */

/* Hero typography - ensure proper sizing across all viewports */

/* Fluid typography for hero title using clamp() */
/* Scales from 32px at 375px viewport to 54px at 1440px viewport */
.et_pb_text_1,
body .et_pb_text_1,
body #page-container .et_pb_text_1,
body #page-container .et-db #et-boc .et-l .et_pb_text_1,
body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_text_1 {
    font-family: Raleway, Helvetica, Arial, Lucida, sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(32px, 4vw + 16px, 54px) !important;
    line-height: 1.15em !important;
}

/* Fluid sizing for other major headings */
.et_pb_text_6,
body .et_pb_text_6,
body #page-container .et_pb_text_6 {
    font-family: Raleway, Helvetica, Arial, Lucida, sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(28px, 3vw + 12px, 42px) !important;
}

.et_pb_text_10,
body .et_pb_text_10,
body #page-container .et_pb_text_10 {
    font-family: Raleway, Helvetica, Arial, Lucida, sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(24px, 2.5vw + 10px, 34px) !important;
    line-height: 1em !important;
}

.et_pb_text_13,
body .et_pb_text_13,
body #page-container .et_pb_text_13 {
    font-family: Raleway, Helvetica, Arial, Lucida, sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(28px, 3vw + 10px, 40px) !important;
}

.et_pb_text_14, .et_pb_text_24,
body .et_pb_text_14, body .et_pb_text_24,
body #page-container .et_pb_text_14, body #page-container .et_pb_text_24 {
    font-family: Raleway, Helvetica, Arial, Lucida, sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(26px, 2.5vw + 10px, 38px) !important;
}

.et_pb_text_19, .et_pb_text_20,
body .et_pb_text_19, body .et_pb_text_20,
body #page-container .et_pb_text_19, body #page-container .et_pb_text_20 {
    font-size: clamp(28px, 2.5vw + 10px, 36px) !important;
}


/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 980px) {
	/* Tablet: Typography now uses clamp() - no overrides needed */

	/* Tablet: Adjust row width for better edge spacing */
	body #page-container .et-db #et-boc .et-l .et_pb_row,
	body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_row {
		width: 92% !important;
	}

	/* Columns get slightly more padding on tablet */
	body #page-container .et-db #et-boc .et-l .et_pb_column,
	body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_column {
		padding-left: 15px !important;
		padding-right: 15px !important;
	}

	/* Full-width columns */
	body #page-container .et-db #et-boc .et-l .et_pb_row .et_pb_column.et_pb_column_4_4,
	body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_row .et_pb_column.et_pb_column_4_4 {
		padding-left: 25px !important;
		padding-right: 25px !important;
	}

	/* Reduce vertical spacing */
	.et_pb_row_1,
	.et_pb_row_5,
	.et_pb_row_9,
	.et_pb_row_13 {
		padding-top: 40px !important;
	}

	.et_pb_row_2,
	.et_pb_row_10,
	.et_pb_row_14 {
		padding-bottom: 40px !important;
	}
}

@media (max-width: 767px) {
	/* Mobile: Typography uses clamp() - no overrides needed */

	/* ========== HERO SECTION MOBILE STACKING ========== */
	/* On mobile, ensure the image appears BELOW the text, not floating beside it */
	/*
	 * DOM structure: body.page-id-145.et-db > #page-container > #et-boc > ... > .et-l > ... > .et-l > ... > .im-hero > .et_pb_image_0
	 * Note: .et-db is on BODY, not a separate element. There are TWO nested .et-l divs.
	 * Divi's inline <style> uses: body.page-id-145 .im-hero .et_pb_image_0 (specificity ~31)
	 * Our selector uses IDs to achieve specificity ~261 to guarantee override
	 */

	/* Hero image - force below text on mobile */
	body.page-id-145.et-db #page-container #et-boc .et-l .et-l .im-hero .et_pb_image_0,
	body.page-id-145.et-db #page-container #et-boc .et-l .et-l .im-hero .et_pb_image,
	body.et-db #page-container #et-boc .et-l .et-l .im-hero .et_pb_image_0,
	body.et-db #page-container #et-boc .et-l .et-l .im-hero .et_pb_image {
		float: none !important;
		clear: both !important;
		display: block !important;
		width: 90% !important;
		max-width: 400px !important;
		margin: 30px auto !important;
	}

	body.page-id-145.et-db #page-container #et-boc .et-l .et-l .im-hero .et_pb_image_0 img,
	body.et-db #page-container #et-boc .et-l .et-l .im-hero .et_pb_image img {
		width: 100% !important;
		height: auto !important;
	}

	/* Hero text - full width, no wrapping around image */
	body.page-id-145.et-db #page-container #et-boc .et-l .et-l .im-hero .et_pb_text,
	body.et-db #page-container #et-boc .et-l .et-l .im-hero .et_pb_text {
		width: 100% !important;
		clear: both !important;
	}

	/* Mobile: Narrower row but more column padding */
	body #page-container .et-db #et-boc .et-l .et_pb_row,
	body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_row {
		width: 94% !important;
	}

	/* All columns stack on mobile - uniform padding */
	body #page-container .et-db #et-boc .et-l .et_pb_column,
	body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_column {
		padding-left: 15px !important;
		padding-right: 15px !important;
	}

	/* Full-width columns on mobile */
	body #page-container .et-db #et-boc .et-l .et_pb_row .et_pb_column.et_pb_column_4_4,
	body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_row .et_pb_column.et_pb_column_4_4 {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}

	/* Further reduce vertical spacing on mobile */
	.et_pb_row_1,
	.et_pb_row_5,
	.et_pb_row_9,
	.et_pb_row_13 {
		padding-top: 30px !important;
	}

	.et_pb_row_2,
	.et_pb_row_10,
	.et_pb_row_14 {
		padding-bottom: 30px !important;
	}

	/* Blurbs need less padding on mobile */
	body #page-container .et-db #et-boc .et-l .et_pb_blurb,
	body.et_pb_pagebuilder_layout #page-container #et-boc .et-l .et_pb_blurb {
		padding: 15px !important;
	}
}
