/* ============================================
   ONE LIFE DENTAL TOURISM - BASE STYLES
   Reset, Typography, and Base Elements
   ============================================ */

/* ==========================================
   CSS RESET
   ========================================== */

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

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

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-regular);
    line-height: var(--leading-normal);
    color: var(--color-gray-800);
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* Remove default list styles */
ul,
ol {
    list-style: none;
}

/* Remove default link styles */
a {
    color: inherit;
    text-decoration: none;
}

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

/* Form element reset */
input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

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

/* Remove textarea resize */
textarea {
    resize: vertical;
}

/* Table reset */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
    color: var(--color-gray-900);
}

h1 {
    font-size: var(--text-5xl);
    letter-spacing: var(--tracking-tight);
}

h2 {
    font-size: var(--text-4xl);
    letter-spacing: var(--tracking-tight);
}

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

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

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

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

p {
    margin-bottom: var(--space-4);
    color: var(--color-gray-600);
}

p:last-child {
    margin-bottom: 0;
}

/* Display headings - for hero sections */
.heading-display {
    font-size: var(--text-6xl);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-tighter);
}

/* Subtitle styling */
.subtitle {
    font-family: var(--font-primary);
    font-size: var(--text-lg);
    font-weight: var(--font-regular);
    color: var(--color-gray-500);
    line-height: var(--leading-relaxed);
}

/* Lead paragraph */
.lead {
    font-size: var(--text-xl);
    font-weight: var(--font-regular);
    color: var(--color-gray-600);
    line-height: var(--leading-relaxed);
}

/* Small text */
.text-small {
    font-size: var(--text-sm);
}

.text-xs {
    font-size: var(--text-xs);
}

/* Text colors */
.text-primary {
    color: var(--color-primary);
}

.text-gold {
    color: var(--color-gold);
}

.text-white {
    color: var(--color-white);
}

.text-dark {
    color: var(--color-gray-900);
}

.text-muted {
    color: var(--color-gray-500);
}

/* Text alignment */
.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* Font weights */
.font-light {
    font-weight: var(--font-light);
}

.font-regular {
    font-weight: var(--font-regular);
}

.font-medium {
    font-weight: var(--font-medium);
}

.font-semibold {
    font-weight: var(--font-semibold);
}

.font-bold {
    font-weight: var(--font-bold);
}

/* Uppercase text */
.uppercase {
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

/* Gradient text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   LINKS
   ========================================== */

.link {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
}

.link:hover {
    color: var(--color-primary-dark);
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base) var(--ease-out-expo);
}

.link-underline:hover::after {
    width: 100%;
}

/* ==========================================
   SELECTION
   ========================================== */

::selection {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ==========================================
   SCROLLBAR
   ========================================== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gray-300);
    border-radius: var(--radius-full);
    border: 2px solid var(--color-gray-100);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-400);
}

/* ==========================================
   FOCUS STATES (Accessibility)
   ========================================== */

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ==========================================
   UTILITIES
   ========================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hidden {
    display: none !important;
}

.invisible {
    visibility: hidden;
}

.overflow-hidden {
    overflow: hidden;
}

/* Clearfix */
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}