/*
Theme Name: Pick Out Right
Theme URI: https://pickoutright.com/
Author: Pick Out Right
Author URI: https://pickoutright.com/
Description: Premium editorial one-page theme for Pick Out Right — product discovery, buying guides, reviews and comparisons. Trustworthy, clean and fast, with a green editorial identity and full Customizer control over every homepage section.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pick-out-right
Tags: one-column, custom-logo, custom-menu, editor-style, featured-images, translation-ready, blog
*/

/* ---------------------------------------------------------
   1. Tokens
--------------------------------------------------------- */
:root {
  --por-primary: #09554B;
  --por-deep: #063D36;
  --por-light: #EAF4F1;
  --por-soft: #F5FAF8;
  --por-text: #17201E;
  --por-secondary: #5D6864;
  --por-border: #DCE5E2;
  --por-bg: #FFFFFF;
  --por-radius: 6px;
  --por-shadow: 0 1px 2px rgba(23, 32, 30, .04), 0 8px 24px rgba(23, 32, 30, .06);
  --por-max: 1180px;
  --por-read: 740px;
  --por-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --por-serif: "Newsreader", Georgia, "Times New Roman", serif;
}

/* ---------------------------------------------------------
   2. Base
--------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--por-bg);
  color: var(--por-text);
  font-family: var(--por-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--por-primary); text-underline-offset: 3px; }
a:hover { color: var(--por-deep); }

h1, h2, h3, h4 {
  font-family: var(--por-serif);
  color: var(--por-text);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.15em; }

:focus-visible {
  outline: 3px solid var(--por-primary);
  outline-offset: 2px;
  border-radius: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--por-primary); color: #fff;
  padding: 10px 16px; border-radius: var(--por-radius);
  z-index: 999; transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------------------------------------------------------
   3. Layout helpers
--------------------------------------------------------- */
.por-wrap { width: 100%; max-width: var(--por-max); margin: 0 auto; padding: 0 20px; }
.por-section { padding: 72px 0; }
.por-section--soft { background: var(--por-soft); }
.por-section--light { background: var(--por-light); }
.por-section__head { max-width: 660px; margin-bottom: 34px; }
.por-eyebrow {
  font-family: var(--por-sans);
  font-size: .74rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--por-primary); margin: 0 0 10px;
}
.por-lede { color: var(--por-secondary); font-size: 1.06rem; margin: 0; }
.por-grid { display: grid; gap: 22px; }
.por-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.por-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.por-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------------------------------------------------------
   4. Buttons & labels
--------------------------------------------------------- */
.por-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--por-sans); font-size: .95rem; font-weight: 600;
  padding: 12px 20px; border-radius: var(--por-radius);
  border: 1px solid var(--por-primary);
  background: var(--por-primary); color: #fff;
  text-decoration: none; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.por-btn:hover { background: var(--por-deep); border-color: var(--por-deep); color: #fff; }
.por-btn--ghost { background: transparent; color: var(--por-primary); }
.por-btn--ghost:hover { background: var(--por-light); color: var(--por-deep); }

.por-label {
  display: inline-block;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--por-deep); background: var(--por-light);
  border: 1px solid var(--por-border);
  padding: 4px 9px; border-radius: 999px;
}

/* ---------------------------------------------------------
   5. Header
--------------------------------------------------------- */
.por-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--por-border);
}
.por-header__inner { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.por-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--por-text); }
.por-brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 4px; }
.por-brand__name { font-family: var(--por-serif); font-size: 1.22rem; font-weight: 600; line-height: 1.1; }
.por-brand__tag { display: block; font-family: var(--por-sans); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--por-secondary); }

.por-nav { margin-left: auto; }
.por-nav ul { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.por-nav a {
  font-size: .95rem; font-weight: 600; color: var(--por-text);
  text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent;
}
.por-nav a:hover, .por-nav .current-menu-item > a { color: var(--por-primary); border-bottom-color: var(--por-primary); }

.por-toggle {
  display: none; margin-left: auto;
  background: transparent; border: 1px solid var(--por-border);
  border-radius: var(--por-radius); padding: 9px 12px; cursor: pointer;
  font-family: var(--por-sans); font-weight: 600; color: var(--por-text);
}
.por-header__cta { display: inline-flex; }

/* ---------------------------------------------------------
   6. Hero
--------------------------------------------------------- */
.por-hero { padding: 76px 0 64px; background: linear-gradient(180deg, var(--por-soft), var(--por-bg)); border-bottom: 1px solid var(--por-border); }
.por-hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.por-hero h1 { margin-bottom: 18px; }
.por-hero p { color: var(--por-secondary); font-size: 1.12rem; max-width: 48ch; }
.por-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.por-hero__media img { border-radius: 12px; box-shadow: var(--por-shadow); width: 100%; object-fit: cover; aspect-ratio: 8 / 5; }
.por-hero__trust { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--por-secondary); font-size: .9rem; }
.por-hero__trust li::before { content: "✓"; color: var(--por-primary); font-weight: 700; margin-right: 7px; }

