/*
 * ENDODOC ScopeCare — "Clinical Light" palette (v1.3.0)
 * Loaded after app.css and theme.css. Re-themes the whole site from the
 * previous dark navy/gold look to a bright, hospital-grade blue/teal look.
 * Animations, the 3D scope and every layout stay exactly as they were.
 *
 * Note: the old token names (--gold, --gradient-gold, ...) are kept so no
 * template has to change. "gold" now means the teal/medical-blue accent.
 */

:root {
	color-scheme: light;
	--radius: .85rem;

	/* Surfaces */
	--background: oklch(98.6% .006 230);
	--foreground: oklch(25% .05 255);
	--ink: oklch(95.4% .016 228);
	--card: oklch(100% 0 0);
	--card-foreground: oklch(25% .05 255);
	--popover: oklch(100% 0 0);
	--popover-foreground: oklch(25% .05 255);

	/* Brand */
	--primary: oklch(50% .15 252);
	--primary-glow: oklch(55% .15 248);
	--primary-foreground: oklch(99% .003 240);
	--secondary: oklch(95% .016 235);
	--secondary-foreground: oklch(28% .05 255);
	--muted: oklch(95.5% .012 235);
	--muted-foreground: oklch(46% .035 252);
	--accent: oklch(94% .028 215);
	--accent-foreground: oklch(28% .06 240);

	/* Accent (formerly gold) = clinical teal */
	--gold: oklch(55% .115 205);
	--gold-soft: oklch(40% .08 215);
	--gold-foreground: oklch(99.5% 0 0);
	--silver: oklch(36% .04 255);
	--success: oklch(60% .14 160);
	--warning: oklch(72% .15 70);
	--destructive: oklch(56% .21 25);
	--destructive-foreground: oklch(99% 0 0);

	--border: oklch(35% .06 250 / .13);
	--input: oklch(35% .06 250 / .2);
	--ring: oklch(55% .115 205);

	--sidebar: oklch(100% 0 0);
	--sidebar-foreground: oklch(25% .05 255);
	--sidebar-primary: oklch(50% .15 252);
	--sidebar-primary-foreground: oklch(99% 0 0);
	--sidebar-accent: oklch(95% .016 235);
	--sidebar-accent-foreground: oklch(25% .05 255);
	--sidebar-border: oklch(35% .06 250 / .13);
	--sidebar-ring: oklch(55% .115 205);

	/* Gradients */
	--gradient-gold: linear-gradient(120deg, oklch(50% .15 252), oklch(56% .12 210) 45%, oklch(62% .11 195) 70%, oklch(50% .15 252));
	--gradient-royal: linear-gradient(135deg, oklch(56% .14 240), oklch(46% .15 256));
	--gradient-night:
		radial-gradient(1100px 650px at 10% -10%, oklch(90% .05 235 / .7), transparent 60%),
		radial-gradient(900px 600px at 100% 15%, oklch(93% .045 195 / .6), transparent 60%),
		linear-gradient(180deg, oklch(98.8% .006 230), oklch(97.4% .01 228));
	--gradient-card: linear-gradient(160deg, oklch(100% 0 0 / .94), oklch(98.4% .008 228 / .88));
	--gradient-hero-fade: linear-gradient(180deg, oklch(98.6% .006 230 / .15) 0%, oklch(98.6% .006 230 / .35) 60%, oklch(98.6% .006 230) 100%);
	--gradient-hero-side: linear-gradient(90deg, oklch(98.6% .006 230 / .97) 0%, oklch(98.6% .006 230 / .88) 38%, oklch(98.6% .006 230 / .35) 70%, transparent 100%);

	/* Shadows */
	--shadow-gold: 0 12px 34px -14px oklch(50% .14 235 / .55);
	--shadow-royal: 0 18px 44px -20px oklch(46% .15 252 / .5);
	--shadow-card: 0 24px 48px -30px oklch(35% .08 250 / .35), 0 2px 6px -2px oklch(35% .08 250 / .08), inset 0 1px 0 oklch(100% 0 0 / .9);

	/* Type: clean clinical sans for headings instead of the luxury serif */
	--font-display: "Plus Jakarta Sans", "Manrope", ui-sans-serif, system-ui, sans-serif;
}

