/* =====================================================
   Oopbuy Findss — main stylesheet
   Inspired by kakobuy-style reverse-shopping layouts.
   Palette: orange #ea580c primary, dark #0f172a, surface #fff7ed
   ===================================================== */

:root {
    --c-primary: #ea580c;
    --c-primary-d: #c2410c;
    --c-accent: #16a34a;
    --c-accent-d: #15803d;
    --c-ink: #0f172a;
    --c-ink-soft: #334155;
    --c-mute: #64748b;
    --c-line: #e2e8f0;
    --c-bg: #ffffff;
    --c-surface: #fff7ed;
    --c-surface-2: #fef3e6;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
    --shadow: 0 4px 16px rgba(15,23,42,.08);
    --shadow-lg: 0 16px 40px rgba(234,88,12,.18);
    --max: 1240px;
}

* { box-sizing: border-box; }
body { color: var(--c-ink); background: var(--c-bg); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Inter, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-d); }

h1,h2,h3,h4 { color: var(--c-ink); line-height: 1.22; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; color: var(--c-ink-soft); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.screen-reader-text { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.skip-link { position:absolute; top:-40px; left:0; background:#000; color:#fff; padding:8px 12px; z-index:9999; }
.skip-link:focus { top:0; }

/* ===== Top bar =================================================== */
.topbar { background: var(--c-ink); color: #fde68a; font-size: 13px; }
.topbar__inner { display:flex; justify-content:space-between; gap:12px; padding: 8px 20px; align-items:center; flex-wrap:wrap; }
.topbar__msg strong { color:#fff; }
.topbar__links a { color:#fde68a; margin: 0 4px; }
.topbar__links a:hover { color:#fff; text-decoration: underline; }

/* ===== Header ==================================================== */
.site-header { background: #fff; border-bottom: 1px solid var(--c-line); position: sticky; top:0; z-index: 90; box-shadow: var(--shadow-sm); }
.site-header__inner { display:flex; align-items:center; gap:24px; padding: 14px 20px; }
.site-branding { flex: 0 0 auto; }
.brand { display:flex; align-items:center; gap:10px; color: var(--c-ink); text-decoration: none; }
.brand__mark { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:10px; background:linear-gradient(135deg,#ea580c,#f97316); color:#fff; font-weight:900; font-size:15px; letter-spacing:.5px; box-shadow: var(--shadow-sm); }
.brand__text { display:flex; flex-direction:column; line-height:1.1; }
.brand__name { font-weight:900; font-size:18px; color: var(--c-ink); }
.brand__tag { font-size:11px; color: var(--c-mute); margin-top:2px; }
.custom-logo { max-height: 48px; width:auto; }

.main-navigation { margin-left:auto; }
.primary-menu { list-style:none; margin:0; padding:0; display:flex; align-items:center; gap: 6px; }
.primary-menu > li { position: relative; }
.primary-menu > li > a { display:inline-flex; align-items:center; gap:6px; padding: 10px 14px; color: var(--c-ink); font-weight: 600; border-radius: 8px; font-size: 15px; }
.primary-menu > li > a:hover { background: var(--c-surface); color: var(--c-primary); text-decoration: none; }
.primary-menu .caret { font-size: 10px; opacity: .7; }

.nav-cta { background: var(--c-primary); color:#fff !important; font-weight:700 !important; padding: 10px 18px !important; border-radius: 999px !important; box-shadow: var(--shadow-sm); }
.nav-cta:hover { background: var(--c-primary-d) !important; color:#fff !important; }
.nav-cta--accent { background: var(--c-accent); }
.nav-cta--accent:hover { background: var(--c-accent-d) !important; }

/* mega dropdown */
.has-mega-dropdown { position: relative; }
.mega-dropdown { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px); min-width: 640px; background:#fff; border:1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px; opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s; z-index: 100; }
.has-mega-dropdown:hover .mega-dropdown,
.has-mega-dropdown.is-open .mega-dropdown,
.has-mega-dropdown:focus-within .mega-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-dropdown__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mega-item { display:flex; align-items:center; gap:10px; padding: 10px 12px; border-radius: 10px; color: var(--c-ink); transition: background .15s; }
.mega-item:hover { background: var(--c-surface); color: var(--c-primary); text-decoration:none; }
.mega-item__emoji { font-size: 22px; }
.mega-item__label { font-weight: 600; font-size: 14px; }

/* mobile nav toggle */
.nav-toggle { display:none; margin-left:auto; background:transparent; border:0; width:44px; height:44px; flex-direction:column; justify-content:center; align-items:center; gap:5px; cursor:pointer; }
.nav-toggle span { display:block; width:24px; height:2px; background: var(--c-ink); border-radius:2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Buttons =================================================== */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1.1; border: 0; cursor: pointer; transition: transform .12s, box-shadow .15s, background .15s; box-shadow: var(--shadow-sm); text-decoration: none; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.btn--lg { padding: 14px 28px; font-size: 16px; }
.btn--xl { padding: 18px 28px; font-size: 17px; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 240px; }
.btn--xl .btn__title { font-size: 18px; font-weight: 800; }
.btn--xl .btn__sub { font-size: 12px; opacity: .85; font-weight: 500; }
.btn--primary { background: var(--c-primary); color:#fff; }
.btn--primary:hover { background: var(--c-primary-d); color:#fff; }
.btn--secondary { background: var(--c-ink); color:#fff; }
.btn--secondary:hover { background:#1e293b; color:#fff; }
.btn--accent { background: var(--c-accent); color:#fff; }
.btn--accent:hover { background: var(--c-accent-d); color:#fff; }

/* ===== Hero ====================================================== */
.hero { background: linear-gradient(180deg, var(--c-surface) 0%, #ffffff 100%); padding: 56px 0 72px; position: relative; overflow:hidden; }
.hero::before { content:""; position:absolute; right:-180px; top:-180px; width:520px; height:520px; background: radial-gradient(circle, rgba(234,88,12,.18), transparent 60%); }
.hero__inner { display:grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items:center; position: relative; }
.eyebrow { display:inline-block; background:#fff; color: var(--c-primary); border:1px solid #fed7aa; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.hero__title { margin: 0 0 18px; }
.hero__title .accent { color: var(--c-primary); }
.hero__sub { font-size: 17px; color: var(--c-ink-soft); margin-bottom: 28px; max-width: 60ch; }
.hero__cta { display:flex; flex-wrap:wrap; gap: 14px; margin-bottom: 18px; }
.hero__register { display:flex; align-items:center; gap: 14px; margin-bottom: 24px; }
.hero__register span { color: var(--c-mute); font-size: 14px; }
.hero__bullets { list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap: 18px; color: var(--c-ink-soft); font-size: 14px; }
.hero__bullets li strong { color: var(--c-ink); }

.hero__visual { position: relative; min-height: 360px; }
.hero-card { position:absolute; background:#fff; border:1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 18px 16px; display:flex; flex-direction:column; gap:6px; min-width: 230px; }
.hero-card__tag { font-size:11px; font-weight:800; color: var(--c-primary); background: var(--c-surface); padding: 3px 8px; border-radius:999px; align-self: flex-start; letter-spacing: .04em; text-transform: uppercase; }
.hero-card__title { font-weight:800; color: var(--c-ink); font-size: 16px; }
.hero-card__meta { color: var(--c-mute); font-size: 13px; }
.hero-card--1 { top: 10px; left: 0; }
.hero-card--2 { top: 100px; right: 0; }
.hero-card--3 { bottom: 10px; left: 60px; }

/* ===== Sections ================================================== */
.section { padding: 72px 0; }
.section--cats { background: #ffffff; }
.section--guides { background: var(--c-surface); }
.section--how { background: #ffffff; }
.section--trust { background: var(--c-ink); color:#fff; }
.section--trust .section__title, .section--trust h3 { color:#fff; }
.section--trust .section__sub { color:#cbd5e1; }
.section--trust .trust p { color:#cbd5e1; }
.section--trust .trust strong { color:#fff; }
.section--latest { background: var(--c-bg); }
.section__head { text-align:center; max-width: 760px; margin: 0 auto 48px; }
.section__title { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section__sub { color: var(--c-mute); font-size: 16px; }
.section--trust .section__sub { color:#94a3b8; }

/* category grid */
.cat-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card { background:#fff; border:1px solid var(--c-line); border-radius: var(--radius); padding: 24px; display:flex; flex-direction:column; gap: 8px; transition: transform .15s, box-shadow .15s, border-color .15s; color: var(--c-ink); }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #fed7aa; text-decoration:none; }
.cat-card__emoji { font-size: 36px; }
.cat-card__name { font-size: 18px; font-weight: 800; color: var(--c-ink); }
.cat-card__cta { font-size: 14px; color: var(--c-primary); font-weight: 600; margin-top: 6px; }

/* guide grid (3 cards) */
.guide-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.guide-card { background:#fff; border-radius: var(--radius); padding: 28px; border:1px solid var(--c-line); box-shadow: var(--shadow-sm); display:flex; flex-direction:column; gap: 12px; transition: transform .15s, box-shadow .15s; }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.guide-card__title a { color: var(--c-ink); }
.guide-card__title a:hover { color: var(--c-primary); text-decoration:none; }
.guide-card__desc { color: var(--c-ink-soft); margin: 0; }
.guide-card__list { list-style:none; padding:0; margin: 8px 0; display:flex; flex-direction:column; gap: 6px; }
.guide-card__list li a { color: var(--c-ink-soft); display:block; padding: 4px 0; border-bottom: 1px dashed var(--c-line); }
.guide-card__list li a:hover { color: var(--c-primary); }
.guide-card__cta { margin-top:auto; font-weight:700; color: var(--c-primary); }

/* steps */
.steps { list-style:none; padding:0; margin:0; display:grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step { background: #fff; border:1px solid var(--c-line); border-radius: var(--radius); padding: 22px 20px; position: relative; }
.step__num { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:50%; background:var(--c-primary); color:#fff; font-weight:800; margin-bottom: 8px; }
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p  { font-size: 14px; color: var(--c-mute); margin:0; }

/* trust grid */
.trust-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.trust { background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 22px; }
.trust h3 { color:#fff; font-size: 17px; margin-bottom: 6px; }
.trust p  { color:#cbd5e1; font-size: 14px; margin:0; }

/* post grid (blog) */
.post-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-grid--archive { grid-template-columns: repeat(3, 1fr); }
.post-card { background:#fff; border:1px solid var(--c-line); border-radius: var(--radius); padding: 22px; display:flex; flex-direction:column; gap:10px; transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card__cat { font-size:11px; font-weight:800; color: var(--c-primary); text-transform: uppercase; letter-spacing: .06em; }
.post-card__title { margin:0; font-size: 18px; }
.post-card__title a { color: var(--c-ink); }
.post-card__title a:hover { color: var(--c-primary); text-decoration:none; }
.post-card__excerpt { color: var(--c-ink-soft); font-size: 14.5px; margin: 0; }
.post-card__cta { color: var(--c-primary); font-weight: 700; font-size: 14px; margin-top: auto; }

/* ===== CTA strip =================================================== */
.cta-strip { background: linear-gradient(120deg, #ea580c 0%, #f97316 100%); color:#fff; padding: 56px 0; }
.cta-strip__inner { display:flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-strip__copy h2 { color:#fff; margin-bottom: 8px; }
.cta-strip__copy p { color: #fff7ed; margin:0; }
.cta-strip__buttons { display:flex; gap: 12px; flex-wrap: wrap; }
.cta-strip__buttons .btn--primary { background:#fff; color: var(--c-primary); }
.cta-strip__buttons .btn--primary:hover { background:#fef3e6; color: var(--c-primary-d); }
.cta-strip__buttons .btn--secondary { background:#1f2937; color:#fff; }
.cta-strip__buttons .btn--accent { background: var(--c-accent); color:#fff; }

/* ===== Pages / Articles =========================================== */
.page-wrap { padding: 48px 20px 72px; }
.page-head { margin-bottom: 32px; }
.breadcrumbs { font-size: 13px; color: var(--c-mute); margin-bottom: 14px; }
.breadcrumbs a { color: var(--c-mute); }
.breadcrumbs a:hover { color: var(--c-primary); }
.page-title { margin-bottom: 10px; }
.page-desc { color: var(--c-ink-soft); font-size: 17px; max-width: 720px; }
.page-content { max-width: 820px; font-size: 17px; color: var(--c-ink-soft); }
.page-content h2 { margin-top: 1.6em; }
.page-content ul, .page-content ol { padding-left: 1.4em; }
.page-content li { margin: .35em 0; }

.guide-section { margin-top: 56px; }

.related-cta { margin-top: 48px; background: var(--c-surface); border:1px solid #fed7aa; border-radius: var(--radius); padding: 32px; }
.related-cta h2 { margin-bottom: 8px; }
.related-cta__buttons { display:flex; gap:12px; flex-wrap:wrap; margin-top: 16px; }

.single-article { padding: 48px 20px 56px; max-width: 880px; }
.article-head { margin: 12px 0 24px; }
.article-eyebrow { display:inline-block; color: var(--c-primary); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.article-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 8px; }
.article-meta { color: var(--c-mute); font-size: 13px; margin: 0; }
.article-body { font-size: 17.5px; color: var(--c-ink-soft); line-height: 1.8; }
.article-body h2 { margin-top: 1.6em; color: var(--c-ink); }
.article-body h3 { margin-top: 1.4em; color: var(--c-ink); }
.article-body p { margin: 0 0 1.1em; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.article-body li { margin: .3em 0; }
.article-body blockquote { margin: 1.2em 0; padding: 14px 18px; border-left: 4px solid var(--c-primary); background: var(--c-surface); color: var(--c-ink); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.article-body a { color: var(--c-primary); border-bottom: 1px dashed #fed7aa; }
.article-body a:hover { color: var(--c-primary-d); border-bottom-style: solid; }

.article-footer { margin-top: 36px; }
.article-tags { font-size: 13px; color: var(--c-mute); margin-bottom: 20px; }
.tag-label { font-weight: 700; color: var(--c-ink); margin-right: 4px; }

.article-cta { background: var(--c-surface); border-radius: var(--radius); padding: 28px; margin: 24px 0; border:1px solid #fed7aa; }
.article-cta h2 { font-size: 22px; margin-bottom: 8px; }
.article-cta p { color: var(--c-ink-soft); margin-bottom: 16px; }
.article-cta__buttons { display:flex; flex-wrap:wrap; gap:12px; }

.related-posts { margin-top: 32px; padding: 24px; background:#fff; border:1px solid var(--c-line); border-radius: var(--radius); }
.related-posts h2 { font-size: 19px; margin-bottom: 12px; }
.related-posts ul { list-style:none; padding:0; margin:0; display:grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }
.related-posts a { color: var(--c-ink); border-bottom: 1px dashed var(--c-line); display:block; padding: 6px 0; }
.related-posts a:hover { color: var(--c-primary); }

.pagination { margin-top: 32px; display:flex; justify-content:center; }
.pagination .page-numbers { display:inline-flex; align-items:center; justify-content:center; min-width:38px; height:38px; padding: 0 12px; margin: 0 4px; border-radius: 8px; background:#fff; border:1px solid var(--c-line); color: var(--c-ink); font-weight: 600; }
.pagination .page-numbers.current { background: var(--c-primary); color:#fff; border-color: var(--c-primary); }
.pagination .page-numbers:hover { border-color: var(--c-primary); color: var(--c-primary); text-decoration:none; }
.pagination .page-numbers.current:hover { color:#fff; }

/* 404 */
.error-cta { display:flex; justify-content:center; gap:12px; flex-wrap:wrap; margin: 24px 0 32px; }
.error-links { list-style:none; padding:0; display:flex; justify-content:center; gap: 14px; flex-wrap:wrap; }
.error-links a { background:#fff; border:1px solid var(--c-line); padding: 10px 14px; border-radius: 999px; color: var(--c-ink); }
.error-links a:hover { border-color: var(--c-primary); color: var(--c-primary); text-decoration: none; }

/* ===== Footer ===================================================== */
.site-footer { background: #0b1224; color:#cbd5e1; padding: 56px 0 0; }
.site-footer a { color:#cbd5e1; }
.site-footer a:hover { color:#fff; }
.site-footer__grid { display:grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-col h4 { color:#fff; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; }
.footer-col ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap: 8px; font-size: 14.5px; }
.footer-cats { columns: 2; column-gap: 12px; }
.footer-cats li { break-inside: avoid; }
.brand--footer .brand__name { color:#fff; }
.footer-about { color:#94a3b8; font-size: 14.5px; }
.footer-cta { display:flex; gap: 10px; flex-wrap:wrap; margin-top: 16px; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 18px 0; font-size: 13px; color:#94a3b8; }
.site-footer__bottom p { margin:0; color:#94a3b8; }

/* ===== Responsive ================================================= */
@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__visual { display:none; }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .guide-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .post-grid, .post-grid--archive { grid-template-columns: repeat(2, 1fr); }
    .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
    .mega-dropdown { min-width: 480px; }
}

@media (max-width: 768px) {
    .nav-toggle { display:inline-flex; }
    .main-navigation { position: absolute; top: 100%; left: 0; right: 0; background:#fff; border-top:1px solid var(--c-line); display:none; padding: 8px 12px 16px; box-shadow: var(--shadow); }
    .main-navigation.is-open { display:block; }
    .primary-menu { flex-direction: column; align-items: stretch; gap: 2px; }
    .primary-menu > li > a { padding: 12px 14px; }
    .has-mega-dropdown .mega-dropdown { position: static; transform: none; min-width: 0; box-shadow: none; border: 0; padding: 4px 0 8px; display: none; opacity: 1; visibility: visible; }
    .has-mega-dropdown.is-open .mega-dropdown { display:block; }
    .mega-dropdown__inner { grid-template-columns: repeat(2, 1fr); }
    .site-header__inner { flex-wrap: wrap; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
    .post-grid, .post-grid--archive { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .cta-strip__inner { flex-direction: column; text-align:center; }
    .cta-strip__buttons { justify-content:center; }
    .related-posts ul { grid-template-columns: 1fr; }
    .hero__cta .btn--xl { min-width: 100%; }
    .topbar__inner { font-size: 12px; }
    .topbar__links { display:none; }
}

@media (max-width: 480px) {
    .cat-grid { grid-template-columns: 1fr 1fr; }
    .mega-dropdown__inner { grid-template-columns: 1fr; }
}
