/*
Theme Name: MOPA Laser Guide
Theme URI: https://example.com
Author: Montrell Hale
Description: A dark navy/blue editorial theme for laser equipment review and affiliate content sites. Built for MOPA Laser Guide.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mopa-laser-guide
*/

/* ============================================================
   Everything below this line is the actual visual design.
   WordPress reads the comment block above to register the
   theme -- it does not affect how the site looks.
   ============================================================ */

:root {
  --navy: #0b1220;
  --navy-soft: #131d33;
  --ink: #1a2233;
  --ink-soft: #5b6478;
  --paper: #ffffff;
  --paper-alt: #f5f7fb;
  --line: #e4e8f0;
  --blue: #2563eb;
  --blue-dark: #1d4fc4;
  --blue-pale: #eaf0fe;
  --good: #1a7f4e;
  --bad: #c0392b;
  --max-w: 900px;
  --wide: 1240px;
  font-size: 17px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

h1, h2, h3 { line-height: 1.25; color: var(--ink); }
a { color: var(--blue-dark); }
a:hover { color: var(--blue); }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }

/* Placeholder image blocks (swap for real photos via Featured Image / editor) */
.ph-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #101a30, #1c2c4d);
  color: #7d8db8;
  position: relative;
  overflow: hidden;
}
.ph-img svg { width: 34%; height: 34%; opacity: 0.55; }
.ph-img .ph-label {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #9fb0d6;
  background: rgba(11,18,32,0.55);
  padding: 3px 8px;
  border-radius: 3px;
}
.ph-img.light { background: linear-gradient(135deg, var(--paper-alt), #e5e9f2); color: #a7b0c4; }
.ph-img.light .ph-label { background: rgba(255,255,255,0.7); color: #6a7488; }

/* Utility bar */
.utility-bar {
  background: var(--navy);
  color: #c9d3e8;
  font-size: 0.78rem;
  padding: 8px 0;
  letter-spacing: 0.02em;
}
.utility-bar .wrap-wide { display: flex; align-items: center; justify-content: space-between; }
.utility-bar nav a { color: #c9d3e8; text-decoration: none; margin-left: 20px; }
.utility-bar nav a:hover { color: #fff; }

/* Header */
header.site {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
header.site .bar {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.logo svg { width: 30px; height: 30px; flex-shrink: 0; }
.logo .logo-text { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.01em; line-height: 1.1; }
.logo .logo-text small { display: block; font-weight: 600; font-size: 0.62rem; letter-spacing: 0.14em; color: var(--ink-soft); }

nav.main { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
nav.main ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; flex-wrap: wrap; }
nav.main a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
nav.main a:hover { color: var(--blue-dark); }

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-secondary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.btn-secondary:hover { border-color: #fff; }
.btn-outline-dark { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-outline-dark:hover { border-color: var(--blue); color: var(--blue-dark); }

/* Hero */
.hero { background: linear-gradient(120deg, var(--navy), #16223e); color: #fff; padding: 0; }
.hero .hero-inner {
  max-width: var(--wide); margin: 0 auto; padding: 64px 24px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.hero .kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; color: #8fb2ff; font-weight: 700; margin-bottom: 14px; }
.hero h1 { font-size: 2.5rem; margin: 0 0 16px; color: #fff; }
.hero h1 .accent { color: #6ea1ff; }
.hero p.lead { font-size: 1.08rem; color: #b9c3dc; max-width: 480px; margin: 0 0 28px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .hero-media { border-radius: 10px; aspect-ratio: 4/3; }

/* Sections */
main { padding: 0 0 80px; }
main.simple { padding-top: 48px; }
section { margin-bottom: 56px; }
section h2 { font-size: 1.6rem; margin-bottom: 8px; }
section .section-sub { color: var(--ink-soft); margin-bottom: 24px; }

/* Category tiles */
.tile-row-section { border-bottom: 1px solid var(--line); padding: 36px 0; }
.tiles-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 18px; }
.tile-row-section a.tile2 { text-decoration: none; color: var(--ink); text-align: center; display: block; }
.tile-row-section .ph-img { width: 100%; aspect-ratio: 1/1; border-radius: 8px; margin-bottom: 10px; }
.tile-row-section .ph-img svg { width: 42%; height: 42%; }
.tile-row-section .tile2-title { font-weight: 700; font-size: 0.85rem; margin-bottom: 2px; }
.tile-row-section .tile2-sub { font-size: 0.78rem; color: var(--blue-dark); font-weight: 600; }

/* Featured layout: cards + sidebar */
.featured-layout { display: grid; grid-template-columns: 2.6fr 1fr; gap: 32px; align-items: start; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.card .ph-img { width: 100%; aspect-ratio: 4/3; position: relative; }
.card .card-tag {
  position: absolute; top: 10px; left: 10px; background: var(--blue); color: #fff;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.04em; padding: 3px 8px;
  border-radius: 4px; text-transform: uppercase;
}
.card-body { padding: 16px 18px; }
.card h3 { font-size: 1rem; margin: 0 0 8px; }
.card p { color: var(--ink-soft); font-size: 0.89rem; margin: 0 0 12px; }
.card a.read { font-weight: 700; text-decoration: none; font-size: 0.88rem; }

/* Sidebar trust box */
.sidebar-box { background: var(--paper-alt); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.sidebar-box h3 { font-size: 1.05rem; margin: 0 0 16px; }
.sidebar-box .trust-item { display: flex; gap: 12px; margin-bottom: 16px; }
.sidebar-box .trust-icon {
  width: 34px; height: 34px; flex-shrink: 0; background: var(--blue-pale); color: var(--blue-dark);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.sidebar-box .trust-icon svg { width: 18px; height: 18px; }
.sidebar-box .trust-title { font-weight: 700; font-size: 0.88rem; }
.sidebar-box .trust-sub { font-size: 0.8rem; color: var(--ink-soft); }
.sidebar-box .btn { width: 100%; text-align: center; margin-top: 4px; }

/* Newsletter band */
.newsletter {
  background: var(--navy); color: #fff; border-radius: 10px; padding: 32px 34px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center;
}
.newsletter h3 { margin: 0 0 6px; font-size: 1.2rem; }
.newsletter p { color: #b9c3dc; margin: 0 0 16px; font-size: 0.92rem; }
.newsletter form { display: flex; gap: 10px; }
.newsletter input[type="email"] {
  flex: 1; padding: 11px 14px; border-radius: 5px; border: 1px solid #2a3a5c;
  background: #101a30; color: #fff; font-size: 0.9rem;
}
.newsletter .fine { font-size: 0.76rem; color: #8493b3; margin-top: 8px; }
.newsletter-perks { display: flex; flex-direction: column; gap: 14px; }
.newsletter-perks .perk { display: flex; gap: 12px; align-items: flex-start; }
.newsletter-perks .perk-icon {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid #2a3a5c;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.newsletter-perks .perk-icon svg { width: 15px; height: 15px; color: #8fb2ff; }
.newsletter-perks .perk-title { font-weight: 700; font-size: 0.86rem; }
.newsletter-perks .perk-sub { font-size: 0.78rem; color: #8493b3; }

/* Recommendation box */
.rec-box { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: 8px; padding: 22px 24px; margin: 24px 0; }
.rec-box .rec-flag { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue-dark); margin-bottom: 6px; }
.rec-box h3 { margin: 0 0 4px; }
.rec-box .rec-meta { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 12px; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 14px 0; }
.pros-cons ul { margin: 0; padding-left: 18px; }
.pros-cons .pros li::marker { color: var(--good); }
.pros-cons .cons li::marker { color: var(--bad); }
.pros-cons h4 { margin: 0 0 6px; font-size: 0.9rem; }

/* Comparison table */
table.compare, .entry-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.95rem; }
table.compare th, table.compare td, .entry-content table th, .entry-content table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
table.compare th, .entry-content table th { background: var(--paper-alt); }
table.compare tr:hover td { background: #f7f9fd; }

/* Article body */
article.post h1, .entry-title { font-size: 2rem; margin-bottom: 6px; }
article.post .byline { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 28px; }
article.post h2, .entry-content h2 { margin-top: 36px; }
article.post p, .entry-content p { margin: 14px 0; }
article.post ul, article.post ol, .entry-content ul, .entry-content ol { margin: 14px 0; padding-left: 22px; }

.disclosure { background: var(--paper-alt); border: 1px solid var(--line); border-radius: 6px; padding: 14px 18px; font-size: 0.88rem; color: var(--ink-soft); margin: 24px 0; }

.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 16px; }
.breadcrumb a { text-decoration: none; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 36px 0; color: var(--ink-soft); font-size: 0.88rem; text-align: center; }
footer.site a { color: var(--ink-soft); }

@media (max-width: 900px) {
  .hero .hero-inner { grid-template-columns: 1fr; }
  .tiles-row { grid-template-columns: repeat(4, 1fr); }
  .featured-layout { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 1.8rem; }
  .pros-cons { grid-template-columns: 1fr; }
  .tiles-row { grid-template-columns: repeat(3, 1fr); }
  nav.main { display: none; }
}
