/*
Theme Name: Dipak Raj
Theme URI: https://www.dipakraj.co.uk/
Author: Built for Mr Dipak Raj
Description: Website for Mr Dipak Raj, Senior Consultant Orthopaedic Surgeon. Includes editable clinics, fees, testimonials and an appointment enquiry form. No extra plugins are required.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: dipakraj
*/

:root {
	--ink: #17252d;
	--muted: #51636c;
	--navy: #12303f;
	--teal: #0e6370;
	--teal-dark: #0a4a54;
	--tint: #f0f5f4;
	--line: #d3dedd;
	--paper: #ffffff;
	--accent: #b0491b;
	--accent-dark: #8f3a13;
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--radius: 6px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { font-size: 112.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	line-height: 1.65;
}

img, iframe { max-width: 100%; }
img { height: auto; }

a { color: var(--teal); text-underline-offset: 0.15em; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid #f2a33a; outline-offset: 2px; }

h1, h2, h3 {
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.2;
	color: var(--navy);
	text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); margin: 0; }
h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin: 2em 0 0.5em; }
h3 { font-size: 1.15rem; margin: 1.6em 0 0.4em; }
p, ul, ol, table { margin: 0 0 1em; }

.wrap { width: min(100% - 2rem, 68rem); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2rem, 46rem); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 0.6rem 1rem; z-index: 10; }
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Buttons */
.btn {
	display: inline-block;
	padding: 0.6em 1.15em;
	border: 2px solid transparent;
	border-radius: var(--radius);
	font: inherit;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}
