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

:root {
	--green-color: #49a14d;
	--blue-color: #49a14d;
	--green-color2: #49a14d;
	--teal-color: #49a14d;
	--dark-color: #2c2c2c;
	--light-bg: #f5f5f5;
	--white: #ffffff;
	--sidebar-width: 280px;
}

html, body {
	height: 100%;
	margin: 0;
	padding: 0; 
	font-family: Montserrat,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";
	overflow-x: hidden;
	background-color: var(--white);
}

.no-scroll {
  overflow: hidden;
  padding-right: 17px;
}
@media (max-width: 768px) {
  .no-scroll { padding-right: 0; }
  html, body { overscroll-behavior-y: auto; -webkit-overflow-scrolling: touch; }
}

#backgroundCanvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1; 
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ===== DESKTOP SIDEBAR (default mode) ===== */
.sidebar {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: var(--sidebar-width);
	height: 100vh;
	background-color: var(--white);
	border-right: 1px solid #e0e0e0;
	z-index: 60;
	flex-direction: column;
	overflow-y: auto;
}

.sidebar-logo {
	padding: 30px 24px 20px 24px;
	border-bottom: 1px solid #eee;
}

.sidebar-logo img {
	width: 100%;
	height: auto;
	object-fit: contain;
	image-rendering: -webkit-optimize-contrast;
	image-rendering: crisp-edges;
}

.sidebar-nav {
	display: flex;
	flex-direction: column;
	padding: 20px 0;
}

.sidebar-item {
	display: block;
	padding: 12px 24px;
	color: var(--dark-color);
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	transition: background-color 0.15s, color 0.15s;
}

.sidebar-item:hover {
	background-color: #f5f5f5;
	color: var(--teal-color);
}

.sidebar-item.active-page {
	color: var(--teal-color);
	border-left: 3px solid var(--teal-color);
	padding-left: 21px;
	font-weight: 700;
}

/* Specialty panel in nav - mobile only */
.nav-specialty-panel{display:none;list-style:none;padding:0;margin:0}

/* ===== HORIZONTAL NAV (alt mode - hidden by default) ===== */
.horizontal-nav {
	display: none;
	position: relative;
	top: 0;
	left: 0;
	width: 100%;
	background-color: var(--white);
	border-bottom: 1px solid #e0e0e0;
	z-index: 60;
	padding: 0;
}

.horizontal-nav-inner {
	display: flex;
	align-items: center;
	padding: 12px 20px;
	gap: 8px;
	flex-wrap: wrap;
}

.horizontal-nav-logo {
	height: clamp(50px, -18px + 6.5vw, 120px);
	width: auto;
	object-fit: contain;
	margin-right: 16px;
	flex-shrink: 0;
}

.horizontal-nav-items {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 6px;
	align-items: center;
	flex: 1;
}

.horizontal-nav-item {
	display: inline-block;
	padding: 8px 14px 6px 0;
	color: var(--dark-color);
	text-decoration: none;
	font-size: clamp(13px, 9.45px + 0.581vw, 23px);
	font-weight: 500;
	line-height: 1.3;
	border-radius: 0;
	transition: color 0.15s;
	white-space: nowrap;
	text-underline-offset: 6px;
	text-decoration-thickness: 3px;
}

.horizontal-nav-item:hover {
	color: var(--teal-color);
	text-decoration: underline;
	text-decoration-color: var(--teal-color);
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}

.horizontal-nav-item.active-page {
	color: var(--teal-color);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: var(--teal-color);
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}

/* ===== MOBILE TOP BAR ===== */
.mobile-topbar {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 80px;
	background-color: var(--white);
	border-bottom: 1px solid #e0e0e0;
	z-index: 50;
}

.mobile-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	height: 100%;
	padding: 0 16px;
	gap: 8px;
}

.mobile-topbar-logo {
	height: 50px;
	width: auto;
	object-fit: contain;
}

/* ===== HAMBURGER ===== */
.hamburger-stripes-container {
	display: flex; 
	flex-direction: column; 
	height: 28px;
	width: 32px;
	cursor: pointer;
}

.stripe-on {
	flex: 1; 
	background-color: var(--dark-color);
}

