﻿/* ================================
   GLOBAL STYLES - AMBULIFE
   Shared across all pages
   ================================ */

/* ================================
   GOOGLE FONTS
   ================================ */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');

/* ================================
   CSS VARIABLES (COLOR PALETTE)
   ================================ */
:root {
    /* Brand Colors — White & Light Red */
    --color-text: #0f172a;
    --color-primary: #CF6B56;
    --color-accent: #E18573;
    --color-deep: #B5523E;
    --color-light-bg: #FDEDEC;
    --color-mid-bg: #FADBD8;
    --color-bg: #FAFAFA;
    --color-white: #FFFFFF;
    --color-border: rgba(0, 0, 0, 0.07);
    --color-surface: #FFFFFF;

    /* Spacing */
    --container-max: 1400px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Typography (UI/UX Pro Max Standard) */
    --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Oswald", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 900;

    /* Shadows */
    --shadow-none: none;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.10);
    --shadow-red: 0 8px 24px rgba(192, 57, 43, 0.20);

    /* Transitions (Premium Motion) */
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ================================
   RESET & BASE
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 300;
    overflow-x: hidden;
    opacity: 0;
    animation: pageFadeIn 0.5s ease-in-out forwards;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   TYPOGRAPHY
   ================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.75rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--color-text);
    opacity: 0.8;
    line-height: 1.7;
}

/* ================================
   LAYOUT UTILITIES
   ================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-center {
    text-align: center;
}

/* ================================
   BUTTONS (UI/UX Pro Max Resizing & Motion)
   ================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 14px 28px;
    font-family: var(--font-main);
    text-transform: none;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.01em;
    text-decoration: none;
    border: 1.5px solid transparent;
    border-radius: 100px;
    /* Pill shape for premium feel */
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(207, 107, 86, 0.25);
}

.btn-primary:hover {
    background-color: var(--color-deep);
    border-color: var(--color-deep);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(207, 107, 86, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(207, 107, 86, 0.25);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-surface);
    color: var(--color-primary);
    border-color: var(--color-border);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

/* ================================
   HEADER & NAVIGATION
   ================================ */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: box-shadow var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 0;
    gap: var(--spacing-md);
}

.logo a {
    text-decoration: none;
}

.logo h1 {
    font-size: 1.65rem;
    font-weight: var(--font-weight-black);
    color: var(--color-primary);
    letter-spacing: -0.8px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: #334155;
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: 0.88rem;
    letter-spacing: 0.1px;
    position: relative;
    transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition);
    border-radius: 2px;
}

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

/* Mobile Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ================================
   FOOTER
   ================================ */
