/* ==================================================================
   iPharm Pro — main.css
   Component styles, layout, and responsive rules.
   ================================================================== */

/* Layout helpers -------------------------------------------------- */
.ip-container,
.container {
	width: 100%;
	max-width: var(--ip-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

.section {
	padding: 90px 0;
}
.section--tight { padding: 60px 0; }
.section--alt { background: var(--ip-bg-alt); }
.section--dark { background: var(--ip-bg-dark); color: #d8d2e8; }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: #fff; }
.section--primary { background: linear-gradient(135deg, var(--ip-primary) 0%, var(--ip-primary-dark) 100%); color: #fff; }
.section--primary h1,
.section--primary h2,
.section--primary h3 { color: #fff; }

.section-head {
	max-width: 760px;
	margin: 0 auto 56px;
	text-align: center;
}
.section-head .eyebrow {
	display: inline-block;
	font-family: var(--ip-font-head);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-size: 0.78rem;
	color: var(--ip-accent);
	margin-bottom: 14px;
}
.section-head p {
	color: var(--ip-text-soft);
	font-size: 1.05rem;
	margin-bottom: 0;
}

/* Buttons --------------------------------------------------------- */
.btn,
.ip-btn,
.wp-block-button__link,
.button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--ip-font-head);
	font-weight: 600;
	font-size: 0.98rem;
	padding: 14px 28px;
	border-radius: 999px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform var(--ip-transition), background var(--ip-transition), color var(--ip-transition), box-shadow var(--ip-transition);
	text-decoration: none;
	line-height: 1;
}
.btn--primary,
.ip-btn--primary {
	background: var(--ip-primary);
	color: #fff;
	box-shadow: 0 8px 22px rgba(91, 26, 140, 0.3);
}
.btn--primary:hover,
.ip-btn--primary:hover {
	background: var(--ip-primary-dark);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(91, 26, 140, 0.4);
}
.btn--ghost,
.ip-btn--ghost {
	background: transparent;
	color: var(--ip-primary);
	border-color: var(--ip-primary);
}
.btn--ghost:hover,
.ip-btn--ghost:hover {
	background: var(--ip-primary);
	color: #fff;
	transform: translateY(-2px);
}
.btn--white,
.ip-btn--white {
	background: #fff;
	color: var(--ip-primary);
}
.btn--white:hover,
.ip-btn--white:hover {
	background: var(--ip-accent);
	color: #fff;
}
.btn--accent,
.ip-btn--accent {
	background: var(--ip-accent);
	color: #fff;
	box-shadow: 0 8px 22px rgba(0, 181, 165, 0.3);
}
.btn--accent:hover,
.ip-btn--accent:hover {
	background: var(--ip-accent-dark);
	color: #fff;
	transform: translateY(-2px);
}

/* Top utility bar ------------------------------------------------- */
.top-bar {
	background: var(--ip-primary-dark);
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.82rem;
	padding: 8px 0;
}
.top-bar .ip-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.top-bar a { color: rgba(255, 255, 255, 0.85); }
.top-bar a:hover { color: #fff; }
.top-bar .top-bar__contact { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.top-bar .top-bar__contact span { display: inline-flex; align-items: center; gap: 6px; }
.top-bar .top-bar__menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.top-bar__menu .menu-item a { font-size: 0.82rem; }

/* Header ---------------------------------------------------------- */
.site-header {
	background: #fff;
	border-bottom: 1px solid var(--ip-border);
	position: relative;
	z-index: 999;
	width: 100%;
}
.sticky-header-enabled .site-header.is-stuck {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	box-shadow: var(--ip-shadow);
	animation: ipSlideDown 0.35s ease;
}
@keyframes ipSlideDown {
	from { transform: translateY(-100%); }
	to { transform: translateY(0); }
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 16px 0;
}
.site-branding {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}
.site-logo a { display: block; line-height: 0; }
.site-logo img {
	max-height: 56px;
	width: auto;
}
.site-title {
	font-family: var(--ip-font-head);
	font-weight: 800;
	font-size: 1.55rem;
	margin: 0;
	color: var(--ip-primary-dark);
	line-height: 1.1;
}
.site-title a { color: inherit; }
.site-title a:hover { color: var(--ip-primary); }
.site-description {
	margin: 2px 0 0;
	font-size: 0.8rem;
	color: var(--ip-text-soft);
}
.brand-dot {
	display: inline-block;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--ip-accent);
	margin-left: 3px;
	vertical-align: middle;
}

/* Primary nav ----------------------------------------------------- */
.main-navigation {
	display: flex;
	align-items: center;
	gap: 18px;
}
.nav-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 4px;
}
.nav-menu > li > a {
	display: block;
	padding: 10px 14px;
	font-family: var(--ip-font-head);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--ip-text);
	border-radius: var(--ip-radius-sm);
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
	color: var(--ip-primary);
	background: var(--ip-bg-alt);
}
.nav-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	background: #fff;
	border: 1px solid var(--ip-border);
	border-radius: var(--ip-radius-sm);
	box-shadow: var(--ip-shadow);
	padding: 10px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all var(--ip-transition);
	list-style: none;
	margin: 0;
}
.nav-menu li { position: relative; }
.nav-menu li:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.nav-menu .sub-menu a {
	display: block;
	padding: 9px 12px;
	font-size: 0.9rem;
	border-radius: var(--ip-radius-sm);
	color: var(--ip-text);
}
.nav-menu .sub-menu a:hover {
	background: var(--ip-bg-alt);
	color: var(--ip-primary);
}
.nav-menu .menu-item-has-children > a::after {
	content: "▾";
	font-size: 0.7em;
	margin-left: 6px;
	opacity: 0.6;
}
.nav-cta { margin-left: 6px; }

/* Hamburger ------------------------------------------------------- */
.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	background: transparent;
	border: 1px solid var(--ip-border);
	border-radius: var(--ip-radius-sm);
	cursor: pointer;
	padding: 10px;
}
.menu-toggle span {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--ip-primary-dark);
	border-radius: 2px;
	transition: all var(--ip-transition);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer ---------------------------------------------- */
