/*
Theme Name: Niko Dental
Theme URI: https://nikodental.com.np
Description: Professional dental clinic theme for Niko Dental and Health Care Pvt. Ltd. - Best dentist in Dhangadhi, Nepal
Version: 1.0
Author: Niko Dental
Author URI: https://nikodental.com.np
Tags: dental, clinic, medical, health, dhangadhi, nepal
Text Domain: niko-dental
*/

:root {
    --primary-color: #282979;
    --secondary-color: #ed2226;
    --accent-color: #00a550;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

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

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
    margin-right: 20px;
    font-size: 14px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-links span {
    font-size: 14px;
}

.contact-info a:hover {
    opacity: 0.8;
}

.header-main {
    padding: 10px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn:hover {
    background: var(--accent-color);
}

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

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.team-member {
    text-align: center;
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

/* Price Table */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.price-table th {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px;
    text-align: left;
}

.price-table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.price-table tr:hover {
    background: var(--bg-light);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* Sticky Action Buttons */
.sticky-actions {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sticky-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    font-size: 24px;
}

.sticky-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.btn-appointment {
    background: var(--secondary-color);
}

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

.btn-whatsapp {
    background: #25D366;
}

.sticky-btn span {
    font-size: 12px;
    position: absolute;
    right: 70px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.sticky-btn:hover span {
    opacity: 1;
}

/* Internal Links Styling */
.internal-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}

.internal-link:hover {
    color: var(--secondary-color);
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin: 40px 0;
}

.cta-box h3 {
    margin-bottom: 15px;
}

.cta-box .btn {
    background: white;
    color: var(--primary-color);
    margin: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-top {
        padding: 5px 0;
        font-size: 11px;
    }
    
    .header-top .container {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
        overflow: hidden;
    }
    
    .contact-info {
        flex-direction: row;
        gap: 8px;
        font-size: 10px;
        white-space: nowrap;
    }
    
    .contact-info a {
        margin-right: 0;
        font-size: 10px;
    }
    
    .social-links {
        display: none;
    }
    
    .header-main {
        padding: 8px 0 !important;
    }
    
    .header-main .container {
        position: relative;
    }
    
    .logo img {
        height: 40px !important;
        width: auto !important;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .main-nav.active {
        max-height: 500px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }
    
    nav li {
        border-bottom: 1px solid #eee;
    }
    
    nav a {
        display: block;
        padding: 15px 10px;
    }
    
    .hero {
        padding: 30px 0 !important;
    }
    
    .hero h1 {
        font-size: 1.5rem !important;
    }
    
    .hero p {
        font-size: 0.9rem !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    /* About section - stack image and text vertically on mobile */
    .about div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* About page sections - stack vertically on mobile */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Fix all grid layouts to single column */
    div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Fix overflow issues */
    body, html {
        overflow-x: hidden;
    }
    
    section img:not(.logo img):not(.banner-slide-img) {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Fix padding on mobile */
    section {
        padding: 30px 0 !important;
    }
    
    .container {
        padding: 0 15px !important;
    }
    
    /* Fix tables on mobile */
    .price-table {
        font-size: 12px;
    }
    
    .price-table th,
    .price-table td {
        padding: 8px !important;
    }
    
    /* Fix buttons */
    .btn {
        display: inline-block;
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Fix service cards */
    .service-card {
        margin-bottom: 20px;
    }
    
    /* Fix blog content */
    .blog-content {
        padding: 20px 15px !important;
    }
    
    /* Fix lists */
    ul, ol {
        padding-left: 20px !important;
    }
    
    /* Fix background sections with padding */
    div[style*="padding: 30px"],
    div[style*="padding: 60px"] {
        padding: 20px !important;
    }
    
    /* Fix Why Choose Us grid */
    div[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Fix contact form */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        width: 100% !important;
    }
    
    .sticky-actions {
        bottom: 10px;
        right: 10px;
        gap: 10px;
    }
    
    .sticky-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .sticky-btn span {
        display: none;
    }
}
