/* ===== Seattle Drywall Repair — Production Styles ===== */

/* ---------- Material Symbols Override ---------- */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

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

/* ---------- Selection colour ---------- */
::selection {
    background: #d4f5cd;
    color: #003d10;
}

/* ---------- Glassmorphism Navigation ---------- */
.glass-nav {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 20px rgba(27, 110, 45, 0.08);
}
.glass-nav.scrolled > div:first-child {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* ---------- Text shadow helpers ---------- */
.text-shadow-sm { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.12); }
.text-shadow-lg { text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); }

/* ---------- Mobile Menu ---------- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    z-index: 60;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #1b6e2d;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 55;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1b6e2d;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
    opacity: 0;
    transform: translateY(20px);
}
.mobile-menu.open a {
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu.open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.open a:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu a:hover { color: #cc0000; transform: scale(1.05); }

@media (max-width: 767px) {
    .hamburger { display: flex; }
}

/* ---------- Scroll Reveal Animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
    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; }

/* ---------- Subtle pulse for map marker ---------- */
@keyframes pulse-ring {
    0%   { transform: translate(-50%, -50%) scale(0.9); opacity: 0.7; }
    70%  { transform: translate(-50%, -50%) scale(1.15); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0; }
}
.pulse-ring { animation: pulse-ring 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* ---------- Hero slogan badge ---------- */
.slogan-badge {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(212,245,205,0.92) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(27, 110, 45, 0.12);
    box-shadow: 0 8px 32px rgba(27, 110, 45, 0.10);
}

/* ---------- Back to Top Button ---------- */
.back-to-top {
    position: fixed;
    bottom: 2rem; right: 2rem;
    z-index: 40;
    width: 48px; height: 48px;
    border-radius: 14px;
    background: #1b6e2d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(27, 110, 45, 0.3);
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: opacity 0.3s, transform 0.3s, background 0.2s;
    pointer-events: none;
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.back-to-top:hover {
    background: #178a2c;
    transform: translateY(-2px) scale(1.05);
}

/* ---------- Floating stat counter ---------- */
.stat-number {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ---------- Loading skeleton ---------- */
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, #e8e8e8 25%, #f3f3f3 37%, #e8e8e8 63%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

/* ---------- Focus states (accessibility) ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid #1b6e2d;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- Form input interactions ---------- */
input, textarea, select {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(27, 110, 45, 0.12);
}

/* ---------- Button press effect ---------- */
.btn-press {
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.btn-press:active {
    transform: scale(0.97);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* ---------- Link underline animation ---------- */
.nav-link {
    position: relative;
    text-decoration: none;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 2px;
    background: #1b6e2d;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* ---------- Responsive helpers ---------- */
@media (max-width: 767px) {
    .hero-heading { font-size: 2.5rem !important; }
    .section-heading { font-size: 2rem !important; }
}
@media (max-width: 480px) {
    .hero-heading { font-size: 2rem !important; }
    .section-heading { font-size: 1.75rem !important; }
}

/* ---------- Image lazy load fade in ---------- */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}
img[loading="lazy"].loaded, img[loading="lazy"][src] {
    opacity: 1;
}

/* ---------- Phone number shake (CTA attention) ---------- */
@keyframes subtle-shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}
.phone-shake:hover {
    animation: subtle-shake 0.4s ease 1;
}

/* ---------- Print styles ---------- */
@media print {
    .glass-nav, .mobile-menu, .back-to-top, .hamburger { display: none !important; }
    body { font-size: 12pt; color: #000; }
    a { text-decoration: underline; color: #1b6e2d; }
}
