/*
Theme Name: SmileCare Dental
Theme URI: https://dentistclinics.online/
Author: SmileCare
Author URI: https://dentistclinics.online/
Description: A modern, responsive WordPress theme for dental clinics. Clean teal/red color scheme with conversion-focused design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smilecare
Tags: blog, one-column, two-columns, custom-header, custom-menu, featured-images, full-width-template, theme-options, translation-ready
*/

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
    --teal-50:  #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;
    --slate-50:  #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --red:      #e61739;
    --red-dark: #a80a24;
    --amber:    #f59e0b;
    --green:    #16a34a;
    --white:    #ffffff;
    --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
    --shadow-md: 0 4px 6px rgba(15,23,42,.05), 0 10px 20px rgba(15,23,42,.08);
    --shadow-lg: 0 10px 25px rgba(15,23,42,.10), 0 20px 40px rgba(15,23,42,.12);
    --radius: 14px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    color: var(--slate-800);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: var(--teal-600);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--teal-700);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--slate-900);
    font-weight: 700;
    line-height: 1.2;
}

/* ============================================================
   Layout
   ============================================================ */
.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-content {
    padding: 60px 0;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}

.content-area.full-width {
    grid-template-columns: 1fr;
}

/* ============================================================
   Announcement Bar
   ============================================================ */
.announce-bar {
    background: var(--teal-900);
    color: var(--teal-100);
    text-align: center;
    font-size: 13px;
    padding: 9px 16px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.announce-bar strong {
    color: var(--white);
}

/* ============================================================
   Header / Navbar
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--slate-200);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 9px;
}

.site-branding .logo {
    width: 34px;
    height: 34px;
}

.site-branding .site-title {
    font-weight: 800;
    font-size: 21px;
    color: var(--slate-900);
}

.site-branding .site-title a {
    color: inherit;
}

/* Navigation */
.main-navigation ul {
    display: flex;
    gap: 28px;
}

.main-navigation a {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--slate-600);
    transition: color 0.15s;
    padding: 8px 0;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--teal-700);
}

.header-cta {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Mobile toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--slate-800);
    border-radius: 3px;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-weight: 600;
    font-size: 14.5px;
    padding: 11px 22px;
    border-radius: 9px;
    border: none;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: var(--teal-600);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--teal-700);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-red {
    background: var(--red);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-red:hover {
    background: var(--red-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: var(--teal-700);
    border: 1.5px solid var(--teal-300);
}

.btn-ghost:hover {
    background: var(--teal-50);
    border-color: var(--teal-500);
}

.btn-lg {
    padding: 14px 30px;
    font-size: 15.5px;
    border-radius: 11px;
}

/* ============================================================
   Hero Section (Front Page)
   ============================================================ */
.hero-section {
    background:
        radial-gradient(1100px 500px at 80% -10%, var(--teal-100), transparent),
        linear-gradient(180deg, var(--teal-50), var(--white));
    padding: 80px 0 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--teal-200);
    color: var(--teal-800);
    font-weight: 600;
    font-size: 13.5px;
    padding: 7px 15px;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 22px;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(22,163,74,0.18);
}

.hero-section h1 {
    font-size: 46px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.hero-section h1 .accent {
    color: var(--teal-600);
}

.hero-section .lede {
    font-size: 18.5px;
    color: var(--slate-600);
    max-width: 560px;
    margin-bottom: 30px;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13.5px;
    color: var(--slate-500);
}

.hero-trust .stars {
    color: var(--amber);
    font-size: 16px;
    letter-spacing: 1px;
}

/* ============================================================
   Blog Posts / Archive
   ============================================================ */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.post-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.post-card .post-thumbnail {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.post-card .post-content {
    padding: 24px;
}

.post-card .post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    color: var(--slate-500);
    margin-bottom: 10px;
}

.post-card .post-meta .category {
    background: var(--teal-50);
    color: var(--teal-700);
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 600;
}

.post-card .post-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.post-card .post-title a {
    color: var(--slate-900);
}

.post-card .post-title a:hover {
    color: var(--teal-600);
}

.post-card .post-excerpt {
    font-size: 14.5px;
    color: var(--slate-600);
    line-height: 1.65;
    margin-bottom: 16px;
}

.post-card .read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--teal-600);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-card .read-more:hover {
    gap: 10px;
}

/* ============================================================
   Single Post
   ============================================================ */
.single-post-header {
    text-align: center;
    padding: 60px 0 40px;
    background: var(--slate-50);
    border-bottom: 1px solid var(--slate-200);
}

.single-post-header .post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 13.5px;
    color: var(--slate-500);
    margin-bottom: 16px;
}

.single-post-header h1 {
    font-size: 38px;
    font-weight: 800;
    max-width: 780px;
    margin: 0 auto;
    letter-spacing: -0.3px;
}

