/*
Theme Name:   Astra Child - Cartier Orthodontics
Theme URI:    https://www.cartierorthodontics.com/
Description:  Custom Astra child theme for Dr. Michelle Cartier Orthodontics (cartierorthodontics.com). Built by OrthoMarketing.
Author:       OrthoMarketing
Author URI:   https://orthomarketing.com/
Template:     astra
Version:      1.0.0
Text Domain:  astra-child-cartier
*/

/* =====================================================
   BRAND VARIABLES
   Sampled directly from the live site screenshot (07/29/26).
   This site actually runs a multi-accent palette on a deep
   navy base — sky blue for the primary header CTA, sage
   green for the "Refined Orthodontic Care" stripe / secondary
   CTAs, and coral-pink for the appointment/location buttons.
===================================================== */
:root {
	--cor-blue: #5fc1e8;          /* sky blue - header "Free Consultation" CTA */
	--cor-blue-dark: #3fa3cb;     /* darker blue - hover state */
	--cor-green: #7ac695;         /* sage green - stripe banner, secondary CTAs */
	--cor-green-dark: #5aa877;    /* darker sage - hover state */
	--cor-pink: #f27faa;          /* coral pink - appointment/location buttons */
	--cor-pink-dark: #d9628e;     /* darker coral - hover state */
	--cor-primary: var(--cor-pink); /* default button color unless overridden per-block */
	--cor-primary-dark: var(--cor-pink-dark);
	--cor-ink: #0a2a37;           /* deep navy - dark sections, footer, headings */
	--cor-cream: #f7f4ee;         /* light neutral background */
	--cor-white: #ffffff;
	--cor-radius: 6px;
	--cor-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

/* =====================================================
   GLOBAL
===================================================== */
body {
	color: var(--cor-ink);
}

a {
	color: var(--cor-primary);
}

a:hover {
	color: var(--cor-primary-dark);
}

.ast-button,
button,
input[type="submit"],
.wp-block-button__link {
	background-color: var(--cor-primary);
	border-radius: var(--cor-radius);
	transition: background-color 0.2s ease, transform 0.15s ease;
	letter-spacing: 0.03em;
}

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

/* =====================================================
   HEADER SCROLL SHADOW
   Toggled via assets/js/custom.js — adds a shadow under the
   sticky header once the visitor scrolls past it.
===================================================== */
.ast-main-header-bar {
	transition: box-shadow 0.25s ease;
}

body.cor-scrolled .ast-main-header-bar {
	box-shadow: var(--cor-shadow);
}

/* =====================================================
   STICKY MOBILE CALL BAR
   Two locations = two numbers stacked as a segmented bar so
   patients can tap through to whichever office they need.
===================================================== */
.cor-mobile-call-bar {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	background: var(--cor-ink);
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cor-mobile-call-bar__inner {
	display: flex;
}

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

.cor-mobile-call-bar a:first-child {
	background: var(--cor-blue);
	border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.cor-mobile-call-bar a:first-child:hover {
	background: var(--cor-blue-dark);
}

.cor-mobile-call-bar a:last-child {
	background: var(--cor-pink);
}

.cor-mobile-call-bar a:last-child:hover {
	background: var(--cor-pink-dark);
}

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

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

	body {
		padding-bottom: 54px;
	}
}

/* =====================================================
   GRAVITY FORMS
===================================================== */
.gform_wrapper.gravity-theme .gform_footer input.gform_button {
	background-color: var(--cor-primary) !important;
	border-radius: var(--cor-radius) !important;
	border: none !important;
}

.gform_wrapper.gravity-theme .gform_footer input.gform_button:hover {
	background-color: var(--cor-primary-dark) !important;
}

.gform_wrapper.gravity-theme .gfield_label {
	color: var(--cor-ink);
}

.gform_confirmation_wrapper {
	background: var(--cor-cream);
	border-radius: var(--cor-radius);
	padding: 24px;
}

/* =====================================================
   "REFINED ORTHODONTIC CARE" STRIPE
===================================================== */
.cor-refined-stripe {
	background: var(--cor-green);
	color: var(--cor-white);
	text-align: center;
	padding: 10px 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
}

/* =====================================================
   LOCATION CARDS (Southampton / Wainscott)
===================================================== */
.cor-locations-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
}

.cor-locations-grid .cor-location-card {
	background: var(--cor-white);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: var(--cor-radius);
	padding: 24px;
}

.cor-locations-grid .cor-location-card h3 {
	margin-top: 0;
	color: var(--cor-pink);
}

.cor-locations-grid .cor-location-card table {
	width: 100%;
	border-collapse: collapse;
}

.cor-locations-grid .cor-location-card td {
	padding: 6px 0;
}

.cor-locations-grid .cor-location-card td:first-child {
	color: #666;
	width: 45%;
}

/* Areas served pill list */
.cor-areas-served {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.cor-areas-served li a {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid var(--cor-pink);
	border-radius: 999px;
	color: var(--cor-pink);
	text-decoration: none;
	font-size: 14px;
}

.cor-areas-served li a:hover {
	background: var(--cor-pink);
	color: var(--cor-white);
}

/* Before/after gallery grid used in the "Smile Transformations" section */
.cor-before-after-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}

.cor-before-after-grid figure {
	display: flex;
	gap: 4px;
	margin: 0;
}

.cor-before-after-grid img {
	width: 50%;
	border-radius: var(--cor-radius);
	object-fit: cover;
}
