/*
Theme Name: Single Men Over 60
Theme URI: https://singlemenover60.com/
Author: SingleMenOver60.com
Description: A fast, accessible affiliate editorial theme for senior dating guidance and partner referrals.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: singlemenover60
*/

:root {
  --ink: #17201c;
  --muted: #5d6963;
  --green: #205c48;
  --green-dark: #164636;
  --green-soft: #e9f1ed;
  --cream: #f7f2e8;
  --paper: #fffdf9;
  --rust: #b95737;
  --rust-dark: #934127;
  --line: #d9dfda;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(23, 32, 28, .10);
  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 34px;
  --content: 1180px;
  --reading: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

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

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--rust-dark); }

button, input, textarea, select { font: inherit; }

:focus-visible {
  outline: 3px solid #e2a23b;
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  clip: auto !important;
  width: auto;
  height: auto;
  top: 8px;
  left: 8px;
  padding: 12px 18px;
  background: var(--white);
  z-index: 10000;
}

.site-shell { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.reading-width { width: min(calc(100% - 40px), var(--reading)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 249, .96);
  border-bottom: 1px solid rgba(23, 32, 28, .09);
  backdrop-filter: blur(12px);
}

.admin-bar .site-header { top: 32px; }

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-branding { margin-right: auto; flex: 0 0 auto; }
.custom-logo-link { display: block; }
.custom-logo { max-height: 58px; width: auto; }

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.035em;
  font-size: 1.24rem;
  line-height: 1;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--rust);
  border-radius: 50% 50% 50% 12px;
  transform: rotate(-8deg);
  font-family: Georgia, serif;
  font-size: 1.16rem;
}

.brand-mark span { transform: rotate(8deg); }

.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav ul { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: var(--ink); text-decoration: none; font-size: .94rem; font-weight: 650; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--rust-dark); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.button,
.wp-block-button__link {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 2px solid var(--green);
  border-radius: 999px;
  color: var(--white);
  background: var(--green);
  text-decoration: none;
  font-size: .96rem;
  line-height: 1.2;
  font-weight: 750;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.button:hover, .wp-block-button__link:hover {
  color: var(--white);
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
}

.button-secondary { color: var(--green); background: transparent; }
.button-secondary:hover { color: var(--white); }
.button-rust { background: var(--rust); border-color: var(--rust); }
.button-rust:hover { background: var(--rust-dark); border-color: var(--rust-dark); }
.button-link { color: var(--ink); background: transparent; border-color: transparent; padding-inline: 10px; }
.button-link:hover { color: var(--rust-dark); background: transparent; border-color: transparent; }

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 21px;
  height: 2px;
  margin: auto;
  background: currentColor;
  content: "";
  transition: transform .2s ease;
}

.menu-toggle-lines::before { transform: translateY(-7px); }
.menu-toggle-lines::after { transform: translateY(5px); }

.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.hero::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 44%;
  height: 100%;
  background: radial-gradient(circle at 0 0, rgba(185, 87, 55, .14), transparent 60%);
  content: "";
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 58px;
  align-items: center;
  min-height: 660px;
  padding-block: 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--green);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow::before { width: 27px; height: 2px; background: var(--rust); content: ""; }

h1, h2, h3, h4 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.13;
  letter-spacing: -.025em;
}