.mobile-nav {
	position: fixed;
	top: 0;
	right: -100%;
	width: min(86vw, 380px);
	height: 100vh;
	background: #fff;
	box-shadow: -20px 0 60px rgba(0, 0, 0, 0.2);
	z-index: 1100;
	transition: right 0.35s ease;
	overflow-y: auto;
	padding: 80px 24px 40px;
}
.mobile-nav.is-open { right: 0; }
.mobile-nav .menu { list-style: none; padding: 0; margin: 0; }
.mobile-nav .menu a {
	display: block;
	padding: 14px 4px;
	font-family: var(--ip-font-head);
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--ip-text);
	border-bottom: 1px solid var(--ip-border);
}
.mobile-nav .menu a:hover { color: var(--ip-primary); }
.mobile-nav .sub-menu { list-style: none; padding-left: 16px; margin: 0; }
.nav-overlay {
	position: fixed;
	inset: 0;
	background: rgba(26, 19, 48, 0.5);
	z-index: 1050;
	opacity: 0;
	visibility: hidden;
	transition: all var(--ip-transition);
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }
.mobile-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 42px;
	height: 42px;
	border: 1px solid var(--ip-border);
	background: #fff;
	border-radius: 50%;
	font-size: 1.2rem;
	cursor: pointer;
}

/* Hero ------------------------------------------------------------ */
.hero {
	position: relative;
	background: radial-gradient(1200px 600px at 80% -10%, rgba(123, 45, 158, 0.35), transparent),
		linear-gradient(135deg, #2a0f47 0%, #5b1a8c 55%, #7b2d9e 100%);
	color: #fff;
	overflow: hidden;
	padding: 110px 0 120px;
}
.hero::before {
	content: "";
	position: absolute;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(0, 181, 165, 0.5), transparent 70%);
	top: -120px;
	left: -120px;
	filter: blur(20px);
}
.hero::after {
	content: "";
	position: absolute;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
	bottom: -140px;
	right: 8%;
}
.hero .ip-container { position: relative; z-index: 2; }
.hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.25);
	padding: 8px 18px;
	border-radius: 999px;
	font-family: var(--ip-font-head);
	font-weight: 600;
	font-size: 0.82rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 26px;
}
.hero h1 {
	color: #fff;
	max-width: 880px;
	margin-bottom: 22px;
}
.hero__lead {
	font-size: 1.2rem;
	max-width: 620px;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero search box ------------------------------------------------- */
.hero-search {
	margin-top: 44px;
	background: #fff;
	border-radius: var(--ip-radius);
	padding: 10px;
	box-shadow: var(--ip-shadow-hover);
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	max-width: 680px;
}
.hero-search input[type="search"],
.hero-search input[type="text"] {
	flex: 1;
	min-width: 200px;
	border: none;
	padding: 14px 18px;
	font-size: 1rem;
	color: var(--ip-text);
	background: transparent;
	font-family: var(--ip-font);
}
.hero-search input:focus { outline: none; }
.hero-search .btn { white-space: nowrap; }
.hero-search-wrap { width: 100%; }
.hero-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	margin-top: 48px;
}
.hero-stat .num {
	font-family: var(--ip-font-head);
	font-weight: 800;
	font-size: 2.4rem;
	color: #fff;
	line-height: 1;
}
.hero-stat .lbl {
	font-size: 0.92rem;
	color: rgba(255, 255, 255, 0.82);
	margin-top: 6px;
}

/* Mission band ---------------------------------------------------- */
.mission {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 60px;
	align-items: center;
}
.mission__media {
	position: relative;
	border-radius: var(--ip-radius);
	overflow: hidden;
	box-shadow: var(--ip-shadow);
	aspect-ratio: 4 / 3;
}
.mission__media img { width: 100%; height: 100%; object-fit: cover; }
.mission__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, transparent 50%, rgba(91, 26, 140, 0.35));
}
.mission .eyebrow { color: var(--ip-accent); }
.mission__quote {
	border-left: 4px solid var(--ip-accent);
	padding-left: 22px;
	font-family: var(--ip-font-head);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--ip-primary-dark);
	margin: 24px 0;
}

/* Pills / tabs ---------------------------------------------------- */
.spec-tabs {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 44px;
}
.spec-tab {
	background: #fff;
	border: 2px solid var(--ip-border);
	color: var(--ip-text-soft);
	padding: 10px 24px;
	border-radius: 999px;
	font-family: var(--ip-font-head);
	font-weight: 600;
	cursor: pointer;
	transition: all var(--ip-transition);
	font-size: 0.95rem;
}
.spec-tab:hover { border-color: var(--ip-primary-light); color: var(--ip-primary); }
.spec-tab.is-active {
	background: var(--ip-primary);
	border-color: var(--ip-primary);
	color: #fff;
}

