/* ============================================
   TUNBRIDGE WELLS CLINIC — ALTERNATIVE DESIGN
   Warm Minimalist Luxury
   ============================================ */

/* --- FONTS (Google Fonts) --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Raleway:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- DESIGN TOKENS --- */
:root {
	--cream: #D9E0E8;
	--cream-dark: #c9d2dc;
	--forest: #EFC5CE;
	--forest-light: #f4d5dc;
	--forest-pale: #faf0f2;
	--gold: #D6E6FD;
	--gold-light: #e5effd;
	--charcoal: #1a1a1a;
	--text-primary: #2a2a2a;
	--text-secondary: #6b6b6b;
	--text-muted: #999;
	--white: #ffffff;
	--border-light: rgba(0, 0, 0, 0.08);
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
	--shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
	--shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
	--font-display: 'Cormorant Garamond', Georgia, serif;
	--font-body: 'Raleway', sans-serif;
	--transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	--container: 1140px;
}

/* --- RESET --- */
*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	font-size: 1.25rem;
	color: var(--text-primary);
	line-height: 1.7;
	background: var(--cream);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	text-decoration: none;
	color: inherit;
	transition: var(--transition);
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.2;
}

/* --- CONTAINER --- */
.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

/* --- UTILITY --- */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

/* ========================================
   NAVIGATION
   ======================================== */
.site-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	padding: 20px 0;
	transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.site-nav.scrolled {
	background: rgba(214, 230, 253, 0.95);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	padding: 12px 0;
	box-shadow: 0 1px 20px rgba(0, 0, 0, 0.1);
}

.site-nav.nav-open {
	background: transparent !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	box-shadow: none !important;
}

.nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav-logo img {
	height: 50px;
	width: auto;
	transition: var(--transition);
}

.site-nav.scrolled .nav-logo img {
	height: 40px;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 36px;
	list-style: none;
}

.nav-links a {
	font-family: var(--font-body);
	font-size: 0.88rem;
	color: var(--white);
	letter-spacing: 0.5px;
	position: relative;
	padding-bottom: 2px;
}

.nav-links a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 1px;
	background: var(--gold);
	transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
	width: 100%;
}

.site-nav.scrolled .nav-links a {
	color: var(--text-primary);
}

.site-nav.scrolled .nav-links a::after {
	background: #b5566a;
}

.site-nav.scrolled .nav-links .nav-cta {
	border-color: #b5566a;
	color: #b5566a;
}

.site-nav.scrolled .nav-links .nav-cta:hover {
	background: #b5566a;
	color: var(--white);
}

.nav-links .nav-cta {
	border: 1px solid var(--gold);
	padding: 8px 24px;
	font-size: 0.82rem;
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: var(--transition);
}

.nav-links .nav-cta:hover {
	background: var(--gold);
	color: var(--white);
}

.nav-links .nav-cta::after {
	display: none;
}

/* Mobile nav toggle */
.nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
}

.nav-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--white);
	margin: 5px 0;
	transition: var(--transition);
}

.site-nav.scrolled .nav-toggle span {
	background: var(--text-primary);
}

.site-nav.nav-open .nav-toggle span {
	background: var(--text-primary);
}

/* ========================================
   HERO SECTION (Homepage)
   ======================================== */
.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	position: relative;
	overflow: hidden;
}

.hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		135deg,
		rgba(30, 50, 80, 0.85) 0%,
		rgba(26, 26, 26, 0.6) 100%
	);
	z-index: 1;
}

.hero-content {
	position: relative;
	z-index: 2;
	max-width: 650px;
	padding: 120px 0;
	text-align: center;
}

.hero-main-logo {
	max-width: 320px;
	height: auto;
	margin: 0 auto 32px;
	filter: brightness(0) invert(1);
}

.hero-eyebrow {
	font-family: var(--font-body);
	font-size: 0.78rem;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 24px;
	display: block;
}

.hero h1 {
	font-size: 3.8rem;
	color: var(--white);
	line-height: 1.1;
	margin-bottom: 28px;
}

.hero-desc {
	font-size: 1.05rem;
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.8;
	margin-bottom: 40px;
	max-width: 480px;
}

