/* ============================================
   Art of the Family Inc. — Custom Styles
   Teal + Slate Grey · Fresh & Airy
   ============================================ */

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: #334155; /* slate-600 */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ---------- Scrollbar (subtle) ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0fdfa;
}
::-webkit-scrollbar-thumb {
    background: #99f6e4;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5eead4;
}

/* ---------- Selection ---------- */
::selection {
    background: #ccfbf1;
    color: #134e4a;
}

/* ---------- Focus visible ---------- */
*:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- Mobile menu transitions ---------- */
#mobile-menu {
    animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Scroll-reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ---------- Navbar scroll state ---------- */
.navbar-scrolled {
    box-shadow: 0 1px 20px rgba(13, 148, 136, 0.08);
}

/* ---------- Service card hover glow ---------- */
.group:hover .group-hover\:bg-teal-600 {
    background-color: #0d9488;
}

/* ---------- Button micro-interactions ---------- */
a[href^="tel:"],
button[type="submit"] {
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
a[href^="tel:"]:active,
button[type="submit"]:active {
    transform: scale(0.97);
}

/* ---------- Image aspect ratio helpers ---------- */
.aspect-card {
    aspect-ratio: 4 / 3;
}

/* ---------- Subtle pattern overlay for sections ---------- */
.pattern-bg {
    background-image: radial-gradient(circle at 1px 1px, rgba(13, 148, 136, 0.04) 1px, transparent 0);
    background-size: 24px 24px;
}
