/* ============================================================
   Medical Clinic — main.css
   Tokens measured from Enfold Medical demo:
   blue #40A8E4 · ink #444 · light #FCFCFC · Open Sans 400/600
   ============================================================ */
@font-face {
	font-family: 'Open Sans';
	src: url('../fonts/open-sans-400.woff2') format('woff2');
	font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'Open Sans';
	src: url('../fonts/open-sans-600.woff2') format('woff2');
	font-weight: 600; font-style: normal; font-display: swap;
}

:root {
	--blue: #40A8E4;
	--blue-dark: #2E92CC;
	--ink: #444444;
	--muted: #8f8f8f;
	--light: #FCFCFC;
	--light2: #F8F8F8;
	--line: #e8e8e8;
	--topbar-h: 30px;
	--sans: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.75;
	color: var(--ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; color: var(--ink); line-height: 1.25; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.container { max-width: 1210px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 900px; }
.center { text-align: center; }
.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden;
	padding: 0; position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; position: fixed !important;
	left: 16px; top: 12px; z-index: 100000; background: #222; color: #fff; padding: 10px 18px;
}

/* Buttons — square corners, Enfold Medical style */
.btn {
	display: inline-block;
	background: var(--blue);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 15px 22px;
	border: 2px solid var(--blue);
	border-radius: 0;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.btn-outline { background: transparent; color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.text-link { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.text-link:hover { color: var(--blue-dark); }

/* Top bar */
.top-bar { background: var(--blue); color: #fff; font-size: 12px; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; height: var(--topbar-h); }
.top-phone { opacity: .95; }
.top-links { display: flex; gap: 22px; }
.top-links a { color: rgba(255,255,255,.92); font-size: 12px; }
.top-links a:hover { color: #fff; }

/* Header */
.site-header { background: #fff; }
.header-main {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding: 22px 24px;
}
.brand img { height: 50px; width: auto; justify-self: start; }
.header-social { justify-self: end; display: flex; gap: 14px; }
.header-social svg { width: 16px; height: 16px; fill: #b5b5b5; transition: fill .2s; }
.header-social a:hover svg { fill: var(--blue); }

/* Menu bar */
.menu-bar { background: var(--light); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.site-nav ul { display: flex; justify-content: center; flex-wrap: wrap; }
.site-nav a {
	display: block;
	padding: 18px 26px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--ink);
	transition: color .2s, background-color .2s;
}
.site-nav li.has-sub { position: relative; }
.site-nav li.has-sub > a::after {
	content: "";
	display: inline-block;
	margin-left: 8px;
	border: 4px solid transparent;
	border-top-color: currentColor;
	transform: translateY(3px);
}
.site-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: 0 8px 22px rgba(0,0,0,.08);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all .25s ease;
	z-index: 60;
}
.site-nav li.has-sub:hover .sub-menu,
.site-nav li.has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-menu a { padding: 11px 18px; font-weight: 400; }
.site-nav .sub-menu li + li a { border-top: 1px solid var(--line); }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current-page-ancestor > a { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; justify-self: start; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--blue); margin: 5px 0; }

/* Hero slider */
.hero-slider { position: relative; height: 620px; overflow: hidden; }
.slide {
	position: absolute; inset: 0;
	background-size: cover;
	background-position: center right;
	opacity: 0;
	transition: opacity .8s ease;
}
.slide.is-active { opacity: 1; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.55) 45%, rgba(255,255,255,0) 75%); }
.slide-caption { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; max-width: 1210px; }
.slide-caption h1 {
	font-size: clamp(30px, 4vw, 44px);
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: .02em;
	color: var(--ink);
	max-width: 620px;
}
.slide-caption p { margin-top: 14px; font-size: 19px; color: var(--ink); max-width: 480px; }
.slide-buttons { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.slider-arrow {
	position: absolute; top: 50%; transform: translateY(-50%);
	z-index: 5;
	background: rgba(0,0,0,.25); color: #fff; border: 0;
	width: 46px; height: 46px; font-size: 26px; line-height: 1; cursor: pointer;
	transition: background-color .2s;
}
.slider-arrow:hover { background: var(--blue); }
.slider-arrow.prev { left: 0; }
.slider-arrow.next { right: 0; }
.slider-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.slider-dots button { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.slider-dots button.is-active { background: #fff; }

/* Blue icon strip */
.icon-strip { background: var(--blue); color: #fff; padding: 44px 0; }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.strip-item { display: flex; gap: 20px; align-items: flex-start; }
.strip-icon {
	flex: 0 0 auto;
	width: 58px; height: 58px; border-radius: 50%;
	background: rgba(255,255,255,.18);
	display: inline-flex; align-items: center; justify-content: center;
}
.strip-icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.strip-item h4 { color: #fff; font-size: 17px; }
.strip-item p { color: rgba(255,255,255,.85); font-size: 14px; margin: 6px 0 8px; }
.strip-link { color: #fff; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid rgba(255,255,255,.6); }
.strip-link:hover { border-color: #fff; }

/* Sections */
.section { padding: 90px 0; }
.bg-white { background: #fff; }
.bg-light { background: var(--light2); }
.eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); margin-bottom: 10px; }
h2 { font-size: clamp(26px, 3vw, 34px); }
.section .split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.split + .split-second { margin-top: 90px; }
.split-media img { width: 100%; height: 420px; object-fit: cover; }
.lead { font-size: 19px; color: var(--muted); }
.heading-center { text-align: center; margin-bottom: 60px; }
.center-heading { text-align: center; }
.center-sub { text-align: center; color: var(--muted); margin-top: 12px; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px; }
.feature-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 64px; height: 64px; border-radius: 50%;
	background: rgba(64,168,228,.12);
	margin-bottom: 20px;
}
.feature-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 17px; margin-bottom: 10px; }
.feature p { font-size: 14.5px; color: var(--muted); }

/* Stats */
.stats-band { background: var(--blue); color: #fff; padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stats-band strong { display: block; font-size: clamp(28px, 3vw, 42px); font-weight: 600; }
.stats-band span { font-size: 14px; opacity: .9; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.info-card {
	background: var(--light2);
	border: 1px solid var(--line);
	padding: 40px 34px;
	text-align: center;
}
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: var(--blue); margin-bottom: 18px; }
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.info-card h4 { font-size: 17px; margin-bottom: 10px; }
.info-card p { font-size: 14px; color: var(--muted); margin-bottom: 18px; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: #fff; border: 1px solid var(--line); }
.news-card img { width: 100%; height: 220px; object-fit: cover; }
.news-noimg { display: block; height: 220px; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.news-body { padding: 26px 28px 30px; }
.news-date { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.news-card h3 { font-size: 18px; margin: 8px 0 10px; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--blue); }
.news-card p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }

/* Title bar (subpages) */
.title-bar { background: var(--light); border-bottom: 1px solid var(--line); padding: 40px 0; }
.title-bar h1 { font-size: clamp(26px, 3vw, 34px); text-transform: uppercase; font-weight: 300; }
.title-bar p { color: var(--muted); margin-top: 6px; }

/* Departments */
.dept-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.dept-flip .dept-media { order: 2; }
.dept-media img { width: 100%; height: 380px; object-fit: cover; }
.dept-text h2 { margin-bottom: 16px; }
.dept-sub { color: var(--muted); margin: 12px 0 26px; }
.cta-line { font-size: clamp(20px, 2.4vw, 28px); color: var(--muted); margin-top: 10px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

/* Pricing */
.price-list { margin: 44px 0; border-top: 2px solid var(--blue); }
.price-row {
	display: flex; justify-content: space-between; align-items: center; gap: 20px;
	padding: 22px 6px; border-bottom: 1px solid var(--line);
}
.price-row h4 { font-size: 17px; }
.price-row p { font-size: 14px; color: var(--muted); }
.price-time { font-size: 14px; font-weight: 600; color: var(--blue); white-space: nowrap; }

/* Contact */
.contact-split { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(44px, 6vw, 96px); }
.med-form p { margin-bottom: 18px; }
.med-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.med-form input, .med-form select, .med-form textarea {
	width: 100%; padding: 12px 15px;
	border: 1px solid #d8d8d8; border-radius: 0;
	font-family: var(--sans); font-size: 15px; color: var(--ink);
	background: #fff;
}
.med-form input:focus, .med-form select:focus, .med-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(64,168,228,.15); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { padding: 15px 20px; margin-bottom: 24px; font-weight: 600; }
.form-ok { background: #EDF5EC; color: #2E5B2A; }
.form-err { background: #F9ECE8; color: #8C3117; }
.hp-field { position: absolute !important; left: -9999px !important; }
.info-block { margin-bottom: 26px; }
.info-label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.info-block h4 { font-size: 17px; font-weight: 400; margin-top: 4px; }
.info-block a { color: var(--ink); }
.info-block a:hover { color: var(--blue); }
.contact-photo { margin-top: 10px; width: 100%; height: 220px; object-fit: cover; }

/* Footer */
.site-footer { background: var(--light); border-top: 1px solid var(--line); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 50px; padding-bottom: 60px; }
.site-footer h3 { font-size: 17px; margin-bottom: 14px; }
.site-footer p { font-size: 14.5px; color: var(--muted); margin-bottom: 12px; }
.footer-base { background: #fff; border-top: 1px solid var(--line); padding: 20px 0; }
.footer-base-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-base p { font-size: 13px; color: var(--muted); }

/* Responsive */
@media (max-width: 1100px) {
	.feature-grid { grid-template-columns: repeat(2, 1fr); }
	.strip-grid { grid-template-columns: 1fr; gap: 26px; }
	.split, .dept-split, .contact-split { grid-template-columns: 1fr; }
	.dept-flip .dept-media { order: 0; }
	.split-media img, .dept-media img { height: 340px; }
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
	.section { padding: 64px 0; }
	.hero-slider { height: 480px; }
	.card-grid, .news-grid, .form-row { grid-template-columns: 1fr; }
	.header-main { grid-template-columns: auto 1fr; }
	.nav-toggle { display: block; }
	.brand { justify-self: center; }
	.header-social { display: none; }
	.nav-toggle { display: block; }
	.menu-bar { display: none; }
	.menu-bar.open { display: block; }
	.site-nav ul { flex-direction: column; }
	.site-nav a { padding: 13px 6px; }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; }
	.top-bar-inner { justify-content: center; }
	.top-links { display: none; }
}
