/**
 * InsuranceFixits Core – Inner page styles
 * Services, Homeowners, Condos, Property Managers, Contact
 * Matches homepage design system.
 *
 * @package InsuranceFixits_Core
 */

/* ========== Use plugin nav (match homepage header) ========== */
body.ifx-has-inner-page .twxb-header,
body.ifx-has-inner-page #masthead.twxb-header {
	display: none !important;
}

body.ifx-has-inner-page .twxb-main {
	padding-top: 0;
}

/* Plugin nav – same styling as homepage */
body.ifx-has-inner-page .ifx-nav {
	background-color: #fff;
	background-image: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	position: relative;
	z-index: 10;
}

body.ifx-has-inner-page .ifx-nav__link,
body.ifx-has-inner-page .ifx-nav__links a {
	color: #0f172a;
	font-weight: 500;
}

body.ifx-has-inner-page .ifx-nav__link:hover,
body.ifx-has-inner-page .ifx-nav__link--active,
body.ifx-has-inner-page .ifx-nav__links a:hover,
body.ifx-has-inner-page .current-menu-item > a {
	color: #1e5f8a;
	text-decoration: underline;
	text-underline-offset: 4px;
}

body.ifx-has-inner-page .ifx-nav__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem clamp(1.5rem, 4vw, 2rem);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}

body.ifx-has-inner-page .ifx-nav__logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

body.ifx-has-inner-page .ifx-nav__logo-img {
	display: block;
	max-height: 84px;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15)) drop-shadow(0 0 12px rgba(13, 148, 136, 0.12));
}

body.ifx-has-inner-page .ifx-nav__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ========== Body background for inner pages ========== */
body.ifx-has-inner-page {
	background:
		linear-gradient(to bottom, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 40%, rgba(255, 255, 255, 0.75) 100%),
		url('../img/sc-coastline.png');
	background-size: cover;
	background-position: center bottom;
	background-attachment: fixed;
}

/* ========== Design tokens (match homepage) ========== */
.ifx-inner-page {
	--ifx-primary-blue: #1e5f8a;
	--ifx-deep-navy: #0f172a;
	--ifx-accent-green: #16a34a;
	--ifx-text-light: #fff;
	--space-sm: 20px;
	--space-lg: 40px;
	--ifx-transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Inner hero ========== */
.ifx-inner-hero {
	position: relative;
	background-color: var(--ifx-deep-navy);
	min-height: clamp(280px, 40vw, 380px);
	padding: clamp(3rem, 8vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
	display: flex;
	align-items: center;
}

.ifx-inner-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 0;
}

.ifx-inner-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(105deg, rgba(8, 14, 26, 0.9) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(25, 45, 75, 0.5) 100%);
	pointer-events: none;
}

.ifx-inner-hero__inner {
	position: relative;
	z-index: 2;
	max-width: 1200px;
	margin: 0 auto;
	width: 100%;
}

.ifx-inner-hero__title {
	font-size: clamp(1.75rem, 4.5vw, 2.75rem);
	font-weight: 700;
	color: var(--ifx-text-light);
	margin: 0 0 0.75rem;
	line-height: 1.15;
	letter-spacing: -0.03em;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.ifx-inner-hero__subtitle {
	font-size: clamp(0.9375rem, 1.2vw, 1.125rem);
	color: rgba(255, 255, 255, 0.95);
	margin: 0 0 1.5rem;
	max-width: 520px;
	line-height: 1.5;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.ifx-inner-hero__buttons {
	display: flex;
	gap: 1rem 1.25rem;
	flex-wrap: wrap;
}

.ifx-inner-hero .ifx-btn--primary {
	background: var(--ifx-accent-green);
	color: var(--ifx-text-light);
	border-color: transparent;
	box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
}

.ifx-inner-hero .ifx-btn--primary:hover {
	background: #15803d;
	box-shadow: 0 4px 16px rgba(22, 163, 74, 0.45);
}

.ifx-inner-hero .ifx-btn--secondary {
	background: transparent;
	color: var(--ifx-text-light);
	border: 2px solid rgba(255, 255, 255, 0.8);
}

.ifx-inner-hero .ifx-btn--secondary:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: var(--ifx-text-light);
}

/* ========== Content sections ========== */
.ifx-inner-section {
	padding: clamp(2rem, 4vw, var(--space-lg)) clamp(1.5rem, 4vw, 2.5rem);
	background: transparent;
}

.ifx-inner-content {
	max-width: 800px;
	margin: 0 auto;
}

.ifx-inner-content h2 {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--ifx-deep-navy);
	margin: 2rem 0 0.75rem;
	line-height: 1.3;
}

.ifx-inner-content h2:first-child {
	margin-top: 0;
}

.ifx-inner-content h3 {
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--ifx-deep-navy);
	margin: 1.5rem 0 0.5rem;
}

.ifx-inner-content p {
	margin: 0 0 1rem;
	line-height: 1.6;
	color: #475569;
}

.ifx-inner-content p:last-child {
	margin-bottom: 0;
}

.ifx-inner-content ul {
	margin: 0 0 1rem;
	padding-left: 1.5rem;
	list-style: disc;
}

.ifx-inner-content li {
	margin-bottom: 0.25rem;
	line-height: 1.5;
	color: #475569;
}