h1 { font-size: clamp(2.65rem, 5vw, 4.75rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }

.hero h1 { max-width: 720px; margin-bottom: 22px; }
.hero-copy > p:not(.eyebrow) { max-width: 630px; margin: 0 0 30px; color: #46524c; font-size: 1.14rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px !important; font-size: .82rem !important; color: var(--muted) !important; }

.hero-visual { position: relative; }
.hero-visual img { width: 100%; height: 510px; object-fit: cover; border-radius: 46% 46% var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow); }
.hero-card {
  position: absolute;
  left: -35px;
  bottom: 32px;
  max-width: 245px;
  padding: 18px 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.hero-card strong { display: block; margin-bottom: 3px; font-family: Georgia, serif; font-size: 1.08rem; }
.hero-card span { color: var(--muted); font-size: .8rem; line-height: 1.4; }

.trust-strip { background: var(--green); color: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 23px 28px; border-left: 1px solid rgba(255,255,255,.2); }
.trust-item:first-child { border-left: 0; }
.trust-item strong { display: block; font-size: 1rem; }
.trust-item span { display: block; margin-top: 3px; color: rgba(255,255,255,.72); font-size: .78rem; line-height: 1.4; }

.section { padding-block: 104px; }
.section-compact { padding-block: 74px; }
.section-cream { background: var(--cream); }
.section-green { background: var(--green); color: var(--white); }
.section-heading { max-width: 760px; margin-bottom: 46px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading h2 { margin-bottom: 16px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.section-green .section-heading p { color: rgba(255,255,255,.74); }

.value-grid,
.feature-grid,
.story-grid,
.steps-grid,
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.value-card,
.feature-card,
.story-card,
.step-card,
.post-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.value-card, .feature-card, .step-card { padding: 32px; }
.value-card h3, .feature-card h3, .step-card h3 { margin-bottom: 10px; }
.value-card p, .feature-card p, .step-card p { margin: 0; color: var(--muted); font-size: .94rem; }

.icon-disc {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
  font-weight: 850;
}

.members-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.member-card { position: relative; min-height: 355px; overflow: hidden; border-radius: var(--radius); background: #d7ddd9; }
.member-card img { width: 100%; height: 100%; min-height: 355px; object-fit: cover; transition: transform .5s ease; }
.member-card:hover img { transform: scale(1.025); }
.member-card::after { position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(10,20,15,.78)); content: ""; }
.member-card-copy { position: absolute; z-index: 2; left: 23px; right: 23px; bottom: 21px; color: var(--white); }
.member-card-copy strong { display: block; font-family: Georgia, serif; font-size: 1.35rem; }
.member-card-copy span { font-size: .82rem; color: rgba(255,255,255,.82); }
.member-disclaimer { max-width: 820px; margin: 24px auto 0; color: var(--muted); font-size: .78rem; text-align: center; }
.members-action { margin-top: 32px; text-align: center; }

.split-section { display: grid; grid-template-columns: .92fr 1.08fr; gap: 70px; align-items: center; }
.split-media img { width: 100%; height: 570px; object-fit: cover; border-radius: var(--radius-lg); }
.split-copy h2 { margin-bottom: 20px; }
.split-copy > p { color: var(--muted); }
.check-list { display: grid; gap: 15px; margin: 28px 0 34px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 35px; }
.check-list li::before { position: absolute; left: 0; top: .1em; color: var(--rust); font-weight: 900; content: "✓"; }

.section-green .feature-card { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.07); }
.section-green .feature-card p { color: rgba(255,255,255,.72); }
.section-green .icon-disc { color: var(--white); background: rgba(255,255,255,.13); }

.step-number { display: block; margin-bottom: 22px; color: var(--rust); font-family: Georgia, serif; font-size: 2rem; }

.story-card { overflow: hidden; }
.story-card img { width: 100%; height: 215px; object-fit: cover; }
.story-card-copy { padding: 27px; }
.story-card-copy p { margin: 0; color: var(--muted); font-size: .93rem; }
.story-label { display: inline-block; margin-bottom: 9px; color: var(--rust-dark); font-size: .73rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.post-card { overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card-image { display: block; overflow: hidden; }
.post-card-image img { width: 100%; height: 220px; object-fit: cover; transition: transform .45s ease; }
.post-card:hover .post-card-image img { transform: scale(1.03); }
.post-card-body { padding: 27px; }
.post-card h3 { margin-bottom: 12px; font-size: 1.35rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card p { margin: 0 0 18px; color: var(--muted); font-size: .91rem; }
.post-meta { display: flex; gap: 13px; margin-bottom: 12px; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.text-link { font-weight: 750; text-decoration: none; }

.cta-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 38px;
  align-items: center;
  padding: 58px 62px;
  border-radius: var(--radius-lg);
  background: var(--rust);
  color: var(--white);
}
.cta-panel::after { position: absolute; right: -90px; bottom: -160px; width: 330px; height: 330px; border: 55px solid rgba(255,255,255,.09); border-radius: 50%; content: ""; }
.cta-panel h2 { margin-bottom: 10px; font-size: clamp(2rem, 3.4vw, 3rem); }
.cta-panel p { max-width: 720px; margin: 0; color: rgba(255,255,255,.8); }
.cta-panel .button { position: relative; z-index: 2; background: var(--white); border-color: var(--white); color: var(--rust-dark); }
.cta-panel .button:hover { color: var(--white); background: var(--green-dark); border-color: var(--green-dark); }

.page-hero { padding-block: 88px 64px; background: var(--cream); text-align: center; }
.page-hero h1 { max-width: 900px; margin: 0 auto 18px; font-size: clamp(2.5rem, 5vw, 4.2rem); }
.page-hero p { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: 1.07rem; }

.entry-content { padding-block: 72px 100px; }
.entry-content > * { max-width: var(--reading); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: var(--content); }
.entry-content > .alignfull { max-width: none; }
.entry-content h2 { margin-top: 2.2em; margin-bottom: .65em; font-size: clamp(1.75rem, 3vw, 2.35rem); }
.entry-content h3 { margin-top: 1.8em; margin-bottom: .55em; }
.entry-content p, .entry-content li { color: #38433e; }
.entry-content li + li { margin-top: .45em; }
.entry-content blockquote { padding: 20px 26px; border-left: 4px solid var(--rust); background: var(--cream); font-family: Georgia, serif; font-size: 1.18rem; }

.article-hero-image { width: min(calc(100% - 40px), 1040px); margin: 50px auto 0; }
.article-hero-image img { width: 100%; max-height: 580px; object-fit: cover; border-radius: var(--radius-lg); }
.article-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; color: var(--muted); font-size: .82rem; }

.archive-wrap { padding-block: 85px 105px; }
.archive-heading { max-width: 760px; margin-bottom: 46px; }
.archive-heading h1 { margin-bottom: 15px; }
.archive-heading p { color: var(--muted); }
.pagination { margin-top: 46px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding-inline: 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.page-numbers.current { color: var(--white); background: var(--green); border-color: var(--green); }

.empty-state { padding: 35px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.empty-state p { color: var(--muted); }

.disclosure-bar { padding: 16px 20px; color: #385044; background: #edf4ef; border-top: 1px solid #d6e4da; text-align: center; font-size: .78rem; }
.disclosure-bar a { font-weight: 700; }

.site-footer { padding-block: 72px 34px; background: #12241d; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1fr; gap: 50px; }
.footer-brand .brand-link { color: var(--white); }
.footer-brand p { max-width: 370px; color: rgba(255,255,255,.62); font-size: .87rem; }
.footer-column h2 { margin-bottom: 16px; font-family: inherit; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-column ul { margin: 0; padding: 0; list-style: none; }
.footer-column li + li { margin-top: 8px; }
.footer-column a { color: rgba(255,255,255,.7); text-decoration: none; font-size: .86rem; }
.footer-column a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 55px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.52); font-size: .75rem; }

.not-found { min-height: 58vh; display: grid; place-items: center; padding: 70px 20px; text-align: center; }
.not-found p { max-width: 550px; color: var(--muted); }

@media (max-width: 1050px) {
  .primary-nav { gap: 14px; }
  .primary-nav ul { gap: 15px; }
  .header-actions .button-link { display: none; }
  .hero-grid { gap: 34px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .admin-bar .site-header { top: 46px; }
  .header-inner { min-height: 72px; }
  .menu-toggle { display: block; order: 3; }
  .primary-nav {
    position: fixed;
    inset: 72px 0 auto;
    display: none;
    padding: 25px 20px 30px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .admin-bar .primary-nav { top: 118px; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; gap: 0; }
  .primary-nav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .header-actions { margin-left: auto; }
  .header-actions .button { min-height: 44px; padding: 10px 17px; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding-block: 62px 75px; }
  .hero-copy { text-align: center; }
  .hero-copy > p:not(.eyebrow), .hero h1 { margin-inline: auto; }
  .eyebrow { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { width: min(100%, 650px); margin-inline: auto; }
  .hero-visual img { height: 430px; }
  .hero-card { left: 18px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255,255,255,.2); }
  .trust-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,.2); }
  .split-section { grid-template-columns: 1fr; gap: 42px; }
  .split-media img { height: 440px; }
  .value-grid, .feature-grid, .story-grid, .steps-grid, .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .members-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-panel { grid-template-columns: 1fr; padding: 46px; }
  .cta-panel .button { justify-self: start; }
}

@media (max-width: 620px) {
  body { font-size: 17px; }
  .site-shell, .reading-width { width: min(calc(100% - 28px), var(--content)); }
  .brand-link { font-size: 1rem; }
  .brand-mark { width: 38px; height: 38px; }
  .header-actions .button { display: none; }
  .hero-grid { padding-top: 48px; }
  .hero h1 { font-size: 2.7rem; }
  .hero-visual img { height: 340px; border-radius: 90px 90px 24px 24px; }
  .hero-card { position: relative; left: auto; bottom: auto; max-width: none; margin: -28px 15px 0; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-left: 0; border-top: 1px solid rgba(255,255,255,.2); }
  .trust-item:first-child { border-top: 0; }
  .section { padding-block: 76px; }
  .section-compact { padding-block: 58px; }
  .value-grid, .feature-grid, .story-grid, .steps-grid, .posts-grid, .members-grid { grid-template-columns: 1fr; }
  .member-card, .member-card img { min-height: 330px; }
  .split-media img { height: 340px; }
  .cta-panel { padding: 38px 27px; }
  .page-hero { padding-block: 65px 48px; }
  .entry-content { padding-block: 55px 78px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px 25px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 7px; }
}

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