.single-post-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px;
}

.single-post-content h2 {
    font-size: 26px;
    margin: 36px 0 16px;
}

.single-post-content h3 {
    font-size: 21px;
    margin: 28px 0 12px;
}

.single-post-content p {
    font-size: 17px;
    line-height: 1.75;
    color: var(--slate-700);
    margin-bottom: 20px;
}

.single-post-content ul,
.single-post-content ol {
    margin: 16px 0 24px 24px;
    list-style: disc;
}

.single-post-content ol {
    list-style: decimal;
}

.single-post-content li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--slate-700);
    margin-bottom: 8px;
}

.single-post-content blockquote {
    border-left: 4px solid var(--teal-500);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--teal-50);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--slate-700);
}

.single-post-content img {
    border-radius: var(--radius);
    margin: 24px 0;
}

.single-post-content a {
    color: var(--teal-600);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.single-post-content a:hover {
    color: var(--teal-700);
}

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar {
    position: sticky;
    top: 92px;
}

.widget {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.widget h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--slate-100);
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--slate-100);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    font-size: 14px;
    color: var(--slate-600);
    font-weight: 500;
}

.widget ul li a:hover {
    color: var(--teal-600);
}

/* Search widget */
.search-form {
    display: flex;
    gap: 8px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--slate-300);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.search-form input[type="search"]:focus {
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.14);
}

.search-form button {
    padding: 10px 16px;
    background: var(--teal-600);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.search-form button:hover {
    background: var(--teal-700);
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--slate-200);
    color: var(--slate-600);
    transition: all 0.2s;
}

.pagination a:hover {
    background: var(--teal-50);
    border-color: var(--teal-300);
    color: var(--teal-700);
}

.pagination .current {
    background: var(--teal-600);
    color: var(--white);
    border-color: var(--teal-600);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--slate-900);
    color: var(--slate-400);
    padding: 56px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--slate-800);
}

.footer-brand .site-title {
    color: var(--white);
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: 13.5px;
    line-height: 1.7;
    max-width: 300px;
}

.site-footer h5 {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.site-footer ul li {
    padding: 6px 0;
    font-size: 13.5px;
}

.site-footer ul li a {
    color: var(--slate-400);
}

.site-footer ul li a:hover {
    color: var(--teal-300);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    font-size: 12.5px;
}

.footer-bottom a {
    color: var(--slate-400);
}

.footer-bottom a:hover {
    color: var(--teal-300);
}

/* ============================================================
   Comments
   ============================================================ */
.comments-area {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.comments-area h2 {
    font-size: 24px;
    margin-bottom: 24px;
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--slate-200);
}

.comment-author {
    font-weight: 700;
    color: var(--slate-800);
    font-size: 15px;
}

.comment-date {
    font-size: 12px;
    color: var(--slate-400);
    margin-left: 12px;
}

.comment-content {
    margin-top: 8px;
    font-size: 15px;
    color: var(--slate-600);
    line-height: 1.65;
}

/* Comment form */
.comment-respond {
    margin-top: 36px;
}

.comment-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 6px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--slate-300);
    border-radius: 9px;
    font-size: 14.5px;
    font-family: inherit;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.14);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form .submit {
    background: var(--teal-600);
    color: var(--white);
    padding: 12px 28px;
    border: none;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.comment-form .submit:hover {
    background: var(--teal-700);
}

/* ============================================================
   Pages
   ============================================================ */
.page-header {
    background: var(--slate-50);
    border-bottom: 1px solid var(--slate-200);
    padding: 48px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 34px;
    font-weight: 800;
}

/* ============================================================
   Responsive Design
   ============================================================ */
@media (max-width: 1024px) {
    .content-area {
        grid-template-columns: 1fr 280px;
        gap: 32px;
    }

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

@media (max-width: 900px) {
    .content-area {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-section h1 {
        font-size: 34px;
    }

    .main-navigation {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation.toggled {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        z-index: 1000;
        padding: 80px 28px 40px;
        box-shadow: -4px 0 24px rgba(15,23,42,0.12);
        overflow-y: auto;
    }

    .main-navigation.toggled ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation.toggled a {
        display: block;
        padding: 16px 0;
        font-size: 17px;
        border-bottom: 1px solid var(--slate-100);
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 48px 0 60px;
    }

    .hero-section h1 {
        font-size: 28px;
    }

    .hero-section .lede {
        font-size: 16px;
    }

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

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

    .single-post-header h1 {
        font-size: 28px;
    }

    .single-post-content p {
        font-size: 16px;
    }

    .post-card .post-thumbnail {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .site-content {
        padding: 40px 0;
    }

    .post-card .post-content {
        padding: 18px;
    }
}
