/*
Theme Name: Dental Reviewers
Description: Custom, lightweight theme for DentalReviewers.com
Author: Your Name
Version: 1.0
*/

/* ================= VARIABLES & RESET ================= */
:root {
    --primary-blue: #0b4b8a;
    --secondary-blue: #1e70c9;
    --light-blue-bg: #f0f7ff;
    --green: #22c55e;
    --green-hover: #16a34a;
    --form-green: #1a9c3a; 
    --form-green-hover: #14802f;
    --text-dark: #0f172a;
    --text-light: #475569;
    --white: #ffffff;
    --font-main: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font-main); color: var(--text-dark); line-height: 1.5; background-color: #fafafa; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ================= HEADER ================= */
header { background: var(--white); padding: 10px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.header-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; position: relative; }
.logo { display: flex; align-items: center; height: 45px; width: 200px; }
.logo img { width: 100%; height: auto; transform: scale(1.5); transform-origin: left center; }

/* WordPress Navigation CSS adjustments */
nav ul { display: flex; gap: 20px; align-items: center; list-style: none; margin: 0; padding: 0; }
nav a { font-weight: 600; font-size: 0.95rem; transition: color 0.3s; }
nav a:hover { color: var(--secondary-blue); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.btn-subscribe { background-color: var(--green); color: var(--white); padding: 8px 18px; border-radius: 5px; font-weight: 600; border: none; cursor: pointer; transition: background 0.3s; font-family: inherit; font-size: 0.9rem; }
.btn-subscribe:hover { background-color: var(--green-hover); }
.menu-toggle { display: none; background: none; border: none; color: var(--primary-blue); cursor: pointer; padding: 5px; }

/* ================= HERO SECTION ================= */
.hero { background: linear-gradient(180deg, var(--light-blue-bg) 0%, var(--white) 100%); padding: 15px 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; align-items: start; }
.hero-content h1 { font-size: 1.8rem; color: var(--primary-blue); line-height: 1.15; margin-bottom: 8px; font-weight: 800; }
.hero-content h1 span { color: var(--secondary-blue); }
.hero-content p.subtitle { font-size: 0.9rem; color: var(--text-light); margin-bottom: 10px; font-weight: 500; }

.check-list { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: nowrap; }
.check-list span { display: flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.check-list span::before { content: '✔'; color: var(--green); }

/* Opt-in Form Card */
.opt-in-card { background: var(--white); border-radius: 12px; padding: 15px 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.06); border: 1px solid #f1f5f9; display: flex; gap: 20px; align-items: stretch; }
.opt-in-book { width: 170px; height: auto; object-fit: cover; object-position: center; flex-shrink: 0; border-radius: 4px; }
.opt-in-form { flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.form-text-top h3 { font-size: 1.3rem; margin-bottom: 2px; font-weight: 800; color: #0b1c3c; line-height: 1.1; }
.form-text-top p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0; font-weight: 500; line-height: 1.3; }
.opt-in-form form { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.input-group { position: relative; }
.input-group .input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #64748b; font-size: 0.9rem; z-index: 1; }
.opt-in-form input { width: 100%; padding: 9px 10px 9px 35px; border: 1px solid #cbd5e1; border-radius: 6px; font-family: inherit; font-size: 0.85rem; color: var(--text-dark); transition: border-color 0.3s; }
.opt-in-form input:focus { outline: none; border-color: var(--secondary-blue); }
.btn-large { width: 100%; background: var(--form-green); color: var(--white); padding: 11px; border: none; border-radius: 6px; font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: background 0.3s; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; }
.btn-large:hover { background: var(--form-green-hover); }
.privacy-note { font-size: 0.7rem; color: #475569; text-align: center; display: flex; align-items: center; justify-content: center; gap: 5px; font-weight: 600; margin: 0; }

/* Hero Slider */
.hero-slider-wrapper { position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.1); background: var(--primary-blue); }
.hero-slides { display: flex; transition: transform 0.5s ease-in-out; width: 100%; }
.hero-slides img { width: 100%; flex-shrink: 0; object-fit: cover; aspect-ratio: 4/3; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.7); border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
.slider-btn:hover { background: var(--white); }
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }
.trust-badge { background: var(--primary-blue); color: var(--white); padding: 10px; text-align: center; font-weight: 600; font-size: 0.9rem; }

/* ================= FEATURES ================= */
.features { background: var(--white); padding: 30px 0; border-bottom: 1px solid #e2e8f0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; text-align: center; }
.feature-item h4 { color: var(--primary-blue); margin: 10px 0 5px; font-weight: 700; font-size: 0.85rem; }
.feature-item p { font-size: 0.75rem; color: var(--text-light); font-weight: 500; }
.feature-icon { font-size: 2.5rem; color: var(--secondary-blue); display: flex; justify-content: center; align-items: center; }

/* ================= SECTION HEADERS ================= */
.section-header { text-align: center; margin: 50px 0 30px; display: flex; align-items: center; justify-content: center; gap: 15px; }
.section-header h2 { font-size: 1.8rem; color: var(--primary-blue); font-weight: 800; }
.section-header::before, .section-header::after { content: ''; height: 2px; width: 30px; background: var(--secondary-blue); }

/* ================= INSIDE GUIDE GRID ================= */
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 50px; }
.guide-card { background: var(--white); border-radius: 8px; padding: 12px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid #e2e8f0; transition: transform 0.3s; display: flex; flex-direction: column; }
.guide-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.06); }
.guide-card img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; margin: 0 auto 12px; }
.guide-card h4 { color: var(--primary-blue); font-size: 0.95rem; line-height: 1.3; margin-bottom: 6px; font-weight: 700; flex-grow: 1; }
.guide-card p { font-size: 0.8rem; line-height: 1.4; color: var(--text-light); font-weight: 500; margin-bottom: 5px; }

/* ================= CTA BANNER ================= */
.cta-banner { background: linear-gradient(90deg, #16a34a, #22c55e); border-radius: 10px; padding: 25px; display: flex; justify-content: space-between; align-items: center; color: var(--white); margin-bottom: 50px; box-shadow: 0 10px 20px rgba(34, 197, 94, 0.2); }
.cta-text h3 { font-size: 1.3rem; margin-bottom: 5px; font-weight: 700; }
.cta-text p { opacity: 0.9; font-weight: 500; font-size: 0.9rem;}
.cta-banner .btn-large { width: auto; background: var(--white); color: var(--green); padding: 12px 25px; }
.cta-banner .btn-large:hover { background: #f0fdf4; }

/* ================= TESTIMONIAL SLIDER ================= */
.testimonial-container { position: relative; max-width: 100%; overflow: hidden; padding: 10px 0; margin-bottom: 15px; }
.testimonial-track { display: flex; gap: 20px; transition: transform 0.4s ease-in-out; }
.testimonial-card { background: var(--white); border-radius: 10px; padding: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); flex: 0 0 calc((100% - 40px) / 3); display: flex; gap: 15px; }
.reviewer-img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.stars { color: #fbbf24; margin-bottom: 8px; font-size: 1rem; }
.testimonial-text { font-style: italic; font-size: 0.9rem; margin-bottom: 10px; font-weight: 500; line-height: 1.4; }
.reviewer-name { font-weight: 700; font-size: 0.85rem; color: var(--primary-blue); }
.test-nav { text-align: center; margin-top: 25px; }
.test-nav button { background: var(--primary-blue); color: white; border: none; padding: 8px 16px; border-radius: 5px; cursor: pointer; margin: 0 5px; font-family: inherit; font-weight: 600; font-size: 0.9rem; transition: background 0.3s; }
.test-nav button:hover { background: var(--secondary-blue); }

/* ================= ABOUT US ================= */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.about-image { width: 100%; }
.about-image img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.06); object-fit: cover; }
.about-content { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; font-weight: 500; }
.about-content p { margin-bottom: 15px; }
.about-content p:last-child { margin-bottom: 0; }
.about-content-full { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; font-weight: 500; margin-top: 25px; }

/* ================= FOOTER ================= */
footer { background: var(--white); color: var(--text-dark); padding: 40px 0 30px; border-top: 1px solid #e2e8f0; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-logo-col { display: flex; flex-direction: column; }
.footer-logo-col a { display: flex; align-items: center; height: 45px; width: 200px; }
.footer-logo-col img { width: 100%; height: auto; transform: scale(1.5); transform-origin: left center; }
.footer-socials { display: flex; gap: 15px; }
.footer-socials a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: var(--light-blue-bg); border-radius: 50%; color: var(--primary-blue); transition: all 0.3s ease; }
.footer-socials a:hover { background: var(--secondary-blue); color: var(--white); transform: translateY(-3px); }
.footer-socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-links-col { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

/* Footer Nav specific overrides */
.footer-menu ul { display: flex; align-items: center; gap: 15px; list-style: none; margin: 0; padding: 0; }
.footer-menu a { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); transition: color 0.3s ease; }
.footer-menu a:hover { color: var(--secondary-blue); }
.footer-menu li:not(:last-child)::after { content: '|'; color: #cbd5e1; margin-left: 15px; font-size: 0.9rem; }
.copyright { font-size: 0.8rem; color: var(--text-light); }

/* ================= SCROLL TO TOP PROGRESS BUTTON ================= */
#scrollToTopBtn { position: fixed; bottom: 30px; right: 30px; width: 55px; height: 55px; border-radius: 50%; background: conic-gradient(var(--secondary-blue) var(--scroll-value, 0%), #e2e8f0 0%); display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.15); opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity 0.3s, visibility 0.3s, transform 0.3s; z-index: 999; }
#scrollToTopBtn.show { opacity: 1; visibility: visible; transform: translateY(0); }
#scrollToTopBtn::before { content: ''; position: absolute; width: 45px; height: 45px; background-color: var(--white); border-radius: 50%; z-index: 1; transition: background 0.3s; }
#scrollToTopBtn:hover::before { background-color: var(--light-blue-bg); }
#scrollToTopBtn svg { position: relative; z-index: 2; width: 24px; height: 24px; fill: var(--primary-blue); }

/* ================= RESPONSIVE QUERIES ================= */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-content { order: -1; } 
    .opt-in-card { flex-direction: column; align-items: center; text-align: center; }
    .opt-in-book { width: 180px; object-fit: contain; } 
    .opt-in-form { width: 100%; }
    .guide-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-banner { flex-direction: column; text-align: center; gap: 20px; }
    .testimonial-card { flex: 0 0 calc((100% - 20px) / 2); } 
    .about-grid { grid-template-columns: 1fr; gap: 30px;}
    .footer-grid { flex-direction: column; text-align: center; gap: 30px; }
    .footer-logo-col { align-items: center; }
    .footer-logo-col a { justify-content: center; }
    .footer-logo-col img { transform-origin: center; }
    .footer-links-col { align-items: center; }
    #scrollToTopBtn { bottom: 20px; right: 20px; width: 45px; height: 45px; }
    #scrollToTopBtn::before { width: 37px; height: 37px; }
}

@media (max-width: 768px) {
    .header-content { flex-wrap: nowrap; }
    .logo { width: 130px; height: 35px; }
    .logo img { transform: scale(1.2); } 
    .header-actions { gap: 10px; }
    .btn-subscribe { padding: 6px 12px; font-size: 0.85rem; }
    .menu-toggle { display: block; }
    
    nav { display: flex; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); flex-direction: column; align-items: flex-start; padding: 0 20px; box-shadow: 0 10px 15px rgba(0,0,0,0.08); border-top: 1px solid #f1f5f9; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 101; }
    nav.active { opacity: 1; visibility: visible; transform: translateY(0); padding: 10px 20px 20px; }
    nav ul { flex-direction: column; width: 100%; align-items: flex-start; gap: 0; }
    nav ul li { width: 100%; }
    nav a { display: block; width: 100%; padding: 12px 0; border-bottom: 1px solid #f1f5f9; font-size: 1.05rem; }
    nav ul li:last-child a { border-bottom: none; }

    .hero-content h1 { font-size: 1.8rem; }
    .check-list { flex-wrap: wrap; } 
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-card { flex: 0 0 100%; } 
    
    .footer-menu ul { flex-wrap: wrap; justify-content: center; gap: 10px; }
    .footer-menu li::after { display: none; } /* Hide dividers on mobile */
}

@media (max-width: 480px) {
    .features-grid, .guide-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 1.6rem; }
    .logo img { transform: scale(1.1); } 
}