/* Cards grid ------------------------------------------------------ */
.cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 28px;
}
.cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid--4 { grid-template-columns: repeat(4, 1fr); }
.spec-panel { display: none; }
.spec-panel.is-active { display: block; animation: ipFade 0.4s ease; }
@keyframes ipFade {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

.spec-card {
	background: #fff;
	border: 1px solid var(--ip-border);
	border-radius: var(--ip-radius);
	padding: 34px 30px;
	transition: all var(--ip-transition);
	height: 100%;
	display: flex;
	flex-direction: column;
}
.spec-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--ip-shadow-hover);
	border-color: transparent;
}
.spec-card__icon {
	width: 64px;
	height: 64px;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, rgba(91, 26, 140, 0.1), rgba(0, 181, 165, 0.12));
	margin-bottom: 22px;
	color: var(--ip-primary);
}
.spec-card__icon svg { width: 32px; height: 32px; }
.spec-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.spec-card p { color: var(--ip-text-soft); font-size: 0.96rem; margin-bottom: 18px; flex-grow: 1; }
.spec-card__link {
	font-family: var(--ip-font-head);
	font-weight: 600;
	color: var(--ip-primary);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.spec-card__link:hover { gap: 12px; color: var(--ip-accent); }

/* Services split -------------------------------------------------- */
.service-blocks {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}
.service-block {
	background: #fff;
	border-radius: var(--ip-radius);
	padding: 38px 32px;
	box-shadow: var(--ip-shadow);
	border-top: 5px solid var(--ip-primary);
	transition: all var(--ip-transition);
	height: 100%;
}
.service-block:hover { transform: translateY(-6px); box-shadow: var(--ip-shadow-hover); }
.service-block--accent { border-top-color: var(--ip-accent); }
.service-block h3 { font-size: 1.35rem; }
.service-block ul {
	list-style: none;
	padding: 0;
	margin: 0 0 20px;
}
.service-block ul li {
	padding: 10px 0 10px 30px;
	border-bottom: 1px dashed var(--ip-border);
	position: relative;
	color: var(--ip-text-soft);
}
.service-block ul li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 10px;
	width: 20px;
	height: 20px;
	background: var(--ip-primary);
	color: #fff;
	border-radius: 50%;
	font-size: 0.7rem;
	display: flex;
	align-items: center;
	justify-content: center;
}
.service-block--accent ul li::before { background: var(--ip-accent); }

/* Consulting feature row ----------------------------------------- */
.feature-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}
.feature-list {
	list-style: none;
	padding: 0;
	margin: 24px 0 32px;
	display: grid;
	gap: 16px;
}
.feature-list li {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}
.feature-list .feature-icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: rgba(0, 181, 165, 0.14);
	color: var(--ip-accent);
	display: flex;
	align-items: center;
	justify-content: center;
}
.feature-list h4 { margin: 0 0 4px; font-size: 1.05rem; }
.feature-list p { margin: 0; font-size: 0.92rem; color: var(--ip-text-soft); }
.feature-media {
	border-radius: var(--ip-radius);
	overflow: hidden;
	box-shadow: var(--ip-shadow);
}
.feature-media img { display: block; width: 100%; }

/* Jobs ----------------------------------------------------------- */
.job-card {
	background: #fff;
	border: 1px solid var(--ip-border);
	border-radius: var(--ip-radius);
	padding: 26px 28px;
	transition: all var(--ip-transition);
	display: flex;
	flex-direction: column;
	height: 100%;
}
.job-card:hover { box-shadow: var(--ip-shadow-hover); transform: translateY(-4px); border-color: transparent; }
.job-card__posted {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ip-accent);
	font-weight: 600;
	margin-bottom: 8px;
}
.job-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.job-card h3 a { color: var(--ip-primary-dark); }
.job-card h3 a:hover { color: var(--ip-primary); }
.job-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	font-size: 0.85rem;
	color: var(--ip-text-soft);
	margin-bottom: 14px;
}
.job-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-card__tag {
	display: inline-block;
	background: var(--ip-bg-alt);
	color: var(--ip-primary);
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 0.74rem;
	font-weight: 600;
	margin-top: auto;
}
.job-card__excerpt {
	font-size: 0.9rem;
	color: var(--ip-text-soft);
	margin-bottom: 16px;
}

/* News ----------------------------------------------------------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
	background: #fff;
	border: 1px solid var(--ip-border);
	border-radius: var(--ip-radius);
	overflow: hidden;
	transition: all var(--ip-transition);
	display: flex;
	flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--ip-shadow-hover); }
.news-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ip-bg-alt); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-card:hover .news-card__media img { transform: scale(1.06); }
.news-card__body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.news-card__date {
	font-size: 0.78rem;
	color: var(--ip-accent);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 8px;
}
.news-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.news-card h3 a { color: var(--ip-primary-dark); }
.news-card h3 a:hover { color: var(--ip-primary); }
.news-card p { font-size: 0.9rem; color: var(--ip-text-soft); margin-bottom: 14px; flex-grow: 1; }
.news-card .read-more {
	font-family: var(--ip-font-head);
	font-weight: 600;
	color: var(--ip-primary);
	font-size: 0.9rem;
}

/* Awards --------------------------------------------------------- */
.awards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 24px;
}
.award {
	background: #fff;
	border-radius: var(--ip-radius);
	padding: 30px 22px;
	text-align: center;
	border: 1px solid var(--ip-border);
	transition: all var(--ip-transition);
}
.award:hover { transform: translateY(-4px); box-shadow: var(--ip-shadow); }
.award__icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--ip-primary), var(--ip-primary-light));
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}
.award h4 { font-size: 1rem; margin-bottom: 4px; }
.award p { font-size: 0.82rem; color: var(--ip-text-soft); margin: 0; }

