/* ============================================
   KEEGZ AUTO CARE — STYLES
   ============================================ */

/* --- Variables --- */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-button: #1a1a1a;
    --bg-card: #141414;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-muted: #555555;
    --accent: #00b4d8;
    --accent-dim: #0088a3;
    --accent-glow: rgba(0, 180, 216, 0.25);
    --accent-glow-strong: rgba(0, 180, 216, 0.45);
    --border: #222222;
    --border-light: #2a2a2a;
    --radius: 12px;
    --radius-sm: 8px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* --- Bubbles Background --- */
#bubbles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

/* --- Container --- */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 20px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    position: relative;
    z-index: 1;
}

/* --- Brand / Logo --- */
.brand {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo {
    width: 200px;
    height: auto;
}

/* --- Tagline --- */
.tagline {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tagline-primary {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.tagline-secondary {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* --- Contact Icons --- */
.contact-icons {
    display: flex;
    gap: 16px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.contact-icon:hover,
.contact-icon:focus-visible {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 16px var(--accent-glow);
}

/* --- Buttons (shared) --- */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* --- Primary CTA --- */
.cta-primary {
    width: 100%;
}

.btn-cta {
    background: var(--accent);
    color: #000000;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 0 24px var(--accent-glow), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.btn-cta:hover,
.btn-cta:focus-visible {
    box-shadow: 0 0 36px var(--accent-glow-strong), 0 4px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
}

.btn-cta:active {
    transform: translateY(0);
    box-shadow: 0 0 20px var(--accent-glow), 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* --- Link Buttons --- */
.link-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-link {
    background: var(--bg-button);
    color: var(--text-primary);
    border: 1px solid var(--border);
    font-weight: 600;
}

.btn-link:hover,
.btn-link:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow), inset 0 0 20px rgba(0, 180, 216, 0.04);
    color: var(--accent);
}

.btn-link:active {
    transform: scale(0.99);
}

/* --- Sub-Page Header --- */
.back-link {
    position: absolute;
    left: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible {
    color: var(--accent);
}

.logo-sm {
    width: 140px;
}

.page-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.page-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* --- Pricing (sub-page) --- */
.pricing-cards {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-card {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.pricing-card-img {
    width: 100%;
    height: auto;
    display: block;
}

.pricing-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
}

.pricing-card-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
}

.pricing-card-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.memberships-notice {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 20px;
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-sm);
    text-align: center;
}

/* --- Steps (How It Works) --- */
.steps {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.step-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #000000;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.step-title {
    font-size: 15px;
    font-weight: 600;
}

.step-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Service Areas (sub-page) --- */
.areas-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.area-tag {
    padding: 10px 18px;
    background: var(--bg-button);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.areas-note {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
    max-width: 360px;
}

/* --- Map --- */
.areas-map {
    width: 100%;
    height: 300px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.map-pin {
    background: var(--accent);
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow-strong);
}

.map-tooltip {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.map-tooltip::before {
    border-top-color: var(--border);
}

.leaflet-tooltip-top::before {
    border-top-color: var(--border);
}

/* --- FAQs (sub-page) --- */
.faq-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-chevron {
    min-width: 18px;
    transition: transform 0.2s ease;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 20px 12px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.faq-answer p:last-child {
    padding-bottom: 16px;
}

.faq-answer ul {
    padding: 0 20px 12px 36px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.faq-answer ul:last-child {
    padding-bottom: 16px;
}

.faq-answer a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.faq-answer a:hover {
    text-decoration: none;
}

.faq-contact-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.faq-contact-title {
    font-size: 16px;
    font-weight: 600;
}

.faq-contact-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* --- Contact Details (sub-page) --- */
.contact-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 16px var(--accent-glow);
}

.contact-link svg {
    min-width: 18px;
    color: var(--accent);
}

/* --- Booking Form --- */
.booking-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: -2px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    background: var(--bg-button);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    color: var(--text-muted);
}

.form-select:valid {
    color: var(--text-primary);
}

.form-textarea {
    height: 100px;
    padding: 14px 16px;
    resize: vertical;
    line-height: 1.5;
}

.form-row {
    width: 100%;
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

/* Radio pills */
.radio-group {
    display: flex;
    gap: 10px;
}

.radio-pill {
    flex: 1;
}

.radio-pill input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.radio-pill span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-button);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.radio-pill span:hover {
    border-color: var(--border-light);
}

.radio-pill input:checked + span {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 180, 216, 0.06);
    box-shadow: 0 0 12px var(--accent-glow);
}

.radio-pill input:focus-visible + span {
    box-shadow: 0 0 0 2px var(--accent);
}

/* Submit button */
.btn-submit {
    width: 100%;
    margin-top: 4px;
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Form info */
.form-info {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

/* Form error */
.form-error {
    width: 100%;
    padding: 12px 16px;
    background: rgba(220, 50, 50, 0.1);
    border: 1px solid rgba(220, 50, 50, 0.3);
    border-radius: var(--radius-sm);
}

.form-error p {
    font-size: 13px;
    color: #e55;
    text-align: center;
}

/* --- Confirmed Page --- */
.confirmed-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.confirmed-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 180, 216, 0.1);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 4px;
}

.confirmed-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.confirmed-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.confirmed-hours {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--bg-button);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: left;
}

.confirmed-hours-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.confirmed-hours p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.confirmed-hours strong {
    color: var(--text-primary);
    font-weight: 600;
}

.confirmed-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.confirmed-contact a {
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.confirmed-contact a:hover {
    opacity: 0.8;
}

/* --- Placeholder --- */
.placeholder-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-button);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

/* --- Social Icons --- */
.social-icons {
    display: flex;
    gap: 16px;
    padding-top: 4px;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.social-icon:hover,
.social-icon:focus-visible {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 16px var(--accent-glow);
}

/* --- Footer --- */
.footer {
    padding-top: 16px;
    text-align: center;
}

.footer p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 520px) {
    .container {
        padding: 56px 24px 40px;
    }

    .logo {
        width: 240px;
    }

    .tagline-primary {
        font-size: 20px;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    #bubbles-canvas {
        display: none;
    }
}
