/*
Theme Name: Freelance Accountants UK
Theme URI: https://www.freelanceaccountants.co.uk/
Author: Freelance Accountants UK
Description: A fast, accessible lead-generation theme for matching UK businesses with freelance accountants.
Version: 1.0.2
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: freelance-accountants
*/

:root {
  --ink: #193631;
  --ink-2: #244943;
  --cream: #f7f3e9;
  --paper: #fffdf8;
  --sage: #d9e8df;
  --sage-2: #b9d2c5;
  --lime: #dced7b;
  --lime-dark: #bfd051;
  --rust: #a34f32;
  --muted: #5c6c68;
  --line: #ced9d3;
  --white: #fff;
  --shadow: 0 20px 55px rgba(25, 54, 49, .11);
  --radius: 22px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Trebuchet MS', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 17px; line-height: 1.68; }
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--rust); }
h1, h2, h3, h4 { margin: 0 0 .55em; font-family: var(--serif); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; }
h1 { font-size: clamp(2.7rem, 7vw, 5.9rem); }
h2 { font-size: clamp(2rem, 4vw, 3.45rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
p { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.2rem; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(780px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 9999; top: -80px; left: 16px; padding: 10px 16px; background: var(--ink); color: var(--white); }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; z-index: 1000; top: 0; border-bottom: 1px solid rgba(25,54,49,.12); background: rgba(255,253,248,.94); backdrop-filter: blur(14px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50% 50% 50% 14px; background: var(--ink); color: var(--lime); font-family: var(--serif); font-size: 18px; font-weight: 700; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-family: var(--serif); font-size: 19px; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.menu { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.menu a { font-size: 14px; font-weight: 700; text-decoration: none; }
.menu-toggle { display: none; padding: 8px; border: 0; background: transparent; color: var(--ink); }
.menu-toggle span { display: block; width: 27px; height: 2px; margin: 5px; background: currentColor; }

.button, .wp-block-button__link { display: inline-flex; min-height: 49px; align-items: center; justify-content: center; gap: 8px; padding: 12px 21px; border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--white); font-size: 15px; font-weight: 800; line-height: 1.15; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); background: var(--ink-2); color: var(--white); box-shadow: 0 9px 20px rgba(25,54,49,.16); }
.button--lime { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.button--lime:hover { background: var(--lime-dark); color: var(--ink); }
.button--ghost { background: transparent; color: var(--ink); }
.button--ghost:hover { background: var(--sage); color: var(--ink); }
.button--small { min-height: 42px; padding: 9px 17px; font-size: 13px; }

.hero { position: relative; overflow: hidden; padding: clamp(70px, 10vw, 130px) 0 80px; background: var(--cream); }
.hero::after { content: ''; position: absolute; right: -8vw; bottom: -22vw; width: 48vw; height: 48vw; border: 1px solid var(--sage-2); border-radius: 50%; box-shadow: 0 0 0 7vw rgba(217,232,223,.38), 0 0 0 14vw rgba(217,232,223,.2); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: clamp(36px, 7vw, 90px); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; color: var(--rust); font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 26px; height: 2px; background: currentColor; }
.hero h1 { max-width: 820px; }
.hero .lead { max-width: 690px; color: var(--ink-2); font-size: clamp(1.1rem, 2vw, 1.32rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 29px; }
.trust-line { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 31px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; font-weight: 700; }
.trust-line li::before { content: '✓'; margin-right: 8px; color: var(--rust); }
.quote-card { position: relative; z-index: 1; padding: 33px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.quote-card .number { color: var(--rust); font-family: var(--serif); font-size: 3rem; line-height: 1; }
.quote-card ol { display: grid; gap: 18px; margin: 24px 0 0; padding: 0; counter-reset: steps; list-style: none; }
.quote-card li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; }
.quote-card li::before { counter-increment: steps; content: counter(steps); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--sage); font-family: var(--serif); font-weight: 700; }

.section { padding: clamp(70px, 9vw, 112px) 0; }
.section--sage { background: var(--sage); }
.section--ink { background: var(--ink); color: var(--white); }
.section--cream { background: var(--cream); }
.section-head { max-width: 760px; margin-bottom: 42px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--ink .section-head p { color: #c9d8d4; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.card--soft { background: var(--cream); }
.card-number { margin-bottom: 24px; color: var(--rust); font-family: var(--serif); font-size: 2.4rem; line-height: 1; }
.icon-tile { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 23px; border-radius: 15px; background: var(--lime); color: var(--ink); font-family: var(--serif); font-size: 22px; font-weight: 700; }
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.service-list li { padding: 17px 18px; border-left: 4px solid var(--lime-dark); background: var(--white); font-weight: 700; }
.check-list { margin: 18px 0; padding: 0; list-style: none; }
.check-list li { position: relative; margin: 10px 0; padding-left: 27px; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--rust); font-weight: 900; }
.comparison { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.comparison table { width: 100%; border-collapse: collapse; min-width: 650px; }
.comparison th, .comparison td { padding: 18px 20px; border-bottom: 1px solid var(--line); text-align: left; }
.comparison th { background: var(--ink); color: var(--white); font-family: var(--serif); font-size: 1.08rem; }
.comparison tr:last-child td { border-bottom: 0; }
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); }
.stat { padding: 30px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; margin-bottom: 8px; font-family: var(--serif); font-size: 1.55rem; }

.page-hero { padding: 78px 0 62px; background: var(--cream); text-align: left; }
.page-hero h1 { max-width: 900px; font-size: clamp(2.6rem, 6vw, 4.8rem); }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 1.22rem; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.5em; }
.prose a { color: var(--rust); font-weight: 700; }
.notice { padding: 20px 22px; border-left: 5px solid var(--rust); border-radius: 0 12px 12px 0; background: var(--cream); }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card { position: relative; padding: 31px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.price-card.featured { border: 2px solid var(--ink); box-shadow: var(--shadow); }
.price-label { display: inline-block; margin-bottom: 18px; padding: 6px 10px; border-radius: 999px; background: var(--sage); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.price-card .price { margin: 12px 0; color: var(--rust); font-family: var(--serif); font-size: 2rem; font-weight: 700; }

.faq-list { display: grid; gap: 13px; }
.faq-list details { border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.faq-list summary { position: relative; padding: 22px 58px 22px 23px; cursor: pointer; font-family: var(--serif); font-size: 1.2rem; font-weight: 700; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 23px; top: 18px; font-family: var(--sans); font-size: 25px; }
.faq-list details[open] summary::after { content: '−'; }
.faq-answer { padding: 0 23px 20px; color: var(--muted); }

.form-shell { display: grid; grid-template-columns: .72fr 1.28fr; gap: 35px; align-items: start; }
.form-aside { position: sticky; top: 110px; padding: 30px; border-radius: var(--radius); background: var(--ink); color: var(--white); }
.form-aside p, .form-aside li { color: #cedbd7; }
.fa-form { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label, fieldset legend { color: var(--ink); font-size: 14px; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; min-height: 49px; padding: 11px 13px; border: 1px solid #aebdb7; border-radius: 9px; background: #fff; color: var(--ink); }
.field textarea { min-height: 135px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(25,54,49,.13); outline: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; }
.choice { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; }
.choice input { width: 18px; height: 18px; margin-top: 3px; }
.form-note { color: var(--muted); font-size: 13px; }
.form-status { margin-bottom: 22px; padding: 16px 18px; border-radius: 12px; font-weight: 700; }
.form-status--success { background: #dcefe2; color: #174725; }
.form-status--error { background: #fae1db; color: #762b1c; }
.hp-field { position: absolute !important; left: -9999px !important; }

.cta-band { padding: 48px 0; background: var(--lime); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-inner h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); }
.cta-inner p { margin: 9px 0 0; }
.site-footer { padding: 60px 0 24px; background: #112925; color: #d3dfdc; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 45px; }
.site-footer h2, .site-footer h3 { color: var(--white); }
.site-footer h3 { font-size: 1.05rem; }
.site-footer a { color: #d3dfdc; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); font-size: 13px; }

@media (max-width: 940px) {
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 78px; left: 0; right: 0; display: none; padding: 24px 20px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .main-nav.is-open { display: grid; }
  .menu { display: grid; gap: 15px; }
  .nav-cta { margin-top: 8px; }
  .hero-grid, .form-shell { grid-template-columns: 1fr; }
  .hero::after { opacity: .55; }
  .form-aside { position: static; }
  .grid-3, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  body.admin-bar .site-header { top: 46px; }
  .container, .narrow { width: min(100% - 28px, 1160px); }
  .brand-copy small { display: none; }
  .hero { padding-top: 60px; }
  .quote-card { padding: 24px; }
  .grid-2, .grid-3, .pricing-grid, .form-grid, .choice-grid, .service-list { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .cta-inner, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .button { width: 100%; }
  .hero-actions .button { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