/* ---------------------------------------------------------
   7. Cards
--------------------------------------------------------- */
.por-card {
  display: flex; flex-direction: column;
  background: var(--por-bg); border: 1px solid var(--por-border);
  border-radius: 10px; overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease;
}
.por-card:hover { box-shadow: var(--por-shadow); transform: translateY(-2px); }
.por-card__media { background: var(--por-light); aspect-ratio: 4 / 3; overflow: hidden; }
.por-card__media img { width: 100%; height: 100%; object-fit: cover; }
.por-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.por-card__title { font-size: 1.14rem; margin: 0; }
.por-card__title a { color: inherit; text-decoration: none; }
.por-card__title a:hover { color: var(--por-primary); }
.por-card__excerpt { color: var(--por-secondary); font-size: .95rem; margin: 0; }
.por-card__meta { margin-top: auto; font-size: .82rem; color: var(--por-secondary); display: flex; gap: 10px; flex-wrap: wrap; }

.por-tile {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--por-border); border-radius: 10px;
  padding: 22px; background: var(--por-bg);
  transition: border-color .15s ease, background .15s ease;
}
.por-tile:hover { border-color: var(--por-primary); background: var(--por-soft); }
.por-tile h3 { margin: 0 0 6px; font-size: 1.08rem; }
.por-tile p { margin: 0; color: var(--por-secondary); font-size: .92rem; }

.por-step { border-top: 3px solid var(--por-primary); padding-top: 16px; }
.por-step span { font-family: var(--por-sans); font-size: .74rem; font-weight: 700; letter-spacing: .12em; color: var(--por-primary); }
.por-step h3 { margin: 8px 0 6px; font-size: 1.1rem; }
.por-step p { margin: 0; color: var(--por-secondary); font-size: .95rem; }

/* ---------------------------------------------------------
   8. Newsletter
--------------------------------------------------------- */
.por-news { background: var(--por-primary); color: #fff; border-radius: 14px; padding: 44px; }
.por-news h2, .por-news p { color: #fff; }
.por-news p { opacity: .9; max-width: 52ch; }
.por-news__form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; max-width: 520px; }
.por-news__form input[type="email"] {
  flex: 1 1 240px; min-width: 0;
  padding: 12px 14px; font: inherit; color: var(--por-text);
  border: 1px solid transparent; border-radius: var(--por-radius); background: #fff;
}
.por-news__form .por-btn { background: var(--por-deep); border-color: var(--por-deep); }
.por-news__form .por-btn:hover { background: #05302b; border-color: #05302b; }
.por-news small { display: block; margin-top: 14px; opacity: .8; }

/* ---------------------------------------------------------
   9. Content / single & archive
--------------------------------------------------------- */
.por-entry { padding: 56px 0 72px; }
.por-entry__inner { max-width: var(--por-read); margin: 0 auto; }
.por-entry__meta { color: var(--por-secondary); font-size: .9rem; margin-bottom: 22px; }
.por-entry__content > * { margin-bottom: 1.2em; }
.por-entry__content h2 { margin-top: 1.8em; }
.por-entry__content blockquote {
  margin: 1.6em 0; padding: 16px 22px;
  border-left: 3px solid var(--por-primary); background: var(--por-soft);
  font-family: var(--por-serif); font-size: 1.1rem;
}
.por-entry__content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.por-entry__content th, .por-entry__content td { border: 1px solid var(--por-border); padding: 10px 12px; text-align: left; }
.por-entry__content th { background: var(--por-soft); }
.por-table-scroll { overflow-x: auto; }

.por-searchform { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.por-searchform input[type="search"] {
  flex: 1 1 220px; min-width: 0; font: inherit; color: var(--por-text);
  padding: 11px 14px; border: 1px solid var(--por-border); border-radius: var(--por-radius); background: #fff;
}

.por-disclosure {
  background: var(--por-soft); border: 1px solid var(--por-border);
  border-radius: var(--por-radius); padding: 14px 16px;
  color: var(--por-secondary); font-size: .88rem; margin-bottom: 26px;
}

.por-pagination { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 36px; }
.por-pagination .page-numbers {
  padding: 8px 13px; border: 1px solid var(--por-border);
  border-radius: var(--por-radius); text-decoration: none;
}
.por-pagination .current { background: var(--por-primary); color: #fff; border-color: var(--por-primary); }

/* ---------------------------------------------------------
   10. Footer
--------------------------------------------------------- */
.por-footer { background: var(--por-deep); color: #E8F1EE; padding: 56px 0 28px; margin-top: 0; }
.por-footer a { color: #E8F1EE; text-decoration: none; }
.por-footer a:hover { color: #fff; text-decoration: underline; }
.por-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.por-footer .por-brand { color: #fff; }
.por-footer .por-brand__tag { color: rgba(232,241,238,.72); }
.por-footer p { color: rgba(232,241,238,.82); font-size: .94rem; }
.por-footer h2 { font-size: 1rem; font-family: var(--por-sans); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.por-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .94rem; }
.por-footer__bottom {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgba(232,241,238,.18);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .86rem; color: rgba(232,241,238,.75);
}

/* ---------------------------------------------------------
   11. Responsive
--------------------------------------------------------- */
@media (max-width: 960px) {
  .por-hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .por-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .por-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .por-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .por-section { padding: 54px 0; }
  .por-toggle { display: inline-flex; }
  .por-header__cta { display: none; }
  .por-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--por-border);
    padding: 14px 20px 20px;
  }
  .por-nav.is-open { display: block; }
  .por-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .por-nav a { display: block; padding: 11px 0; border-bottom: 1px solid var(--por-border); }
  .por-grid--2, .por-grid--3, .por-grid--4 { grid-template-columns: 1fr; }
  .por-news { padding: 30px 22px; border-radius: 12px; }
  .por-footer__top { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
