/*
Theme Name: Ledger & Seal
Theme URI: https://example.com/ledger-and-seal
Author: Your Business
Author URI: https://example.com
Description: A distinctive, document-inspired WordPress theme built for tax preparation, notary, and bookkeeping practices. Warm ledger-paper palette, a recurring wax-seal motif, and clean typography give the site a trustworthy, professional feel while staying simple enough to grow with your business. Includes custom SVG icons and illustrations — no stock photography required.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: ledger-and-seal
Tags: custom-menu, custom-logo, featured-images, translation-ready, one-column, two-columns
*/

/* -------------------------------------------------------------
   0. DESIGN TOKENS
------------------------------------------------------------- */
:root {
  --ledger-paper: #EDE7D9;
  --ledger-paper-light: #FBF8F1;
  --ink-navy: #1F2E3D;
  --ink-navy-soft: #2A3D50;
  --seal-brass: #A9822E;
  --forest-deep: #2F4C3B;
  --stamp-rust: #8B3A2F;
  --charcoal: #2B2825;
  --paper-line: #C9BFA8;
  --white: #FFFFFF;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --radius: 4px;
  --container: 1180px;
}

/* -------------------------------------------------------------
   1. RESET & BASE
------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ledger-paper);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-deep); text-decoration: none; }
a:hover { color: var(--stamp-rust); }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
:focus-visible {
  outline: 2px solid var(--seal-brass);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* -------------------------------------------------------------
   2. LEDGER RULE — signature divider motif
------------------------------------------------------------- */
.ledger-rule {
  border: none;
  height: 0;
  border-top: 1px dashed var(--paper-line);
  margin: 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--seal-brass);
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--seal-brass);
}

/* -------------------------------------------------------------
   3. SITE HEADER
------------------------------------------------------------- */
.site-header {
  background: var(--ink-navy);
  color: var(--ledger-paper);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--seal-brass);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-branding img.custom-logo { height: 56px; width: auto; }
.site-branding svg.site-logo-mark { height: 56px; width: 56px; flex-shrink: 0; }
.site-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ledger-paper);
  margin: 0;
}
.site-title a { color: inherit; }
.site-description {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--seal-brass);
  margin: 2px 0 0;
}
.primary-menu {
  display: flex;
  gap: 34px;
}
.primary-menu a {
  color: var(--ledger-paper);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  color: var(--seal-brass);
}
.header-cta {
  background: var(--seal-brass);
  color: var(--ink-navy) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
}
.header-cta:hover { background: var(--ledger-paper); }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--seal-brass);
  color: var(--ledger-paper);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 1.1rem;
  cursor: pointer;
}

/* -------------------------------------------------------------
   4. HERO
------------------------------------------------------------- */
.hero {
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.hero h1 { margin-bottom: 0.4em; }
.hero .lede {
  font-size: 1.15rem;
  color: var(--ink-navy-soft);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 1.6em;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.96rem;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--stamp-rust);
  color: var(--ledger-paper-light) !important;
}
.btn-primary:hover { background: var(--ink-navy); }
.btn-secondary {
  background: transparent;
  border-color: var(--ink-navy);
  color: var(--ink-navy) !important;
}
.btn-secondary:hover { background: var(--ink-navy); color: var(--ledger-paper) !important; }
.hero-art { text-align: center; }
.hero-trustline {
  margin-top: 2.4em;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-navy-soft);
}
.hero-trustline strong { color: var(--stamp-rust); font-family: var(--font-body); }

/* -------------------------------------------------------------
   5. SERVICES
------------------------------------------------------------- */
.services {
  background: var(--ledger-paper-light);
  padding: 80px 0;
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
}
.section-head { max-width: 60ch; margin-bottom: 3em; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  background: var(--ledger-paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -18px rgba(31, 46, 61, 0.4);
}
.service-card img { width: 56px; height: 56px; margin-bottom: 18px; }
.service-card h3 { margin-bottom: 0.4em; }
.service-card p { color: var(--ink-navy-soft); margin-bottom: 1em; font-size: 0.96rem; }
.service-card a.learn-more {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--forest-deep);
  font-weight: 600;
}
.service-card a.learn-more:hover { color: var(--stamp-rust); }

