/* ============================================
   SmileCare Dental Clinic - Custom Styles
   ============================================ */

/* Color Palette */
:root {
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary-color: #20c997;
    --teal-color: #17a2b8;
    --light-blue: #e7f3ff;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --text-dark: #212529;
    --text-muted: #6c757d;
}

/* Typography */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.hero-image-square {
    width: 100%;
    max-width: 500px;      /* control square size */
    aspect-ratio: 1 / 1;  /* 🔥 square */
    overflow: hidden;
    border-radius: 0px;  /* optional rounded square */
    background: #fff;
}

.section-title {
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}

.lead {
    line-height: 1.8;
}

.hero-image-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;    /* crop properly */
    display: block;
}

.section-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 2rem;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--teal-color) 100%);
    padding: 6rem 0;
    margin-top: 0 !important;
}

.min-vh-50 {
    min-height: 50vh;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

/* Cards */
.card {
    border-radius: 1rem;
    transition: all 0.3s ease;
    overflow: hidden;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.service-card {
    border: 1px solid #e9ecef;
    min-height: 100%;
}

.service-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-icon {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Forms */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonial-card {
    border-left: 4px solid var(--primary-color);
}

/* Testimonial Cards */
.card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card .card-text {
    flex-grow: 1;
    margin-bottom: 1rem;
}

/* Better spacing for testimonial cards */
.testimonials-section .card {
    margin-bottom: 1.5rem;
}

/* Service Cards */
.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-icon {
    margin-bottom: 1.5rem;
}

.service-card .card-footer {
    margin-top: auto;
}

/* Gallery */
.gallery-card {
    overflow: hidden;
}

.gallery-image-placeholder {
    background: linear-gradient(135deg, var(--light-blue) 0%, #d1ecf1 100%);
    transition: all 0.3s ease;
}

.gallery-card:hover .gallery-image-placeholder {
    transform: scale(1.05);
}

/* Contact Info */
.contact-info-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.contact-icon {
    min-width: 40px;
}

/* Timings Box */
.timings-box {
    border-left: 4px solid var(--primary-color);
}

/* Dentist Avatar */
.dentist-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dentist-avatar img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dentist-avatar img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.dentist-photo-wrapper {
    padding: 1rem;
}

.dentist-photo-wrapper img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 1rem;
}

.dentist-photo-wrapper img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* About page improvements */
.about-section {
    padding: 3rem 0;
}

.about-section h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1.5rem;
}

.about-section .row {
    align-items: flex-start;
}

/* Value Icons */
.value-icon {
    transition: transform 0.3s ease;
}

.value-icon:hover {
    transform: scale(1.1);
}

/* Map Container */
.map-container {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Accordion */
.accordion-button {
    font-weight: 500;
    color: var(--text-dark);
    background-color: var(--white);
}

.accordion-button:not(.collapsed) {
    background-color: var(--light-blue);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color) !important;
}

/* Utilities */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--teal-color) 100%);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-light {
    background-color: var(--light-gray) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.25rem;
        font-size: 1rem;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
    
    .service-icon i {
        font-size: 3rem !important;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
}

/* Better card spacing */
.row.g-4 > * {
    padding-bottom: 1.5rem;
}

/* Consistent card heights */
.card.h-100 {
    display: flex;
    flex-direction: column;
}

.card.h-100 .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Star ratings spacing */
.bi-star-fill,
.bi-star {
    margin-right: 0.2rem;
    font-size: 1.1rem;
}

/* Better text alignment */
.card-text {
    line-height: 1.7;
    color: var(--text-muted);
    flex-grow: 1;
}

/* Button improvements */
.btn-outline-primary {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    white-space: nowrap;
}

.btn-outline-primary:hover {
    color: white !important;
}

/* Testimonial card improvements */
.testimonials-section .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonials-section .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.testimonials-section .card-text {
    flex-grow: 1;
    font-style: italic;
    color: var(--text-dark);
}

/* Service card text improvements */
.service-card .card-text {
    min-height: 80px;
    margin-bottom: 1rem;
}

/* Better spacing for sections */
section {
    padding: 4rem 0;
}

section.bg-light {
    background-color: var(--light-gray) !important;
}

/* Hero section improvements */
.hero-section h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section .lead {
    opacity: 0.95;
}

/* Navigation active state */
.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

/* Additional Card Improvements */
.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Better spacing for service icons */
.service-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon i {
    transform: scale(1.15);
}

/* Testimonial date and name styling */
.testimonials-section small {
    font-size: 0.85rem;
}

.testimonials-section .fw-bold {
    color: var(--text-dark);
    font-size: 1rem;
}

/* CTA Section improvements */
.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

.bg-primary .btn-light {
    background-color: white;
    color: var(--primary-color);
    font-weight: 600;
}

.bg-primary .btn-light:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Fix for navbar spacing */
.navbar-nav {
    align-items: center;
}

.navbar-nav .btn {
    margin-left: 0.5rem;
}

/* Better section padding */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

@media (min-width: 992px) {
    .py-5 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none;
    }
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;   /* perfect for website */
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: #000;
  }
  
  .video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* crop nicely */
  }
  .video-thumb-card {
    width: 240px;       /* 👈 main control */
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  }
  
  .video-thumb-card video {
    width: 100%;
    height: 300px;      /* 👈 small height */
    object-fit: cover;
    display: block;
  }
  
  .video-thumb-info {
    padding: 8px 10px;
    text-align: center;
  }
  
  .video-thumb-info h6 {
    font-size: 14px;
    margin: 0;
    font-weight: 600;
  }
  
  .slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.slot {
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  border: 1px solid #ddd;
  font-size: 14px;
}

.slot.available {
  background: #e8f5e9;
  color: #2e7d32;
}

.slot.booked {
  background: #f5f5f5;
  color: #aaa;
  cursor: not-allowed;
}

.slot.selected {
  background: #0d6efd;
  color: white;
}

.slot.booked,
.slot-disabled {
  background: #ffcece;
  color: #ff4f4f;
  cursor: not-allowed;
  border: 1px solid #ff5959;
  pointer-events: none;
}

.slot.available:hover {
  background: #cfe2ff;
}
