/*
Theme Name: NetPay UK
Theme URI: https://ukpayslipcalculator.co.uk/
Author: NetPay UK
Author URI: https://ukpayslipcalculator.co.uk/
Description: A fast, lean theme for NetPay UK — the UK take-home pay calculator. Deep navy and emerald finance styling, card-based layout, mobile-first. Vanilla CSS, no frameworks, no web fonts.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: netpayuk
Tags: custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --color-navy: #0A2540;
  --color-navy-soft: #123A63;
  --color-navy-deep: #061A2E;
  --color-emerald: #00B67A;
  --color-emerald-dark: #00915F;
  --color-text: #0A2540;
  --color-muted: #5B6B82;
  --color-bg: #ffffff;
  --color-bg-soft: #F2F6FA;
  --color-border: #DCE5EF;
  --color-card: #ffffff;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1120px;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--color-emerald-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--color-navy); }
h1, h2, h3, h4 { line-height: 1.25; margin: 1.2em 0 .5em; color: var(--color-navy); }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--color-emerald); outline-offset: 2px; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -60px; left: 12px; z-index: 200;
  background: var(--color-navy); color: #fff; padding: .6em 1em;
  border-radius: 0 0 6px 6px; text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }

/* ============ Layout ============ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.site-main { padding: 32px 0 48px; }
.content-area { display: grid; gap: 32px; }
@media (min-width: 900px) {
  .content-area.has-sidebar { grid-template-columns: 1fr 300px; align-items: start; }
}

/* ============ Header / nav ============ */
.site-header {
  background: var(--color-navy);
  color: #fff;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(6, 26, 46, .25);
  border-bottom: 3px solid var(--color-emerald);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.site-branding { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.coin-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--color-emerald); color: #fff;
  font-weight: 800; font-size: 1.25rem; line-height: 1; flex-shrink: 0;
}
.brand-name { font-size: 1.35rem; font-weight: 800; margin: 0; letter-spacing: -.01em; color: #fff; }
.custom-logo { width: 40px; height: 40px; border-radius: 50%; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-navigation a {
  display: block; padding: .55em .9em; text-decoration: none;
  color: #fff; font-weight: 600; border-radius: 8px;
}
.main-navigation a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.menu-toggle {
  display: none; background: none; border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 8px; padding: .5em .8em; font-size: 1rem; cursor: pointer;
  color: #fff; font-family: inherit; font-weight: 600;
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .main-navigation { position: absolute; top: 100%; left: 0; right: 0; background: var(--color-navy-deep); }
  .main-navigation ul { flex-direction: column; padding: 8px 20px 16px; }
  .main-navigation[hidden] { display: none; }
  .main-navigation a { padding: .7em .4em; }
}

/* ============ Hero (front page) ============ */
.hero {
  background:
    radial-gradient(620px 320px at 88% -12%, rgba(0, 182, 122, .28), transparent 62%),
    radial-gradient(520px 280px at 8% 112%, rgba(0, 182, 122, .14), transparent 60%),
    linear-gradient(135deg, var(--color-navy-deep) 0%, var(--color-navy) 55%, var(--color-navy-soft) 100%);
  color: #fff; border-radius: 20px; padding: 76px 32px; text-align: center;
  margin-bottom: 48px; position: relative; overflow: hidden;
  box-shadow: 0 24px 60px rgba(6, 26, 46, .35);
}
.hero::before {
  content: "\00A3"; position: absolute; left: 6%; top: 12%;
  font-size: 7rem; font-weight: 800; line-height: 1; color: rgba(255, 255, 255, .05);
  transform: rotate(-12deg); pointer-events: none;
}
.hero::after {
  content: "\00A3"; position: absolute; right: 7%; bottom: 6%;
  font-size: 5rem; font-weight: 800; line-height: 1; color: rgba(255, 255, 255, .05);
  transform: rotate(10deg); pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .35em; letter-spacing: -.025em; color: #fff; font-weight: 800; }
.hero .subline { font-size: 1.15rem; max-width: 660px; margin: 0 auto 1.2em; opacity: .92; }
.trust-bullets { list-style: none; margin: 0 auto 1.8em; padding: 0; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.trust-bullets li { font-size: .98rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.trust-bullets .tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--color-emerald); color: #fff; font-size: .85rem; font-weight: 800; flex-shrink: 0;
}
.hero .btn {
  box-shadow: 0 10px 28px rgba(0, 182, 122, .4);
  transition: transform .15s, box-shadow .15s, background .15s;
  font-size: 1.08rem; padding: .85em 2em;
}
.hero .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 182, 122, .5); }

/* ============ Buttons ============ */
.btn, button.btn, a.btn {
  display: inline-block; background: var(--color-emerald); color: #fff;
  border: none; border-radius: 10px; padding: .75em 1.6em; font-size: 1rem;
  font-weight: 700; cursor: pointer; text-decoration: none; font-family: inherit;
}
.btn:hover, button.btn:hover { background: var(--color-emerald-dark); color: #fff; }

/* ============ Calculator section (front page) ============ */
.calc-section { margin: 0 0 48px; scroll-margin-top: 90px; }
.calc-section > h2 { text-align: center; margin-bottom: .3em; }
.calc-section > .section-intro { text-align: center; color: var(--color-muted); max-width: 640px; margin: 0 auto 1em; }

/* ============ Section eyebrows ============ */
.eyebrow {
  display: block; text-align: center;
  font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--color-emerald-dark); margin-bottom: .5em;
}
.calc-section > h2, .steps > h2, .faq-section > h2 { text-align: center; margin-top: 0; }

/* ============ Steps strip ============ */
.steps { margin: 0 0 48px; }
.steps-grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 20px; }
@media (min-width: 720px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 26px 22px; text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(10, 37, 64, .12); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-emerald), var(--color-emerald-dark));
  color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 12px;
  box-shadow: 0 6px 16px rgba(0, 182, 122, .3);
}
.step-card h3 { margin: 0 0 .4em; font-size: 1.08rem; }
.step-card p { margin: 0; color: var(--color-muted); font-size: .95rem; }