/* -------------------------------------------------------------
   6. ABOUT / SPLIT SECTION
------------------------------------------------------------- */
.about-split {
  padding: 90px 0;
}
.about-split .container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.about-figure {
  background: var(--ink-navy);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.about-list { margin-top: 1.6em; }
.about-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--paper-line);
  font-size: 0.98rem;
}
.about-list li:last-child { border-bottom: none; }
.about-list .mark { color: var(--stamp-rust); font-weight: 700; }

/* -------------------------------------------------------------
   7. TRUST / CREDENTIALS BAND
------------------------------------------------------------- */
.trust-band {
  background: var(--forest-deep);
  color: var(--ledger-paper);
  padding: 60px 0;
}
.trust-band .container {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 46px;
  align-items: center;
}
.trust-band h2 { color: var(--ledger-paper); }
.trust-band p { color: #DDE6DE; max-width: 60ch; }
.trust-band img { filter: drop-shadow(0 8px 16px rgba(0,0,0,0.25)); }

/* -------------------------------------------------------------
   8. TESTIMONIALS
------------------------------------------------------------- */
.testimonials { padding: 90px 0; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--ledger-paper-light);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
}
.testimonial-card::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 3.4rem;
  color: var(--seal-brass);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}
.testimonial-card p.quote { font-style: italic; color: var(--ink-navy-soft); }
.testimonial-name { font-weight: 700; font-family: var(--font-mono); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--forest-deep); }

/* -------------------------------------------------------------
   9. CTA BAND
------------------------------------------------------------- */
.cta-band {
  background: var(--ink-navy);
  color: var(--ledger-paper);
  padding: 70px 0;
  text-align: center;
}
.cta-band h2 { color: var(--ledger-paper); }
.cta-band p { max-width: 55ch; margin-left: auto; margin-right: auto; color: #D9D2C2; }

/* -------------------------------------------------------------
   10. PAGE / SINGLE CONTENT
------------------------------------------------------------- */
.page-content, .single-content {
  padding: 70px 0 90px;
}
.entry-header { margin-bottom: 2em; }
.entry-content h2 { margin-top: 1.4em; }
.entry-content blockquote {
  border-left: 3px solid var(--seal-brass);
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  font-style: italic;
  color: var(--ink-navy-soft);
}

/* -------------------------------------------------------------
   11. FOOTER
------------------------------------------------------------- */
.site-footer {
  background: var(--ink-navy);
  color: #C7CDD2;
  padding: 60px 0 26px;
  border-top: 3px solid var(--seal-brass);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-grid h4 {
  color: var(--ledger-paper);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1em;
}
.footer-grid p, .footer-grid a { color: #C7CDD2; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--seal-brass); }
.footer-grid ul li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #8E97A0;
  font-family: var(--font-mono);
}

/* -------------------------------------------------------------
   12. WIDGETS / WP DEFAULTS
------------------------------------------------------------- */
.widget { margin-bottom: 2em; }
.wp-block-button__link {
  background: var(--stamp-rust);
  border-radius: var(--radius);
}
.alignwide { max-width: 1180px; }
.alignfull { max-width: 100%; }

/* -------------------------------------------------------------
   13. RESPONSIVE
------------------------------------------------------------- */
@media (max-width: 900px) {
  .primary-menu { display: none; }
  .menu-toggle { display: inline-block; }
  .hero .container,
  .about-split .container,
  .trust-band .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
  .service-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 40px; }
}

/* Mobile nav (JS-toggled) */
.primary-menu.is-open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ink-navy);
  flex-direction: column;
  padding: 20px 28px 26px;
  gap: 16px;
  border-bottom: 3px solid var(--seal-brass);
}
