/* ============================================
   Johanna's Dog Grooming — Dark Theme
   Rebrand build
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,500;0,700;1,600&family=Nunito+Sans:wght@400;600;700;800&display=swap');

:root {
    --bg: #0d1512;
    --bg-alt: #142019;
    --bg-alt2: #1b2a22;
    --border: #24352b;
    --accent: #EB91E5;
    --accent-dark: #C965C2;
    --accent-light: #F5BFF0;
    --text: #f2f6f0;
    --text-muted: #a9b8ac;
    --radius: 12px;
    --shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Nunito Sans', 'Segoe UI', sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    text-align: center;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    color: var(--text);
}

h2 {
    font-style: italic;
    font-weight: 500;
    color: var(--accent-light);
}

a {
    color: var(--accent-light);
}

/* ---------- header ---------- */

header {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 18px 20px;
}

.brand-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

    .brand-logo-primary {
        max-width: 240px;
        width: 100%;
        height: auto;
        /* The logo's black elements (Grooming text, dog silhouettes) sit on
           a transparent background, so they disappear against this dark
           header. A light backdrop card fixes contrast without touching
           the logo's actual colors. */
        background: #fdfaf7;
        border-radius: 14px;
        padding: 10px 16px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    }

    .brand-logo-paw {
        max-width: 340px;
        width: 100%;
        height: auto;
    }

/* ---------- nav ---------- */

nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 18px 0 6px;
    flex-wrap: wrap;
}

    nav a {
        background: var(--bg-alt2);
        border: 1px solid var(--border);
        color: var(--text);
        text-decoration: none;
        padding: 10px 20px;
        border-radius: 999px;
        display: inline-block;
        font-weight: 600;
        font-size: 0.95em;
        transition: background 0.25s, border-color 0.25s, color 0.25s;
    }

        nav a:hover {
            background: var(--accent);
            border-color: var(--accent);
            color: #0d1512;
        }

/* ---------- main ---------- */

main {
    padding: 30px 20px 50px;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.tagline {
    font-size: 1.2em;
    color: var(--text-muted);
    margin: 18px 0 26px;
}

.cta {
    margin: 12px 0;
}

/* buttons */

.btn {
    background-color: var(--accent);
    color: #0d1512;
    border: none;
    padding: 12px 26px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
    font-size: 1em;
    text-decoration: none;
    display: inline-block;
    transition: background 0.25s, transform 0.2s;
}

    .btn:hover {
        background-color: var(--accent-light);
        transform: translateY(-2px);
    }

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent-light);
}

    .btn-outline:hover {
        background: var(--accent);
        color: #0d1512;
    }

/* ---------- hero image ---------- */

.groomer-img {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

    .groomer-img img {
        max-width: 340px;
        width: 100%;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        border: 1px solid var(--border);
    }

        .groomer-img img.services-photo {
            max-width: 100%;
            height: auto;
        }

/* ---------- signature divider (paw trail) ---------- */

.paw-divider {
    display: flex;
    justify-content: center;
    margin: 36px 0;
    opacity: 0.9;
}

    .paw-divider img {
        width: 220px;
        height: auto;
    }

/* ---------- footer ---------- */

footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 16px;
    font-size: 0.8em;
    color: var(--text-muted);
}

    footer a {
        color: var(--accent-light);
        text-decoration: none;
    }

        footer a:hover {
            text-decoration: underline;
        }

    .footer-social {
        margin-top: 8px;
    }

        .footer-social a {
            margin: 0 6px;
            color: var(--accent-light);
            font-weight: 700;
        }

/* ---------- cards ---------- */

.cardContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px auto;
    max-width: 900px;
}

