:root {
    /* Color System */
    --primary: #DA9100;
    --primary-light: #FFD24C;
    --primary-dark: #B67800;
    --secondary: #003459;
    --secondary-light: #004B7C;
    --secondary-dark: #00171F;

    /* Neutral Colors */
    --text-primary: #333333;
    --text-secondary: #666666;
    --background: #FFFFFF;
    --background-alt: #F5F7FA;

    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;

    /* Typography */
    --font-main: 'Segoe UI', system-ui, sans-serif;
    --font-accent: 'Brush Script MT', cursive;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 12px;

    /* Header spacing (used to offset fixed header) */
    --header-height: 64px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--background);
}

/* Ensure content is not hidden under the fixed header */
main, body > section, .content, .landing, .about-content, .appointments-container {
    padding-top: var(--header-height);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--background);
    padding: var(--space-md) var(--space-xl);
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.logo {
    font-family: var(--font-accent);
    font-size: 1.75rem;
    color: var(--primary);
    position: relative;
    z-index: 2;
}

.logo a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition-fast);
}

.logo a:hover {
    color: var(--primary-dark);
    text-shadow: 0 2px 4px rgba(218, 145, 0, 0.2);
}

nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: var(--space-xs) var(--space-sm);
    display: inline-block;
}

nav a:hover {
    color: var(--primary);
    background: none;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    margin: auto;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-normal);
}

nav a:hover::after {
    width: 100%;
    left: 0;
    right: 0;
    margin: auto;
}

.book-btn {
    background-color: var(--primary);
    color: white;
    padding: var(--space-sm) var(--space-lg);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.book-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-light);
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    z-index: -1;
}

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

.book-btn:hover::before {
    transform: translateX(0);
}

.book-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition-fast);
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
}

.menu-icon:hover {
    color: var(--primary);
    background: none;
    box-shadow: none;
}

@media (max-width: 1200px) {
    nav {
        display: none;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--background);
        padding: var(--space-lg);
        box-shadow: var(--shadow-lg);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transform: translateY(-10px);
        opacity: 0;
        transition: all var(--transition-normal);
    }

    nav.show {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    nav a {
        padding: var(--space-sm) var(--space-md);
        border-radius: var(--radius-sm);
        display: inline-block;
        margin: 0 auto 1.2rem auto;
    }

    nav a:hover {
        background: none;
    }

    .menu-icon {
        display: block;
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background: var(--background);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    animation: modalSlideIn 0.3s ease;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
}

/* Appointment Modal Styles */
.appointment-modal {
    max-width: 800px;
    padding: var(--space-xl);
    overflow-y: auto;
    margin: 20px auto;
}

.appointment-header {
    text-align: center;

    position: relative;
    background: var(--background);
    padding: var(--space-md);
    z-index: 2;
}

.appointment-header i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.appointment-header h2 {
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    font-size: 1.5rem;
}

.appointment-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.appointment-form {
    margin-top: var(--space-lg);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
        gap: 1.5rem;
    padding: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-md);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
    }

    .form-group {
        margin-bottom: var(--space-xs);
    }
}

.form-group label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
    font-weight: 500;
}

.form-group label i {
    color: var(--primary);
}


.form-actions {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: var(--space-md);
    position: relative;
    background: var(--background);
    height: auto;
}

.primary-btn,
.secondary-btn {
    min-width: 130px;
    max-width: 200px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-size: 1rem;
    font-family: var(--font-main);
    height: 48px;
    box-sizing: border-box;
    border-width: 2px;
    border-style: solid;
    vertical-align: middle;
}

.primary-btn {
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: var(--shadow-sm);
}

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

.primary-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.secondary-btn {
    background: var(--background);
    color: var(--text-primary);
    border: 2px solid var(--text-secondary);
    margin-top: 3%;
}

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

.secondary-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .modal {
        padding: var(--space-md);
        align-items: center;
    }

    .modal-content {
        margin: var(--space-md) auto;
        max-height: 90vh;
        width: 100%;
    }

    .appointment-modal {
        padding: var(--space-lg);
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .appointment-header h2 {
        font-size: 1.5rem;
    }

    .close {
        .appointment-summary {
            padding: var(--space-md);
        }

        right: var(--space-md);
        top: var(--space-md);
    }

    .form-actions {
        padding: var(--space-md) 0;
        flex-direction: row;
        gap: var(--space-md);
        align-items: stretch;
        justify-content: center;
    }

    .primary-btn,
    .secondary-btn {
        min-width: 130px;
        max-width: 180px;
        flex: 0 0 auto;
        font-size: 0.95rem;
        height: 46px;
        line-height: 46px;
        padding: 0 24px;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: var(--space-sm);
    }

    .appointment-modal {
        padding: var(--space-md);
    }

    .form-actions {
        flex-direction: column-reverse;
        padding: var(--space-md) var(--space-lg);
        gap: var(--space-md);
        margin-top: var(--space-lg);
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
        min-width: 100%;
        height: 46px;
        line-height: 46px;
        font-size: 1rem;
    }


    .close {
        right: var(--space-sm);
        top: var(--space-sm);
    }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

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

.close {
    position: absolute;
    right: var(--space-lg);
    top: var(--space-lg);
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--background-alt);
    z-index: 10;
}

