/**
 * Global Styles
 * CSS Reset, Variables, Typography, Base Elements
 *
 * @package Clinic_Master
 */

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

html {
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

input,
button,
textarea,
select {
	font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

a {
	text-decoration: none;
	color: inherit;
}

ul,
ol {
	list-style: none;
}

button {
	border: none;
	background: none;
	cursor: pointer;
}

/* ============================================
   CSS Variables (Design System)
   ============================================ */
:root {
	/* Colors - Primary */
	--color-primary: #003b69;
	--color-primary-dark: #1e40af;
	--color-primary-light: #3b82f6;

	/* Colors - Secondary */
	--color-secondary: #10b981;
	--color-secondary-dark: #059669;
	--color-secondary-light: #34d399;

	/* Colors - Neutral */
	--color-white: #ffffff;
	--color-black: #000000;
	--color-gray-50: #f9fafb;
	--color-gray-100: #f3f4f6;
	--color-gray-200: #e5e7eb;
	--color-gray-300: #d1d5db;
	--color-gray-400: #9ca3af;
	--color-gray-500: #6b7280;
	--color-gray-600: #4b5563;
	--color-gray-700: #374151;
	--color-gray-800: #1f2937;
	--color-gray-900: #111827;

	/* Colors - Semantic */
	--color-success: #10b981;
	--color-warning: #f59e0b;
	--color-error: #ef4444;
	--color-info: #3b82f6;

	/* Typography */
	--font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	/* Font Sizes */
	--font-size-xs: 0.75rem;    /* 12px */
	--font-size-sm: 0.875rem;   /* 14px */
	--font-size-base: 1rem;     /* 16px */
	--font-size-lg: 1.125rem;   /* 18px */
	--font-size-xl: 1.25rem;    /* 20px */
	--font-size-2xl: 1.5rem;    /* 24px */
	--font-size-3xl: 1.875rem;  /* 30px */
	--font-size-4xl: 2.25rem;   /* 36px */
	--font-size-5xl: 3rem;      /* 48px */
	--font-size-6xl: 3.75rem;   /* 60px */

	/* Font Weights */
	--font-weight-light: 300;
	--font-weight-normal: 400;
	--font-weight-medium: 500;
	--font-weight-semibold: 600;
	--font-weight-bold: 700;

	/* Line Heights */
	--line-height-tight: 1.25;
	--line-height-normal: 1.5;
	--line-height-relaxed: 1.75;

	/* Spacing */
	--spacing-xs: 0.25rem;   /* 4px */
	--spacing-sm: 0.5rem;    /* 8px */
	--spacing-md: 1rem;      /* 16px */
	--spacing-lg: 1.5rem;    /* 24px */
	--spacing-xl: 2rem;      /* 32px */
	--spacing-2xl: 3rem;     /* 48px */
	--spacing-3xl: 4rem;     /* 64px */
	--spacing-4xl: 6rem;     /* 96px */
	--spacing-5xl: 8rem;     /* 128px */

	/* Border Radius */
	--radius-sm: 0.25rem;    /* 4px */
	--radius-md: 0.5rem;     /* 8px */
	--radius-lg: 0.75rem;    /* 12px */
	--radius-xl: 1rem;       /* 16px */
	--radius-2xl: 1.5rem;    /* 24px */
	--radius-full: 9999px;

	/* Shadows */
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	--shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

	/* Transitions */
	--transition-fast: 150ms ease-in-out;
	--transition-base: 300ms ease-in-out;
	--transition-slow: 500ms ease-in-out;

	/* Z-Index */
	--z-dropdown: 1000;
	--z-sticky: 1020;
	--z-fixed: 1030;
	--z-modal-backdrop: 1040;
	--z-modal: 1050;
	--z-popover: 1060;
	--z-tooltip: 1070;
}

/* ============================================
   Typography
   ============================================ */
body {
	font-family: var(--font-secondary);
	font-size: var(--font-size-base);
	line-height: var(--line-height-normal);
	color: var(--color-gray-800);
	background-color: var(--color-white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-primary);
	font-weight: var(--font-weight-semibold);
	line-height: var(--line-height-tight);
	color: var(--color-gray-900);
	margin-bottom: var(--spacing-md);
}

h1 {
	font-size: var(--font-size-5xl);
	font-weight: var(--font-weight-bold);
}

h2 {
	font-size: var(--font-size-4xl);
}

h3 {
	font-size: var(--font-size-3xl);
}

h4 {
	font-size: var(--font-size-2xl);
}

h5 {
	font-size: var(--font-size-xl);
}

h6 {
	font-size: var(--font-size-lg);
}

p {
	margin-bottom: var(--spacing-md);
}

a {
	color: var(--color-primary);
	transition: color var(--transition-fast);
}

a:hover,
a:focus {
	color: var(--color-primary-dark);
}

.pb-0 {
	padding-bottom: 0 !important;
}

/* ============================================
   Utility Classes
   ============================================ */
.container {
	width: 100%;
	max-width: 1300px;
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--spacing-md);
	padding-right: var(--spacing-md);
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--color-white);
	border-radius: var(--radius-md);
	clip: auto !important;
	color: var(--color-gray-900);
	display: block;
	font-size: var(--font-size-base);
	height: auto;
	left: 5px;
	line-height: normal;
	padding: var(--spacing-sm) var(--spacing-md);
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: var(--z-tooltip);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--spacing-md) var(--spacing-xl);
	font-family: var(--font-primary);
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-medium);
	line-height: 1;
	text-align: center;
	text-decoration: none;
	border-radius: var(--radius-lg);
	cursor: pointer;
	transition: all var(--transition-base);
	border: 2px solid transparent;
}