/* Testimonial ---------------------------------------------------- */
.testimonial {
	max-width: 880px;
	margin: 0 auto;
	text-align: center;
}
.testimonial__mark {
	font-family: var(--ip-font-head);
	font-size: 5rem;
	line-height: 0.6;
	color: var(--ip-accent);
	opacity: 0.4;
	margin-bottom: 10px;
}
.testimonial blockquote {
	margin: 0 0 22px;
	font-family: var(--ip-font-head);
	font-size: clamp(1.2rem, 2.4vw, 1.7rem);
	font-weight: 600;
	line-height: 1.5;
	color: #fff;
}
.testimonial cite {
	display: block;
	font-style: normal;
	font-weight: 600;
	color: var(--ip-accent);
	font-size: 0.95rem;
}
.testimonial cite span { display: block; font-weight: 400; opacity: 0.8; }

/* Locations ------------------------------------------------------ */
.locations-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.location-card {
	background: #fff;
	border-radius: var(--ip-radius);
	padding: 34px 30px;
	box-shadow: var(--ip-shadow);
	border-bottom: 4px solid var(--ip-primary);
}
.location-card:nth-child(2) { border-bottom-color: var(--ip-accent); }
.location-card:nth-child(3) { border-bottom-color: var(--ip-primary-light); }
.location-card h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.3rem;
}
.location-card .loc-icon { color: var(--ip-primary); }
.location-card a { word-break: break-word; }
.location-card p { font-size: 0.92rem; color: var(--ip-text-soft); margin: 6px 0; }
.location-card .loc-email,
.location-card .loc-phone {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--ip-text);
}

/* CTA banner ----------------------------------------------------- */
.cta-banner {
	background: linear-gradient(120deg, var(--ip-primary) 0%, var(--ip-primary-dark) 100%);
	color: #fff;
	border-radius: var(--ip-radius);
	padding: 56px;
	text-align: center;
	position: relative;
	overflow: hidden;
}
.cta-banner::before {
	content: "";
	position: absolute;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	top: -120px;
	right: -80px;
}
.cta-banner h2 { color: #fff; position: relative; }
.cta-banner p { color: rgba(255, 255, 255, 0.9); position: relative; max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-banner .hero__actions { justify-content: center; position: relative; }

/* Content / page layout ----------------------------------------- */
.site-content { padding: 60px 0; }
.site-content .ip-container.content-wrap {
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
}
.has-sidebar .content-wrap {
	grid-template-columns: minmax(0, 1fr) 320px;
}
.has-sidebar.no-active-sidebar .content-wrap { grid-template-columns: 1fr; }

#primary { min-width: 0; }
#secondary { min-width: 0; }

.page-header {
	background: linear-gradient(135deg, #2a0f47 0%, #5b1a8c 100%);
	color: #fff;
	padding: 70px 0;
	margin-bottom: 50px;
}
.page-header h1 { color: #fff; margin: 0; }
.page-header .breadcrumb,
.page-header .ip-breadcrumbs {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.8);
	margin-top: 10px;
}
.page-header .breadcrumb a,
.page-header .ip-breadcrumbs a { color: rgba(255, 255, 255, 0.9); }
.page-header .breadcrumb a:hover,
.page-header .ip-breadcrumbs a:hover { color: #fff; }

.entry-header { margin-bottom: 28px; }
.entry-title { margin-bottom: 12px; }
.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	font-size: 0.85rem;
	color: var(--ip-text-soft);
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--ip-border);
}
.entry-meta a { color: var(--ip-primary); }
.entry-meta span { display: inline-flex; align-items: center; gap: 6px; }
.entry-thumb {
	border-radius: var(--ip-radius);
	overflow: hidden;
	margin-bottom: 30px;
}
.entry-thumb img { width: 100%; display: block; }
.entry-content { font-size: 1.04rem; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content img { border-radius: var(--ip-radius-sm); }
.entry-content blockquote {
	border-left: 4px solid var(--ip-accent);
	margin: 1.5em 0;
	padding: 8px 24px;
	background: var(--ip-bg-alt);
	border-radius: 0 var(--ip-radius-sm) var(--ip-radius-sm) 0;
	font-style: italic;
	color: var(--ip-text-soft);
}
.entry-content ul,
.entry-content ol { padding-left: 24px; }
.entry-content li { margin-bottom: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.entry-content th,
.entry-content td { padding: 12px; border: 1px solid var(--ip-border); text-align: left; }
.entry-content th { background: var(--ip-bg-alt); }
.entry-footer {
	margin-top: 30px;
	padding-top: 24px;
	border-top: 1px solid var(--ip-border);
	font-size: 0.9rem;
	color: var(--ip-text-soft);
}
.tags-links a,
.cat-links a {
	display: inline-block;
	background: var(--ip-bg-alt);
	color: var(--ip-primary);
	padding: 4px 12px;
	border-radius: 999px;
	margin: 0 4px 4px 0;
	font-size: 0.8rem;
}
.post-navigation,
.posts-navigation {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	margin-top: 50px;
	padding-top: 30px;
	border-top: 1px solid var(--ip-border);
	flex-wrap: wrap;
}
.post-navigation a { font-family: var(--ip-font-head); font-weight: 600; }
.post-navigation .nav-subtitle {
	display: block;
	font-size: 0.78rem;
	color: var(--ip-text-soft);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* Posts list cards ---------------------------------------------- */
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.post-card {
	background: #fff;
	border: 1px solid var(--ip-border);
	border-radius: var(--ip-radius);
	overflow: hidden;
	transition: all var(--ip-transition);
	display: flex;
	flex-direction: column;
}
.post-card:hover { box-shadow: var(--ip-shadow-hover); transform: translateY(-5px); }
.post-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--ip-bg-alt); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.post-card .entry-meta { border: none; padding: 0; margin-bottom: 12px; }
.post-card h2 { font-size: 1.25rem; margin-bottom: 10px; }
.post-card h2 a { color: var(--ip-primary-dark); }
.post-card .read-more {
	margin-top: auto;
	font-family: var(--ip-font-head);
	font-weight: 600;
	color: var(--ip-primary);
}

/* Sidebar widgets ------------------------------------------------ */
.widget {
	margin-bottom: 36px;
}
.widget-title,
.widget .widget-title {
	font-size: 1.05rem;
	margin-bottom: 18px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--ip-primary);
	display: inline-block;
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: 10px 0; border-bottom: 1px solid var(--ip-border); }
.widget ul li a { color: var(--ip-text); }
.widget ul li a:hover { color: var(--ip-primary); }
.widget select { width: 100%; padding: 10px; border-radius: var(--ip-radius-sm); border: 1px solid var(--ip-border); font-family: var(--ip-font); }
.widget_search .search-form,
.search-form {
	display: flex;
	border: 1px solid var(--ip-border);
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
}
.widget_search .search-form input,
.search-form input[type="search"],
.search-form input[type="text"] {
	flex: 1;
	border: none;
	padding: 12px 18px;
	font-family: var(--ip-font);
}
.search-form button {
	background: var(--ip-primary);
	color: #fff;
	border: none;
	padding: 0 20px;
	cursor: pointer;
	font-size: 0.9rem;
}
.search-form button:hover { background: var(--ip-primary-dark); }

/* Pagination ----------------------------------------------------- */
.pagination,
.nav-links {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 50px;
}
.pagination .page-numbers,
.nav-links .page-numbers,
.nav-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--ip-border);
	border-radius: var(--ip-radius-sm);
	font-family: var(--ip-font-head);
	font-weight: 600;
	color: var(--ip-text);
	background: #fff;
}
.pagination .page-numbers:hover,
.nav-links a:hover { border-color: var(--ip-primary); color: var(--ip-primary); }
.pagination .page-numbers.current,
.nav-links .current {
	background: var(--ip-primary);
	color: #fff;
	border-color: var(--ip-primary);
}

/* Comments ------------------------------------------------------- */
.comments-area { margin-top: 50px; }
.comments-title { font-size: 1.4rem; margin-bottom: 24px; }
.comment-list { list-style: none; padding: 0; }
.comment { padding: 22px; border: 1px solid var(--ip-border); border-radius: var(--ip-radius); margin-bottom: 18px; }
.comment .children { list-style: none; padding-left: 24px; margin-top: 18px; }
.comment-body .comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.comment-author .avatar { border-radius: 50%; }
.comment-reply-link { font-family: var(--ip-font-head); font-weight: 600; font-size: 0.85rem; }
.comment-respond { margin-top: 30px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--ip-border);
	border-radius: var(--ip-radius-sm);
	font-family: var(--ip-font);
	font-size: 1rem;
	margin-bottom: 14px;
}
.comment-form textarea { resize: vertical; min-height: 140px; }
.comment-form .submit {
	background: var(--ip-primary);
	color: #fff;
	border: none;
	padding: 14px 30px;
	border-radius: 999px;
	font-family: var(--ip-font-head);
	font-weight: 600;
}
.comment-form .submit:hover { background: var(--ip-primary-dark); }
.comment-form label { font-weight: 600; font-size: 0.9rem; }

