/* ========================================
   Holistic Dentistry - Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    /* Colors - Purple/Lavender palette (matching logo) */
    --color-primary: #7B7FB8;
    --color-primary-light: #9498C9;
    --color-primary-dark: #5D60A0;
    --color-secondary: #6667aa;
    --color-accent: #7B7FB8;
    --color-accent-light: #C5C7E0;

    --color-text: #333333;
    --color-text-light: #555555;
    --color-text-muted: #888888;

    --color-bg: #ffffff;
    --color-bg-alt: #f8f8fc;
    --color-bg-warm: #f5f5fa;

    --color-white: #ffffff;
    --color-black: #222222;

    /* Typography - Bold */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-light);
}

ul {
    list-style: none;
}

/* Typography - Bold Style */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 600; }

p {
    margin-bottom: var(--space-md);
}

p:last-child {
    margin-bottom: 0;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.centered {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
}

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

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

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

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

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

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

.btn-nav {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo:hover {
    color: var(--color-primary);
}

.logo-img {
    height: 50px;
    width: auto;
}

.footer-logo-img {
    height: 60px;
}

.logo-icon {
    font-size: 1.75rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition-base);
}

/* Hero Section */
.hero {
    position: relative;
    padding: calc(80px + var(--space-4xl)) 0 var(--space-4xl);
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg-warm) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    margin-bottom: var(--space-lg);
}

.hero h1 .highlight {
    color: var(--color-primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Features Section */
.features {
    padding: var(--space-4xl) 0;
    background-color: var(--color-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.feature-card {
    text-align: center;
    padding: var(--space-xl);
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    width: 80px;
    height: 80px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    overflow: hidden;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-card h3 {
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* About Preview Section */
.about-preview {
    padding: var(--space-4xl) 0;
    background-color: var(--color-bg-alt);
}

.about-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.about-preview-content h2 {
    margin-bottom: var(--space-lg);
}

.about-preview-content p {
    color: var(--color-text-light);
}

.check-list {
    margin: var(--space-xl) 0;
}

.check-list li {
    position: relative;
    padding-left: var(--space-xl);
    margin-bottom: var(--space-sm);
    color: var(--color-text-light);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 600;
}

.image-placeholder {
    background: linear-gradient(135deg, #9498C9 0%, #7B7FB8 100%);
    border-radius: var(--radius-lg);
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.image-placeholder span {
    font-size: 4rem;
    margin-bottom: var(--space-md);
}

.image-placeholder p {
    font-size: 0.875rem;
    opacity: 0.9;
}

.about-preview-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Services Preview Section */
.services-preview {
    padding: var(--space-4xl) 0;
    background-color: var(--color-white);
}

.section-header {
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    margin-bottom: var(--space-sm);
}

.section-header p {
    color: var(--color-text-light);
    font-size: 1.125rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.service-card {
    padding: var(--space-xl);
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.service-img {
    height: 160px;
    margin: calc(-1 * var(--space-xl));
    margin-bottom: var(--space-lg);
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-card h3 {
    margin-bottom: var(--space-sm);
}

.service-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

.link-arrow {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Testimonials Section */
.testimonials-preview {
    padding: var(--space-4xl) 0;
    background-color: var(--color-bg-warm);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.testimonial-card {
    background-color: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.testimonial-stars {
    color: var(--color-accent);
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.testimonial-card blockquote {
    font-size: 1rem;
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.author-avatar {
    width: 48px;
    height: 48px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.author-info strong {
    display: block;
    color: var(--color-text);
}

.author-info span {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* CTA Section */
.cta {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, #7B7FB8 0%, #5D60A0 100%);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta h2 {
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: var(--space-xl);
}

/* Footer */
.footer {
    background-color: #3D3F6B;
    color: var(--color-bg-alt);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand .logo {
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: #a0aec0;
    font-size: 0.95rem;
}

.footer h4 {
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.footer-links ul li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: #a0aec0;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-contact p {
    color: #a0aec0;
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
}

.footer-contact a {
    color: #C5C7E0;
}

.footer-contact a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
    text-align: center;
}

.footer-bottom p {
    color: #718096;
    font-size: 0.875rem;
}

/* Page Header (for inner pages) */
.page-header {
    padding: calc(80px + var(--space-3xl)) 0 var(--space-3xl);
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg-warm) 100%);
    text-align: center;
}

.page-header h1 {
    margin-bottom: var(--space-sm);
}

.page-header p {
    color: var(--color-text-light);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Sections */
.content-section {
    padding: var(--space-4xl) 0;
}

.content-section:nth-child(even) {
    background-color: var(--color-bg-alt);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.team-card {
    text-align: center;
    padding: var(--space-xl);
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.team-card:hover {
    box-shadow: var(--shadow-lg);
}

.team-photo {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #9498C9 0%, #7B7FB8 100%);
    border-radius: 50%;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-white);
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    margin-bottom: var(--space-xs);
}

.team-card .role {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

.team-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.blog-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, #f5f5fa 0%, #9498C9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: var(--space-xl);
}

.blog-meta {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.blog-card h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

.blog-card h3 a {
    color: var(--color-text);
}

.blog-card h3 a:hover {
    color: var(--color-primary);
}

.blog-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: var(--space-lg);
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-fast);
}

.faq-question:hover {
    background-color: var(--color-bg-alt);
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-primary);
    transition: transform var(--transition-base);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--color-text-light);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
}

.contact-info h3 {
    margin-bottom: var(--space-lg);
}

.contact-details {
    margin-bottom: var(--space-xl);
}

.contact-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-item h4 {
    margin-bottom: var(--space-xs);
}

.contact-item p, .contact-item a {
    color: var(--color-text-light);
}

.hours-list {
    color: var(--color-text-light);
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-bg-alt);
}

/* Contact Form */
.contact-form {
    background-color: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #dde5dd;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(46, 163, 242, 0.15);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

/* Services List */
.services-list {
    display: grid;
    gap: var(--space-3xl);
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-xl);
    align-items: start;
}

.service-detail:nth-child(even) {
    direction: rtl;
}

.service-detail:nth-child(even) > * {
    direction: ltr;
}

.service-detail-icon {
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.service-detail-content h3 {
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
}

.service-detail-content p {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.service-detail-content ul {
    margin-top: var(--space-md);
}

.service-detail-content ul li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--color-text-light);
}

.service-detail-content ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-preview-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-preview-image {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-detail {
        grid-template-columns: 1fr;
    }

    .service-detail:nth-child(even) {
        direction: ltr;
    }

    .service-detail-icon {
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-lg);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hero {
        min-height: auto;
        padding: calc(80px + var(--space-2xl)) 0 var(--space-2xl);
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .features-grid,
    .services-grid,
    .testimonials-slider,
    .team-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .image-placeholder {
        height: 300px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}
