/* 
   Dental Clinic Premium Theme 
   Modern, Clean, and Professional Design
*/

:root {
    /* Color Palette - Modern Medical Blue & Teal */
    --primary-color: #00a8cc;
    --primary-dark: #007a99;
    --secondary-color: #0c2d48;
    --accent-color: #b1d4e0;
    --text-color: #2e4053;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --light-bg: #f4f7f6;
    --gradient-primary: linear-gradient(135deg, #00a8cc 0%, #007a99 100%);

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius: 16px;
    --radius-sm: 8px;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Cairo', sans-serif;
}

/* Modern Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

/* Arabic Font Support */
[dir="rtl"] body {
    font-family: var(--font-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.text-center {
    text-align: center;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Header & Navbar */
header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 50px;
}

.logo-text span:first-child {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.logo-text span:last-child {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.lang-switch {
    font-weight: 700;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.lang-switch:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fbfd 0%, #eef6f8 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

[dir="rtl"] .hero-content {
    text-align: right;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.hero-image-container {
    flex: 1;
    position: relative;
    max-width: 600px;
}

.centered-slider {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 450px;
    position: relative;
    border: 8px solid var(--white);
    width: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 168, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 204, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Section Styling */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto 0;
    border-radius: 10px;
}

/* Service Cards */
.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.service-card i {
    background: rgba(0, 168, 204, 0.1);
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
    font-size: 2rem;
}

.service-card:hover i {
    background: var(--primary-color);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2.5fr 0.8fr 1.2fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-social-grid {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.footer-social-grid a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-social-grid a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 168, 204, 0.3);
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    [dir="rtl"] .hero-content {
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-image-container {
        width: 100%;
        max-width: 100%;
    }

    .centered-slider {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }

    header {
        height: auto;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .centered-slider {
        height: 250px;
    }
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Refactored Styles */
.contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    align-items: start;
}

.contact-info-box {
    background: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.contact-info-title {
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.contact-info-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info-item i {
    color: var(--primary-color);
    width: 20px;
}

.contact-info-item.align-start {
    align-items: start;
}

.contact-info-item.align-start i {
    margin-top: 5px;
}

.contact-social-links {
    margin-top: 2rem;
    font-size: 1.5rem;
    display: flex;
    gap: 15px;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 450px;
}

.working-hours-section {
    margin-top: 3rem;
    background: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.working-hours-title {
    margin-bottom: 2rem;
    color: var(--secondary-color);
    text-align: center;
}

.working-hours-container {
    max-width: 800px;
    margin: 0 auto;
}

.working-hours-list {
    font-size: 1rem;
    color: #555;
}

.working-hours-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding: 10px;
}

.working-hours-list li.today {
    background: #f0f9ff;
    border-radius: 5px;
}

.working-hours-list li.today .day-name {
    font-weight: bold;
    color: var(--primary-color);
}

.working-hours-list .day-name {
    font-weight: bold;
}

.working-hours-list .day-time {
    text-align: end;
}

.working-hours-list .closed {
    color: red;
}

.working-hours-list .current-shift {
    color: #000;
    font-weight: 900;
    font-size: 1.05em;
}

/* Compact Working Hours (Footer) */
.working-hours-compact {
    font-size: 0.9rem;
}

.working-hours-compact li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

.working-hours-compact li.today {
    font-weight: bold;
    color: #2ecc71;
}

.working-hours-compact .day-time {
    white-space: nowrap;
}

.working-hours-compact .closed {
    color: #ff6b6b;
}

.working-hours-compact .current-shift {
    color: #000;
    background: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/* Services List */
.services-list {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: 0;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    font-size: 2rem;
}

[dir="rtl"] .service-icon-wrapper {
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 1.5rem;
}

.service-content-wrapper {
    flex: 1;
}

.service-title {
    margin: 0 0 0.5rem 0;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.service-desc {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-price-tag {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-left: 1rem;
}

[dir="rtl"] .service-price-tag {
    margin-left: 0;
    margin-right: 1rem;
}

/* Responsive Grid for Services */
@media (max-width: 992px) {
    .services-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-list {
        grid-template-columns: 1fr;
    }
}