/* 404 ------------------------------------------------------------ */
.error-404 { text-align: center; padding: 80px 0; }
.error-404 .num {
	font-family: var(--ip-font-head);
	font-size: clamp(5rem, 18vw, 11rem);
	font-weight: 800;
	line-height: 1;
	background: linear-gradient(135deg, var(--ip-primary), var(--ip-accent));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Footer --------------------------------------------------------- */
.site-footer {
	background: var(--ip-bg-dark);
	color: rgba(255, 255, 255, 0.72);
	padding-top: 70px;
}
.footer-top {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 50px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand .site-title { color: #fff; font-size: 1.5rem; }
.footer-brand p { font-size: 0.92rem; max-width: 320px; }
.footer-col h3,
.footer-col .widget-title {
	color: #fff;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 18px;
	border-bottom: none;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a,
.footer-col a { color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; }
.footer-col ul li a:hover { color: var(--ip-accent); }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	transition: all var(--ip-transition);
}
.footer-social a:hover { background: var(--ip-primary); transform: translateY(-3px); }
.footer-newsletter {
	display: flex;
	gap: 8px;
	margin-top: 16px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 999px;
	overflow: hidden;
	padding: 4px;
}
.footer-newsletter input {
	flex: 1;
	background: transparent;
	border: none;
	color: #fff;
	padding: 8px 14px;
	font-family: var(--ip-font);
}
.footer-newsletter input::placeholder { color: rgba(255, 255, 255, 0.5); }
.footer-newsletter button {
	background: var(--ip-accent);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 8px 18px;
	cursor: pointer;
	font-weight: 600;
}
.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	padding: 22px 0;
	font-size: 0.85rem;
}
.footer-bottom .footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom .footer-links a { color: rgba(255, 255, 255, 0.6); }
.footer-bottom .footer-links a:hover { color: var(--ip-accent); }

/* Forms ---------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
	width: 100%;
	padding: 13px 16px;
	border: 1px solid var(--ip-border);
	border-radius: var(--ip-radius-sm);
	font-family: var(--ip-font);
	font-size: 1rem;
	color: var(--ip-text);
	background: #fff;
	transition: border var(--ip-transition);
}
input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--ip-primary);
	box-shadow: 0 0 0 3px rgba(91, 26, 140, 0.1);
}
textarea { resize: vertical; min-height: 130px; }
label { font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 6px; }
.ip-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ip-form-grid .full { grid-column: 1 / -1; }

/* WP blocks polish ---------------------------------------------- */
.wp-block-buttons { margin: 1.5em 0; }
.wp-block-quote { border-left: 4px solid var(--ip-accent); margin: 1.5em 0; padding: 8px 24px; }
.has-small-font-size { font-size: 0.9rem; }
.has-large-font-size { font-size: 1.3rem; }

/* Responsive embeds --------------------------------------------- */
.ip-embed,
.wp-block-embed {
	position: relative;
}
.ip-embed iframe { max-width: 100%; }

/* Back to top --------------------------------------------------- */
.back-to-top {
	position: fixed;
	bottom: 28px;
	right: 28px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--ip-primary);
	color: #fff;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: all var(--ip-transition);
	z-index: 900;
	box-shadow: var(--ip-shadow);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--ip-primary-dark); transform: translateY(-3px); }

