/* 
   Panikar's Centre for Advanced Dentistry - Main Stylesheet
   Premium Dental Clinic Website
   Color Scheme: Black, Metallic Gold, White
*/

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-black: #000000;
    --secondary-gold: #D4AF37;
    --accent-white: #FFFFFF;
    --dark-gray: #1A1A1A;
    --medium-gray: #333333;
    --light-gray: #666666;
    --light-gold: #F0E6D2;
    --dark-gold: #B8951A;
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F0E6D2 100%);
    --gradient-dark: linear-gradient(135deg, #000000 0%, #1A1A1A 100%);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --box-shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.2);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-black);
    color: var(--accent-white);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 45px; /* Height of top bar */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.8rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: var(--secondary-gold);
    transition: var(--transition);
}

a:hover {
    color: var(--light-gold);
}

.section-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    z-index: -1;
    transition: var(--transition);
    opacity: 1;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--primary-black);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-gold);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-white);
    border: 2px solid var(--secondary-gold);
}

.btn-secondary::before {
    background: var(--gradient-gold);
    opacity: 0;
}

.btn-secondary:hover {
    color: var(--primary-black);
    transform: translateY(-3px);
}

.btn-secondary:hover::before {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    color: black;
    border: 2px solid var(--secondary-gold);
    padding: 12px 28px;
}

.btn-outline:hover {
    background: var(--gradient-gold);
    color: var(--primary-black);
    transform: translateY(-3px);
}

/* Top Contact Bar */
.top-contact-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-contact-bar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-contact-info {
    display: flex;
    align-items: center;
    gap: 30px;
    color: #FFFFFF;
}

.top-contact-info i {
    color: #D4AF37;
    margin-right: 5px;
}

.top-contact-info a {
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s ease;
}

.top-contact-info a:hover {
    color: #D4AF37;
}

.top-social-links {
    display: flex;
    gap: 15px;
}

.top-social-links a {
    color: #FFFFFF;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.top-social-links a:hover {
    color: #D4AF37;
    transform: translateY(-2px);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 45px !important;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 15px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.header.sticky {
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.logo-img {
    width: auto;
    height: 60px;
    border-radius: 8px;
}

.logo-text {
    font-family: 'Playfair Display', serif;
}

.logo-highlight {
    background: linear-gradient(135deg, #FFFFFF 0%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin-right: 30px;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: #fff;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-gold);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-gold);
}

.nav-cta {
    padding: 10px 25px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #fff;
    transition: var(--transition);
}

/* Mobile Menu Fixes */
@media (max-width: 992px) {
    body {
        padding-top: 70px;
    }
    
    .header {
        top: 70px !important;
    }
    
    .top-contact-bar .container {
        flex-direction: row;
        gap: 5px;
        text-align: center;
    }
    
    .top-contact-info {
        flex-direction: column;
        gap: 5px;
    }
    
    /* Force hamburger to display */
    .hamburger {
        display: block !important;
        z-index: 1002 !important;
        position: relative !important;
    }

    /* Force menu positioning */
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 300px !important;
        height: 100vh !important;
        background: rgba(0, 0, 0, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 80px 20px 40px !important;
        transition: right 0.3s ease !important;
        z-index: 1001 !important;
        border-left: 2px solid rgba(212, 175, 55, 0.3) !important;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5) !important;
        display: flex !important;
        margin: 0 !important;
    }

    .nav-menu.active {
        right: 0 !important;
    }

    .nav-list {
        flex-direction: column !important;
        align-items: center !important;
        gap: 25px !important;
        margin-right: 0 !important;
        width: 100% !important;
        display: flex !important;
    }

    .nav-item {
        margin: 0 !important;
        width: 100% !important;
        text-align: center !important;
    }

    .nav-link {
        font-size: 1.2rem !important;
        display: block !important;
        padding: 10px !important;
        color: #fff !important;
    }

    .nav-cta {
        margin-top: 20px !important;
        width: 100% !important;
        text-align: center !important;
        display: inline-block !important;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0 !important;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg) !important;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg) !important;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        width: 100% !important;
        border-left: none !important;
    }
}

@media (max-width: 576px) {
    .logo-text {
        font-size: 1.4rem;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .nav-menu {
        width: 100%;
        border-left: none;
    }
}

/* Section Styles */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    font-size: 2.8rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

/* Page Header */
.page-header {
    background: var(--gradient-dark), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M50,50 L20,50 L20,80 L50,80 Z" stroke="rgba(212,175,55,0.1)" stroke-width="2" fill="none"/><path d="M80,20 L50,20 L50,50 L80,50 Z" stroke="rgba(212,175,55,0.1)" stroke-width="2" fill="none"/></svg>');
    background-size: cover, 120px;
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--accent-white) 30%, var(--secondary-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: var(--font-heading);
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--dark-gray);
    padding: 80px 0 30px;
    border-top: 2px solid rgba(212, 175, 55, 0.3);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-gold);
    opacity: 0.5;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col {
    padding: 0 15px;
}

.footer-logo {
    display: block;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--accent-white);
}

.footer-about {
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    color: var(--secondary-gold);
    font-size: 1.3rem;
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.social-link:hover {
    background: var(--gradient-gold);
    color: var(--primary-black);
    transform: translateY(-5px);
    border-color: transparent;
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--accent-white);
    position: relative;
    padding-bottom: 15px;
    font-family: var(--font-heading);
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient-gold);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary-gold);
    padding-left: 8px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-contact i {
    color: var(--secondary-gold);
    font-size: 1.2rem;
    margin-top: 5px;
    flex-shrink: 0;
    min-width: 25px;
}

.footer-contact span {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright, .credits {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.credits i {
    color: var(--secondary-gold);
    margin: 0 5px;
}

/* Floating Call Button */
.floating-call-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: var(--gradient-gold);
    color: var(--primary-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    z-index: 999;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-decoration: none;
    animation: pulse 2s infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.floating-call-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
    border-color: transparent;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-col {
        padding: 0;
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Typography */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    .page-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 80px 0;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .floating-call-btn {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}