/* Custom styles for Dr. Niphon Sudhi Medical Practice */

/* Base reset and typography refinements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure all headings use Playfair Display */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Smooth focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #ff8c6d;
    outline-offset: 2px;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent content flash on scroll reveal */
@media (prefers-reduced-motion: no-preference) {
    .reveal,
    .reveal-left,
    .reveal-right {
        will-change: opacity, transform;
    }
}

/* Ensure form inputs have proper styling across browsers */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    font-family: 'Lato', system-ui, sans-serif;
}

/* Print styles */
@media print {
    nav, .mobile-menu, #contact-form, #form-success {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
    a {
        text-decoration: none;
        color: #000;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .font-serif {
        font-size: 1.125rem;
    }
}

/* Large screens */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}
