/*
 Theme Name:   Sterling Orthodontics Child
 Theme URI:    https://www.sterlingortho.com/
 Description:  Astra child theme for Sterling Orthodontics (Sterling Heights, MI). Built by Ortho Marketing.
 Author:       Ortho Marketing
 Author URI:   https://orthomarketing.com/
 Template:     astra
 Version:      1.0.0
 Text Domain:  sterlingortho-child
*/

/* ==========================================================================
   Brand Variables
   NOTE: Colors below were sampled from the live site screenshot.
   Confirm against the official brand guide and adjust if needed.
   ========================================================================== */
:root {
	--sterling-navy: #15384B;        /* primary dark navy - section backgrounds, footer */
	--sterling-navy-deep: #172434;   /* deepest navy - header/topbar */
	--sterling-teal: #4E86A1;        /* accent teal-blue - buttons, links, icons */
	--sterling-aqua-light: #B7E0E6;  /* light aqua - button outlines/hover highlights */
	--sterling-sky-tint: #E2F6FF;    /* light section background tint */
	--sterling-white: #FFFFFF;
	--sterling-text-dark: #1B2A33;
}

/* ==========================================================================
   Global tweaks
   ========================================================================== */
body {
	color: var(--sterling-text-dark);
}

a {
	color: var(--sterling-teal);
}

a:hover,
a:focus {
	color: var(--sterling-navy);
}

/* Buttons */
.ast-button,
button,
input[type="submit"],
.wp-block-button__link {
	background-color: var(--sterling-teal);
	border-color: var(--sterling-teal);
	border-radius: 50px;
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.ast-button:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
	background-color: var(--sterling-navy);
	border-color: var(--sterling-navy);
	transform: translateY(-1px);
}

/* ==========================================================================
   Header
   ========================================================================== */
#masthead,
.ast-above-header-wrap {
	background-color: var(--sterling-navy-deep);
}

/* ==========================================================================
   Scroll shadow on sticky header (JS toggles .is-scrolled)
   ========================================================================== */
.ast-header-break-point.ast-builder-menu-1-full-width-row #masthead,
#masthead {
	transition: box-shadow 0.25s ease;
}

#masthead.is-scrolled {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

/* ==========================================================================
   Sticky mobile call bar
   ========================================================================== */
.sterling-mobile-call-bar {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	background-color: var(--sterling-navy-deep);
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.sterling-mobile-call-bar__inner {
	display: flex;
	align-items: stretch;
}

.sterling-mobile-call-bar a {
	flex: 1 1 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: var(--sterling-white);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	padding: 14px 10px;
	text-align: center;
}

.sterling-mobile-call-bar a.call-btn {
	background-color: var(--sterling-teal);
}

.sterling-mobile-call-bar a.book-btn {
	background-color: var(--sterling-aqua-light);
	color: var(--sterling-navy-deep);
}

.sterling-mobile-call-bar svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

@media (max-width: 768px) {
	.sterling-mobile-call-bar {
		display: block;
	}

	/* prevent the fixed bar from covering footer content / form fields */
	body {
		padding-bottom: 56px;
	}
}

/* ==========================================================================
   Gravity Forms styling
   ========================================================================== */
.gform_wrapper .gfield_label {
	color: var(--sterling-navy);
	font-weight: 600;
}

.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper textarea,
.gform_wrapper select {
	border: 1px solid var(--sterling-aqua-light);
	border-radius: 6px;
}

.gform_wrapper input[type="text"]:focus,
.gform_wrapper input[type="email"]:focus,
.gform_wrapper input[type="tel"]:focus,
.gform_wrapper textarea:focus,
.gform_wrapper select:focus {
	border-color: var(--sterling-teal);
	outline: none;
	box-shadow: 0 0 0 2px rgba(78, 134, 161, 0.25);
}

.gform_wrapper .gform_button,
.gform_wrapper .gform_next_button,
.gform_wrapper .gform_previous_button {
	background-color: var(--sterling-teal) !important;
	border-color: var(--sterling-teal) !important;
	border-radius: 50px !important;
}

.gform_wrapper .gform_button:hover {
	background-color: var(--sterling-navy) !important;
	border-color: var(--sterling-navy) !important;
}

.gform_confirmation_message {
	color: var(--sterling-navy);
	font-weight: 600;
}
