/*
 * Boncan Dentistry - Luxury Editorial Stylesheet v2
 * Premium dental clinic UI with apple-level minimalism, editorial storytelling
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

:root {
    --bg-main: #f7f7f5; /* Off-white / Pearl */
    --bg-alt: #ecece9; /* Soft Mist Gray */
    --bg-dark: #1c1c1c; /* Deep charcoal for contrast */
    
    --text-main: #2a2a2a;
    --text-muted: #737373;
    --text-light: #f7f7f5;
    
    --accent: #0b3b3c; /* Deep Teal */
    --accent-light: #d6e3e4;
    
    --border-color: #dfdfdb;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-medium: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Public page floating card wrapper */
body.public-bg {
    background: #071c1d;
    height: 100vh;
    overflow: hidden;
}
.public-wrapper {
    position: fixed;
    inset: 1.5rem;
    border-radius: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-main);
    box-shadow: 0 40px 120px rgba(0,0,0,0.6);
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}
.public-wrapper::-webkit-scrollbar { width: 5px; }
.public-wrapper::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--text-main);
    line-height: 1.2;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--text-main);
}

/* Layout Utilities */
.editorial-section {
    padding: 8rem 0;
    position: relative;
}

.bg-alt { background-color: var(--bg-alt); }
.bg-dark { background-color: var(--bg-dark); color: var(--text-light); }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: var(--text-light); }
.bg-dark .text-muted { color: #a0a0a0 !important; }

.section-label {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: block;
}

.bg-dark .section-label { color: var(--text-light); opacity: 0.7; }

.editorial-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    letter-spacing: -1px;
}
.editorial-title em {
    font-style: italic;
    color: var(--accent);
}

.editorial-lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 80%;
    margin-bottom: 3rem;
}

@media (max-width: 991.98px) {
    .editorial-title { font-size: 2.6rem; }
    .editorial-lead { max-width: 100%; }
}

.editorial-section img {
    border-radius: 16px;
}
@media (max-width: 575.98px) {
    .editorial-title { font-size: 2rem; letter-spacing: -0.5px; }
    .editorial-section { padding: 5rem 0; }
}

/* Custom Navbar — sticky inside .public-wrapper */
.luxury-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(247, 247, 245, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    padding: 1.2rem 0;
    transition: var(--transition-medium);
}
.luxury-nav.scrolled {
    padding: 0.85rem 0;
    border-bottom-color: var(--border-color);
    box-shadow: 0 2px 20px rgba(11,59,60,0.06);
}
.brand-logo {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}
.brand-logo i {
    font-size: 1.2rem;
    margin-right: 0.8rem;
}

.nav-link-luxury {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-main);
    margin: 0 1.2rem;
    position: relative;
    transition: var(--transition-medium);
}
.nav-link-luxury:hover, .nav-link-luxury.active {
    color: var(--accent);
}
.nav-link-luxury::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--accent);
    transition: var(--transition-medium);
}
.nav-link-luxury:hover::after, .nav-link-luxury.active::after {
    width: 100%;
}

/* Buttons */
.btn-luxury {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    padding: 0.8rem 2rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    transition: var(--transition-medium);
    text-decoration: none;
    border-radius: 8px;
}
.btn-luxury:hover {
    background: var(--accent);
    color: var(--bg-main);
}
.btn-luxury-solid {
    background: var(--accent);
    color: var(--bg-main);
    border: 1px solid var(--accent);
}
.btn-luxury-solid:hover {
    background: transparent;
    color: var(--accent);
}
.btn-luxury-light {
    background: var(--bg-main);
    color: var(--accent);
    border: 1px solid var(--bg-main);
}
.btn-luxury-light:hover {
    background: transparent;
    color: var(--bg-main);
    border-color: var(--bg-main);
}

/* Hero Section */
.hero-editorial {
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
}
.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}
.hero-title em {
    color: var(--accent);
    font-style: italic;
    font-weight: 400;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 90%;
    margin-bottom: 3rem;
}
@media (max-width: 991.98px) {
    .hero-title { font-size: 3.5rem; letter-spacing: -1px; }
    .hero-img-wrapper { height: 50vh; margin-top: 2.5rem; }
}
@media (max-width: 575.98px) {
    .hero-title { font-size: 2.6rem; letter-spacing: -0.5px; }
    .hero-img-wrapper { height: 40vh; }
}
.hero-img-wrapper {
    position: relative;
    height: 75vh;
    width: 100%;
    overflow: hidden;
    background: var(--bg-alt);
    border-radius: 24px;
}
.hero-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(30%) sepia(10%);
    display: block;
}
.hero-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, transparent 60%, rgba(11, 59, 60, 0.25) 78%, rgba(11, 59, 60, 0.65) 100%);
    pointer-events: none;
    border-radius: inherit;
}