/* Dark "islands" — the photo captions, the top contact bar and the footer
   keep a deep surgical-navy look so the page has contrast and grounding. */
.ed-announcement,
footer,
figure.group {
	--background: oklch(22% .055 255);
	--foreground: oklch(97% .008 240);
	--ink: oklch(19% .05 255);
	--card: oklch(26% .055 255);
	--card-foreground: oklch(97% .008 240);
	--muted-foreground: oklch(80% .03 240);
	--border: oklch(90% .03 240 / .14);
	--input: oklch(90% .03 240 / .2);
	--gold: oklch(80% .1 200);
	--gold-soft: oklch(88% .06 200);
	--gold-foreground: oklch(20% .05 240);
	--silver: oklch(88% .015 250);
	--primary-glow: oklch(74% .12 235);
	--gradient-gold: linear-gradient(120deg, oklch(86% .08 200), oklch(76% .11 215) 45%, oklch(88% .07 195) 70%, oklch(74% .11 225));
	--gradient-card: linear-gradient(160deg, oklch(30% .06 255 / .9), oklch(24% .05 255 / .8));
	--shadow-card: 0 30px 60px -30px oklch(10% .03 255 / .7), inset 0 1px 0 oklch(100% 0 0 / .08);
	--gradient-hero-fade: linear-gradient(180deg, transparent 0%, oklch(18% .05 255 / .25) 45%, oklch(16% .05 255 / .88) 100%);
	/* Tailwind's --color-* aliases are resolved at :root, so re-point them here too */
	--color-background: var(--background);
	--color-foreground: var(--foreground);
	--color-gold: var(--gold);
	--color-border: var(--border);
	color: var(--foreground);
}

/* Base */
html { color-scheme: light; }
::selection { background: oklch(70% .11 205 / .3); }

