/*
Theme Name: LuckyHouse Reviews
Theme URI: https://www.luckyhouse.tech/
Author: LuckyHouse
Description: Editorial affiliate-review directory with internal review pages and transparent outbound links.
Version: 1.2.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: luckyhouse
*/

:root {
  --navy: #102a43;
  --navy-deep: #07143d;
  --yellow: #ffc928;
  --cream: #fff8df;
  --paper: #fffdf7;
  --ink: #152536;
  --muted: #617080;
  --line: #ddd6c8;
  --success: #146c43;
  --radius: 20px;
  --shadow: 0 18px 50px rgba(7, 20, 61, 0.11);
  --shell: min(1180px, calc(100% - 36px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Aptos", "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 18px; top: 18px; z-index: 1000; background: #fff; padding: 10px 14px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 20, 61, 0.96);
  color: #fff;
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; letter-spacing: -0.02em; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px 14px 18px 18px; background: var(--yellow); color: var(--navy-deep); box-shadow: inset 0 -4px 0 rgba(7,20,61,.12); }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy small { margin-top: 5px; color: #d4dceb; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; align-items: center; font-size: 14px; font-weight: 800; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--yellow); }

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 18%, rgba(255,201,40,.28), transparent 25%),
    linear-gradient(135deg, var(--navy-deep), #153e68 65%, #1d5675);
  color: #fff;
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 60px; align-items: center; min-height: 520px; padding-block: 70px; }
.eyebrow { display: inline-flex; border-radius: 999px; padding: 7px 12px; background: rgba(255,255,255,.1); color: var(--yellow); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; color: var(--navy-deep); line-height: 1.08; letter-spacing: -.035em; font-family: Georgia, "Times New Roman", serif; }
.hero h1 { max-width: 760px; margin-top: 18px; color: #fff; font-size: clamp(45px, 7vw, 78px); }
.hero p { max-width: 720px; margin: 22px 0 30px; color: #dce8f3; font-size: 19px; }
.button, .review-link, .affiliate-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  background: var(--yellow);
  color: var(--navy-deep);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.16);
  transition: transform .18s ease, box-shadow .18s ease;
}
.button:hover, .review-link:hover, .affiliate-button:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.22); }
.hero-note { position: relative; padding: 34px; border: 1px solid rgba(255,255,255,.18); border-radius: 30px; background: rgba(255,255,255,.08); box-shadow: var(--shadow); }
.hero-note strong { display: block; color: var(--yellow); font: 900 78px/1 Georgia, serif; }
.hero-note span { font-weight: 900; }
.hero-note p { margin: 15px 0 0; font-size: 15px; }