.stripe-off {
	flex: 1;
}

.mobile-menu-container {
	display: flex;
	align-items: center;
	cursor: pointer;
	padding: 0 12px 0 0;
}

/* ===== LAYOUT CONTAINERS ===== */
.container {
	position: relative;
	width: 100%;
	height: 100%;
	overflow-x: hidden;
}

.page-content {
	position: relative;
	width: 100%;
	margin: 0 auto;
	min-height: 100vh;
	height: auto;
	padding-top: 0;
}

/* ===== OLD TOP BAR — hidden ===== */
.top-div {
	display: none !important;
}

/* topAddress - hidden but code kept */
.topAddress {
	display: none;
}

.topAddressInner {
	background-color: rgba(0, 0, 0, 0.68);
	border-radius: 19px;
	padding: 7px;
	cursor: pointer;
}

/* ===== FOOTER ===== */
.bottom-div {
	position: relative;
	width: 100%;
	min-height: 80px;
	background-color: var(--white);
	border-top: 2px solid var(--teal-color);
	overflow: hidden;
}

.bottom-container {
	display: flex; 
	width: 100%;
	margin: 0 auto;
	padding: clamp(16px, 1.5vw, 30px) 20px;
	box-sizing: border-box;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.bottom-con-left-side {
	flex: 1; 
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: flex-start;		
}

.bottom-logo {
	width: 41%; 
	min-width: 221px;
	max-height: 100%;
	object-fit: contain;
	padding: 10px 20px 0px 0px;
}

.bottom-con-right-side {
	flex: 1; 
	display: flex;
	padding: 10px 0;
	align-items: center;
	justify-content: flex-end;
}

.bottom-logo-container {
	display: flex;
	flex-direction: column; 
}

.footer-address {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	color: #666;
	font-size: clamp(12px, 0.9vw, 17px);
	line-height: 1.6;
}

.footer-address .footer-company-name {
	font-weight: 700;
	color: var(--dark-color);
	font-size: clamp(13px, 1vw, 18px);
	margin-bottom: 2px;
}

.footer-contact-line {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	position: relative;
}

.footer-email-link {
	color: #666;
	text-decoration: none;
	font-size: clamp(12px, 0.9vw, 17px);
}

.footer-email-link:hover {
	color: var(--teal-color);
}

/* Global copy icon + toast */
.copy-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #999;
	transition: color 0.2s;
	padding: 2px;
}

.copy-icon:hover {
	color: var(--teal-color);
}

