/* Bowfield Accounting – sample website by WebStudioNova (fictional business). Calm, structured, serif headings. */

@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-variable.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --green-950: #0f2420;
  --green-900: #18352f;
  --green-700: #2a5348;
  --green-100: #e4ece8;
  --gold: #b8892e;
  --gold-light: #e8d9b0;
  --paper: #f6f3ec;
  --paper-2: #efe9dc;
  --ink: #1e2422;
  --muted: #5a6561;
  --line: #ddd6c6;
  --white: #ffffff;
  --max: 1180px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.7; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--green-950); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.18; color: var(--green-950); margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 4.8vw, 3.7rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -.01em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip-link { position: absolute; left: 12px; top: -60px; padding: 10px 16px; background: var(--green-900); color: #fff; z-index: 2000; }
.skip-link:focus { top: 48px; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 96px 0; }
.section-paper { background: var(--paper-2); }
.section-dark { background: var(--green-900); color: var(--gold-light); }
.section-dark h2, .section-dark h3 { color: #fff; }
.kicker { display: flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.section-dark .lead { color: var(--gold-light); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.section-head .lead { margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; font-family: var(--sans); font-weight: 700; font-size: .98rem; text-decoration: none; border: 2px solid transparent; border-radius: 2px; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.btn-primary { background: var(--green-900); color: #fff; }
.btn-primary:hover { background: var(--green-950); color: #fff; }
.btn-gold { background: var(--gold); color: var(--green-950); }
.btn-gold:hover { background: #a17725; color: var(--green-950); }
.btn-line { border-color: var(--green-900); color: var(--green-900); background: transparent; }
.btn-line:hover { background: var(--green-900); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.arrow { display: inline-block; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Utility bar and header */
.utility { background: var(--green-950); color: var(--gold-light); font-size: .85rem; }
.utility .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.utility a { color: var(--gold-light); text-decoration: none; }
.utility a:hover { color: #fff; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 900; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--green-950); }
.brand img { width: 46px; height: 46px; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1; }
.brand-name small { display: block; font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a { display: block; padding: 10px 14px; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--green-700); border-bottom-color: var(--gold-light); }
.main-nav a[aria-current="page"] { color: var(--green-900); border-bottom-color: var(--gold); }
.main-nav .nav-cta { margin-left: 12px; }
.main-nav .nav-cta a { background: var(--green-900); color: #fff; padding: 11px 20px; border: 0; }
.main-nav .nav-cta a:hover { background: var(--green-950); color: #fff; }
.nav-toggle { display: none; align-items: center; gap: 10px; padding: 10px 16px; border: 2px solid var(--green-900); background: transparent; color: var(--green-900); font: 700 .95rem var(--sans); cursor: pointer; }
.nav-toggle-bars { display: inline-grid; gap: 4px; }
.nav-toggle-bars span { display: block; width: 18px; height: 2px; background: currentColor; }

/* Hero */
.hero { padding: 88px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero .lead { margin-bottom: 32px; }
.hero-media { position: relative; }
.hero-media::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 2px solid var(--gold); z-index: 0; }
.hero-media img { position: relative; z-index: 1; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); gap: 32px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-facts dt { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--green-900); }
.hero-facts dd { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }

/* Service rows */
.service-rows { border-top: 1px solid var(--line); counter-reset: svc; }
.service-row { display: grid; grid-template-columns: 80px 1fr 1.4fr auto; gap: 32px; align-items: start; padding: 32px 0; border-bottom: 1px solid var(--line); }
.service-row::before { counter-increment: svc; content: "0" counter(svc); font-family: var(--serif); font-size: 1.6rem; color: var(--gold); line-height: 1.2; }
.service-row h3 { margin: 0; }
.service-row p { margin: 0; color: var(--muted); }
.service-row a { font-weight: 700; white-space: nowrap; text-decoration: none; }
.service-row a:hover { text-decoration: underline; }

/* Audience columns */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(232, 217, 176, .25); border: 1px solid rgba(232, 217, 176, .25); }
.audience > div { background: var(--green-900); padding: 36px 32px; }
.audience p { color: var(--gold-light); margin: 0; }
.audience .num { font-family: var(--serif); color: var(--gold); font-size: 2rem; display: block; margin-bottom: 12px; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.rule-list { list-style: none; padding: 0; margin: 24px 0 0; }
.rule-list li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); position: relative; }
.rule-list li::before { content: ""; position: absolute; left: 0; top: 24px; width: 18px; height: 2px; background: var(--gold); }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 40px 0 0; padding: 0; border-top: 2px solid var(--green-900); }
.timeline li { list-style: none; padding: 28px 24px 0 0; position: relative; }
.timeline li::before { content: ""; position: absolute; top: -9px; left: 0; width: 16px; height: 16px; background: var(--gold); border: 3px solid var(--paper); border-radius: 50%; }
.timeline p { color: var(--muted); margin: 0; }

/* Call to action */
.cta { display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center; padding: 56px 60px; background: var(--green-900); color: var(--gold-light); border-left: 6px solid var(--gold); }
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { margin: 0; }

/* Page hero */
.page-hero { padding: 80px 0 64px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.page-hero .lead { margin: 0; }

/* Services page */
.service-detail { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.service-detail:first-child { padding-top: 0; }
.service-detail ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.service-detail li { margin-bottom: 6px; }

/* Resources */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.article { background: var(--white); border: 1px solid var(--line); padding: 30px; display: flex; flex-direction: column; }
.article .tag { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.article p { color: var(--muted); flex: 1; }
.article .read { font-weight: 700; color: var(--green-700); }
.checklist { background: var(--white); border: 1px solid var(--line); padding: 36px 40px; }
.checklist ol { margin: 16px 0 0; padding-left: 22px; }
.checklist li { margin-bottom: 10px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.form-panel { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--green-900); padding: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .92rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #c9c1ae; border-radius: 2px; background: var(--paper); color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; background: #fff; }
.was-checked .field :invalid { border-color: #b3261e; background: #fff6f4; }
.form-note { font-size: .9rem; color: var(--muted); margin: 16px 0 0; }
.form-panel .btn { margin-top: 24px; }
.info-block { padding: 28px 0; border-bottom: 1px solid var(--line); }
.info-block:first-child { padding-top: 0; }
.info-block h3 { font-size: 1.15rem; }
.info-block p { margin: 0 0 6px; color: var(--muted); }
.map-placeholder { margin-top: 16px; aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--green-700); font-weight: 600; font-size: .95rem; background: repeating-linear-gradient(0deg, var(--paper-2) 0 23px, var(--line) 23px 24px), var(--paper-2); }

.notice { margin-top: 40px; padding: 18px 22px; background: var(--paper-2); border-left: 4px solid var(--gold); color: var(--muted); font-size: .92rem; }

/* Footer */
.site-footer { background: var(--green-950); color: var(--gold-light); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h3 { font-family: var(--sans); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.site-footer a { color: var(--gold-light); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer p { margin: 0 0 8px; }
.footer-brand { font-family: var(--serif); font-size: 1.5rem; color: #fff; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 40px; height: 40px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(232, 217, 176, .2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: fadeUp .8s ease both; }
  .hero-copy > *:nth-child(2) { animation-delay: .1s; }
  .hero-copy > *:nth-child(3) { animation-delay: .2s; }
  .hero-copy > *:nth-child(4) { animation-delay: .3s; }
  .hero-media { animation: fadeUp 1s .15s ease both; }
  /* Inner pages (Services, About, Resources, Contact): the same gentle entrance as the home page */
  .page-hero .wrap > * { animation: fadeUp .8s ease both; }
  .page-hero .wrap > *:nth-child(2) { animation-delay: .1s; }
  .page-hero .wrap > *:nth-child(3) { animation-delay: .2s; }
  .page-hero + .section > .wrap { animation: fadeUp 1s .3s ease both; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); display: none; padding: 12px 20px 22px; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav .nav-cta { margin: 10px 0 0; }
  .main-nav .nav-cta a { text-align: center; }
  .hero-grid, .split, .contact-grid, .section-head, .service-detail { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-media { order: 0; }
  .hero-media { max-width: 560px; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .service-row { grid-template-columns: 60px 1fr; }
  .service-row p, .service-row a { grid-column: 2; }
  .audience, .articles { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .cta { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .hero { padding: 56px 0 72px; }
  .hero-facts { grid-template-columns: 1fr; gap: 16px; }
  .hero-media::before { inset: 14px -10px -14px 14px; }
  .audience, .articles, .timeline, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .cta { padding: 40px 26px; }
  .form-panel { padding: 28px 20px; }
  .utility .hide-sm { display: none; }
  .brand-name small { display: none; }
}
