@font-face {
    font-family: 'TTCommons-Regular';
    src: url('https://parkhavendental.ca/wp-content/uploads/2022/12/TTCommons-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --theme-green: #9ecb3b;
    --theme-blue: #4c6be7;
    --theme-dark: #0e123d;
    --theme-dark-bg: #0b0d2d;
    --text-muted: #6c757d;
    --font-primary: 'TTCommons-Regular', 'Inter', sans-serif;
}

body {
    font-family: var(--font-primary);
    color: #4a4a4a;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* Utilities */
.text-theme-green { color: var(--theme-green) !important; }
.text-theme-blue { color: var(--theme-blue) !important; }
.text-theme-dark { color: var(--theme-dark) !important; }
.bg-theme-dark { background-color: var(--theme-dark) !important; }
.tracking-wide { letter-spacing: 1.5px; }

/* Buttons */
.btn-theme-green {
    background-color: var(--theme-green);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    transition: all 0.3s;
}
.btn-theme-green:hover {
    background-color: #8ab62e;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(158, 203, 59, 0.4);
}

.btn-theme-blue {
    background-color: var(--theme-blue);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    transition: all 0.3s;
}
.btn-theme-blue:hover {
    background-color: #3b56c4;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 107, 231, 0.4);
}

/* Top Bar */
.top-bar {
    background-color: var(--theme-blue);
    color: #ffffff;
    font-size: 0.9rem;
}
.top-bar a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}
.top-bar a:hover {
    color: rgba(255, 255, 255, 0.8);
}
.social-icons a {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    transition: all 0.3s;
}
.social-icons a:hover {
    background-color: var(--theme-green);
}

/* Navbar */
.main-header .navbar-nav .nav-link {
    color: var(--theme-dark);
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}
.main-header .navbar-nav .nav-link:hover,
.main-header .navbar-nav .nav-link.active {
    color: var(--theme-blue);
}

/* Hero Section */
.hero-section {
    min-height: 700px;
    background: url('../images/main-banner-bg.jpg') center/cover no-repeat;
    position: relative;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Adding a subtle dark gradient from left to ensure text legibility over the image */
    background: linear-gradient(90deg, rgba(14,18,61,0.8) 0%, rgba(14,18,61,0.4) 50%, transparent 100%);
    z-index: 0;
}
.hero-decoration {
    top: 80.5%;
    left: 2%;
    max-width: 265px;
    opacity: 1.9;
    z-index: 1;
}

/* Services */
.service-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    height: 100%;
}
.service-card:hover {
    transform: translateY(-5px);
}

/* Extended Hours */
.blue-gradient-blob {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(76,107,231,0.15) 0%, transparent 70%);
    z-index: 0;
}

/* Team */
/* Team Section */
.team-card-modern:hover {
    transform: translateY(-10px) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(158, 203, 59, 0.1) !important;
}
.team-card-modern:hover .team-img-wrapper {
    box-shadow: 0 10px 30px rgba(158, 203, 59, 0.5) !important;
    border-color: #fff !important;
    transform: scale(1.05);
}
.team-card-modern:hover .team-img-wrapper img {
    transform: scale(1.1) !important;
}

/* Mid CTA */
.mid-cta-section .bg-theme-dark {
    background-color: var(--theme-dark-bg) !important;
}
.mid-cta-section::before {
    /*content: '';*/
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--theme-blue);
    border-radius: 50%;
    top: -50px;
    left: -50px;
    opacity: 0.2;
    z-index: 0;
}

/* Footer Contact Form */
.footer-contact-form-wrapper {
    margin-top: -100px;
}
.contact-form-box {
    background-color: var(--theme-dark-bg);
    border: 1px solid rgba(255,255,255,0.1);
}
.form-control.border-bottom-only {
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    border-radius: 0;
    padding-left: 0;
}
.form-control.border-bottom-only:focus {
    box-shadow: none;
    border-bottom-color: var(--theme-green);
}
.contact-form-box .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.form-control.border-bottom-only::placeholder {
    color: rgba(255,255,255,0.5);
}

/* Footer Bottom */
.site-footer {
    background-color: var(--theme-dark);
}
.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    line-height: 2.5;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--theme-green);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-section {
        min-height: 600px;
        background-position: left center;
    }
    .hero-section::before {
        background: rgba(14,18,61,0.7);
    }
    .footer-contact-form-wrapper {
        margin-top: 50px;
    }
}

/* Nested Dropdowns */
.dropdown-submenu {
    position: relative;
}
.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

@media (min-width: 992px) {
    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }
    .main-header .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeIn 0.2s ease;
    }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
