/* ============================================================
   HairToolsReview — Shared Stylesheet
   Used by all public pages under hairtoolslab.com
   ============================================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.7;
    color: #222;
    background: #fafafa;
}

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

/* ---------- Top Bar ---------- */
.top-bar {
    background: #fff3f6;
    padding: 10px 20px;
    font-size: 13px;
    color: #c2185b;
    text-align: center;
    border-bottom: 1px solid #fce4ec;
    font-weight: 500;
}

/* ---------- Header / Nav ---------- */
.header {
    background: #fff;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s;
}

.header.scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-bottom-color: transparent;
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.site-name a { color: #1a1a1a; text-decoration: none; }
.site-name span { color: #e8527a; }

.header-nav a {
    color: #555;
    text-decoration: none;
    margin-left: 24px;
    font-size: 14px;
    transition: color 0.2s;
}

.header-nav a:hover,
.header-nav a:focus { color: #e8527a; }

/* Mobile hamburger menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.mobile-nav {
    display: none;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 12px 20px 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.mobile-nav.open { display: block; }

.mobile-nav a {
    display: block;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    border-bottom: 1px solid #f5f5f5;
    transition: color 0.2s;
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: #e8527a; }

/* ---------- Layout Container ---------- */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    padding: 16px 0 8px;
    font-size: 13px;
    color: #999;
}

.breadcrumb a { color: #999; text-decoration: none; }
.breadcrumb a:hover { color: #e8527a; }
.breadcrumb span { color: #666; }

/* ---------- Section (Card) ---------- */
.section {
    background: #fff;
    border-radius: 12px;
    padding: 36px 40px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.section h1 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.section h2 {
    font-size: 22px;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #fce4ec;
}

.section h3 {
    font-size: 17px;
    color: #333;
    margin: 22px 0 10px;
}

.section .tagline {
    font-size: 17px;
    color: #e8527a;
    margin-bottom: 28px;
    font-weight: 500;
}

.section .subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 28px;
}

.section .last-updated {
    font-size: 13px;
    color: #777;
    margin-bottom: 28px;
}

.section p,
.section li {
    font-size: 15px;
    color: #444;
    margin-bottom: 12px;
}

.section ul,
.section ol {
    margin: 8px 0 16px 24px;
}

.section li { margin-bottom: 8px; }

/* ---------- Hero (product review pages) ---------- */
.hero {
    background: #fff;
    border-radius: 12px;
    padding: 44px 40px;
    margin: 12px 0 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.hero-image { text-align: center; }

.hero-image img {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 16px;
    margin: 0 auto;
    padding: 12px;
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    box-sizing: border-box;
}

/* Improved placeholder (currently unused; kept for future use) */
.hero-image .img-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 50%, #f48fb1 100%);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    color: #ad1457;
    position: relative;
    overflow: hidden;
    border: 2px dashed rgba(173,20,87,0.2);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff0e0;
    color: #b85c00;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.hero-content h1 {
    font-size: 28px;
    line-height: 1.3;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.byline {
    font-size: 13px;
    color: #777;
    margin-bottom: 6px;
}

.byline a {
    color: #e8527a;
    text-decoration: none;
}

.byline .fact-check { color: #2e7d32; }

.rating-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.stars { color: #f5a623; font-size: 18px; letter-spacing: 2px; }
.rating-text { font-size: 14px; color: #555; }
.rating-count { font-size: 13px; color: #777; }

.hero-summary {
    font-size: 15px;
    color: #444;
    margin-bottom: 20px;
}

/* ---------- CTA Button (enhanced contrast) ---------- */
.cta-btn {
    display: inline-block;
    background: #ff6f00;
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255,111,0,0.3);
}

.cta-btn:hover,
.cta-btn:focus {
    background: #e65100;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,111,0,0.4);
}

/* ---------- Feature Grid ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 16px;
}

.feature-card {
    background: #fdf2f5;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #e8527a;
}

.feature-card h3 {
    font-size: 15px;
    color: #c2185b;
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 14px;
    color: #444;
}

/* About-page variant: centered cards on a neutral background */
.feature-card.feature-card--centered {
    background: #fafafa;
    border-left: none;
    border: 1px solid #f0f0f0;
    text-align: center;
}

.feature-card--centered .icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.feature-card--centered h3 {
    color: #333;
    font-size: 16px;
    margin-bottom: 8px;
}

/* ---------- Stats Row ---------- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 20px 0;
    text-align: center;
}

.stat-item {
    background: linear-gradient(135deg, #fce4ec, #fff);
    border-radius: 10px;
    padding: 20px 12px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #e8527a;
    display: block;
}

.stat-label {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

/* ---------- Review Card ---------- */
.review-card {
    background: #fafafa;
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 16px;
    border: 1px solid #f0f0f0;
    transition: border-color 0.2s;
}

.review-card:hover { border-color: #e0e0e0; }

/* Mixed/critical review distinction */
.review-card--mixed {
    background: #fffde7;
    border-color: #fff9c4;
}

.review-card--mixed:hover { border-color: #fff176; }

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.reviewer-name { font-weight: 600; color: #333; }
.review-date   { font-size: 12px; color: #777; }
.review-stars  { color: #f5a623; font-size: 14px; }
.review-title  { font-weight: 600; margin-bottom: 8px; color: #444; }
.review-body   { font-size: 14px; color: #444; }
.review-helpful { font-size: 12px; color: #777; margin-top: 8px; }

/* ---------- Pros & Cons ---------- */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 16px;
}

.pros, .cons {
    border-radius: 10px;
    padding: 24px;
}

.pros { background: #e8f5e9; }
.cons { background: #fff3e0; }

.pros h3 { color: #2e7d32; margin-bottom: 12px; font-size: 16px; }
.cons h3 { color: #e65100; margin-bottom: 12px; font-size: 16px; }

.pros ul, .cons ul { list-style: none; padding: 0; margin: 0; }

.pros li, .cons li {
    padding: 6px 0;
    font-size: 14px;
    color: #333;
}

.pros li::before { content: "\2713  "; color: #2e7d32; font-weight: 700; }
.cons li::before { content: "\2717  "; color: #e65100; font-weight: 700; }

/* ---------- Spec Table (with hover) ---------- */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 14px;
}

.spec-table tr {
    transition: background 0.15s;
}

.spec-table tr:hover {
    background: #fdf2f5;
}

.spec-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
}

.spec-table td:first-child {
    font-weight: 600;
    color: #555;
    width: 35%;
    background: #fafafa;
}

.spec-table tr:hover td:first-child {
    background: #fdf2f5;
}

.spec-table td:last-child { color: #333; }

/* ---------- Safety / Info Box ---------- */
.safety-box {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 10px;
    padding: 20px 24px;
    margin-top: 16px;
    font-size: 14px;
    color: #5d4037;
}

.safety-box h3 {
    color: #e65100;
    margin-bottom: 8px;
    font-size: 15px;
}

.safety-box p { margin-bottom: 4px; }

/* ---------- FAQ (collapsible) ---------- */
.faq-item {
    border-bottom: 1px solid #f0f0f0;
}

.faq-item:last-child { border-bottom: none; }

.faq-item summary {
    font-weight: 600;
    color: #333;
    font-size: 15px;
    padding: 16px 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    font-size: 20px;
    font-weight: 300;
    color: #999;
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-item[open] summary::after {
    content: "\2212";
    color: #e8527a;
}

.faq-answer {
    padding: 0 0 16px;
    font-size: 14px;
    color: #444;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Legacy .faq-question for non-details pages */
.faq-question {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

/* ---------- Mission Box (about page) ---------- */
.mission-box {
    background: linear-gradient(135deg, #fce4ec, #fff);
    border-radius: 10px;
    padding: 28px;
    margin: 20px 0;
    border-left: 4px solid #e8527a;
}

.mission-box p {
    font-size: 16px;
    color: #333;
    margin: 0;
}

/* ---------- Team Grid (about page, E-E-A-T) ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 16px;
}

.team-member {
    background: #fafafa;
    border-radius: 10px;
    padding: 24px;
    border: 1px solid #f0f0f0;
}

.team-member h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.team-member .role {
    font-size: 13px;
    color: #e8527a;
    margin-bottom: 10px;
    font-weight: 600;
}

.team-member .bio {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

.team-member .creds {
    font-size: 12px;
    color: #777;
    list-style: none;
    margin: 0;
    padding: 0;
}

.team-member .creds li {
    padding: 2px 0;
    margin: 0;
    font-size: 12px;
}

.team-member .creds li::before { content: "\2022  "; color: #e8527a; }

/* ---------- Contact Page ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 20px;
}

.contact-card {
    background: #fafafa;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    border: 1px solid #f0f0f0;
}

.contact-card .icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.contact-card h4 {
    font-size: 17px;
    color: #333;
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 14px;
    color: #555;
}

.contact-card a {
    color: #e8527a;
    text-decoration: none;
    font-weight: 500;
}

.contact-card a:hover { text-decoration: underline; }

/* ---------- Forms ---------- */
.contact-form { margin-top: 20px; }

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #333;
    background: #fff;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #e8527a;
    box-shadow: 0 0 0 3px rgba(232,82,122,0.1);
}

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

.submit-btn {
    background: #e8527a;
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.submit-btn:hover,
.submit-btn:focus {
    background: #d44068;
    transform: translateY(-1px);
}

.form-note {
    font-size: 12px;
    color: #777;
    margin-top: 12px;
}

/* ---------- CTA Section (full-width banner) ---------- */
.cta-section {
    background: linear-gradient(135deg, #e8527a, #c2185b);
    border-radius: 12px;
    padding: 40px;
    margin: 28px 0;
    text-align: center;
    color: #fff;
}

.cta-heading {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cta-section p {
    font-size: 15px;
    margin-bottom: 20px;
    opacity: 0.95;
}

.cta-section .cta-btn {
    background: #fff;
    color: #c2185b;
    font-size: 17px;
    padding: 16px 40px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.cta-section .cta-btn:hover,
.cta-section .cta-btn:focus {
    background: #fce4ec;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.cta-sub {
    font-size: 12px;
    margin-top: 12px;
    opacity: 0.8;
}

/* ---------- Disclosure ---------- */
.disclosure {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 13px;
    color: #666;
    text-align: center;
}

.anchor-link {
    color: #e8527a;
    text-decoration: none;
}

.anchor-link:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer {
    background: #1a1a1a;
    color: #bbb;
    padding: 40px 0;
    margin-top: 20px;
    font-size: 13px;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 12px;
}

.footer a { color: #ddd; text-decoration: none; }
.footer a:hover,
.footer a:focus { color: #e8527a; }

.footer p { margin-bottom: 6px; line-height: 1.6; }

.footer-bottom {
    max-width: 960px;
    margin: 20px auto 0;
    padding: 16px 20px 0;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 11px;
    color: #888;
    line-height: 1.8;
}

.footer-legal { display: block; margin-top: 6px; }

/* ---------- Cookie Consent Banner ---------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: #eee;
    padding: 16px 20px;
    font-size: 13px;
    line-height: 1.6;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner p {
    margin: 0;
    max-width: 700px;
}

.cookie-banner a {
    color: #e8527a;
    text-decoration: underline;
}

.cookie-btn {
    background: #e8527a;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.cookie-btn:hover { background: #d44068; }

.cookie-btn--outline {
    background: transparent;
    border: 1px solid #888;
    color: #ddd;
}

.cookie-btn--outline:hover {
    background: #333;
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e8527a;
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(232,82,122,0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-2px);
    background: #d44068;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.muted { color: #777; }
.small { font-size: 12px; }

/* ---------- Responsive: <= 768px ---------- */
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero-content h1 { font-size: 22px; }
    .feature-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .pros-cons-grid { grid-template-columns: 1fr; }
    .header-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
    .section { padding: 24px 20px; }
    .hero { padding: 28px 20px; }
    .hero-image img,
    .hero-image .img-placeholder { max-width: 280px; margin: 0 auto; }
    .footer-inner { grid-template-columns: 1fr; gap: 20px; }
    .cta-section { padding: 28px 20px; }
    .spec-table td:first-child { width: 45%; }
    .rating-bar { flex-direction: column; align-items: flex-start; gap: 4px; }
    .contact-grid { grid-template-columns: 1fr; }
    .top-bar { font-size: 13px; padding: 10px 16px; }
}

/* ---------- Responsive: <= 480px ---------- */
@media (max-width: 480px) {
    .stats-row { grid-template-columns: 1fr 1fr; }
    .spec-table { font-size: 12px; }
    .spec-table td { padding: 8px 10px; }
    .cta-heading { font-size: 20px; }
    .cta-btn { display: block; text-align: center; padding: 16px 24px; }
    .section { padding: 20px 14px; }
    .section h1 { font-size: 22px; }
    .section h2 { font-size: 18px; }
    .section h3 { font-size: 16px; }
    .hero-content h1 { font-size: 20px; }
    .feature-card { padding: 16px; }
    .review-card { padding: 16px; }
    .mission-box { padding: 20px; }
    .mission-box p { font-size: 14px; }
    .contact-card { padding: 16px; }
    .form-group input,
    .form-group textarea,
    .form-group select { font-size: 16px; }
    .submit-btn { width: 100%; padding: 16px; }
    .top-bar { font-size: 12px; padding: 8px 12px; }
    .back-to-top { bottom: 16px; right: 16px; width: 40px; height: 40px; font-size: 18px; }
}