.btn--primary {
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
	color: var(--color-white);
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 59, 105, 0.2);
}

.btn--primary::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s ease;
}

.btn--primary:hover::before {
	left: 100%;
}

.btn--primary:hover,
.btn--primary:focus {
	background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
	color: var(--color-white);
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(0, 59, 105, 0.35);
}

.btn--secondary {
	background-color: var(--color-secondary);
	color: var(--color-white);
}

.btn--secondary:hover,
.btn--secondary:focus {
	background-color: var(--color-secondary-dark);
	color: var(--color-white);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.btn--outline {
	background-color: transparent;
	color: var(--color-primary);
	border: 2px solid var(--color-primary);
	position: relative;
	overflow: hidden;
	transition: all 0.3s ease;
}

.btn--outline::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 100%;
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
	transition: width 0.3s ease;
	z-index: -1;
}

.btn--outline:hover::before,
.btn--outline:focus::before {
	width: 100%;
}

.btn--outline:hover,
.btn--outline:focus {
	background-color: var(--color-primary);
	color: var(--color-white);
	border-color: var(--color-primary);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 59, 105, 0.25);
}

.btn--white {
	background-color: transparent;
	color: var(--color-white);
	border: 2px solid var(--color-white);
	position: relative;
	overflow: hidden;
	transition: all 0.3s ease;
}

.btn--white::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 100%;
	background: linear-gradient(135deg, var(--color-white) 0%, var(--color-white) 100%);
	transition: width 0.3s ease;
	z-index: -1;
}

.btn--white:hover::before,
.btn--white:focus::before {
	width: 100%;
}

.btn--white:hover,
.btn--white:focus {
	background-color: var(--color-white);
	color: var(--color-primary);
	border-color: var(--color-primary);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 59, 105, 0.25);
}

.btn .icon-phone {
	width: 20px;
	height: 20px;
}

.text-center {
	text-align: center;
}
/* ============================================
   Images
   ============================================ */
img {
	height: auto;
	max-width: 100%;
}

/* ============================================
   Forms (Base)
   ============================================ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
textarea,
select {
	width: 100%;
	padding: var(--spacing-md);
	font-family: var(--font-secondary);
	font-size: var(--font-size-base);
	line-height: var(--line-height-normal);
	color: var(--color-gray-800);
	background-color: var(--color-white);
	border: 1px solid var(--color-gray-300);
	border-radius: var(--radius-md);
	transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
	resize: vertical;
	min-height: 120px;
}

label {
	display: block;
	margin-bottom: var(--spacing-sm);
	font-weight: var(--font-weight-medium);
	color: var(--color-gray-700);
}

.about__inner.reverse div.about__image {
    order: 2;
}