/*
Theme Name: GolfTechIQ
Theme URI: https://golftechiq.com
Author: GolfTechIQ
Description: Night Bay theme for GolfTechIQ.com: dark navy header and hero, green accents, calculators and buying guides.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: golftechiq
*/

:root {
  --navy: #081a29;
  --navy-2: #0d2335;
  --navy-line: #24384a;
  --green: #1f8f3a;
  --green-dark: #156b2b;
  --green-bright: #3fbf3f;
  --green-glow: #5fd36a;
  --green-soft: #e3f5e5;
  --ink: #081a29;
  --muted: #46596a;
  --muted-on-dark: #b9c7d1;
  --bg: #f5f7f6;
  --surface: #ffffff;
  --line: #dfe7e2;
  --display: "Poppins", "Segoe UI", Arial, sans-serif;
  --body: "DM Sans", "Segoe UI", Arial, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--green-bright); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; color: var(--ink); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: #fff; color: var(--navy); padding: 10px 14px; z-index: 1000; }

/* Header */
.site-top { background: var(--navy); color: #fff; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.site-logo img { display: block; height: 52px; width: auto; }
@media (max-width: 640px) { .site-logo img { height: 42px; } }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; }
.main-nav a { color: #d9e3ea; text-decoration: none; font-weight: 500; font-size: 16px; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--green-glow); }

/* Hero */
.hero { text-align: center; padding-top: 64px; padding-bottom: 88px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.eyebrow { margin: 0; font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--green-glow); }
.hero h1 { margin: 0; color: #fff; font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.75rem); line-height: 1.06; max-width: 15em; }
.hero .lede { margin: 0; font-size: 20px; color: var(--muted-on-dark); max-width: 36em; }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 8px; }
.btn { display: inline-block; font-weight: 700; text-decoration: none; padding: 15px 24px; border-radius: 999px; font-size: 17px; }
.btn-primary { background: var(--green-bright); color: var(--navy); }
.btn-primary:hover { background: var(--green-glow); color: var(--navy); }
.btn-ghost { border: 2px solid #3b5163; color: #fff; padding: 13px 22px; }
.btn-ghost:hover { border-color: var(--green-glow); color: #fff; }
.stat-strip { margin-top: 32px; width: 100%; max-width: 860px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--navy-line); border: 1px solid var(--navy-line); border-radius: 16px; overflow: hidden; }
.stat-strip div { background: var(--navy-2); padding: 22px; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.stat-strip strong { font-family: var(--display); font-size: 34px; color: var(--green-glow); line-height: 1.1; }
.stat-strip span { color: var(--muted-on-dark); font-size: 15px; }
@media (max-width: 640px) { .stat-strip { grid-template-columns: minmax(0, 1fr); } }

/* Sections */
.section { padding-top: 64px; padding-bottom: 24px; }
.section h2 { font-size: 34px; margin: 0 0 24px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tool-card { background: var(--surface); border-radius: 16px; padding: 26px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 2px rgba(8,26,41,.08); }
.tool-card:hover { color: var(--ink); box-shadow: 0 4px 16px rgba(8,26,41,.10); }
.tool-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); display: flex; align-items: center; justify-content: center; }
.tool-card .title { font-family: var(--display); font-weight: 600; font-size: 21px; }
.tool-card .soon { font-size: 12px; color: #5b6b78; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.tool-card .desc { color: var(--muted); font-size: 16px; }
.split { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.split > div { flex: 1 1 360px; min-width: 0; }
.type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; flex: 1 1 480px !important; }
@media (max-width: 640px) { .type-grid { grid-template-columns: minmax(0, 1fr); } }
.type-card { background: var(--navy); color: #fff; border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.type-card .k { font-size: 13px; color: var(--green-glow); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.type-card .v { font-weight: 700; }
.type-card .m { color: var(--muted-on-dark); font-size: 15px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.post-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.post-card:hover { color: var(--green-dark); }
.post-card .thumb { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #dfe8e3; display: flex; align-items: center; justify-content: center; color: #5b6e7c; font-size: 14px; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .t { font-weight: 700; font-size: 19px; line-height: 1.3; }
.post-card .x { color: var(--muted); font-size: 15px; }

/* Articles and pages */
.page-hero { padding-top: 40px; padding-bottom: 48px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3rem); margin: 8px 0 12px; max-width: 22em; }
.page-hero .meta { color: var(--muted-on-dark); font-size: 15px; margin: 0; }
.content-area { padding-top: 40px; padding-bottom: 72px; }
.entry { max-width: 760px; margin: 0 auto; background: var(--surface); border-radius: 16px; padding: 40px clamp(20px, 5vw, 56px); }
.entry.wide { max-width: var(--wrap); }
.entry > *:first-child { margin-top: 0; }
.entry h2 { font-size: 30px; margin: 1.8em 0 .5em; }
.entry h3 { font-size: 23px; margin: 1.5em 0 .4em; }
.entry p, .entry li { color: #1d3040; }
.entry .wp-block-table { margin: 1.5em 0; overflow-x: auto; }
.entry table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry .wp-block-table figcaption, .entry figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.entry .wp-block-buttons { margin: 1.5em 0; }
.entry .has-small-font-size { font-size: 14px; color: var(--muted); }
.entry th, .entry td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.entry thead th { background: var(--navy); color: #fff; }
.entry blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--green-bright); color: var(--muted); }
.entry .wp-block-button__link, .entry .button { background: var(--green-bright); color: var(--navy); border-radius: 999px; font-weight: 700; padding: 12px 22px; text-decoration: none; }
.disclosure-note { font-size: 14px; color: var(--muted); background: var(--green-soft); border-radius: 10px; padding: 10px 14px; margin: 0 0 24px; }
.pagination { display: flex; gap: 12px; justify-content: center; padding-top: 32px; }

/* Footer */
.site-footer { background: var(--navy); color: #c7d2da; margin-top: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-top: 40px; padding-bottom: 40px; font-size: 14px; }
.site-footer img { height: 44px; width: auto; }
.site-footer p { margin: 0; max-width: 40em; }
.site-footer a { color: #d9e3ea; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Byline + author box */
.byline { display: flex; align-items: center; gap: 10px; }
.byline-photo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--green-bright); }
.author-box { display: flex; gap: 18px; align-items: flex-start; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.author-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box .author-name { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 0 0 4px; color: var(--ink); }
.author-box .author-bio { margin: 0; font-size: 16px; color: var(--muted); }

/* Affiliate buttons */
.entry .buy-row { margin: 14px 0 28px; }
.entry .buy-btn { display: inline-block; background: #ffb81c; color: #111; font-weight: 700; text-decoration: none; padding: 11px 20px; border-radius: 999px; font-size: 16px; box-shadow: 0 1px 2px rgba(8,26,41,.15); }
.entry .buy-btn::after { content: " \2192"; }
.entry .buy-btn:hover { background: #ffa500; color: #111; }

/* Featured image */
.entry .entry-featured { margin: 0 0 28px; }
.entry .entry-featured img { display: block; width: 100%; height: auto; border-radius: 12px; }