.ifx-inner-content a {
	color: var(--ifx-primary-blue);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ifx-inner-content a:hover {
	color: #0d9488;
}

/* ========== Membership Plans section ========== */
.ifx-membership-plans {
	padding: clamp(2rem, 4vw, var(--space-lg)) clamp(1.5rem, 4vw, 2.5rem);
	background: transparent;
}

.ifx-membership-plans__inner {
	max-width: 1200px;
	margin: 0 auto;
}

.ifx-membership-plans__title {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--ifx-deep-navy);
	margin: 0 0 var(--space-sm);
	text-align: center;
}

.ifx-membership-plans__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: clamp(1.25rem, 2.5vw, 1.75rem);
	align-items: stretch;
}

.ifx-plan-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	display: flex;
	flex-direction: column;
	position: relative;
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(15, 23, 42, 0.04);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ifx-plan-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.06);
}

.ifx-plan-card--premium {
	border-color: rgba(13, 148, 136, 0.35);
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(13, 148, 136, 0.08);
}

.ifx-plan-card--premium:hover {
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12), 0 4px 20px rgba(13, 148, 136, 0.12);
}

.ifx-plan-card__badge {
	position: absolute;
	top: -0.5rem;
	right: 1rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #fff;
	background: linear-gradient(135deg, #1e5f8a, #0d9488);
	padding: 0.25rem 0.625rem;
	border-radius: 6px;
}

.ifx-plan-card__badge--popular {
	background: linear-gradient(135deg, #16a34a, #15803d);
}

.ifx-plan-card--popular {
	border-color: rgba(22, 163, 74, 0.25);
}

.ifx-plan-card__name {
	font-size: 1.25rem;
	font-weight: 700;
	color: #1a365d;
	margin: 0 0 0.5rem;
}

.ifx-plan-card__price {
	margin-bottom: 0.75rem;
}

.ifx-plan-card__amount {
	font-size: 1.75rem;
	font-weight: 700;
	color: #0f172a;
}

.ifx-plan-card__period {
	font-size: 0.9375rem;
	color: #64748b;
	font-weight: 500;
}

.ifx-plan-card__desc {
	font-size: 0.9375rem;
	line-height: 1.5;
	color: #64748b;
	margin: 0 0 1rem;
}

.ifx-plan-card__features {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
	flex-grow: 1;
}

.ifx-plan-card__features li {
	position: relative;
	padding-left: 1.25rem;
	margin-bottom: 0.375rem;
	font-size: 0.9375rem;
	line-height: 1.45;
	color: #475569;
}

.ifx-plan-card__features li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #0d9488;
}

.ifx-plan-card .ifx-btn {
	margin-top: auto;
	width: 100%;
	justify-content: center;
}

.ifx-plan-card .ifx-btn--outline {
	background: #0c1222;
	color: #fff;
}

.ifx-plan-card .ifx-btn--outline:hover {
	background: #0f172a;
}

/* ========== CTA section ========== */
.ifx-inner-cta {
	background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 58, 95, 0.8) 50%, rgba(12, 74, 110, 0.75) 100%);
	padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
	text-align: center;
}

.ifx-inner-cta__inner {
	max-width: 640px;
	margin: 0 auto;
}

.ifx-inner-cta__title {
	font-size: clamp(1.25rem, 2.5vw, 1.625rem);
	font-weight: 700;
	color: var(--ifx-text-light);
	margin: 0 0 1.5rem;
}

.ifx-inner-cta .ifx-btn--primary {
	background: var(--ifx-accent-green);
	color: var(--ifx-text-light);
	box-shadow: 0 4px 16px rgba(22, 163, 74, 0.4);
}

.ifx-inner-cta .ifx-btn--primary:hover {
	box-shadow: 0 6px 24px rgba(22, 163, 74, 0.5);
}

.ifx-inner-cta__links {
	margin: 1.5rem 0 0;
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.9);
}

.ifx-inner-cta__links a {
	color: rgba(255, 255, 255, 0.95);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ifx-inner-cta__links a:hover {
	color: #fff;
}

/* ========== Contact page ========== */
.ifx-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 4vw, 3rem);
	max-width: 1000px;
	margin: 0 auto;
}

@media (max-width: 768px) {
	.ifx-contact-grid {
		grid-template-columns: 1fr;
	}
}

.ifx-locations-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.25rem 1.5rem;
	margin: 0.5rem 0 1rem;
	padding-left: 1.25rem;
	list-style: disc;
}

.ifx-contact-form p {
	margin-bottom: 1rem;
}

.ifx-contact-form label {
	display: block;
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--ifx-deep-navy);
	margin-bottom: 0.375rem;
}

.ifx-contact-form .required {
	color: #dc2626;
}

.ifx-contact-form input[type="text"],
.ifx-contact-form input[type="email"],
.ifx-contact-form input[type="tel"],
.ifx-contact-form select,
.ifx-contact-form textarea {
	width: 100%;
	max-width: 400px;
	padding: 0.6em 0.875em;
	font-size: 1rem;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
}

.ifx-contact-form textarea {
	min-height: 100px;
	resize: vertical;
}

.ifx-form-success {
	padding: 1.5rem;
	background: #dcfce7;
	border-radius: 8px;
	color: #166534;
	font-weight: 500;
}