.footer {
    background-color: #0a0a0a;
    color: var(--color-white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    border-top: 3px solid var(--color-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    color: #fca5a5;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.65rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-section ul li a:hover {
    color: #fca5a5;
}

.footer-bottom {
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* ================================
   FORM STYLES (LINE-BASED DESIGN)
   ================================ */
.contact-form,
.wizard-container form {
    max-width: 100%;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    font-weight: 400;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0;
    border: none;
    border-bottom: 1.5px solid rgba(15, 23, 42, 0.25);
    border-radius: 0;
    font-family: inherit;
    font-size: 1rem;
    background-color: transparent;
    color: var(--color-text);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
    color: rgba(15, 23, 42, 0.35);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--color-primary);
    box-shadow: 0 2px 0 0 var(--color-primary);
}

.form-group input.error,
.form-group select.error {
    border-bottom-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.35rem;
    display: none;
}

.form-group input.error~.error-message {
    display: block;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    border: none;
    border-bottom: 1.5px solid rgba(15, 23, 42, 0.25);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23334155' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.25rem center;
    padding-right: 1.5rem;
}

/* ================================
   FAQ SECTION
   ================================ */
/* ================================
   FAQ SECTION (Updated Design)
   ================================ */
.faq-section-updated {
    background-color: var(--color-bg);
    /* muted background */
    padding: var(--spacing-xl) 0;
}

.faq-header {
    text-align: left;
    margin-bottom: 3rem;
}

.faq-header h2 {
    font-size: 2.25rem;
    color: var(--color-text);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
}

.faq-header p {
    font-size: 1.125rem;
    color: var(--color-text);
    opacity: 0.7;
    max-width: 600px;
}

.accordion-container {
    background-color: var(--color-white);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* ring-foreground/5 approx */
    padding: 2rem;
    width: 100%;
}

.accordion-item {
    border-bottom: 1px dotted rgba(0, 0, 0, 0.2);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-trigger {
    padding: 1rem 0;
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    width: 100%;
    outline: none;
    list-style: none;
    /* Hide default marker */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    transition: color 0.2s;
}

.accordion-trigger:hover {
    text-decoration: none;
    /* hover:no-underline */
    opacity: 0.8;
}

/* Custom arrow using pseudo-element or just reliance on details marker if we weren't hiding it */
.accordion-trigger::after {
    content: "chevron_down";
    /* Fallback */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f078";
    /* fa-chevron-down */
    font-size: 0.8em;
    transition: transform 0.2s;
    color: var(--color-text);
    opacity: 0.5;
}

details[open] .accordion-trigger::after {
    transform: rotate(180deg);
}

/* Hide default details marker */
details>summary {
    list-style: none;
}

details>summary::-webkit-details-marker {
    display: none;
}

.accordion-content {
    padding-bottom: 1rem;
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.6;
    animation: accordionDown 0.2s ease-out;
}

.accordion-content ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

.accordion-content li {
    margin-bottom: 0.25rem;
}

@keyframes accordionDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-footer-text {
    margin-top: 1.5rem;
    color: var(--color-text);
    opacity: 0.7;
    font-size: 1rem;
}

.faq-footer-text a {
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
}

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

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    /* Mobile Navigation */
    .nav-links {
        position: fixed;
        top: 73px;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        padding: var(--spacing-md);
        gap: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
        text-align: right;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .hamburger {
        display: flex;
    }

    .nav .btn-primary {
        background-color: var(--color-primary);
        color: var(--color-white);
        border-color: var(--color-primary);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}


@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
        word-break: break-word;
    }

    h2 {
        font-size: 1.75rem;
        word-break: break-word;
    }

    h3 {
        font-size: 1.25rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.8rem;
    }
}

/* ================================
   DESIGN REFRESH (STYLE-ONLY) — KEPT FOR COMPAT
   ================================ */
/* Color tokens already set above; body bg set here to keep gradient */
body {
    background:
        radial-gradient(ellipse at top left, rgba(192, 57, 43, 0.04), transparent 40%),
        radial-gradient(ellipse at bottom right, rgba(15, 23, 42, 0.04), transparent 40%),
        var(--color-bg);
}

/* ================================
   SECTION DIVIDER UTILITY (Infiniti-style grid lines)
   ================================ */
.section-divider {
    width: 100%;
    height: 1px;
    background: var(--color-border);
    margin: 0;
}

/* ================================
   SCROLL REVEAL ANIMATIONS
   ================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Label pill (Infiniti Medical style text marker) */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0;
    border-radius: 0;
    margin-bottom: 1.25rem;
}

/* Accordion (shared across FAQ inline + global) */
.accordion-container {
    border-radius: 22px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.accordion-item {
    border-bottom: 1px solid #e2e8f0;
}

.accordion-trigger {
    font-weight: var(--font-weight-medium);
}

/* Legacy .footer (booking, faq, booking-success) */
.footer {
    background: #020617;
    color: #94a3b8;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-section h3,
.footer-section h4 {
    color: #fca5a5;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color var(--transition);
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: #fecaca;
}

.footer-section p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.65;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 3rem;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: #64748b;
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ================================
   FLOATING FAQ BUTTON
   ================================ */
.faq-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    box-shadow: 0 8px 15px rgba(207, 107, 86, 0.3);
    z-index: 9999;
    transition: transform var(--transition), box-shadow var(--transition);
}

.faq-fab:hover {
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 12px 20px rgba(207, 107, 86, 0.4);
    background: var(--color-deep);
}

.faq-fab::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(185, 28, 28, 0.5);
    animation: fabRing 3s ease-in-out infinite;
}

@keyframes fabPulse {

    0%,
    100% {
        box-shadow: 0 8px 25px rgba(185, 28, 28, 0.4);
    }

    50% {
        box-shadow: 0 8px 35px rgba(185, 28, 28, 0.6);
    }
}

@keyframes fabRing {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    70% {
        transform: scale(1.3);
        opacity: 0;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* ================================
   ACCESSIBILITY: REDUCED MOTION
   ================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}