/* ============================================================
   Littlest Laundromat — Shared Styles
   Used by: index.html, wash-and-fold.html, laundry-tips.html,
            404.html, thank-you.html
   ============================================================ */

/* ── Fonts ── */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: optional;
    src: url('../fonts/inter-latin.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter-fallback';
    src: local('Arial');
    ascent-override: 90.20%;
    descent-override: 22.48%;
    line-gap-override: 0%;
    size-adjust: 107.40%;
}
@font-face {
    font-family: 'Fredoka One';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/fredoka-one.woff2') format('woff2');
}

/* ── CSS Variables ── */
:root {
    --blue: #007bff;
    --blue-dark: #0056b3;
    --green: #1f7a31;
    --content-max: 1120px;
    --space-xs: clamp(0.5rem, 1vw, 0.9rem);
    --space-sm: clamp(0.75rem, 1.2vw, 1.2rem);
    --space-md: clamp(1.25rem, 2vw, 1.75rem);
    --space-lg: clamp(2rem, 3vw, 2.75rem);
    --space-xl: clamp(2.5rem, 4vw, 3.5rem);
}

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

/* ── Base ── */
body {
    font-family: 'Inter', 'Inter-fallback', Arial, sans-serif;
    color: #333;
    line-height: 1.5;
    background: #fff;
}

a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

/* ── Buttons ── */
.call-btn {
    background: var(--blue-dark);
    color: #fff;
    padding: .5rem 1rem;
    border-radius: 4px;
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    transition: background .2s;
    cursor: pointer;
    text-align: center;
}
.call-btn:hover { background: #003f85; color: #fff; text-decoration: none; }
.text-btn { background: var(--green); }
.text-btn:hover { background: #155724; }

/* ── Skip link (accessibility) ── */
.skip-link { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: static; width: auto; height: auto; padding: .5rem; background: var(--blue); color: #fff; z-index: 1000; }

/* ── Logo bounce animation ── */
@keyframes logoBounce {
    0%, 100% { transform: scale(1) translateY(0); }
    50%       { transform: scale(1.1) translateY(-15px); }
}
@keyframes riseBubble {
    0%   { transform: translateY(0) scale(.5); opacity: .7; }
    50%  { opacity: 1; }
    100% { transform: translateY(-40px) scale(1.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .brand img, nav .brand img, .site-header .brand img { animation: none !important; }
}

/* ── Nav / Header (shared base) ── */
nav, .site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: visible;
}

.brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
}
.brand img {
    height: auto;
    max-height: 96px;
    width: auto;
    max-width: none;
    animation: logoBounce 4s ease-in-out infinite;
}
.brand-text {
    font-family: 'Fredoka One', 'Arial Rounded MT Bold', cursive;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--blue-dark);
    letter-spacing: 0.3px;
}

/* ── Nav links bar ── */
.nav-links-bar {
    flex-basis: 100%;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    padding: .35rem 0 .15rem;
    border-top: 1px solid rgba(0,0,0,.06);
    margin-top: .35rem;
}
.nav-links-bar a { color: var(--blue-dark); font-weight: 600; text-decoration: none; font-size: .88rem; }
.nav-links-bar a:hover { text-decoration: underline; }
@media (max-width: 600px) { .nav-links-bar { display: none; } }

/* ── Utility ── */
.bg-light { background: #f8f9fa; }

/* ── Sections ── */
.section { padding: var(--space-lg) var(--space-sm); width: 100%; }
.section > .section-inner { max-width: var(--content-max); margin: 0 auto; }
.section-tight { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.section h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; text-align: center; color: var(--blue); }
.section p { margin-bottom: 1rem; }
.section-inner { max-width: var(--content-max); margin: 0 auto; }

/* ── Footer ── */
footer, .site-footer {
    background: #f0f0f0;
    text-align: center;
    padding: 1rem;
    font-size: .9rem;
    color: #666;
}
footer a, .site-footer a { color: var(--blue-dark); }
footer p, .site-footer p { margin-bottom: .35rem; }

/* ── Floating SMS button (mobile only) ── */
#fab-text {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 999;
    background: var(--green);
    color: #fff;
    border-radius: 999px;
    padding: .75rem 1.25rem;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .5rem;
}
@media (min-width: 768px) { #fab-text { display: none !important; } }
