/* ===========================================================
   Manfare Style Hub — main stylesheet
   Dark luxe palette · Gold accent #c8a96e · Playfair + Inter
   =========================================================== */

:root {
    --bg: #f5f5f5;
    --fg: #1a1a1a;
    --muted: #6b6b6b;
    --line: #e6e6e6;
    --card: #ffffff;
    --accent: #c8a96e;
    --accent-strong: #b3914f;
    --dark: #1a1a1a;
    --dark-2: #242424;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    --radius: 10px;
    --container: 1200px;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }

h1,h2,h3,h4,h5,h6 { font-family: 'Playfair Display', Georgia, serif; color: var(--fg); margin: 0 0 .6em; line-height: 1.2; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: #000; color: #fff; padding: 8px 12px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 9999; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 14px; letter-spacing: .03em; text-transform: uppercase; cursor: pointer; border: 1px solid transparent; transition: all .25s ease; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn-outline:hover { background: var(--fg); color: #fff; }

/* ===== Header ===== */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.topbar { background: var(--dark); color: #fff; font-size: 12px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px; }
.topbar a { color: var(--accent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; }
.site-title { display: flex; align-items: center; gap: 10px; font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; letter-spacing: .15em; text-transform: lowercase; color: var(--fg); }
.brand-mark { color: var(--accent); letter-spacing: 2px; }
.site-tagline { font-size: 11px; color: var(--muted); margin: 2px 0 0; letter-spacing: .15em; font-style: italic; }
.main-navigation ul { display: flex; gap: 28px; list-style: none; padding: 0; margin: 0; }
.main-navigation a { font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.menu-toggle { display: none; background: none; border: 0; flex-direction: column; gap: 4px; cursor: pointer; padding: 6px; }
.menu-toggle .bar { width: 22px; height: 2px; background: var(--fg); }
.header-actions { display: flex; gap: 12px; align-items: center; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #f3f3f3; font-size: 16px; }
.icon-btn:hover { background: var(--accent); color: #fff; }
.cart-btn { gap: 4px; width: auto; padding: 0 14px; border-radius: 999px; }
.cart-count { font-size: 12px; font-weight: 700; }

/* ===== Hero ===== */
.hero-carousel { position: relative; background: var(--dark); color: #fff; overflow: hidden; min-height: 520px; }
.hero-track { position: relative; height: 520px; }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transition: opacity .8s ease; background: linear-gradient(135deg, #1a1a1a 0%, #2a2418 100%); }
.hero-slide.is-active { opacity: 1; }
.hero-slide:nth-child(2) { background: linear-gradient(135deg, #1a1a1a, #3b2f1a); }
.hero-slide:nth-child(3) { background: linear-gradient(135deg, #1a1a1a, #2c1a1a); }
.hero-content { max-width: 720px; }
.hero-eyebrow { display: inline-block; color: var(--accent); font-size: 12px; letter-spacing: .25em; text-transform: uppercase; margin-bottom: 12px; }
.hero-title { font-size: clamp(34px, 6vw, 64px); font-weight: 700; color: #fff; margin: 0 0 16px; }
.hero-sub { font-size: clamp(15px, 1.6vw, 18px); color: rgba(255,255,255,.78); margin: 0 0 28px; max-width: 560px; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); font-size: 22px; cursor: pointer; transition: background .2s; }
.hero-nav:hover { background: var(--accent); border-color: var(--accent); }
.hero-nav.prev { left: 24px; } .hero-nav.next { right: 24px; }
.hero-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.35); border: 0; cursor: pointer; padding: 0; }
.hero-dot.is-active { background: var(--accent); transform: scale(1.2); }

/* ===== Sections ===== */
.section { padding: 70px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-title { font-size: clamp(26px, 3vw, 38px); font-weight: 700; }
.section-rule { display: block; width: 60px; height: 3px; background: var(--accent); margin: 8px auto 0; }

/* Foundation strip */
.foundation-strip { background: #fff; border-block: 1px solid var(--line); padding: 24px 0; }
.foundation-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.foundation-item { display: flex; gap: 14px; align-items: center; }
.foundation-icon { font-size: 28px; }
.foundation-item h4 { font-family: 'Inter', sans-serif; font-size: 14px; margin: 0; font-weight: 700; }
.foundation-item p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }

/* Categories */
.categories-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 18px; }
.category-card { background: #fff; border-radius: var(--radius); padding: 20px 12px; text-align: center; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.category-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,.12); color: var(--accent); }
.category-thumb { aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; background: linear-gradient(135deg,#fafafa,#f0eadb); border-radius: var(--radius); }
.category-thumb img { width: 60%; height: auto; }
.category-name { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }

/* Products */
.products-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.product-card { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; transition: transform .25s; }
.product-card:hover { transform: translateY(-3px); }
.product-thumb { aspect-ratio: 4/5; background: linear-gradient(135deg,#1a1a1a,#2a2418); color: var(--accent); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.product-title { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; margin: 0; }
.product-price { font-weight: 700; color: var(--accent); margin: 0; }
.install-hint { grid-column: 1/-1; text-align: center; color: var(--muted); padding: 20px 0 0; }

/* CTA */
.section-cta { background: var(--dark); color: #fff; }
.section-cta .cta-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-title { color: #fff; margin: 0; font-size: clamp(24px, 3vw, 34px); }
.cta-sub { margin: 6px 0 0; color: rgba(255,255,255,.75); }

/* Testimonials */
.section-testimonials { background: #fff; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.testimonial-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 0; box-shadow: var(--shadow); }
.testimonial-card .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 10px; }
.testimonial-card blockquote { margin: 0 0 14px; font-size: 16px; font-style: italic; color: var(--fg); }
.testimonial-card figcaption { font-weight: 600; color: var(--muted); font-size: 14px; }

/* FAQ */
.section-faq { background: #fafafa; }
.faq-wrap { max-width: 820px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; padding: 0; overflow: hidden; }
.faq-item summary { list-style: none; padding: 18px 22px; cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chev { color: var(--accent); font-size: 22px; transition: transform .25s; }
.faq-item[open] .chev { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 22px 18px; color: var(--muted); }

/* Newsletter */
.section-newsletter { background: linear-gradient(135deg, #1a1a1a, #2a2418); color: #fff; }
.newsletter-inner { text-align: center; max-width: 620px; margin: 0 auto; }
.newsletter-inner h2 { color: #fff; }
.newsletter-inner p { color: rgba(255,255,255,.75); margin-bottom: 22px; }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.newsletter-form input { flex: 1; min-width: 220px; padding: 13px 18px; border: 0; border-radius: 999px; font-size: 14px; }

/* Page hero (blog/archive) */
.page-hero { background: var(--dark); color: #fff; padding: 70px 0 60px; text-align: center; }
.page-hero-title { color: #fff; font-size: clamp(28px, 4vw, 46px); margin: 0; }
.page-hero-sub { color: rgba(255,255,255,.75); margin-top: 8px; }

/* Blog layout */
.blog-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 40px; padding-block: 60px; }
body.no-sidebar .blog-layout { grid-template-columns: 1fr; }
.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s; }
.post-card:hover { transform: translateY(-4px); }
.post-card-thumb { aspect-ratio: 16/10; background: linear-gradient(135deg,#1a1a1a,#3a2f1a); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 40px; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 18px 20px 22px; }
.post-card-meta { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.post-card-title { font-size: 20px; margin: 0 0 8px; }
.post-card-excerpt { color: var(--muted); margin: 0 0 14px; }
.read-more { color: var(--accent); font-weight: 600; }

/* Single / page */
.page-article, .single-article { background: #fff; padding: 40px clamp(20px, 4vw, 56px); border-radius: var(--radius); box-shadow: var(--shadow); margin-block: 50px; }
.entry-title { font-size: clamp(28px, 4vw, 44px); }
.entry-meta { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.entry-thumb { margin: 20px 0 30px; border-radius: var(--radius); overflow: hidden; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }

/* Sidebar */
.widget-area .widget { background: #fff; padding: 22px; border-radius: var(--radius); margin-bottom: 22px; box-shadow: var(--shadow); }
.widget-title { font-family: 'Playfair Display', serif; font-size: 18px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); display: inline-block; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--line); }

/* Comments */
.comments-area { background: #fff; padding: 32px; border-radius: var(--radius); margin-top: 30px; box-shadow: var(--shadow); }
.comments-title { font-size: 22px; }

/* 404 */
.error-404 { padding: 100px 20px; text-align: center; }
.error-404 h1 { font-size: 120px; color: var(--accent); margin: 0; line-height: 1; }
.error-wrap { max-width: 520px; margin: 0 auto; }
.search-block { margin-top: 30px; }

/* Footer */
.site-footer { background: #1a1a1a; color: rgba(255,255,255,.78); margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 20px; }
.footer-title { color: var(--accent); font-family: 'Playfair Display', serif; font-size: 18px; margin-bottom: 18px; letter-spacing: .05em; text-transform: uppercase; }
.footer-col p, .footer-col a, .footer-col li { font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 4px 0; }
.social-links { display: flex; gap: 10px; margin-top: 14px; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.social-links a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-phone a { color: var(--accent); font-weight: 700; font-size: 20px; }
.site-info { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; text-align: center; font-size: 12px; color: rgba(255,255,255,.5); }

/* Pagination */
.pagination, .nav-links { display: flex; justify-content: center; gap: 8px; margin: 30px 0; flex-wrap: wrap; }
.page-numbers { padding: 8px 14px; border-radius: 6px; background: #fff; box-shadow: var(--shadow); font-weight: 600; }
.page-numbers.current, .page-numbers:hover { background: var(--accent); color: #fff; }

/* WooCommerce minor tweaks */
.woocommerce ul.products li.product .button { background: var(--accent); color: #fff; border-radius: 999px; }
.woocommerce ul.products li.product .button:hover { background: var(--accent-strong); color: #fff; }
.woocommerce span.onsale { background: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .categories-grid { grid-template-columns: repeat(4, 1fr); }
    .products-grid, .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .blog-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .menu-toggle { display: inline-flex; }
    .main-navigation ul { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; padding: 14px 20px; gap: 0; border-top: 1px solid var(--line); }
    .main-navigation ul li { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .main-navigation.is-open ul { display: flex; }
    .main-navigation { position: relative; }
    .header-inner { flex-wrap: wrap; }
    .hero-track, .hero-carousel { min-height: 420px; height: 420px; }
    .foundation-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .posts-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; padding: 40px 20px; }
    .section { padding: 50px 0; }
}
@media (max-width: 480px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .topbar-meta { display: none; }
    .hero-nav { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