/* ============ Tool card grid ============ */
.tools-grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin: 24px 0 40px; }
@media (min-width: 640px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .tools-grid { grid-template-columns: repeat(4, 1fr); } }
.tool-card {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 22px; display: flex;
  flex-direction: column; gap: 8px; transition: box-shadow .15s, transform .15s;
}
.tool-card:hover { box-shadow: 0 8px 24px rgba(10, 37, 64, .12); transform: translateY(-2px); }
.tool-card h3 { margin: 0; font-size: 1.08rem; }
.tool-card h3 a { text-decoration: none; color: var(--color-text); }
.tool-card h3 a:hover { color: var(--color-emerald-dark); }
.tool-card p { margin: 0; color: var(--color-muted); font-size: .95rem; flex: 1; }
.tool-card .card-link { font-weight: 700; font-size: .95rem; }

/* ============ FAQ (accordion) ============ */
.faq-section { margin: 0 0 48px; }
.faq-item {
  border: 1px solid var(--color-border); border-radius: var(--radius);
  margin-bottom: 12px; background: #fff; overflow: hidden;
  transition: box-shadow .18s ease;
}
.faq-item[open] { box-shadow: 0 10px 26px rgba(10, 37, 64, .1); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  font-weight: 700; font-size: 1.05rem; color: var(--color-navy);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--color-bg-soft); color: var(--color-emerald-dark);
  font-size: 1.3rem; font-weight: 800; line-height: 1;
  transition: transform .2s ease, background .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--color-emerald); color: #fff; }
.faq-item .faq-answer { padding: 0 22px 20px; color: var(--color-muted); }
.faq-item .faq-answer p { margin: 0; }
.faq-item .faq-answer p + p { margin-top: .8em; }