.hero-actions {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: center;
}

/* --- BUTTONS --- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-body);
	font-size: 0.85rem;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 14px 32px;
	border: none;
	cursor: pointer;
	transition: var(--transition);
}

.btn-primary {
	background: var(--gold);
	color: var(--charcoal);
}

.btn-primary:hover {
	background: var(--gold-light);
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(200, 169, 110, 0.3);
}

.btn-outline {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: var(--white);
}

.btn-outline:hover {
	border-color: var(--gold);
	color: var(--gold);
}

.btn-outline-dark {
	background: transparent;
	border: 1px solid #b5566a;
	color: #b5566a;
}

.btn-outline-dark:hover {
	background: #b5566a;
	color: var(--white);
}

/* Scroll indicator */
.hero-scroll {
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.7rem;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.hero-scroll-line {
	width: 1px;
	height: 40px;
	background: linear-gradient(to bottom, var(--gold), transparent);
	animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
	0%, 100% { opacity: 1; transform: scaleY(1); }
	50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ========================================
   SECTION STYLES
   ======================================== */
.section {
	padding: 100px 0;
}

.section-header {
	margin-bottom: 60px;
}

.section-eyebrow {
	font-family: var(--font-body);
	font-size: 0.75rem;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #4a7ab5;
	margin-bottom: 16px;
	display: block;
}

.section-title {
	font-size: 2.8rem;
	color: var(--text-primary);
	margin-bottom: 16px;
}

.section-subtitle {
	font-size: 1rem;
	color: var(--text-secondary);
	max-width: 550px;
	line-height: 1.8;
}

/* --- About / Intro Split --- */
.split-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: center;
}

.split-image {
	position: relative;
	overflow: hidden;
}

.split-image img {
	width: 100%;
	height: 500px;
	object-fit: cover;
}

.split-image-accent {
	position: absolute;
	top: -20px;
	left: -20px;
	width: 120px;
	height: 120px;
	border: 1px solid var(--gold);
	z-index: -1;
}

.split-text h2 {
	font-size: 2.4rem;
	margin-bottom: 24px;
	color: var(--text-primary);
}

.split-text p {
	font-size: 0.92rem;
	color: var(--text-secondary);
	line-height: 1.9;
	margin-bottom: 16px;
}

.split-text .highlight {
	color: #b5566a;
	font-weight: bold;
}

/* --- Doctor Bio Cards --- */
.bio-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
}

.bio-card {
	background: var(--white);
	padding: 48px;
	box-shadow: var(--shadow-sm);
	border-top: 3px solid var(--gold);
	transition: var(--transition);
}

.bio-card:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-4px);
}

.bio-photo {
	width: 100%;
	max-height: 350px;
	object-fit: cover;
	border-radius: 4px;
	margin-bottom: 20px;
}

.bio-card h3 {
	font-size: 1.6rem;
	margin-bottom: 20px;
	color: var(--forest);
}

.bio-card p {
	font-size: 0.88rem;
	color: var(--text-secondary);
	line-height: 1.8;
	margin-bottom: 12px;
}

.bio-interests {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--border-light);
}

.bio-interests h4 {
	font-family: var(--font-body);
	font-size: 0.78rem;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--gold);
	margin-bottom: 12px;
}

.bio-interests ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bio-interests li {
	font-size: 0.82rem;
	color: var(--text-secondary);
	background: var(--forest-pale);
	padding: 4px 14px;
	border-radius: 20px;
}

/* --- Services Preview --- */
.services-preview {
	background: var(--forest);
	color: var(--text-primary);
	position: relative;
	overflow: hidden;
}

.services-preview::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 600px;
	height: 600px;
	border: 1px solid rgba(74, 122, 181, 0.1);
	border-radius: 50%;
	pointer-events: none;
}

.services-preview .section-title {
	color: var(--text-primary);
}

.services-preview .section-subtitle {
	color: var(--text-secondary);
}

.service-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 50px;
}

.service-card {
	background: rgba(255, 255, 255, 0.35);
	border: 1px solid rgba(0, 0, 0, 0.08);
	padding: 36px 28px;
	transition: var(--transition);
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

.service-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: #4a7ab5;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s ease;
}

