/* ==========================================================================
   Signature Oral Surgery — Custom CSS
   Effects that theme.json cannot express
   ========================================================================== */

/* --- Reset section gaps --- */
.wp-site-blocks > * + * {
	margin-block-start: 0 !important;
}

/* --- Glass navigation --- */
.is-style-glass-nav {
	position: fixed !important;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.9) !important;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(226, 232, 240, 0.4);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
}

.is-style-glass-nav .wp-block-group__inner-container,
.is-style-glass-nav > .wp-block-group {
	max-width: 1240px;
	margin: 0 auto;
	padding: 12px 32px;
}

/* --- Hero section --- */
.hero-section {
	position: relative;
	overflow: hidden;
	padding-top: 160px;
	padding-bottom: 96px;
}

.hero-section::before {
	content: "";
	position: absolute;
	top: 80px;
	right: -80px;
	width: 600px;
	height: 600px;
	background: rgba(0, 122, 255, 0.05);
	border-radius: 50%;
	filter: blur(48px);
	pointer-events: none;
}

.hero-section::after {
	content: "";
	position: absolute;
	bottom: -10%;
	left: -40px;
	width: 384px;
	height: 384px;
	background: rgba(13, 28, 50, 0.05);
	border-radius: 50%;
	filter: blur(48px);
	pointer-events: none;
}

/* --- Hexagon decorative patterns --- */
.has-hexagon-decoration {
	position: relative;
}

.has-hexagon-decoration::before {
	content: "";
	position: absolute;
	top: 60px;
	left: 25%;
	width: 96px;
	height: 112px;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 115.47' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon fill='rgba(0,122,255,0.06)' stroke='rgba(0,122,255,0.15)' stroke-width='2' points='50 0, 100 28.87, 100 86.6, 50 115.47, 0 86.6, 0 28.87'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
	pointer-events: none;
	z-index: 0;
	opacity: 0.7;
	animation: hexPulse 4s ease-in-out infinite;
}

.has-hexagon-decoration::after {
	content: "";
	position: absolute;
	top: 100px;
	left: calc(25% + 56px);
	width: 64px;
	height: 80px;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 115.47' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon fill='rgba(56,189,248,0.1)' stroke='rgba(56,189,248,0.25)' stroke-width='2' points='50 0, 100 28.87, 100 86.6, 50 115.47, 0 86.6, 0 28.87'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
	pointer-events: none;
	z-index: 0;
	opacity: 0.8;
}

@keyframes hexPulse {
	0%, 100% { opacity: 0.5; }
	50% { opacity: 0.8; }
}

/* --- Glow backgrounds --- */
.has-glow-bg {
	position: relative;
	overflow: hidden;
}

.has-glow-bg::before {
	content: "";
	position: absolute;
	top: -20%;
	right: -10%;
	width: 800px;
	height: 800px;
	background: rgba(0, 122, 255, 0.1);
	border-radius: 50%;
	filter: blur(120px);
	pointer-events: none;
}

