/* ============================================
   Teeth Whitening & Aesthetics - Main Styles
   WordPress-Ready HTML5 Template
   ============================================ */

/* NOTE:
   Google Fonts are enqueued via WordPress (functions.php),
   so we do NOT @import them here to avoid double-loading.
*/

/* CSS Custom Properties */
:root {
    --bg-default: #253343;
    --bg-darker: #1a2430;
    --bg-lighter: #2f4052;
    --bg-glass: rgba(37, 51, 67, 0.7);

    --primary-main: #00CED1;
    --primary-glow: rgba(0, 206, 209, 0.5);
    --primary-hover: #00e5e8;

    --secondary-main: #A9E2F3;
    --secondary-border: rgba(169, 226, 243, 0.2);

    --text-primary: #FFFFFF;
    --text-secondary: #A9E2F3;
    --text-muted: #94a3b8;

    --success: #10b981;
    --error: #ef4444;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

    --sidebar-width: 280px;
    --transition-default: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-default);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-main);
    text-decoration: none;
    transition: var(--transition-default);
}

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

/* Layout Structure */
.page-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-darker);
    border-right: 1px solid var(--secondary-border);
    padding: 2rem 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
    overflow-y: auto;
}

/* OPTION 1 (Responsive, no fixed height):
   Let the logo size naturally, with padding. */
.sidebar-logo {
    padding: 20px;
    background: var(--bg-default);
    border-bottom: 1px solid var(--secondary-border);
}

.sidebar-logo img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    background: transparent;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.nav-section-title {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    padding: 1rem 1.5rem 0.5rem;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
    border-left: 3px solid transparent;
    transition: var(--transition-default);
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
    color: var(--text-primary);
    background: rgba(0, 206, 209, 0.1);
    border-left-color: var(--primary-main);
}

.sidebar-contact {
    padding: 1.5rem;
    border-top: 1px solid var(--secondary-border);
}

.sidebar-contact p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.sidebar-contact a {
    color: var(--text-secondary);
}

.sidebar-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.sidebar-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 206, 209, 0.1);
    color: var(--primary-main);
    transition: var(--transition-default);
}

.sidebar-social a:hover {
    background: var(--primary-main);
    color: var(--bg-default);
    transform: translateY(-2px);
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    min-width: 0;
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--bg-darker);
    border-bottom: 1px solid var(--secondary-border);
    z-index: 99;
    padding: 0 1.5rem;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(20px);
}

.mobile-logo {
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--bg-default);
    border: 1px solid var(--secondary-border);
}

.mobile-logo img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 100%;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--bg-default) 30%, transparent 70%),
                linear-gradient(to top, var(--bg-default), transparent);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 3rem;
    max-width: 700px;
}

.hero h1 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--primary-main);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition-default);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-main);
    color: var(--bg-default);
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: var(--bg-default);
    box-shadow: 0 0 30px var(--primary-glow);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: rgba(0, 206, 209, 0.1);
    color: var(--primary-hover);
}

/* Section Styles */
.section {
    padding: 5rem 3rem;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-main);
    border-radius: 2px;
}

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

.service-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-default);
}

.service-card:hover {
    border-color: var(--primary-main);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card-image {
    height: 200px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.service-card-content {
    padding: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-card-price {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary-main);
    font-weight: 600;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-main);
}

.service-card-link:hover {
    gap: 0.75rem;
}

/* Service Page Styles */
.service-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.service-hero-bg {
    position: absolute;
    inset: 0;
}

.service-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-default), transparent);
}

.service-hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    width: 100%;
    min-width: 0;
}

.service-hero h1 {
    color: var(--text-primary);
}

.service-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.service-breadcrumb a {
    color: var(--text-muted);
}

.service-breadcrumb span {
    color: var(--text-muted);
}

.service-breadcrumb .current {
    color: var(--primary-main);
}

.service-details {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 3rem;
}

.service-description,
.service-sidebar {
    min-width: 0;
}

.service-description h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.service-description p {
    line-height: 1.8;
}

.service-description ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.service-description li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.service-description img {
    max-width: 100%;
    height: auto;
}

.service-sidebar {
    position: sticky;
    top: 2rem;
}

.pricing-card {
    background: var(--bg-darker);
    border: 1px solid var(--secondary-border);
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 100%;
}

.pricing-card h3 {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.pricing-card .price {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-main);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-card .duration {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.pricing-card .btn {
    width: 100%;
}

/* About Page */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    border-radius: 16px;
    overflow: hidden;
}

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

.about-services-list {
    margin-top: 2rem;
}

.about-services-list ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    list-style: none;
}

.about-services-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* FIXED: use a checkmark */
.about-services-list li::before {
    content: "?";
    color: var(--primary-main);
    font-weight: 700;
}

/* Make services clickable and clean */
.about-services-list li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-default);
}

.about-services-list li a:hover {
    color: var(--primary-hover);
    transform: translateX(3px);
}

/* Gallery Page */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-default);
}

.gallery-item:hover {
    border-color: var(--primary-main);
    transform: translateY(-3px);
}

.gallery-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.gallery-images .before,
.gallery-images .after {
    position: relative;
    height: 200px;
}

.gallery-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-images .label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--bg-darker);
    color: var(--text-primary);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.gallery-item-content {
    padding: 1.25rem;
}

.gallery-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.gallery-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Placeholder for images */
.image-placeholder {
    background: var(--bg-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Enquiry Form */
.enquiry-section {
    max-width: 700px;
    margin: 0 auto;
}

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

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

.form-control {
    width: 100%;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--bg-darker);
    border: 1px solid var(--secondary-border);
    border-radius: 8px;
    color: var(--text-primary);
    transition: var(--transition-default);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-main);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300CED1' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 3rem;
}

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

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 206, 209, 0.1);
    border-radius: 12px;
    color: var(--primary-main);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-details p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--secondary-border);
    padding: 2rem 3rem;
    text-align: center;
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .mobile-header {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        padding-top: 70px;
    }

    .service-details {
        grid-template-columns: 1fr;
    }

    .service-sidebar {
        position: static;
        top: auto;
    }

    .about-intro {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 1.5rem;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .about-services-list ul {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .service-details {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-description,
    .service-sidebar,
    .pricing-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .service-sidebar {
        position: static;
        top: auto;
    }

    .service-breadcrumb {
        flex-wrap: wrap;
        row-gap: 0.25rem;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .service-hero-content {
        padding: 1.5rem;
    }

    .service-description img,
    .service-hero-bg img {
        max-width: 100%;
        height: auto;
    }
}

/* Overlay for mobile menu */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* NUCLEAR OVERRIDE: kill the old broken markers */
.about-services-list ul li::before {
    content: "?" !important;
    color: var(--primary-main) !important;
    font-weight: 700 !important;
}