/* Responsive ---------------------------------------------------- */
@media ( max-width: 1080px ) {
	.footer-top { grid-template-columns: 1fr 1fr; }
	.mission,
	.feature-row { grid-template-columns: 1fr; }
	.mission__media { max-width: 560px; }
	.cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media ( max-width: 920px ) {
	.menu-toggle { display: flex; }
	.main-navigation .nav-menu,
	.nav-cta { display: none; }
	.service-blocks,
	.locations-grid,
	.news-grid { grid-template-columns: 1fr; }
	.cards-grid--3 { grid-template-columns: repeat(2, 1fr); }
	.has-sidebar .content-wrap { grid-template-columns: 1fr; }
	#secondary { order: 2; }
	.hero-stats { gap: 24px; }
}

@media ( max-width: 640px ) {
	.section { padding: 60px 0; }
	.cards-grid,
	.cards-grid--2,
	.cards-grid--3,
	.cards-grid--4 { grid-template-columns: 1fr; }
	.footer-top { grid-template-columns: 1fr; }
	.footer-bottom { flex-direction: column; text-align: center; }
	.ip-container,
	.container { padding-left: 18px; padding-right: 18px; }
	.cta-banner { padding: 38px 24px; }
	.ip-form-grid { grid-template-columns: 1fr; }
	.hero { padding: 70px 0 80px; }
	.hero-stat .num { font-size: 1.8rem; }
	.top-bar { display: none; }
	.post-navigation { flex-direction: column; }
}

@media ( max-width: 400px ) {
	.hero-search { flex-direction: column; }
	.hero-search .btn { width: 100%; justify-content: center; }
}

/* ==================================================================
   iPharm Pro — Enhanced Responsive Layer (tablet + mobile)
   Designed for excellent rendering from 4" phones up to large tablets.
   ================================================================== */

/* Prevent accidental horizontal scroll on any device */
html, body { overflow-x: hidden; }

/* Fluid, tap-friendly touch targets on small screens */
@media (hover: none) and (pointer: coarse) {
	.btn, .ip-btn, .nav-menu > li > a,
	.spec-tab, .menu-toggle, .pagination .page-numbers,
	.nav-links .page-numbers, .nav-links a,
	.footer-social a, .back-to-top {
		min-height: 44px;
	}
	.nav-menu > li > a { padding: 12px 14px; }
}

/* ---- Large tablets & small laptops (≤1024px) ---- */
@media (max-width: 1024px) {
	:root { --ip-max: 100%; }
	.section { padding: 70px 0; }
	.ip-container, .container { padding-left: 32px; padding-right: 32px; }

	.cards-grid--3 { grid-template-columns: repeat(2, 1fr); }
	.cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.service-blocks { grid-template-columns: 1fr 1fr; }
	.locations-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
	.news-grid { grid-template-columns: repeat(2, 1fr); }

	.mission,
	.feature-row { gap: 40px; }

	/* Job single 2-col layout collapses */
	#job-layout { grid-template-columns: 1fr !important; }
	#job-layout .sidebar { order: 2; }

	.has-sidebar .content-wrap { grid-template-columns: minmax(0, 1fr) 280px; }

	.hero { padding: 90px 0 90px; }
	.hero-search { max-width: 600px; }
	.footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ---- Tablets portrait & large phones (≤920px) ---- */
@media (max-width: 920px) {
	/* Switch primary nav to hamburger drawer */
	.menu-toggle { display: flex; }
	.main-navigation > .nav-menu,
	.main-navigation > .nav-cta { display: none; }

	.site-branding .site-title { font-size: 1.4rem; }
	.site-logo img { max-height: 48px; }

	.has-sidebar .content-wrap { grid-template-columns: 1fr; }
	#secondary { order: 2; margin-top: 40px; }

	.service-blocks { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
	.news-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }

	.hero h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
	.hero__lead { font-size: 1.08rem; }
	.hero-stats { gap: 28px 36px; }

	.mission { grid-template-columns: 1fr; }
	.mission__media { max-width: 560px; margin-left: auto; margin-right: auto; }
	.feature-row { grid-template-columns: 1fr; }
	.feature-media { max-width: 560px; margin-left: auto; margin-right: auto; order: -1; }

	.page-header { padding: 56px 0; }

	.section-head { margin-bottom: 40px; }

	.cta-banner { padding: 44px 32px; }
}

/* ---- Phones (≤640px) ---- */
@media (max-width: 640px) {
	body { font-size: 16px; }
	.ip-container, .container { padding-left: 20px; padding-right: 20px; }
	.section { padding: 54px 0; }
	.section--tight { padding: 40px 0; }

	h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
	h2 { font-size: clamp(1.4rem, 6vw, 1.8rem); }

	.cards-grid,
	.cards-grid--2,
	.cards-grid--3,
	.cards-grid--4 { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
	.spec-card, .service-block, .location-card { padding: 26px 22px; }

	/* Top bar hidden on phones to save vertical space */
	.top-bar { display: none; }

	/* Header tighter */
	.header-inner { padding: 12px 0; gap: 12px; }
	.site-logo img { max-height: 42px; }
	.site-branding .site-title { font-size: 1.25rem; }
	.site-description { display: none; }
	.menu-toggle { width: 40px; height: 40px; }

	/* Hero */
	.hero { padding: 60px 0 70px; }
	.hero__eyebrow { font-size: 0.74rem; padding: 7px 14px; }
	.hero h1 { font-size: clamp(1.7rem, 9vw, 2.2rem); }
	.hero__lead { font-size: 1rem; }
	.hero__actions { flex-direction: column; align-items: stretch; }
	.hero__actions .btn { justify-content: center; width: 100%; }
	.hero-search {
		flex-direction: column;
		padding: 8px;
		gap: 8px;
		max-width: 100%;
	}
	.hero-search input[type="search"],
	.hero-search input[type="text"] { padding: 14px 14px; text-align: left; }
	.hero-search .btn { width: 100%; justify-content: center; }
	.hero-stats { gap: 22px; justify-content: space-between; }
	.hero-stat { flex: 1 1 40%; min-width: 40%; }
	.hero-stat .num { font-size: 1.7rem; }
	.hero-stat .lbl { font-size: 0.82rem; }

	/* Section head */
	.section-head { margin-bottom: 34px; }
	.section-head .eyebrow { font-size: 0.72rem; }
	.section-head p { font-size: 0.98rem; }

	/* Specialism tabs wrap nicely */
	.spec-tabs { gap: 8px; margin-bottom: 32px; }
	.spec-tab { flex: 1 1 45%; text-align: center; padding: 12px 14px; font-size: 0.9rem; }

	/* Feature list icon sizing */
	.feature-list .feature-icon { width: 40px; height: 40px; }

	/* CTA banner */
	.cta-banner { padding: 36px 22px; border-radius: var(--ip-radius-sm); }
	.cta-banner .hero__actions { align-items: stretch; }

	/* News / job cards */
	.job-card, .news-card__body { padding: 22px 20px; }
	.news-card h3, .job-card h3 { font-size: 1.05rem; }

	/* Awards grid denser */
	.awards-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
	.award { padding: 22px 14px; }

	/* Page header */
	.page-header { padding: 44px 0; }
	.page-header h1 { font-size: clamp(1.6rem, 7vw, 2rem); }

	/* Pagination */
	.pagination .page-numbers,
	.nav-links .page-numbers,
	.nav-links a { min-width: 40px; height: 40px; padding: 0 12px; }

	/* Forms */
	.ip-form-grid { grid-template-columns: 1fr; }

	/* Footer */
	.site-footer { padding-top: 50px; }
	.footer-top { grid-template-columns: 1fr; gap: 32px; }
	.footer-bottom { flex-direction: column; text-align: center; gap: 14px; }
	.footer-bottom .footer-links { justify-content: center; }
	.footer-newsletter { flex-direction: column; border-radius: var(--ip-radius-sm); }
	.footer-newsletter button { width: 100%; padding: 12px; }

	/* Mobile drawer fills more of the screen */
	.mobile-nav { width: 88vw; }

	/* Back to top */
	.back-to-top { width: 44px; height: 44px; bottom: 18px; right: 18px; }

	/* Post navigation stacks */
	.post-navigation, .posts-navigation { flex-direction: column; gap: 18px; }
	.post-navigation .nav-previous,
	.post-navigation .nav-next { width: 100%; }

	/* Tables scroll horizontally instead of overflowing */
	.entry-content table { display: block; overflow-x: auto; white-space: nowrap; max-width: 100%; }
}

/* ---- Small phones (≤400px) ---- */
@media (max-width: 400px) {
	.ip-container, .container { padding-left: 16px; padding-right: 16px; }
	.section { padding: 44px 0; }
	.hero { padding: 50px 0 56px; }
	.hero-stat { flex: 1 1 100%; }
	.hero-stats { gap: 16px; }
	.awards-grid { grid-template-columns: 1fr; }
	.spec-tab { flex: 1 1 100%; }
	.cta-banner { padding: 30px 18px; }
	.cta-banner h2 { font-size: 1.3rem; }
	.error-404 .num { font-size: 6rem; }
}

/* ---- Landscape phones (short height) ---- */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
	.hero { padding: 50px 0; }
	.hero-stats { gap: 18px 28px; }
	.hero-stat .num { font-size: 1.5rem; }
	.mobile-nav { padding-top: 64px; }
}

/* ---- Print styles ---- */
@media print {
	.top-bar, .menu-toggle, .mobile-nav, .nav-overlay,
	.back-to-top, .site-header, .site-footer, .cta-banner { display: none !important; }
	body { color: #000; background: #fff; }
	a { color: #000; text-decoration: underline; }
	.section { padding: 20px 0; }
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

/* Large screens keep things centred */
@media (min-width: 1500px) {
	:root { --ip-max: 1320px; }
}

/* ==================================================================
   iPharm Pro — Pharmacy component styles
   (trust bar, process steps, opening hours, age gate, Rx upload, NAP)
   ================================================================== */

/* Trust badges bar (under hero) */
.trust-bar { background: #fff; border-bottom: 1px solid var(--ip-border); }
.trust-bar .ip-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	gap: 18px;
	padding-top: 22px;
	padding-bottom: 22px;
}
.trust-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--ip-font-head);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--ip-primary-dark);
}
.trust-badge__icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(91,26,140,.1), rgba(0,181,165,.12));
	color: var(--ip-primary);
	display: flex;
	align-items: center;
	justify-content: center;
}
.trust-badge__icon svg { width: 20px; height: 20px; }