/* ============ Article typography ============ */
.entry-content > *:first-child { margin-top: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-meta { color: var(--color-muted); font-size: .9rem; margin-bottom: 16px; }
.entry-meta a { color: var(--color-muted); }
.post-thumbnail { margin-bottom: 24px; }
.post-thumbnail img { border-radius: var(--radius); }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--color-muted); }

/* ============ Breadcrumbs ============ */
.breadcrumbs { font-size: .88rem; color: var(--color-muted); margin-bottom: 20px; }
.breadcrumbs a { color: var(--color-muted); }
.breadcrumbs .sep { margin: 0 .4em; }

/* ============ Sidebar ============ */
.widget-area .widget {
  background: var(--color-bg-soft); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 20px;
}
.widget-area .widget-title { font-size: 1.05rem; margin: 0 0 .6em; }
.widget-area ul { list-style: none; margin: 0; padding: 0; }
.widget-area li { margin-bottom: .5em; }
.widget-area a { text-decoration: none; }
.widget-area a:hover { text-decoration: underline; }

/* ============ Archive / search listing ============ */
.post-list { display: grid; gap: 20px; }
.post-card {
  border: 1px solid var(--color-border); border-radius: var(--radius); padding: 22px; background: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(10, 37, 64, .1); }
.post-card h2 { margin: 0 0 .3em; font-size: 1.35rem; }
.post-card h2 a { text-decoration: none; color: var(--color-text); }
.post-card h2 a:hover { color: var(--color-emerald-dark); }
.read-more { font-weight: 700; font-size: .95rem; }
.pagination { margin-top: 32px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination a, .pagination span {
  border: 1px solid var(--color-border); border-radius: 8px; padding: .5em .9em; text-decoration: none;
}
.pagination .current { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }

/* ============ Author box / related ============ */
.author-box {
  display: flex; gap: 16px; background: var(--color-bg-soft);
  border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 20px; margin: 32px 0;
}
.author-box img { border-radius: 50%; flex-shrink: 0; }
.related-posts { margin: 40px 0 0; }
.related-posts ul { list-style: none; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .related-posts ul { grid-template-columns: repeat(3, 1fr); } }
.related-posts li { border: 1px solid var(--color-border); border-radius: 8px; padding: 14px; }
.related-posts a { text-decoration: none; font-weight: 600; color: var(--color-text); }
.updated-line { font-size: .88rem; color: var(--color-muted); border-top: 1px solid var(--color-border); padding-top: 16px; margin-top: 32px; }

/* ============ Ad slots (empty by default) ============ */
.ad-slot { margin: 24px 0; text-align: center; }
.ad-slot:empty { display: none; margin: 0; }

/* ============ Footer ============ */
.site-footer { background: var(--color-navy-deep); color: #cbd5e1; margin-top: 48px; }
.site-footer .wrap { padding-top: 40px; padding-bottom: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.footer-brand .brand-name { color: #fff; }
.footer-nav ul { list-style: none; margin: 0 0 20px; padding: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.footer-nav a { color: #cbd5e1; text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.site-footer .disclaimer { font-size: .85rem; color: #94a3b8; max-width: 760px; margin: 16px 0; }
.site-footer .copyright { font-size: .85rem; color: #94a3b8; border-top: 1px solid #1e3a5c; padding-top: 16px; margin-top: 16px; }

/* ============ 404 / search ============ */
.error-404, .no-results { text-align: center; padding: 48px 0; }
.search-form { display: flex; gap: 8px; max-width: 480px; margin: 20px auto; }
.search-form input[type="search"] {
  flex: 1; padding: .65em .8em; font-size: 1rem; font-family: inherit;
  border: 1px solid var(--color-border); border-radius: 8px;
}

/* ============ Print ============ */
@media print {
  .site-header, .site-footer, .widget-area, .ad-slot, .menu-toggle,
  .breadcrumbs, .related-posts, .author-box, .pagination { display: none; }
  body { font-size: 12pt; }
  a { color: inherit; text-decoration: none; }
}