/* --- Card hover effects --- */
.is-style-hover-card {
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.is-style-hover-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.is-style-lift-card {
	transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.is-style-lift-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* --- Procedure card link styling --- */
.procedure-card {
	display: block;
	text-decoration: none;
	transition: all 0.3s ease;
}

.procedure-card:hover {
	border-color: rgba(0, 122, 255, 0.5) !important;
	box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
}

.procedure-card:hover h3 {
	color: #007AFF !important;
}

.procedure-card img {
	transition: transform 0.5s ease;
}

.procedure-card:hover img {
	transform: scale(1.05);
}

/* --- Hero image effects --- */
.hero-image-wrapper {
	transition: transform 0.5s ease;
}

.hero-image-wrapper:hover {
	transform: translateY(-8px);
}

.hero-image-wrapper img {
	transition: transform 0.7s ease;
}

.hero-image-wrapper:hover img {
	transform: scale(1.05);
}

/* --- Glass card overlay --- */
.glass-card {
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(226, 232, 240, 0.3);
}

/* --- Dark section (maxillofacial / philosophy) --- */
.dark-section {
	position: relative;
	overflow: hidden;
}

.dark-section::before {
	content: "";
	position: absolute;
	bottom: -40px;
	left: -40px;
	width: 384px;
	height: 384px;
	background: rgba(0, 122, 255, 0.1);
	border-radius: 50%;
	filter: blur(48px);
	pointer-events: none;
}

/* --- Doctor bio corner accents --- */
.doctor-photo-frame {
	position: relative;
}

.doctor-photo-frame::before {
	content: "";
	position: absolute;
	top: -24px;
	left: -24px;
	width: 128px;
	height: 128px;
	border-top: 2px solid rgba(0, 122, 255, 0.3);
	border-left: 2px solid rgba(0, 122, 255, 0.3);
	border-top-left-radius: 24px;
	pointer-events: none;
}

.doctor-photo-frame::after {
	content: "";
	position: absolute;
	bottom: -24px;
	right: -24px;
	width: 128px;
	height: 128px;
	border-bottom: 2px solid rgba(0, 122, 255, 0.3);
	border-right: 2px solid rgba(0, 122, 255, 0.3);
	border-bottom-right-radius: 24px;
	pointer-events: none;
}

/* --- Scrollspy nav block styles --- */
.wp-block-signature-oral-surgery-scrollspy-nav {
	position: fixed;
	top: 50%;
	right: 1.5rem;
	transform: translateY(-50%);
	z-index: 99999;
	pointer-events: auto;
}

.scrollspy-pill {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	padding: 10px 10px;
	border-radius: 9999px;
	border: 1px solid rgba(203, 213, 225, 0.9);
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
}

.scrollspy-pill:hover {
	box-shadow: 0 25px 50px -12px rgba(0, 122, 255, 0.25);
	border-color: rgba(0, 122, 255, 0.4);
	transform: scale(1.05);
}

.scrollspy-link {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6px;
	text-decoration: none;
}

.scrollspy-dot {
	display: block;
	width: 10px;
	height: 10px;
	border-radius: 9999px;
	background: #cbd5e1;
	transition: all 0.3s ease;
}

.scrollspy-link:hover .scrollspy-dot {
	background: #007AFF;
	transform: scale(1.25);
}

.scrollspy-link.is-active .scrollspy-dot {
	width: 10px;
	height: 24px;
	background: #007AFF;
	box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.2), 0 4px 6px rgba(0, 122, 255, 0.3);
}

.scrollspy-label {
	pointer-events: none;
	position: absolute;
	right: 100%;
	margin-right: 14px;
	padding: 4px 10px;
	border-radius: 6px;
	background: #0d1c32;
	color: #fff;
	font-family: 'JetBrains Mono', monospace;
	font-size: 10px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	white-space: nowrap;
	opacity: 0;
	transform: translateX(8px);
	transition: all 0.2s ease;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.scrollspy-link:hover .scrollspy-label {
	opacity: 1;
	transform: translateX(0);
}

/* --- Button transitions --- */
.wp-block-button__link {
	transition: all 0.3s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- Label caps utility --- */
.is-style-label-caps {
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	font-weight: 600;
}

/* --- Credential card icons --- */
.credential-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	margin-bottom: 12px;
}

/* --- Accreditation logo cards --- */
.accreditation-card {
	transition: all 0.3s ease;
}

.accreditation-card:hover {
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
	border-color: rgba(0, 122, 255, 0.4) !important;
}

.accreditation-card img {
	transition: transform 0.3s ease;
}

.accreditation-card:hover img {
	transform: scale(1.05);
}

/* --- Trust indicator line --- */
.trust-indicators {
	border-top: 1px solid rgba(226, 232, 240, 0.4);
	padding-top: 24px;
	margin-top: 32px;
}

/* --- Section label dot --- */
.section-label-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	background: #007AFF;
	border-radius: 50%;
	margin-right: 8px;
	vertical-align: middle;
}

/* --- Location card styling --- */
.location-card {
	transition: all 0.3s ease;
}

.location-card:hover {
	border-color: rgba(0, 122, 255, 0.5) !important;
	box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
}

/* --- Image overflow hidden for zoom effects --- */
.img-zoom-container {
	overflow: hidden;
	border-radius: 12px;
}

.img-zoom-container img {
	transition: transform 0.5s ease;
}

.img-zoom-container:hover img {
	transform: scale(1.05);
}

/* --- Patient info dark card gradient --- */
.patient-info-highlight-card {
	background: linear-gradient(135deg, #0d1c32, #1a2f4c);
}

/* --- Philosophy feature icon hover --- */
.philosophy-feature-icon {
	width: 56px;
	height: 56px;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	transition: background-color 0.3s ease;
	flex-shrink: 0;
}

/* --- Responsive overrides --- */
@media (max-width: 781px) {
	.is-style-glass-nav .wp-block-group__inner-container,
	.is-style-glass-nav > .wp-block-group {
		padding: 12px 24px;
	}

	.hero-section {
		padding-top: 120px;
		padding-bottom: 64px;
	}

	.has-hexagon-decoration::before,
	.has-hexagon-decoration::after {
		display: none;
	}

	.doctor-photo-frame::before,
	.doctor-photo-frame::after {
		display: none;
	}
}

@media (max-width: 640px) {
	.wp-block-signature-oral-surgery-scrollspy-nav {
		display: none !important;
	}
}

/* --- Body padding for fixed nav --- */
body {
	padding-top: 0;
}

/* --- Navigation dropdown styling --- */
.wp-block-navigation .wp-block-navigation-submenu__content {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
	border: 1px solid rgba(226, 232, 240, 0.6);
	padding: 10px 6px;
	min-width: 240px;
}

.wp-block-navigation .wp-block-navigation-submenu__content .wp-block-navigation-item__content {
	padding: 8px 14px;
	border-radius: 8px;
	font-size: 12px;
	transition: all 0.2s ease;
}

.wp-block-navigation .wp-block-navigation-submenu__content .wp-block-navigation-item__content:hover {
	background: rgba(0, 122, 255, 0.1);
	color: #007AFF;
}