.close:hover {
    color: var(--primary);
    background: rgba(218, 145, 0, 0.1);
}

.auth-message {
    text-align: center;
    padding: var(--space-lg) 0;
}

.auth-message h2 {
    color: var(--text-primary);
    margin: var(--space-md) 0;
}

.auth-message p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.auth-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-xl);
}

.auth-btn {
    padding: var(--space-sm) var(--space-xl);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

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

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

.signup-btn {
    background-color: var(--background);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.signup-btn:hover {
    background-color: var(--background-alt);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Profile Menu Styles */
.profile-menu {
    position: relative;
}

.profile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-normal);
    font-weight: 600;
}

.profile-icon:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.profile-icon.logged-in {
    background: var(--primary-dark);
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    min-width: 300px;
    background: var(--background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0;
    z-index: 1000;
    animation: dropdownSlideIn 0.2s ease;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.profile-header {
    display: flex;
    align-items: center;
    padding: var(--space-md);
    background: var(--background-alt);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-initial {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: var(--space-md);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.profile-email {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.profile-menu-items {
    padding: var(--space-sm);
}

.profile-menu-item {
    display: flex;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    font-size: 16px;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.profile-menu-item:hover {
    background: var(--background-alt);
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(218, 145, 0, 0.18), 0 2px 8px rgba(0,0,0,0.10);
}

.profile-menu-item i {
    margin-right: var(--space-sm);
    font-size: 1.1rem;
}

.profile-menu-item.logout {
    color: #dc3545;
}

.profile-menu-item.logout:hover {
    background: #fff5f5;
}

.profile-divider {
    margin: var(--space-sm) 0;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Promo Cards Styles */
.promos {
    padding: var(--space-xl) var(--space-md);
}

.promos h2 {
    text-align: center;
    margin-bottom: var(--space-xl);
    color: var(--text-primary);
}

.promo-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.promo-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    aspect-ratio: 3/4;
}

.promo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.promo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: var(--space-xl) var(--space-md) var(--space-md);
    color: white;
    opacity: 0;
    pointer-events: none;
    transform: translateY(40px);
    transition: opacity 0.3s, transform 0.3s;
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.promo-card:hover img {
    transform: scale(1.05);
}

.promo-card:hover .promo-overlay {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.promo-overlay h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.promo-overlay p {
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
    opacity: 0.9;
}

.book-promo-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-fast);
}

.book-promo-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Landing content headings */
.landing-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 8px #00171F, 0 1px 0 #fff;
}

.landing-content p {
    font-size: 1.25rem;
    color: #fff;
    text-shadow: 1px 1px 6px #003459;
}

.promos {
    padding: 2rem;
    background-color: #fff0f3;
    text-align: center;
}

.promo-list {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.promo-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 0;
    width: 340px;
    height: 340px;
    aspect-ratio: 1/1;
    min-width: 220px;
    min-height: 220px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.promo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

@media (max-width: 900px) {
    .promo-card {
        width: 90vw;
        max-width: 340px;
        min-width: 180px;
        min-height: 180px;
        aspect-ratio: 1/1;
    }
}

@media (max-width: 768px) {
    .nav ul {
        flex-direction: column;
        background-color: #f7eaea;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        display: none;
    }

    .nav ul.show {
        display: flex;
    }

    .landing-content h1 {
        font-size: 2rem;
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    padding: 36px 24px 28px 24px;
    min-width: 320px;
    max-width: 400px;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

.modal-content h2 {
    color: #DA9100;
    font-size: 1.5rem;
    margin-bottom: 18px;
    font-family: 'Segoe UI', sans-serif;
    letter-spacing: 1px;
}

.modal-content form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.modal-content label {
    font-weight: 500;
    color: #003459;
    margin-bottom: 4px;
    text-align: left;
}

.modal-content input,
.modal-content select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    margin-bottom: 8px;
}

.modal-content button[type="submit"] {
    background: #DA9100;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
    width: 100%;
}

.modal-content button[type="submit"]:hover {
    background: #FFD24C;
    color: #003459;
}

.modal .close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 1.5rem;
    color: #DA9100;
    cursor: pointer;
}

@media (max-width: 600px) {
    .modal-content {
        padding: 18px 8px;
        min-width: 90vw;
        max-width: 98vw;
    }

    .modal-content h2 {
        font-size: 1.3rem;
    }
}

/* Hide the text logo on small screens to save space */
@media (max-width: 600px) {
    .logo {
        display: none;
    }
}

/* Stronger rule to ensure the header logo text is hidden on very small screens */
@media (max-width: 600px) {
    header .logo,
    header .logo a,
    .logo {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        line-height: 0 !important;
        overflow: hidden !important;
    }
}

/* Landing hero responsiveness similar to about-hero */
.landing {
    background-size: cover;
    background-position: center;
    height: 40vh; /* match about-hero behavior */
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 600px) {
    .landing {
        height: 30vh;
    }
}