/* Services - Premium Card Grid */
.services-filter-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}
.filter-btn {
    font-family: var(--font-body);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.55rem 1.4rem;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition-medium);
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-main);
}

.service-card-luxury {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    transition: var(--transition-medium);
}
.service-card-luxury::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 0;
    background: var(--accent);
    opacity: 0.04;
    transition: var(--transition-medium);
}
.service-card-luxury:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(11,59,60,0.12);
    border-color: var(--accent);
}
.service-card-luxury:hover::after {
    height: 100%;
}
.service-card-icon {
    width: 50px;
    height: 50px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: var(--accent);
    flex-shrink: 0;
    border-radius: 12px;
    transition: var(--transition-medium);
}
.service-card-luxury:hover .service-card-icon {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.service-card-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.service-card-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1.5rem;
}
.service-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}
.service-card-price {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--accent);
    letter-spacing: -0.5px;
}
.service-card-duration {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.service-cat-badge {
    display: inline-block;
    width: auto;
    align-self: flex-start;
    font-family: var(--font-body);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    background: var(--accent-light);
    border: 1px solid rgba(11,59,60,0.15);
    padding: 0.2rem 0.65rem;
    margin-bottom: 1.25rem;
    border-radius: 4px;
    line-height: 1.6;
}
/* Ensure card uses flex-col so badge stays inline */
.service-card-luxury {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    transition: var(--transition-medium);
    box-shadow: 0 2px 8px rgba(11,59,60,0.04);
}

/* Home services list (kept for home page) */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--border-color);
}
.service-item {
    border-bottom: 1px solid var(--border-color);
    padding: 2.5rem 0;
    display: flex;
    flex-direction: column;
    transition: var(--transition-medium);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
@media (min-width: 768px) {
    .service-item { flex-direction: row; justify-content: space-between; align-items: center; }
}
.service-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: var(--bg-alt);
    z-index: -1;
    transition: var(--transition-medium);
}
.service-item:hover::before { width: 100%; }
.service-item:hover { padding-left: 1.5rem; padding-right: 1.5rem; }
.service-item-title { font-size: 2rem; font-family: var(--font-heading); margin: 0; color: var(--text-main); }
.service-item-desc { font-family: var(--font-body); color: var(--text-muted); max-width: 400px; margin-top: 0.5rem; margin-bottom: 0; }
.service-item-price { font-family: var(--font-body); font-size: 1.2rem; color: var(--accent); margin-top: 1rem; }
@media (min-width: 768px) { .service-item-price { margin-top: 0; } }

/* FAQs */
.luxury-accordion .accordion-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 12px !important;
}
.luxury-accordion .accordion-button {
    background: transparent !important;
    color: var(--text-main) !important;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    padding: 2rem 0;
    box-shadow: none !important;
}
.luxury-accordion .accordion-button:not(.collapsed) {
    color: var(--accent) !important;
}
.luxury-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230b3b3c'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") !important;
}
.luxury-accordion .accordion-body {
    padding: 0 0 2rem 0;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Auth Pages */
.auth-body {
    background: #071c1d;
    height: 100vh;
    display: flex;
    align-items: stretch;
    padding: 1.5rem;
    box-sizing: border-box;
    overflow: hidden;
}
.auth-split {
    display: flex;
    flex: 1;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}
.auth-image {
    flex: 1;
    background: var(--bg-alt);
    display: none;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}
.auth-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(30%) sepia(10%);
    display: block;
}
.auth-image-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(11,59,60,0.1) 0%, rgba(11,59,60,0.6) 100%);
    pointer-events: none;
}
@media (min-width: 992px) {
    .auth-image { display: flex; flex-direction: column; }
}
.auth-form-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: var(--bg-main);
    overflow-y: auto;
    overflow-x: hidden;
}
.auth-form-container {
    width: 100%;
    max-width: 450px;
}
.auth-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}
.form-control-luxury {
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem 0;
    background: transparent;
    font-family: var(--font-body);
    transition: var(--transition-medium);
    font-size: 1.1rem;
}
.form-control-luxury:focus {
    box-shadow: none;
    border-bottom-color: var(--accent);
    background: transparent;
}
.form-label-luxury {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0;
}
.auth-link {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: underline;
    text-decoration-color: transparent;
}
.auth-link:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

/* Custom Alert override for flash messages */
.alert-modern {
    border-radius: 12px;
    border: 1px solid;
    font-family: var(--font-body);
    padding: 1rem;
    margin-bottom: 1.5rem;
}
.alert-danger { background: #fdf5f5; border-color: #f5c6c6; color: #b73e3e; }
.alert-success { background: #f5fdf7; border-color: #c6f5d1; color: #3eb75e; }

/* Footer */
.luxury-footer {
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-main);
}
.footer-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}
.footer-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.8rem;
}
.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.footer-links a:hover {
    color: var(--accent);
}
.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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