/* Prescription process steps */
.process-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	counter-reset: step;
}
.process-step {
	background: #fff;
	border: 1px solid var(--ip-border);
	border-radius: var(--ip-radius);
	padding: 40px 30px 30px;
	text-align: center;
	position: relative;
	transition: all var(--ip-transition);
}
.process-step:hover { transform: translateY(-6px); box-shadow: var(--ip-shadow-hover); }
.process-step__num {
	position: absolute;
	top: -20px;
	left: 50%;
	transform: translateX(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--ip-accent);
	color: #fff;
	font-family: var(--ip-font-head);
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	box-shadow: 0 6px 16px rgba(0,181,165,.4);
}
.process-step__icon {
	width: 64px;
	height: 64px;
	margin: 12px auto 18px;
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(91,26,140,.1), rgba(0,181,165,.12));
	color: var(--ip-primary);
	display: flex;
	align-items: center;
	justify-content: center;
}
.process-step__icon svg { width: 32px; height: 32px; }
.process-step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.process-step p { font-size: 0.95rem; color: var(--ip-text-soft); margin: 0; }

/* Opening hours list */
.opening-hours {
	margin-top: 26px;
	background: #fff;
	border: 1px solid var(--ip-border);
	border-radius: var(--ip-radius);
	padding: 18px 22px;
}
.opening-hours h4 { margin: 0 0 10px; font-size: 1rem; }
.opening-hours ul { list-style: none; padding: 0; margin: 0; }
.opening-hours li {
	display: flex;
	justify-content: space-between;
	padding: 7px 0;
	border-bottom: 1px dashed var(--ip-border);
	font-size: 0.92rem;
}
.opening-hours li:last-child { border-bottom: none; }
.opening-hours li span:last-child { font-weight: 600; color: var(--ip-primary-dark); }

