/*
Theme Name:   Easy Dent
Theme URI:    https://easydent.example
Author:       Easy Dent
Description:  Front-end theme for the Easy Dent multi-tenant dental clinic SaaS platform. Provides the guest cost-estimate landing page, GPS clinic search, patient portal, and dentist dashboard shell. Pairs with the "Easy Dent Core" plugin. Per-clinic branding (logo/colors) is injected via CSS variables from wp_dc_clinics.colors_json.
Version:      1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain:  easy-dent-theme
*/

:root {
	--edc-primary: #1E9E97;      /* main teal — buttons, logo */
	--edc-primary-dark: #167A75; /* pressed / dark teal */
	--edc-bg-light: #E3F7F3;     /* mint background */
	--edc-bg-circle: #CDEFEA;    /* soft circle behind the logo */
	--edc-text-dark: #123B39;
	--edc-text-muted: #4C6E6B;
	--edc-white: #FFFFFF;
	--edc-radius-pill: 999px;
	--edc-radius-lg: 24px;
	--edc-font: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--edc-font);
	background: var(--edc-bg-light);
	color: var(--edc-text-dark);
	line-height: 1.55;
}

a { color: var(--edc-primary-dark); text-decoration: none; }

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

.edc-container {
	max-width: 480px;
	margin: 0 auto;
	padding: 24px 20px 60px;
}

/* Wider variants — same mobile base, scale up on tablet/laptop below */
.edc-container--form { max-width: 560px; }
.edc-container--wide { max-width: 900px; }

.edc-btn {
	display: block;
	width: 100%;
	padding: 16px 20px;
	background: var(--edc-primary);
	color: var(--edc-white);
	border: none;
	border-radius: var(--edc-radius-pill);
	font-size: 17px;
	font-weight: 700;
	text-align: center;
	cursor: pointer;
	transition: background .15s ease, transform .05s ease;
}
.edc-btn:hover { background: var(--edc-primary-dark); color: var(--edc-white); }
.edc-btn:active { transform: scale(.98); }

.edc-btn--outline {
	background: transparent;
	border: 2px solid var(--edc-primary);
	color: var(--edc-primary-dark);
}

.edc-btn--block + .edc-btn--block { margin-top: 16px; }

.edc-card {
	background: var(--edc-white);
	border-radius: var(--edc-radius-lg);
	padding: 20px;
	box-shadow: 0 4px 16px rgba(18, 59, 57, .06);
}

.edc-hero {
	text-align: center;
	padding: 48px 0 32px;
}

.edc-hero__circle {
	width: 260px;
	height: 260px;
	margin: 0 auto 24px;
	border-radius: 50%;
	background: var(--edc-bg-circle);
	display: flex;
	align-items: center;
	justify-content: center;
}

.edc-hero__tagline {
	color: var(--edc-text-muted);
	font-size: 16px;
	margin-top: 32px;
}

.edc-logo { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.edc-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.edc-logo__wordmark { font-size: 30px; font-weight: 800; color: var(--edc-primary); letter-spacing: -.5px; }

.edc-cta-stack { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }

/* ---------------------------------------------------------------------
 * Header + nav: hamburger on phones/tablets, full horizontal row on
 * laptop/desktop. .edc-header__nav is hidden off-canvas by default on
 * narrow screens and toggled open via header.php's small inline script.
 * ------------------------------------------------------------------- */
.edc-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	padding: 14px 20px;
	background: var(--edc-white);
	position: relative;
	gap: 10px;
}
.edc-header__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--edc-primary); }
.edc-header__brand img { width: 34px; height: 34px; object-fit: contain; }
.edc-header__brand a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.edc-header__brand .custom-logo-link img { max-height: 40px; width: auto; }

.edc-nav-toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 8px;
	background: transparent;
	border: none;
	cursor: pointer;
	order: 3;
}
.edc-nav-toggle span {
	display: block;
	height: 2px;
	background: var(--edc-primary-dark);
	border-radius: 2px;
	transition: transform .2s ease, opacity .2s ease;
}
.edc-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.edc-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.edc-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.edc-header__nav {
	order: 4;
	flex-basis: 100%;
	max-height: 0;
	overflow: hidden;
	transition: max-height .25s ease;
}
.edc-header__nav.is-open { max-height: 400px; border-top: 1px solid #EEF6F4; margin-top: 10px; }
.edc-header__nav ul { flex-direction: column; gap: 0; padding: 6px 0 4px; }
.edc-header__nav li { border-bottom: 1px solid #EEF6F4; }
.edc-header__nav li:last-child { border-bottom: none; }
.edc-header__nav a { display: block; padding: 12px 4px; }

.edc-footer {
	text-align: center;
	padding: 24px 20px;
	color: var(--edc-text-muted);
	font-size: 13px;
}

.edc-disclaimer {
	background: #FFF8E1;
	border: 1px solid #E9D89A;
	color: #7A5B00;
	border-radius: 12px;
	padding: 12px 14px;
	font-size: 13px;
	margin: 16px 0;
}

.edc-clinic-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding: 14px 0;
	border-bottom: 1px solid #EEF6F4;
}
.edc-clinic-item:last-child { border-bottom: none; }
.edc-clinic-item__distance { color: var(--edc-text-muted); font-size: 13px; }

.edc-timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--edc-bg-circle); }
.edc-timeline li { position: relative; padding: 4px 0 24px 24px; }
.edc-timeline li::before {
	content: '';
	position: absolute; left: -9px; top: 6px;
	width: 14px; height: 14px; border-radius: 50%;
	background: var(--edc-primary); border: 3px solid var(--edc-white);
}
.edc-timeline li.is-done::before { background: var(--edc-primary-dark); }
.edc-timeline li.is-upcoming::before { background: var(--edc-bg-circle); border-color: var(--edc-primary); }

/* =======================================================================
 * TABLET (>= 600px): more breathing room, nav still collapsible since
 * this theme targets touch devices up to a full-size tablet, header
 * gets its horizontal padding back, hero grows a little.
 * ===================================================================== */
@media (min-width: 600px) {
	.edc-container { max-width: 600px; padding: 32px 32px 72px; }
	.edc-container--form { max-width: 620px; }

	.edc-hero__circle { width: 300px; height: 300px; }
	.edc-logo__wordmark { font-size: 34px; }

	.edc-cta-stack { flex-direction: row; }
	.edc-cta-stack .edc-btn { width: auto; flex: 1; }

	.edc-header { padding: 16px 32px; }
}

/* =======================================================================
 * LAPTOP / DESKTOP (>= 1024px): nav goes back to a normal horizontal
 * row (hamburger hidden), containers widen further, wide layouts get
 * real breathing room.
 * ===================================================================== */
@media (min-width: 1024px) {
	.edc-container { max-width: 680px; padding: 40px 40px 90px; }
	.edc-container--form { max-width: 680px; }
	.edc-container--wide { max-width: 1100px; }

	.edc-hero { padding: 64px 0 40px; }
	.edc-hero__circle { width: 320px; height: 320px; }
	.edc-logo__wordmark { font-size: 38px; }
	.edc-hero__tagline { font-size: 18px; }

	.edc-header { padding: 18px 48px; }
	.edc-nav-toggle { display: none; }
	.edc-header__nav {
		order: 0;
		flex-basis: auto;
		max-height: none;
		overflow: visible;
	}
	.edc-header__nav ul { flex-direction: row; gap: 24px; padding: 0; }
	.edc-header__nav li { border-bottom: none; }
	.edc-header__nav a { padding: 6px 0; }

	.edc-card { padding: 28px; }
}
