/* APEX DENTAL - Premium Warm Light Style System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-main: #fcfbf9;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #fbfaf7;
    
    --accent-primary: #0f766e; /* Calm warm teal */
    --accent-primary-hover: #115e59;
    --accent-secondary: #b45309; /* Warm gold/amber */
    --accent-gradient: linear-gradient(135deg, #0f766e, #14b8a6);
    
    --text-primary: #1e293b; /* Deep slate */
    --text-secondary: #475569; /* Muted slate */
    --text-muted: #64748b;
    
    --border-color: rgba(15, 23, 42, 0.06);
    --border-color-hover: rgba(15, 23, 42, 0.12);
    
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.02);
    --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.05);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 0% 0%, rgba(15, 118, 110, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(180, 83, 9, 0.02) 0px, transparent 50%);
}

/* Typography & Layout Elements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Nav Bar Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(252, 251, 249, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 2rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    font-weight: 300;
    color: var(--text-secondary);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav ul li a {
    color: var(--text-secondary);
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--accent-primary);
}

/* Language selector */
.lang-selector {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-right: 1px solid var(--border-color);
    padding-right: 1rem;
}

.lang-link {
    color: var(--text-muted);
    padding: 2px 6px;
    border-radius: 4px;
}

.lang-link.active {
    color: var(--accent-primary);
    background: rgba(15, 118, 110, 0.08);
}

/* CTA buttons */
.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(15, 118, 110, 0.15);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 118, 110, 0.25);
    background: var(--accent-primary-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(15, 23, 42, 0.15);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(15, 23, 42, 0.03);
    border-color: var(--text-primary);
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 4rem 2rem;
    }
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-text h1 mark {
    background: none;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

@media (max-width: 968px) {
    .hero-buttons {
        justify-content: center;
    }
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-container {
    width: 100%;
    max-width: 440px;
    height: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid #ffffff;
    position: relative;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-image-overlay-card {
    position: absolute;
    bottom: 20px;
    left: -20px;
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--border-color);
}

@media (max-width: 968px) {
    .hero-image-overlay-card {
        display: none; /* Hide overlay badge on small devices */
    }
}

/* Section Common styling */
section.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-lg);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.service-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
}

.service-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.5;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

.service-duration {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Interactive Booking Interface */
.booking-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.booking-header {
    background: var(--bg-surface-elevated);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.steps-indicator {
    display: flex;
    gap: 1.5rem;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: all 0.3s ease;
}

.step-dot.active {
    background: var(--accent-primary);
    box-shadow: 0 0 8px rgba(15, 118, 110, 0.4);
    transform: scale(1.2);
}

.step-dot.completed {
    background: var(--accent-secondary);
}

.booking-body {
    padding: 2.5rem;
}

.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
    animation: fadeIn 0.4s ease-out forwards;
}

/* Service Selector Grid inside book.php */
.select-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.select-service-card {
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.select-service-card:hover {
    border-color: var(--text-muted);
}

.select-service-card.selected {
    border-color: var(--accent-primary);
    background: rgba(15, 118, 110, 0.02);
}

/* Date / Calendar Selection styling */
.calendar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 450px;
    margin: 0 auto;
}

.custom-calendar-input {
    background: var(--bg-surface);
    border: 1px solid rgba(15, 23, 42, 0.15);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1.1rem;
    width: 100%;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.custom-calendar-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(15, 118, 110, 0.1);
}

/* Time slots grid */
.slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.slot-chip {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.slot-chip:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.slot-chip.selected {
    background: var(--accent-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(15, 118, 110, 0.2);
}

/* Forms Input fields */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

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

.form-control {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(15, 118, 110, 0.08);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.booking-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    background: var(--bg-surface-elevated);
}

/* Confirmation Checkmark Animation */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 2rem auto;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #10b981;
    font-size: 2.5rem;
}

/* Glow card replacement style */
.glow-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--shadow-lg);
}

/* Footer Section */
footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2rem 2rem;
    background: #fbfaf7;
    margin-top: 6rem;
}

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

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-column p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

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

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-column ul li a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.staff-portal-link {
    color: var(--text-muted);
    font-weight: 500;
}

.staff-portal-link:hover {
    color: var(--accent-primary);
}

/* Error/Success Alert Boxes */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.alert-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive Navigation Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--accent-primary);
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-container {
        flex-wrap: wrap;
    }
    
    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        margin-top: 1rem;
        gap: 1rem;
        border-top: 1px solid var(--border-color);
        padding-top: 1rem;
    }
    
    nav.open {
        display: flex !important;
    }
    
    .lang-selector {
        border-right: none;
        padding-right: 0;
        margin-bottom: 0.5rem;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        gap: 1rem;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        padding: 0.5rem 0;
        width: 100%;
    }
    
    nav ul li a.btn-primary {
        display: inline-flex;
        width: auto;
        text-align: center;
        justify-content: center;
    }
    
    /* Services Grid responsiveness */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Book page elements responsiveness */
    #step-4 > div {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* About / Why Us about page grid */
    #about > div {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .hero-image-container {
        height: 320px !important;
    }
}