/* Pharmacy map */
.pharmacy-map { border-radius: var(--ip-radius); overflow: hidden; box-shadow: var(--ip-shadow); min-height: 360px; }
.pharmacy-map iframe { display: block; }

/* Footer NAP block */
.footer-nap { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-nap .nap-line { font-size: 0.9rem; margin: 0 0 8px; color: rgba(255,255,255,.78); }
.footer-nap .nap-line a { color: rgba(255,255,255,.78); }
.footer-nap .nap-line a:hover { color: var(--ip-accent); }

/* Age verification gate */
.age-gate {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(26,19,48,.85);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.age-gate__card {
	background: #fff;
	border-radius: var(--ip-radius);
	max-width: 460px;
	width: 100%;
	padding: 40px 36px;
	text-align: center;
	box-shadow: 0 30px 80px rgba(0,0,0,.4);
	animation: ipFade .35s ease;
}
.age-gate__logo { margin-bottom: 18px; }
.age-gate__brand { font-family: var(--ip-font-head); font-weight: 800; font-size: 1.5rem; color: var(--ip-primary-dark); }
.age-gate__title { font-size: 1.5rem; margin-bottom: 12px; }
.age-gate__message { color: var(--ip-text-soft); font-size: 0.98rem; margin-bottom: 24px; }
.age-gate__actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.age-gate__actions .btn { justify-content: center; width: 100%; }
.age-gate__legal { font-size: 0.78rem; color: var(--ip-text-soft); margin: 0; }

/* Prescription upload (WooCommerce checkout) */
.ipharm-prescription-wrap {
	background: var(--ip-bg-alt);
	border: 1px solid var(--ip-border);
	border-left: 4px solid var(--ip-accent);
	border-radius: var(--ip-radius);
	padding: 24px;
	margin-bottom: 24px;
}
.ipharm-prescription-wrap h3 { margin: 0 0 6px; }
.ipharm-help { color: var(--ip-text-soft); font-size: 0.9rem; margin-bottom: 16px; }
.ipharm-upload-label {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 28px;
	border: 2px dashed var(--ip-border);
	border-radius: var(--ip-radius);
	background: #fff;
	text-align: center;
	font-family: var(--ip-font-head);
	font-weight: 600;
	color: var(--ip-primary);
	cursor: pointer;
	transition: all var(--ip-transition);
}
.ipharm-upload-label:hover { border-color: var(--ip-accent); background: #fcfcfe; }
.ipharm-upload-label svg { width: 30px; height: 30px; }
.ipharm-upload-label input[type="file"] { margin-top: 6px; }
.ipharm-upload-filename { font-size: 0.85rem; color: var(--ip-text-soft); margin: 8px 0 0; }

/* Responsive — pharmacy components */
@media (max-width: 920px) {
	.process-steps { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
	.pharmacy-map { min-height: 300px; }
}
@media (max-width: 640px) {
	.trust-bar .ip-container { gap: 14px; }
	.trust-badge { flex: 1 1 40%; justify-content: center; font-size: 0.86rem; }
	.trust-badge__icon { width: 34px; height: 34px; }
	.age-gate__card { padding: 30px 22px; }
	.age-gate__title { font-size: 1.3rem; }
	.pharmacy-map { min-height: 260px; }
}
