/*
Theme Name: Greenwood Tax & Accounting
Theme URI: https://greenwoodcpa.ca
Author: Greenwood Tax & Accounting
Description: A custom, responsive WordPress theme inspired by the Greenwood Tax & Accounting homepage.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: greenwood
*/

:root {
  --forest: #183b2f;
  --forest-deep: #102b22;
  --sage: #899681;
  --sage-pale: #e1e3d5;
  --ivory: #f5f1e6;
  --cream: #eee9dc;
  --orange: #d98232;
  --ink: #17392f;
  --muted: #5d746b;
  --line: rgba(24, 59, 47, .18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
.container { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.site-header { background: rgba(245,241,230,.97); border-bottom: 1px solid rgba(24,59,47,.06); position: relative; z-index: 10; }
.header-inner { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; min-width: 255px; }
.brand-mark { width: 48px; height: 66px; flex: 0 0 auto; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 24px; letter-spacing: .23em; font-weight: 500; }
.brand-subtitle { margin-top: 9px; font-size: 9px; letter-spacing: .38em; white-space: nowrap; }
.orange-rule { display: block; width: 44px; height: 2px; background: var(--orange); margin: 10px auto 0; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.main-nav a { text-decoration: none; font-size: 10px; letter-spacing: .17em; text-transform: uppercase; transition: color .2s ease; }
.main-nav a:hover { color: var(--orange); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 14px; padding: 14px 24px; border: 1px solid var(--forest); border-radius: 999px; text-decoration: none; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; transition: background .2s ease, color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-dark { background: var(--forest); color: var(--ivory); }
.button-dark:hover { background: var(--forest-deep); }
.button-outline:hover { background: var(--forest); color: var(--ivory); }
.menu-toggle { display: none; border: 1px solid var(--line); background: transparent; color: var(--forest); border-radius: 50%; width: 44px; height: 44px; font-size: 21px; }
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 530px; }
.hero-copy { display: flex; align-items: center; padding: 56px max(36px, calc((100vw - 1180px)/2)); padding-right: 48px; }
.hero-copy-inner { max-width: 520px; }
.hero-logo { width: min(245px, 72%); margin: 0 0 28px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.2vw, 56px); letter-spacing: -.035em; line-height: 1.06; margin: 0 0 20px; }
.hero p { max-width: 430px; color: var(--muted); margin: 0 0 26px; font-size: 16px; }
.hero-image { min-height: 530px; background: #d8d1c2 url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1500&q=85') center/cover no-repeat; }
.credential-strip { display: flex; align-items: center; gap: 28px; padding: 18px 0; background: var(--sage-pale); }
.credential-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.credential-left { display: flex; align-items: center; gap: 20px; }
.credential-sprig { width: 42px; height: 48px; }
.credential-divider { height: 42px; width: 1px; background: rgba(24,59,47,.35); }
.credential-title { font-family: var(--serif); font-size: 20px; margin: 0; line-height: 1.25; }
.credential-note { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.cpa-logo { display: block; width: 150px; max-height: 65px; object-fit: contain; mix-blend-mode: multiply; }
.services { display: grid; grid-template-columns: repeat(4,1fr); padding-block: 42px; }
.service { text-align: center; padding: 8px 26px; border-right: 1px solid var(--line); }
.service:last-child { border-right: 0; }
.service-icon { width: 46px; height: 46px; margin: 0 auto 14px; color: var(--forest); }
.service h2 { font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; margin: 0 0 14px; }
.service p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.65; }
.about { display: grid; grid-template-columns: 1.1fr .9fr; }
.about-image { min-height: 430px; background: #354a3d url('https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=1400&q=85') center/cover no-repeat; }
.about-copy { padding: clamp(42px, 6vw, 82px); display: flex; flex-direction: column; justify-content: center; }
.eyebrow { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; margin: 0 0 16px; }
.eyebrow:after { content: ""; display: block; width: 40px; height: 2px; background: var(--orange); margin-top: 14px; }
.about h2, .contact h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 46px); letter-spacing: -.025em; line-height: 1.12; margin: 0 0 20px; }
.about p { color: var(--muted); margin: 0 0 24px; }
.solo-band { background: var(--forest); color: var(--ivory); padding: 42px 0; overflow: hidden; }
.solo-inner { display: grid; grid-template-columns: 100px 1fr 1fr; gap: 34px; align-items: center; }
.solo-mark { width: 76px; }
.solo-band h2 { font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); line-height: 1.2; font-weight: 400; margin: 0; }
.solo-band p { color: #d4ded4; margin: 0; max-width: 460px; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding-block: 76px; }
.contact p { color: var(--muted); }
.contact-card { background: var(--cream); padding: 30px; border: 1px solid var(--line); }
.contact-card label { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin: 14px 0 5px; }
.contact-card input, .contact-card textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); background: var(--ivory); color: var(--ink); font: inherit; border-radius: 3px; }
.contact-card textarea { min-height: 105px; resize: vertical; }
.contact-card button { margin-top: 18px; cursor: pointer; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 18px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-top .brand-mark { width: 37px; height: 50px; }
.footer-top .brand-name { font-size: 18px; }
.footer-top .brand-subtitle { font-size: 7px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.footer-cpa { display: flex; align-items: center; gap: 12px; font-size: 9px; color: var(--muted); }
.footer-cpa .cpa-logo { width: 80px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 14px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 10px; }
.footer-bottom p { margin: 0; }
@media (max-width: 900px) {
  .container { width: min(100% - 40px, 720px); }
  .header-inner { min-height: 82px; }
  .brand { min-width: 0; }
  .brand-name { font-size: 19px; }
  .brand-subtitle { font-size: 8px; }
  .main-nav { gap: 16px; }
  .header-cta { display: none; }
  .hero { min-height: 0; }
  .hero-copy { padding: 42px 28px; }
  .hero-image { min-height: 470px; }
  .services { grid-template-columns: repeat(2,1fr); }
  .service:nth-child(2) { border-right: 0; }
  .service:nth-child(-n+2) { border-bottom: 1px solid var(--line); padding-bottom: 28px; }
  .service:nth-child(n+3) { padding-top: 28px; }
  .about { grid-template-columns: 1fr 1fr; }
  .solo-inner { grid-template-columns: 70px 1fr 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 36px); }
  .header-inner { min-height: 76px; }
  .brand-mark { width: 39px; height: 54px; }
  .brand-name { font-size: 17px; letter-spacing: .16em; }
  .brand-subtitle { font-size: 7px; letter-spacing: .25em; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 20px 24px 24px; background: var(--ivory); border-top: 1px solid var(--line); flex-direction: column; align-items: flex-start; }
  .main-nav.is-open { display: flex; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 36px 24px 42px; }
  .hero-logo { width: 150px; margin-bottom: 22px; }
  .hero h1 { font-size: 43px; }
  .hero-image { min-height: 300px; grid-row: 1; }
  .credential-inner { align-items: center; gap: 14px; }
  .credential-left { gap: 12px; }
  .credential-sprig { width: 30px; height: 40px; }
  .credential-title { font-size: 17px; }
  .credential-note { font-size: 11px; }
  .cpa-logo { width: 94px; max-height: 48px; }
  .credential-divider { height: 38px; }
  .services { padding-block: 28px; }
  .service { padding-inline: 12px; }
  .service h2 { font-size: 10px; letter-spacing: .16em; }
  .service p { font-size: 12px; }
  .about { grid-template-columns: 1fr; }
  .about-image { min-height: 300px; }
  .about-copy { padding: 38px 24px 44px; }
  .solo-inner { grid-template-columns: 54px 1fr; gap: 18px; }
  .solo-mark { width: 48px; }
  .solo-band p { grid-column: 2; }
  .contact { grid-template-columns: 1fr; gap: 24px; padding-block: 48px; }
  .footer-top { align-items: flex-start; flex-wrap: wrap; }
  .footer-links { width: 100%; order: 3; gap: 18px; }
  .footer-cpa { margin-left: auto; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}