h1, h2, h3, .font-display { letter-spacing: -.025em; }
h1 { line-height: 1.04 !important; }
/* Sans headings are wider than the old serif — scale the big ones slightly */
.ed-hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); font-weight: 700; }
h2.md\:text-6xl { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2.md\:text-5xl { font-size: clamp(2rem, 3.6vw, 3rem); }
h1 .italic, h2 .italic, h3 .italic { font-style: normal; }

.eyebrow { font-weight: 700; letter-spacing: .26em; }

/* Gradient text — keep it readable on white */
.text-gold, .hover\:text-gold:hover { -webkit-background-clip: text; background-clip: text; }

/* Subtle clinical grid on light background */
.grid-lines {
	background-image:
		linear-gradient(oklch(50% .12 245 / .06) 1px, transparent 1px),
		linear-gradient(90deg, oklch(50% .12 245 / .06) 1px, transparent 1px);
}
footer .grid-lines {
	background-image:
		linear-gradient(oklch(90% .05 240 / .05) 1px, transparent 1px),
		linear-gradient(90deg, oklch(90% .05 240 / .05) 1px, transparent 1px);
}

.gold-border:before {
	background: linear-gradient(140deg, oklch(60% .11 205 / .55), transparent 40% 60%, oklch(50% .15 252 / .45));
}

/* Glass cards become clean white "instrument tray" cards */
.glass {
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	backdrop-filter: blur(14px) saturate(160%);
}

/* Hero video: lighter, cooler, still visible on the right */
.ed-hero > video { filter: saturate(.85) brightness(1.08) hue-rotate(-8deg); }

/* Background decoration (floating tools / sparkles) toned for light page */
.animate-float-mid.bg-gold\/60 { background-color: oklch(55% .12 220 / .45); }

/* Brand logos: the supplied wordmarks are white — show them as crisp
   dark-slate marks on the light background */
.ed-orbit-monochrome { filter: brightness(0) saturate(100%); opacity: .82; }
.ed-orbit-card img { filter: brightness(0) saturate(100%); opacity: .82; }
.ed-brand-group img { filter: brightness(0) saturate(100%); opacity: .55 !important; transition: opacity .3s ease; }
.ed-brand-group img:hover { opacity: .9 !important; }
.ed-brand-logo--olympus { filter: brightness(0) saturate(100%); }

/* Process step bubbles */
.bg-ink.shadow-gold { background: oklch(100% 0 0); }

/* Size chips on the services page */
.bg-ink\/50.text-gold-soft { background: oklch(96% .02 215); border-color: oklch(55% .115 205 / .3); }

/* 3D badge */
.bg-ink\/60.text-gold { background: oklch(100% 0 0 / .85); box-shadow: 0 4px 14px -6px oklch(35% .08 250 / .3); }

/* Photo figures: dark caption gradient stays, image stays natural */
figure.group figcaption { text-shadow: 0 1px 12px oklch(10% .03 255 / .5); }

/* Top contact bar: surgical navy */
.ed-announcement {
	background: linear-gradient(90deg, oklch(36% .1 252), oklch(42% .1 225));
	color: oklch(97% .008 240);
	border-bottom: 0;
}
.ed-announcement svg { color: oklch(88% .08 195); }
.ed-announcement a:hover, .ed-announcement a:focus-visible { color: oklch(100% 0 0); }
.ed-announcement-email { border-inline-start-color: oklch(100% 0 0 / .25); }
.ed-announcement-message { color: oklch(90% .03 230); }
.ed-announcement-track { color: oklch(92% .07 190); }

/* Footer: deep navy band */
footer { background: linear-gradient(180deg, oklch(24% .06 255), oklch(19% .05 256)); border-top: 0; }
footer .text-muted-foreground { color: var(--muted-foreground); }

/* Forms on white */
.ed-panel input:not([type=checkbox]):not([type=submit]):not([type=hidden]),
.ed-panel textarea, .ed-chat input,
.ed-content input, .ed-content textarea,
main form input:not([type=checkbox]):not([type=submit]):not([type=hidden]),
main form textarea, main form select {
	background: oklch(100% 0 0);
	border-color: var(--input);
	color: var(--foreground);
}
main form input:focus, main form textarea:focus, main form select:focus,
.ed-panel input:focus, .ed-chat input:focus {
	outline: none;
	border-color: var(--gold);
	box-shadow: 0 0 0 3px oklch(55% .115 205 / .18);
}
::placeholder { color: oklch(55% .03 250); opacity: 1; }

/* Notices & support widget */
.ed-notice { background: oklch(100% 0 0 / .92); }
.ed-support-button { box-shadow: 0 8px 22px -8px oklch(35% .1 250 / .55); }
.ed-whatsapp { box-shadow: none; }
.ed-chat-button { background: var(--gradient-gold); background-size: 200%; }
.ed-chat-panel { box-shadow: 0 20px 50px -20px oklch(35% .08 250 / .45); }

/* Generic dark overlay utility used by the mobile menu backdrop */
.bg-black\/80 { background-color: oklch(25% .05 255 / .45); }

/* Numbers and captions that used the old serif */
.font-display { font-family: var(--font-display); letter-spacing: -.02em; }

/* Tracking banner photo: show the scopes clearly, fading into the white card */
.glass > img.object-cover.opacity-30 {
	opacity: .9;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
}

/* WordPress login form submit button styled like the theme buttons */
.ed-panel input[type=submit] {
	display: inline-flex; align-items: center; justify-content: center;
	height: 2.9rem; padding: 0 2rem; border-radius: 9999px; font-weight: 600;
	background: var(--gradient-gold); background-size: 200%;
	color: var(--gold-foreground); box-shadow: var(--shadow-gold);
	transition: filter .2s ease;
}
.ed-panel input[type=submit]:hover { filter: brightness(1.08); }