.disclosure { padding: 13px 18px; background: var(--yellow); color: var(--navy-deep); text-align: center; font-size: 13px; font-weight: 800; }
.ownership-strip { padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fff; color: var(--muted); text-align: center; font-size: 13px; }
.ownership-strip strong { color: var(--navy-deep); }
.ownership-strip a { font-weight: 900; text-underline-offset: 3px; }
.section { padding-block: 76px; }
.section.alt { background: var(--cream); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 34px; }
.section-head h2 { max-width: 720px; font-size: clamp(34px, 4vw, 52px); }
.section-head p { max-width: 460px; margin: 0; color: var(--muted); }
.featured-grid, .card-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 30px rgba(7,20,61,.06); transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-image { aspect-ratio: 4/3; width: 100%; object-fit: cover; background: #edf1f5; }
.product-copy { display: flex; min-height: 280px; flex-direction: column; padding: 22px; }
.meta { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.product-card h3 { font-size: 25px; }
.product-card p { margin: 14px 0 20px; color: var(--muted); font-size: 14px; }
.review-link { margin-top: auto; box-shadow: none; }

.directory-intro > .section { padding-bottom: 32px; }
.directory-tools { position: sticky; top: 74px; z-index: 30; padding: 18px 0; border-block: 1px solid var(--line); background: rgba(255,253,247,.96); backdrop-filter: blur(12px); }
.tool-row { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 16px; align-items: center; }
.search-input { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; background: #fff; color: var(--ink); font: inherit; }
.filters { display: flex; overflow-x: auto; gap: 9px; padding: 2px; scrollbar-width: thin; }
.filter-button { flex: 0 0 auto; min-height: 42px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: #fff; color: var(--navy-deep); font-weight: 900; cursor: pointer; }
.filter-button[aria-pressed="true"] { border-color: var(--navy-deep); background: var(--navy-deep); color: #fff; }
.category-block { margin-top: 52px; }
.category-title { display: flex; justify-content: space-between; align-items: end; margin-bottom: 20px; border-bottom: 2px solid var(--navy-deep); padding-bottom: 12px; }
.category-title h2 { font-size: 34px; }
.category-title span { color: var(--muted); font-weight: 800; }
.empty-state { display: none; padding: 50px 0; text-align: center; }

.review-hero { background: linear-gradient(140deg, var(--cream), #fff 60%); border-bottom: 1px solid var(--line); }
.review-hero-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 54px; align-items: center; padding-block: 66px; }
.review-hero-image { overflow: hidden; border-radius: 30px; background: #edf1f5; box-shadow: var(--shadow); }
.review-hero-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.review-hero h1 { margin-top: 16px; font-size: clamp(42px, 6vw, 68px); }
.review-topic { margin: 14px 0 0; color: var(--navy); font-size: 21px; font-weight: 800; }
.review-summary { margin: 20px 0; color: var(--muted); font-size: 18px; }
.status-chip { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 18px; border-radius: 999px; padding: 7px 12px; background: #e6f5ec; color: var(--success); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.hero-review-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-review-meta .status-chip { margin-bottom: 0; }
.hero-score { display: inline-flex; align-items: baseline; border-radius: 999px; padding: 7px 13px; background: var(--navy-deep); color: #fff; font-weight: 900; }
.hero-score small { margin-left: 2px; color: var(--yellow); }
.review-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 44px; padding-block: 66px 100px; }
.review-body section { padding: 30px 0; border-bottom: 1px solid var(--line); }
.review-body h2 { margin-bottom: 16px; font-size: 34px; }
.review-body h3 { margin-bottom: 12px; font-size: 24px; }
.review-body p { margin: 0 0 14px; }
.review-body ul { margin: 0; padding-left: 22px; }
.review-body li + li { margin-top: 8px; }
.method-note { border-left: 4px solid var(--yellow); padding: 14px 16px; background: var(--cream); color: var(--muted); font-size: 14px; }
.section-kicker { display: block; margin-bottom: 10px; color: var(--navy); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.official-research blockquote { margin: 18px 0; border-left: 5px solid var(--yellow); padding: 8px 0 8px 22px; color: var(--navy-deep); font: 700 22px/1.45 Georgia, serif; }
.official-research p { color: var(--muted); font-size: 14px; }
.score-grid { display: grid; gap: 16px; margin-top: 24px; }
.score-row > div:first-child { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 7px; font-size: 14px; }
.score-row span { color: var(--navy); font-weight: 900; }
.score-track { overflow: hidden; height: 9px; border-radius: 999px; background: #e5e9ee; }
.score-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--navy), var(--yellow)); }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.panel.pros { border-top: 6px solid var(--success); }
.panel.cons { border-top: 6px solid #bd5b3c; }
.review-sidebar { align-self: start; position: sticky; top: 104px; }
.facts { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 30px rgba(7,20,61,.07); }
.facts h2 { padding: 22px; background: var(--navy-deep); color: #fff; font-size: 25px; }
.fact-row { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.fact-row strong { color: var(--navy); }
.cta-box { margin-top: 22px; border-radius: var(--radius); padding: 24px; background: var(--cream); text-align: center; }
.cta-box p { color: var(--muted); font-size: 12px; }
.affiliate-button { width: 100%; }
.back-link { display: inline-flex; margin-bottom: 22px; color: var(--navy); font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.mobile-sticky { display: none; }
.review-byline { margin-top: 16px !important; color: var(--muted); font-size: 13px !important; }
.review-byline a { font-weight: 900; text-underline-offset: 3px; }

.content-page { min-height: 65vh; padding-block: 70px; }
.content-page article { max-width: 820px; }
.content-page h1 { margin-bottom: 25px; font-size: 55px; }
.site-footer { padding: 56px 0; background: var(--navy-deep); color: #d9e5ef; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; }
.site-footer .brand { color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.site-footer nav a { font-weight: 800; text-underline-offset: 4px; }
.site-footer .copyright { margin-top: 24px; color: #9fb2c4; font-size: 12px; }

.company-home { border-top: 1px solid var(--line); background: linear-gradient(145deg, #fff, var(--cream)); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-grid article { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; box-shadow: 0 10px 30px rgba(7,20,61,.06); }
.service-grid h2, .service-grid h3 { margin: 10px 0 12px; font-size: 28px; }
.service-grid p { margin: 0; color: var(--muted); }
.service-number { color: var(--yellow); font: 900 44px/1 Georgia, serif; }
.corporate-actions { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: 28px; }
.corporate-actions > a:not(.button) { color: var(--navy); font-weight: 900; text-underline-offset: 4px; }

.corporate-hero { padding-block: 76px; background: radial-gradient(circle at 85% 20%, rgba(255,201,40,.3), transparent 25%), linear-gradient(140deg, var(--navy-deep), #174565); color: #fff; }
.corporate-hero .narrow { max-width: 880px; }
.corporate-hero h1 { margin-top: 18px; color: #fff; font-size: clamp(43px, 6vw, 68px); }
.corporate-hero p { max-width: 760px; margin: 22px 0 0; color: #dce8f3; font-size: 19px; }
.corporate-content { max-width: 1000px; padding-block: 70px 100px; }
.corporate-content > section { padding-block: 34px; border-bottom: 1px solid var(--line); }
.corporate-content > section:first-child { padding-top: 0; }
.corporate-content h2 { margin-bottom: 18px; font-size: clamp(30px, 4vw, 42px); }
.corporate-content h3 { font-size: 24px; }
.corporate-content p { max-width: 820px; }
.company-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; margin: 28px 0; border: 1px solid var(--line); background: var(--line); }
.company-facts div { padding: 18px; background: #fff; }
.company-facts dt { color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.company-facts dd { margin: 6px 0 0; color: var(--navy-deep); font-weight: 800; }
.contact-strip { border: 0 !important; border-radius: var(--radius); padding: 34px !important; background: var(--cream); }
.policy-content { max-width: 860px; }
.legal-note { border-left: 4px solid var(--yellow); padding: 15px 18px; background: var(--cream); color: var(--muted); }

.contact-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 40px; padding-block: 70px 100px; }
.contact-details, .contact-form-card { align-self: start; }
.contact-details h2, .contact-form-card h2 { margin-bottom: 22px; font-size: 36px; }
.contact-details .company-facts { grid-template-columns: 1fr; }
.contact-form-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; background: #fff; box-shadow: var(--shadow); }
.form-row { display: grid; gap: 7px; margin-bottom: 18px; }
.form-row label, .consent-row { color: var(--navy-deep); font-weight: 900; }
.form-row input, .form-row select, .form-row textarea { width: 100%; border: 1px solid #b9c1c9; border-radius: 12px; padding: 12px 14px; background: #fff; color: var(--ink); font: inherit; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 3px solid rgba(255,201,40,.55); border-color: var(--navy); }
.optional { color: var(--muted); font-size: 12px; font-weight: 500; }
.consent-row { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 24px; font-size: 14px; }
.consent-row input { flex: 0 0 auto; width: 19px; height: 19px; margin-top: 2px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-notice { margin-bottom: 22px; border-left: 5px solid; padding: 14px 16px; border-radius: 8px; }
.form-notice.success { border-color: var(--success); background: #e6f5ec; }
.form-notice.error { border-color: #a63d2a; background: #fff0ed; }

@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; padding-block: 12px; }
  .site-nav { width: 100%; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 3px; }
  .hero-grid, .review-hero-grid, .review-layout, .footer-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 30px; }
  .featured-grid, .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tool-row { grid-template-columns: 1fr; }
  .review-sidebar { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  :root { --shell: min(100% - 24px, 1180px); --radius: 16px; }
  .header-inner { min-height: 66px; gap: 10px; }
  .hero-grid { min-height: auto; padding-block: 54px; }
  .hero h1 { font-size: 44px; }
  .section { padding-block: 54px; }
  .directory-intro > .section { padding-bottom: 24px; }
  .section-head { display: block; }
  .section-head p { margin-top: 15px; }
  .featured-grid, .card-grid, .pros-cons, .service-grid, .company-facts { grid-template-columns: 1fr; }
  .directory-tools { position: static; }
  .review-hero-grid { gap: 30px; padding-block: 40px; }
  .review-hero h1 { font-size: 44px; }
  .review-layout { padding-block: 42px 100px; }
  .corporate-hero { padding-block: 54px; }
  .corporate-content, .contact-layout { padding-block: 50px 80px; }
  .contact-form-card { padding: 24px; }
  .mobile-sticky {
    position: fixed;
    inset: auto 0 0;
    z-index: 70;
    display: block;
    transform: translateY(110%);
    border-top: 1px solid var(--line);
    padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
    background: rgba(255,253,247,.98);
    transition: transform .25s ease;
  }
  .mobile-sticky.is-visible { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
