/* ═══════════════════════════════════════════════════════════════════════════
   The Port Dental Clinic — Base Styles (Reset + Typography)
   ═══════════════════════════════════════════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--weight-regular);
    line-height: var(--leading-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ── Typography ────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    color: var(--color-secondary);
    letter-spacing: -0.02em;
}

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

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

h3 {
    font-size: var(--text-2xl);
    font-weight: var(--weight-semibold);
}

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

h5 {
    font-size: var(--text-lg);
    font-weight: var(--weight-medium);
}

h6 {
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
}

p {
    margin-bottom: var(--space-4);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

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

/* ── Links ─────────────────────────────────────────────────────────────── */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* ── Lists ─────────────────────────────────────────────────────────────── */
ul, ol {
    list-style: none;
}

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

img {
    border-radius: var(--radius-sm);
}

/* ── Form Elements ─────────────────────────────────────────────────────── */
input, button, textarea, select {
    font: inherit;
    color: inherit;
}

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

/* ── Tables ────────────────────────────────────────────────────────────── */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ── Selection ─────────────────────────────────────────────────────────── */
::selection {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ── Focus Styles ──────────────────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

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

/* ── Section Title Patterns ────────────────────────────────────────────── */
.section-label {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-3);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 2px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

.section-title {
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 640px;
    line-height: var(--leading-relaxed);
}

.section-header {
    margin-bottom: var(--space-12);
}

.section-header.centered {
    text-align: center;
}

.section-header.centered .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ── Highlight text ────────────────────────────────────────────────────── */
.text-highlight {
    color: var(--color-primary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Separator ─────────────────────────────────────────────────────────── */
hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--space-8) 0;
}

/* ── Spinner ───────────────────────────────────────────────────────────── */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 0.8s linear infinite;
}
