/* =============================================================
 * Dexinal Section Library — Frontend styles
 * All sections follow Dexinal design system:
 *   - Montserrat headings (falls back to body font)
 *   - Crimson / Orange / Green brand colors (CSS vars)
 *   - Same container / spacing rhythm as existing sections
 * ============================================================= */

.dex-sec {
	padding: 80px 0;
	position: relative;
}

.dex-sec__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

.dex-sec--text-image.dex-sec--image-left .dex-sec__grid {
	grid-template-columns: 1fr 1fr;
}

.dex-sec__title {
	font-family: var( --font-heading );
	font-size: clamp( 28px, 4vw, 40px );
	font-weight: 700;
	color: var( --color-text );
	margin: 0 0 16px;
	line-height: 1.2;
}

.dex-sec__subtitle {
	color: var( --brand-crimson );
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 14px;
	margin: 0 0 8px;
}

.dex-sec__text {
	font-size: 16px;
	line-height: 1.7;
	color: var( --color-text );
	margin: 0 0 24px;
}
.dex-sec__text p { margin: 0 0 14px; }
.dex-sec__text a { color: var( --brand-crimson ); text-decoration: underline; }
.dex-sec__text ul, .dex-sec__text ol { margin: 0 0 14px 20px; }

.dex-sec__image img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 16px;
}

.dex-sec--align-center { text-align: center; }
.dex-sec--align-center .dex-sec__title { margin-left: auto; margin-right: auto; }
.dex-sec--align-center .dex-sec__text { max-width: 760px; margin-left: auto; margin-right: auto; }

.dex-sec--text .container { max-width: 860px; }

/* =============================================================
 * Cards (3 / 4)
 * ============================================================= */
.dex-cards {
	display: grid;
	gap: 24px;
	margin-top: 40px;
}
.dex-cards--3 { grid-template-columns: repeat( 3, 1fr ); }
.dex-cards--4 { grid-template-columns: repeat( 4, 1fr ); }

.dex-card {
	background: #fff;
	border-radius: 16px;
	padding: 32px 24px;
	text-align: center;
	box-shadow: 0 4px 16px rgba( 0, 0, 0, 0.04 );
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dex-card:hover {
	transform: translateY( -4px );
	box-shadow: 0 8px 24px rgba( 0, 0, 0, 0.08 );
}
.dex-card__icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 16px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.dex-card__icon img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.dex-card__title {
	font-family: var( --font-heading );
	font-size: 20px;
	font-weight: 600;
	color: var( --color-text );
	margin: 0 0 8px;
}
.dex-card__desc {
	font-size: 14px;
	line-height: 1.5;
	color: var( --color-text-light );
	margin: 0;
}

/* =============================================================
 * Stats Circles
 * ============================================================= */
.dex-stats {
	display: grid;
	gap: 32px;
	margin-top: 40px;
	justify-content: center;
}
.dex-sec--stats-3 .dex-stats { grid-template-columns: repeat( 3, 1fr ); }
.dex-sec--stats-4 .dex-stats { grid-template-columns: repeat( 4, 1fr ); }

.dex-stat { text-align: center; }
.dex-stat__circle {
	width: 140px;
	height: 140px;
	border-radius: 50%;
	margin: 0 auto 16px;
	background: linear-gradient( 135deg, var( --brand-crimson ), var( --brand-orange ) );
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	box-shadow: 0 8px 24px rgba( 211, 5, 54, 0.2 );
}
.dex-stat__value {
	font-family: var( --font-heading );
	font-size: 22px;
	font-weight: 700;
	padding: 0 8px;
	text-align: center;
	line-height: 1.2;
}
.dex-stat__label {
	font-size: 14px;
	font-weight: 500;
	color: var( --color-text );
	margin: 0;
	max-width: 180px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.4;
}

/* =============================================================
 * CTA Banner
 * ============================================================= */
.dex-sec--cta { padding: 60px 0; color: #fff; }
.dex-cta { text-align: center; max-width: 720px; margin: 0 auto; }
.dex-cta__title {
	font-family: var( --font-heading );
	font-size: clamp( 24px, 3.5vw, 36px );
	font-weight: 700;
	color: #fff;
	margin: 0 0 12px;
}
.dex-cta__text {
	font-size: 17px;
	line-height: 1.5;
	margin: 0 0 24px;
	opacity: 0.95;
}
.btn--white {
	background: #fff;
	color: var( --brand-crimson );
	padding: 14px 28px;
	border-radius: 24px;
	font-weight: 600;
	text-decoration: none;
	display: inline-block;
	transition: transform 0.2s ease;
}
.btn--white:hover { transform: translateY( -2px ); }

/* =============================================================
 * FAQ Accordion (matches existing .faq-item)
 * ============================================================= */
.dex-sec--faq .faq-list {
	max-width: 840px;
	margin: 0 auto;
}
.dex-sec--faq .faq-item {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	padding: 16px 20px;
	margin-bottom: 10px;
}
.dex-sec--faq .faq-item__question {
	cursor: pointer;
	font-weight: 600;
	font-size: 16px;
	color: var( --color-text );
	list-style: none;
}
.dex-sec--faq .faq-item__question::-webkit-details-marker { display: none; }
.dex-sec--faq .faq-item__question::before {
	content: '+';
	display: inline-block;
	width: 24px;
	color: var( --brand-crimson );
	font-size: 20px;
	font-weight: 700;
}
.dex-sec--faq .faq-item[open] .faq-item__question::before { content: '−'; }
.dex-sec--faq .faq-item__answer {
	padding-top: 12px;
	color: var( --color-text-light );
	line-height: 1.6;
}

/* =============================================================
 * Pharmacy Grid
 * ============================================================= */
.dex-sec--pharmacies .pharmacy-grid {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 160px, 1fr ) );
	gap: 20px;
	margin-top: 40px;
}
.dex-sec--pharmacies .pharmacy-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	text-decoration: none;
}
.dex-sec--pharmacies .pharmacy-card:hover {
	transform: scale( 1.02 );
	border-color: var( --brand-crimson );
	box-shadow: 0 6px 20px rgba( 0, 0, 0, 0.08 );
}
.dex-sec--pharmacies .pharmacy-card__logo {
	max-width: 100%;
	max-height: 60px;
	object-fit: contain;
}
.dex-sec--pharmacies .pharmacy-card__name {
	font-weight: 600;
	color: var( --color-text );
}

/* =============================================================
 * Responsive
 * ============================================================= */
@media ( max-width: 960px ) {
	.dex-sec { padding: 56px 0; }
	.dex-sec__grid { grid-template-columns: 1fr; gap: 32px; }
	.dex-sec--text-image.dex-sec--image-left .dex-sec__image { order: -1; }
	.dex-cards--3, .dex-cards--4 { grid-template-columns: repeat( 2, 1fr ); }
	.dex-sec--stats-4 .dex-stats { grid-template-columns: repeat( 2, 1fr ); }
}

@media ( max-width: 600px ) {
	.dex-sec { padding: 48px 0; }
	.dex-cards--3, .dex-cards--4 { grid-template-columns: 1fr; }
	.dex-sec--stats-3 .dex-stats,
	.dex-sec--stats-4 .dex-stats { grid-template-columns: 1fr; }
	.dex-stat__circle { width: 120px; height: 120px; }
}