.service-card:hover::before {
	transform: scaleX(1);
}

.service-card:hover {
	background: rgba(255, 255, 255, 0.5);
	transform: translateY(-4px);
}

.service-card-number {
	font-family: var(--font-display);
	font-size: 2.5rem;
	color: #4a7ab5;
	opacity: 0.4;
	margin-bottom: 16px;
}

.service-card h3 {
	font-size: 1.3rem;
	color: var(--text-primary);
	margin-bottom: 12px;
}

.service-card p {
	font-size: 0.85rem;
	color: var(--text-secondary);
	line-height: 1.7;
}

.service-card-arrow {
	display: inline-block;
	margin-top: 20px;
	color: #b5566a;
	font-size: 1.2rem;
	transition: transform 0.3s ease;
}

.service-card:hover .service-card-arrow {
	transform: translateX(6px);
}

/* --- CTA Banner --- */
.cta-banner {
	background: var(--cream-dark);
	padding: 80px 0;
	text-align: center;
}

.cta-banner h2 {
	font-size: 2rem;
	margin-bottom: 12px;
	color: var(--text-primary);
}

.cta-banner p {
	font-size: 0.95rem;
	color: var(--text-secondary);
	margin-bottom: 32px;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
	background: var(--charcoal);
	color: rgba(255, 255, 255, 0.7);
	padding: 80px 0 40px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 50px;
	margin-bottom: 60px;
}

.footer-brand img {
	height: 80px;
	width: auto;
	margin-bottom: 20px;
	filter: brightness(0) invert(1);
}

.footer-brand p {
	font-size: 0.85rem;
	line-height: 1.7;
	max-width: 280px;
}

.footer-col h4 {
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--gold);
	margin-bottom: 20px;
}

.footer-col p,
.footer-col a {
	font-size: 0.85rem;
	line-height: 2;
	display: block;
}

.footer-col a:hover {
	color: var(--gold);
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.4);
}

.footer-accreditation img {
	height: 50px;
	width: auto;
	filter: brightness(0) invert(1);
	opacity: 0.5;
}

/* ========================================
   PAGE HERO (Inner Pages)
   ======================================== */
.page-hero {
	padding: 160px 0 80px;
	position: relative;
	overflow: hidden;
}

.page-hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.page-hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.page-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(26, 26, 26, 0.7) 0%,
		rgba(30, 50, 80, 0.6) 100%
	);
	z-index: 1;
}

.page-hero-content {
	position: relative;
	z-index: 2;
	text-align: center;
}

.page-hero h1 {
	font-size: 3.2rem;
	color: var(--white);
	margin-bottom: 16px;
}

.page-hero p {
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.75);
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.8;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
	.hero h1 {
		font-size: 3rem;
	}
	.section-title {
		font-size: 2.2rem;
	}
	.split-section {
		gap: 50px;
	}
}

@media (max-width: 768px) {
	.nav-links {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(214, 230, 253, 1);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 28px;
		z-index: 200;
	}

	.nav-links.open {
		display: flex;
	}

	.nav-links a {
		color: var(--text-primary) !important;
		font-size: 1.2rem;
	}

	.nav-links .nav-cta {
		border-color: #b5566a !important;
		color: #b5566a !important;
	}

	.nav-toggle {
		display: block;
		z-index: 201;
	}

	.hero h1 {
		font-size: 2.4rem;
	}

	.hero-content {
		padding: 140px 0 80px;
	}

	.split-section {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.split-image img {
		height: 350px;
	}

	.bio-grid {
		grid-template-columns: 1fr;
	}

	.service-cards {
		grid-template-columns: 1fr;
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 30px;
	}

	.section {
		padding: 70px 0;
	}

	.page-hero h1 {
		font-size: 2.4rem;
	}

	.hero-scroll {
		display: none;
	}
}

@media (max-width: 480px) {
	.hero h1 {
		font-size: 2rem;
	}

	.hero-actions {
		flex-direction: column;
		width: 100%;
	}

	.hero-actions .btn {
		width: 100%;
		justify-content: center;
	}

	.footer-grid {
		grid-template-columns: 1fr;
	}

	.section-title {
		font-size: 1.8rem;
	}
}