.copy-toast {
	position: absolute;
	left: calc(100% + 10px);
	top: 50%;
	transform: translateY(-50%);
	background-color: var(--dark-color);
	color: white;
	font-size: clamp(11px, 0.8vw, 15px);
	padding: 4px 10px;
	border-radius: 4px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.copy-toast.show {
	opacity: 1;
}

img, .language {
	width: 48px;
	height: auto;
}

/* socialLinks - hidden */
.social-links { display: none; }

/* Language selector - hidden */
.language-selector { display: none !important; }
.mobile-language-row { display: none !important; }

/* ===== MOBILE DRAWER ===== */
.mobile-drawer {
	background-color: var(--white);
	color: var(--dark-color);
	position: fixed;
	top: 80px;
	left: 0;
	width: 100%; 
	height: calc(100% - 80px);
	box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
	transform: translateX(-100%);
	transition: transform 0.3s ease-in-out;
	z-index: 40; 
	display: flex;
	flex-direction: column;
	padding-top: 40px;
	padding-bottom: 40px;
	justify-content: flex-start;
	gap: 30px;
	overflow-y: auto;
}

.mobile-drawer.open {
	transform: translateX(0); 
}

.drawer-menu-item {   
	padding: 20px 30px;
	font-size: 42px;
	color: var(--dark-color);
	text-decoration: none;
	cursor: pointer;
	text-align: left;
	display: block;
	flex-shrink: 0;
}

.drawer-menu-item.active-page {
	color: var(--teal-color);
	border-left: 4px solid var(--teal-color);
	font-weight: 700;
}


/* ==========================================================
   DESKTOP: sidebar visible, content offset (DEFAULT MODE)
   ========================================================== */
@media (min-width: 1024px) {
	.sidebar {
		display: flex;
	}

	.horizontal-nav {
		display: none;
	}

	.mobile-topbar {
		display: none;
	}

	.mobile-drawer {
		display: none !important;
	}

	.mobile-menu-container {
		display: none;
	}

	.container {
		margin-left: var(--sidebar-width);
		width: calc(100% - var(--sidebar-width));
		max-width: calc(100vw - var(--sidebar-width));
		box-sizing: border-box;
		overflow-x: hidden;
	}

	img, .language {
		width: auto;
		max-width: 100%;
	}

	img.bottom-logo {
		width: 41%;
		min-width: 199px;
		max-height: none;
		height: auto;
	}
}


/* ==========================================================
   MOBILE: sidebar hidden, top bar + drawer (DEFAULT MODE)
   ========================================================== */
@media (max-width: 1023px) {
	.sidebar {
		display: none;
	}

	.horizontal-nav {
		display: none;
	}

	.mobile-topbar {
		display: block;
	}

	.page-content {
		padding-top: 80px;
	}

	.bottom-container {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 24px 20px;
	}

	.bottom-con-left-side,
	.bottom-con-right-side {
		justify-content: center;
	}

	.footer-address {
		align-items: center;
		font-size: 13px;
	}

	.footer-address .footer-company-name {
		font-size: 14px;
	}

	.footer-email-link {
		font-size: 13px;
	}

	img, .language {
		width: 48px;
		height: auto;
	}
}


/* ==========================================================
   ALT LAYOUT MODE (toggled by D key)
   Both desktop and mobile: horizontal wrapping nav, no sidebar
   ========================================================== */
body.alt-layout .sidebar {
	display: none !important;
}

body.alt-layout .mobile-topbar {
	display: none !important;
}

body.alt-layout .mobile-drawer {
	display: none !important;
}

body.alt-layout .horizontal-nav {
	display: block !important;
}

/* Remove sidebar offset on desktop */
@media (min-width: 1024px) {
	body.alt-layout .container {
		margin-left: 0;
		width: 100%;
		max-width: 100vw;
	}
}

/* Remove top padding on mobile since horizontal-nav is in flow */
@media (max-width: 1023px) {
	body.alt-layout .page-content {
		padding-top: 0;
	}

	/* Logo on top, full width, items below */
	body.alt-layout .horizontal-nav-inner {
		flex-direction: column;
		padding: 0;
		gap: 0;
	}

	body.alt-layout .horizontal-nav-logo {
		width: 100%;
		height: auto;
		margin: 0;
		padding: 16px 20px;
		border-bottom: 1px solid #e0e0e0;
		/* For retina: source image should be at least 1200px wide (400px CSS × 3x) */
	}

	body.alt-layout .horizontal-nav-items {
		padding: 10px 14px;
		gap: 4px;
		justify-content: center;
	}

	body.alt-layout .nav-specialty-panel {
		display: block;
		text-align: center;
		padding: 8px 20px 4px;
		font-family: Georgia, 'Times New Roman', Times, serif;
		font-size: 21px;
		color: #555;
		line-height: 1.8;
		flex: 0 0 100%;
	}
	body.alt-layout .nav-specialty-panel li { margin-bottom: 2px; }
	body.alt-layout .nav-specialty-panel li::before { content: '• '; color: var(--teal-color); }

	/* Larger touch-friendly nav items on mobile */
	body.alt-layout .horizontal-nav-item {
		font-size: 21px;
		padding: 10px 16px;
		white-space: normal;
		text-align: center;
	}

	/* Welcome on its own line on mobile */
	body.alt-layout .nav-welcome {
		flex: 0 0 100%;
		text-align: center;
		text-decoration: none !important;
		position: relative;
	}
	body.alt-layout .nav-welcome.active-page::after {
		content: '';
		display: block;
		width: 4em;
		height: 3px;
		background: var(--teal-color);
		margin: 4px auto 0 auto;
	}
	body.alt-layout .nav-welcome:hover {
		text-decoration: none !important;
	}
}