.cardLayout {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 250px;
    padding: 20px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

    .cardLayout:hover {
        transform: translateY(-5px);
        border-color: var(--accent);
    }

    .cardLayout h3 {
        color: var(--accent-light);
        font-size: 1.15em;
        margin-top: 0;
    }

    .cardLayout img {
        max-width: 90px;
        border-radius: 50%;
        margin: 10px auto;
        border: 2px solid var(--accent);
    }

    .cardLayout p {
        color: var(--text-muted);
    }

a.cardLayout {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.service-detail {
    text-align: left;
    max-width: 640px;
    margin: 0 auto;
}

    .service-detail p {
        color: var(--text-muted);
        margin: 16px 0;
    }

.back-btn {
    display: inline-block;
    margin: 24px 0 0;
}

/* ---------- gallery ---------- */

.groomer-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 22px;
    margin: 40px auto;
    max-width: 900px;
}

    .groomer-gallery h3 {
        width: 100%;
        text-align: center;
        font-size: 1.5em;
        margin-bottom: 6px;
        color: var(--accent-light);
        font-style: italic;
    }

    .gallery-sub {
        width: 100%;
        color: var(--text-muted);
        margin-bottom: 10px;
        font-size: 0.95em;
    }

    .groomer-gallery img {
        width: 210px;
        height: 210px;
        object-fit: cover;
        border-radius: var(--radius);
        border: 1px solid var(--border);
        box-shadow: var(--shadow);
        transition: transform 0.3s ease, border-color 0.3s ease;
    }

        .groomer-gallery img:hover {
            transform: scale(1.04);
            border-color: var(--accent);
        }

/* ---------- pricing list ---------- */

.price-list {
    text-align: left;
    max-width: 480px;
    margin: 20px auto;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 24px;
}

.price-group-title {
    font-size: 1em;
    font-style: normal;
    color: var(--accent-light);
    margin: 18px 0 4px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

    .price-list .price-group-title:first-child {
        margin-top: 6px;
        padding-top: 0;
        border-top: none;
    }

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

    .price-row:last-child {
        border-bottom: none;
    }

    .price-row .price-name {
        font-weight: 700;
    }

    .price-row .price-desc {
        display: block;
        color: var(--text-muted);
        font-size: 0.85em;
        font-weight: 400;
    }

    .price-row .price-value {
        color: var(--accent-light);
        font-weight: 800;
        font-size: 1.15em;
        white-space: nowrap;
    }

.price-note {
    background: var(--bg-alt2);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    padding: 12px 18px;
    max-width: 480px;
    margin: 24px auto 0;
    text-align: left;
    color: var(--text-muted);
    font-size: 0.9em;
}

/* ---------- chatbot widget ---------- */

.chat-teaser {
    background: var(--bg-alt);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 20px;
    max-width: 480px;
    margin: 30px auto 0;
}

    .chat-teaser h3 {
        margin-top: 0;
        color: var(--accent-light);
    }

.chat-launcher {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: var(--accent);
    color: #0d1512;
    border: none;
    border-radius: 999px;
    padding: 14px 22px;
    font-weight: 800;
    box-shadow: var(--shadow);
    cursor: pointer;
    z-index: 50;
}

    .chat-launcher:hover {
        background: var(--accent-light);
    }

.chat-window {
    position: fixed;
    bottom: 90px;
    right: 22px;
    width: 340px;
    max-width: calc(100vw - 32px);
    height: 440px;
    max-height: calc(100vh - 130px);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 50;
}

.chat-window[hidden] {
    display: none;
}

.chat-window-header {
    background: var(--accent);
    color: #0d1512;
    padding: 12px 16px;
    font-weight: 800;
}

    .chat-window-header small {
        display: block;
        font-weight: 600;
        font-size: 0.75em;
        opacity: 0.85;
    }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.chat-msg {
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.9em;
    line-height: 1.4;
    max-width: 85%;
    white-space: pre-wrap;
}

.chat-msg-user {
    align-self: flex-end;
    background: var(--accent);
    color: #0d1512;
    border-bottom-right-radius: 3px;
}

.chat-msg-bot {
    align-self: flex-start;
    background: var(--bg-alt2);
    border: 1px solid var(--border);
    border-bottom-left-radius: 3px;
    color: var(--text);
}

.chat-msg-error {
    align-self: center;
    background: #3a1f1c;
    border: 1px solid #6b332c;
    color: #f2b8ae;
}

.chat-input-row {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--border);
}

    .chat-input-row input {
        flex: 1;
        background: var(--bg);
        border: 1px solid var(--border);
        border-radius: 6px;
        padding: 8px 10px;
        color: var(--text);
        font-family: inherit;
        font-size: 0.9em;
    }

    .chat-input-row button {
        background: var(--accent);
        color: #0d1512;
        border: none;
        border-radius: 6px;
        padding: 8px 14px;
        font-weight: 800;
        cursor: pointer;
    }

    .chat-input-row button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* ---------- form ---------- */

form {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    text-align: left;
    margin: 0 auto;
    max-width: 500px;
}

fieldset {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

legend {
    font-weight: 700;
    color: var(--accent-light);
    padding: 0 8px;
}

label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9em;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: inherit;
    font-size: 1em;
}

    input::placeholder,
    textarea::placeholder {
        color: #5c6b60;
    }

    input[type="submit"] {
        background-color: var(--accent);
        color: #0d1512;
        font-weight: 800;
        cursor: pointer;
        border: none;
        border-radius: 6px;
        padding: 12px 20px;
        font-size: 1em;
    }

        input[type="submit"]:hover {
            background-color: var(--accent-light);
        }

.form-instructions {
    color: var(--accent-light);
    font-style: italic;
    font-size: 0.9em;
    margin-bottom: 10px;
    text-align: left;
}

label.required::after {
    content: " *";
    color: var(--accent-light);
    font-weight: bold;
}

input:required,
select:required {
    border-left: 4px solid var(--accent-light);
}

input:valid,
select:valid {
    border-left-color: var(--accent);
}

.results {
    text-align: left;
    font-family: 'Nunito Sans', monospace;
    background: var(--bg-alt2);
    border: 1px solid var(--border);
    padding: 1em;
    border-radius: 8px;
}

/* ---------- responsive ---------- */

@media (max-width: 600px) {
    .brand-section {
        flex-direction: column;
        gap: 10px;
    }

    .brand-logo-primary {
        max-width: 220px;
    }

    .brand-logo-paw {
        max-width: 260px;
    }

    .groomer-gallery img {
        width: 45vw;
        height: 45vw;
    }

    .chat-launcher {
        right: 14px;
        bottom: 14px;
        padding: 12px 18px;
    }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