.btn--large { padding: 0.8em 1.5em; font-size: 1.05rem; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-dark); color: #fff; }
.btn--ghost { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn--ghost:hover { background: var(--teal); color: #fff; }
.btn--light { border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; color: var(--navy); }

/* Top strip and header */
.topbar { background: var(--navy); color: #dbe7ea; font-size: 0.85rem; }
.topbar__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1.5rem; padding-block: 0.45rem; }
.topbar__contact { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin-left: auto; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar .label { font-weight: 400; color: #a9c2c8; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.brand { text-decoration: none; display: block; }
.brand__name { display: block; font-family: var(--serif); font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 600; color: var(--navy); line-height: 1.15; }
.brand__role { display: block; font-size: 0.85rem; color: var(--muted); letter-spacing: 0.02em; }
.site-header__actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }

.nav-toggle {
	display: none;
	padding: 0.6em 1em;
	border: 2px solid var(--navy);
	border-radius: var(--radius);
	background: var(--paper);
	color: var(--navy);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.site-nav { background: var(--teal-dark); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.site-nav a { display: block; padding: 0.75rem 0.8rem; color: #fff; text-decoration: none; font-size: 0.86rem; font-weight: 600; }
.site-nav li:first-child a { padding-left: 0; }
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-page-ancestor > a { background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 -3px 0 #fff; }
.site-nav li:first-child a:hover,
.site-nav li:first-child.current-menu-item > a { padding-left: 0.8rem; margin-left: -0.8rem; }

@media (max-width: 60rem) {
	.nav-toggle { display: inline-block; }
	.site-nav { display: none; }
	.site-nav.is-open { display: block; }
	.site-nav ul { display: block; padding-block: 0.4rem; }
	.site-nav a,
	.site-nav li:first-child a { padding: 0.8rem 0.5rem; margin: 0; font-size: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
	.topbar__focus { display: none; }
	.topbar__contact { margin-left: 0; }
}
@media (max-width: 34rem) {
	.site-header__in { flex-wrap: wrap; gap: 0.75rem; }
	.brand { flex: 1 1 100%; }
	.site-header__actions { flex: 1 1 100%; }
	.site-header__actions .btn,
	.nav-toggle { flex: 1; }
}

/* Home page hero */
.hero { background: linear-gradient(135deg, var(--navy), var(--teal-dark)); color: #fff; }
.hero__in { padding-block: clamp(2.5rem, 7vw, 4.5rem); display: grid; gap: 2rem; align-items: center; }
.hero--photo .hero__in { grid-template-columns: 1fr; }
@media (min-width: 48rem) {
	.hero--photo .hero__in { grid-template-columns: 1.5fr 1fr; }
}
.hero h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 3.4rem); }
.hero__role { font-family: var(--serif); font-size: clamp(1.15rem, 2.6vw, 1.5rem); margin: 0.3em 0 0.8em; }
.hero__focus { display: inline-block; border-left: 4px solid #e8a374; padding-left: 0.8rem; font-weight: 600; }
.hero__intro { max-width: 38rem; color: #dbe7ea; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0; }
.portrait { display: block; width: 100%; max-width: 22rem; border-radius: var(--radius); border: 6px solid #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.portrait--empty { aspect-ratio: 4 / 5; display: grid; place-content: center; text-align: center; background: #e6eeed; color: var(--muted); padding: 1rem; }

/* Sections */
.section { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section--tint { background: var(--tint); }
.section--form { background: var(--tint); border-top: 1px solid var(--line); }
.section__title { margin-top: 0; }
.page-head { background: var(--tint); border-bottom: 1px solid var(--line); padding-block: clamp(1.5rem, 4vw, 2.5rem); }
.crumb { margin: 0 0 0.4rem; font-size: 0.9rem; }

.prose > :first-child { margin-top: 0; }
.prose { max-width: 46rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.35em; }
.prose--home { max-width: none; }
.prose--home > p { max-width: 46rem; }
@media (min-width: 48rem) {
	.prose--home ul { columns: 2; column-gap: 3rem; }
	.prose--home li { break-inside: avoid; }
}

/* Draft notes waiting to be replaced */
.dr-todo { background: #fff3bf; border-left: 5px solid #d9a400; padding: 0.7rem 0.9rem; border-radius: 0 var(--radius) var(--radius) 0; }
.dr-todo::before { content: "Draft note: "; font-weight: 700; }

ul.plain { list-style: none; padding: 0; }
ul.plain li { margin-bottom: 0.35em; }
ul.ticks { list-style: none; padding: 0; }
ul.ticks li { padding-left: 1.5rem; position: relative; margin-bottom: 0.3em; }
ul.ticks li::before { content: ""; position: absolute; left: 0.15rem; top: 0.45em; width: 0.4rem; height: 0.75rem; border: solid var(--teal); border-width: 0 3px 3px 0; transform: rotate(45deg); }

/* Tables */
.table-scroll { overflow-x: auto; margin-bottom: 1.25rem; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; vertical-align: top; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); }
.schedule { background: var(--paper); border: 1px solid var(--line); min-width: 34rem; }
.schedule thead th { background: var(--navy); color: #fff; font-size: 0.85rem; letter-spacing: 0.03em; text-transform: uppercase; }
.times th { width: 45%; font-weight: 600; }

/* Fees */
.fees { display: grid; gap: 1.5rem; margin-bottom: 1.5rem; }
.fee-group { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem 0.5rem; }
.fee-group h2 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.fee-table th { font-weight: 400; }
.fee-table td { text-align: right; font-weight: 700; white-space: nowrap; color: var(--navy); }
.fee-table tr:last-child th, .fee-table tr:last-child td { border-bottom: 0; }

/* Clinics */
.clinics { display: grid; gap: 2rem; }
.clinic { display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.clinic__body { padding: 1.5rem; }
.clinic__name { margin-top: 0; }
.clinic__address { font-style: normal; color: var(--muted); }
.clinic__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.5rem 0 0; }
.clinic__map { min-height: 20rem; background: var(--tint); }
.clinic__map iframe { display: block; width: 100%; height: 100%; min-height: 20rem; border: 0; }
@media (min-width: 56rem) {
	.clinic { grid-template-columns: 1.1fr 1fr; }
}

/* Conditions */
.filter label { font-weight: 600; margin-right: 0.5rem; }
.filter input { width: min(100%, 24rem); }
.condition-groups { display: grid; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (min-width: 48rem) {
	.condition-groups { grid-template-columns: repeat(2, 1fr); }
}
.condition-group { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: var(--radius); padding: 1.25rem; }
.condition-group h2 { margin: 0 0 0.6rem; }
.condition-list { list-style: none; margin: 0; padding: 0; }
.condition-list li { padding: 0.55rem 0; border-top: 1px solid var(--line); }
.condition-list a { font-weight: 600; }
.condition-list span { display: block; font-size: 0.9rem; color: var(--muted); }

/* Testimonials */
.testimonials { display: grid; gap: 1.25rem; margin-bottom: 1.5rem; }
@media (min-width: 48rem) {
	.testimonials { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
}
.testimonial { margin: 0; background: var(--tint); border-left: 5px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.25rem; }
.testimonial blockquote { margin: 0; font-family: var(--serif); font-size: 1.05rem; }
.testimonial figcaption { font-weight: 700; color: var(--navy); }
.testimonial figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.doctify { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: var(--paper); }

/* About */
.about { display: grid; gap: 2rem; }
@media (min-width: 48rem) {
	.about--photo { grid-template-columns: 18rem 1fr; align-items: start; }
}
.about .portrait { box-shadow: none; border: 1px solid var(--line); }

/* Forms */
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem, 4vw, 1.75rem); }
.form__row { margin-bottom: 1rem; }
.form__pair { display: grid; gap: 0 1rem; }
@media (min-width: 40rem) {
	.form__pair { grid-template-columns: 1fr 1fr; }
}
label { font-weight: 600; }
.form__row label { display: block; margin-bottom: 0.25rem; }
.req { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
input[type="text"], input[type="tel"], input[type="email"], input[type="search"], select, textarea {
	width: 100%;
	padding: 0.65rem 0.75rem;
	border: 2px solid #9aabb0;
	border-radius: var(--radius);
	background: #fff;
	color: var(--ink);
	font: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: 3px solid rgba(14, 99, 112, 0.25); }
.form__check { display: flex; gap: 0.6rem; align-items: flex-start; }
.form__check input { width: 1.3rem; height: 1.3rem; margin-top: 0.2rem; flex-shrink: 0; }
.form__check label { font-weight: 400; }
.form__hp { position: absolute; left: -9999px; }
.hint { display: block; font-size: 0.88rem; color: var(--muted); margin-top: 0.3rem; }
.notice { padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.25rem; border-left: 6px solid; }
.notice--ok { background: #e4f3ea; border-color: #1f7a44; }
.notice--error { background: #fbe9e6; border-color: #b3261e; }
.contact-details { margin-top: 1.5rem; }

/* Call to action band */
.cta { background: var(--navy); color: #fff; }
.cta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 2rem; }
.cta h2 { color: #fff; margin: 0 0 0.3rem; font-size: 1.4rem; }
.cta p { margin: 0; color: #dbe7ea; }

/* Footer */
.site-footer { background: #0c222d; color: #c9d8dc; font-size: 0.92rem; }
.site-footer a { color: #fff; }
.site-footer__in { display: grid; gap: 2rem; padding-block: 2.5rem; }
@media (min-width: 48rem) {
	.site-footer__in { grid-template-columns: 1fr 1fr; }
}
.site-footer__name { font-family: var(--serif); font-size: 1.4rem; color: #fff; margin-bottom: 0; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; }
.site-footer__nav li { margin-bottom: 0.4rem; }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-block: 1.25rem; font-size: 0.85rem; }
.site-footer__legal ul { list-style: none; margin: 0 0 0.6rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.5rem; }
.site-footer__legal p { margin: 0; }

/* Cookie consent */
.cookie { position: fixed; inset: auto 1rem 1rem 1rem; max-width: 30rem; margin-left: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); padding: 1rem 1.2rem; font-size: 0.9rem; z-index: 20; }
.cookie p:last-child { margin: 0; }

@media print {
	.topbar, .site-nav, .site-header__actions, .cta, .site-footer__nav, .clinic__map, .cookie { display: none; }
}
