/* ============================================
   STUDIO SILK SKIN — Custom Styles
   Classic & Elegant · Terracotta + Sand
   ============================================ */

/* ---------- Base Reset & Typography ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #d4603f;
    color: #fefefc;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdfbf5;
}
::-webkit-scrollbar-thumb {
    background: #e07a5e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c2462e;
}

/* ---------- Hero Animations (above the fold — always visible) ---------- */
.hero-tag {
    animation: slideUp 0.8s ease forwards;
}

.hero-headline {
    animation: slideUp 0.8s ease 0.15s forwards;
    opacity: 0;
}

.hero-desc {
    animation: slideUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-cta {
    animation: slideUp 0.8s ease 0.45s forwards;
    opacity: 0;
}

.hero-stats {
    animation: slideUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Navigation ---------- */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(254, 254, 252, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-text {
    transition: color 0.3s ease;
}

.nav-subtext {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-text {
    color: #1c1917;
}

#navbar.scrolled .nav-subtext {
    color: #d4603f;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #d4603f;
    transition: width 0.3s ease;
}

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

/* ---------- Mobile Menu ---------- */
#mobileMenu {
    transition: opacity 0.5s ease, pointer-events 0.5s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }
#mobileMenu.open .mobile-link:nth-child(6) { transition-delay: 0.35s; }

/* Menu toggle animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

#menuToggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

#menuToggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuToggle.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(3px, -3px);
}

/* ---------- Service Cards ---------- */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* ---------- Reveal Animations (below the fold only) ---------- */
.reveal-section {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Progressive enhancement — animations only when JS is available and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal-section.is-hidden {
        opacity: 0;
        transform: translateY(40px);
    }
    
    .reveal-section.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: ensure content is visible even without JS */
.no-js .reveal-section,
.reveal-section {
    opacity: 1;
    transform: none;
}

/* ---------- Form Styles ---------- */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(224, 122, 94, 0.1);
}

/* ---------- Image aspect ratios ---------- */
img {
    display: block;
    max-width: 100%;
}

/* ---------- Selection & Focus ---------- */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #d4603f;
    outline-offset: 2px;
}

/* ---------- Responsive adjustments ---------- */
@media (max-width: 767px) {
    .hero-headline {
        font-size: 2.75rem !important;
    }
    
    .font-serif.text-4xl {
        font-size: 2.25rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-headline {
        font-size: 3.5rem !important;
    }
}

/* ---------- Print styles ---------- */
@media print {
    #navbar,
    .reveal-section {
        opacity: 1 !important;
        transform: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
