/*
Theme Name: Outgrow
Theme URI: https://outgrowaccounting.com
Author: Outgrow Accounting & Finance
Description: Custom theme for Outgrow Accounting & Finance — navy, sage and gold, Cormorant Garamond, Jost and Allura.
Version: 1.0.5
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: outgrow
*/

/* =========================================================
   OUTGROW ACCOUNTING — SITE STYLES
   Base styles
   Everything is scoped to .og classes so your theme is untouched.
   ========================================================= */


:root {
  --og-navy: #002848;
  --og-ink: #1F3550;
  --og-body: #3B4A5A;
  --og-sage: #889888;
  --og-sage-text: #566956;
  --og-sage-deep: #3E5A3F;
  --og-gold: #C8961E;
  --og-gold-text: #8A6510;
  --og-gold-light: #E2B85A;
  --og-cream: #FAF5EF;
  --og-paper: #FFFDF9;
  --og-line: #E8DFD3;
  --og-tint: #EEF0EA;
  --og-photo: #E9E2D6;
  --og-serif: 'Cormorant Garamond', Georgia, serif;
  --og-sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --og-script: 'Allura', cursive;
}

body { background: var(--og-cream); }

/* ---------- Base ---------- */
.og, .og * { box-sizing: border-box; }
.og {
  font-family: var(--og-sans); font-weight: 300; font-size: 17px; line-height: 1.7;
  color: var(--og-ink);
}
.og a { color: var(--og-navy); }
.og a:hover { color: var(--og-gold-text); }
.og h1, .og h2, .og h3 { font-family: var(--og-serif); font-weight: 500; color: var(--og-navy); margin: 0; letter-spacing: 0; }
.og p { margin: 0; }
.og img { display: block; max-width: 100%; height: auto; }

/* Full-bleed: lets a section span the whole window inside a normal page */
.og-full { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }

.og-wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.og-narrow { max-width: 860px; }
.og-reading { max-width: 820px; }
.og-pad { padding-top: 112px; padding-bottom: 112px; }
.og-paper { background: var(--og-paper); border-top: 1px solid #EDE5DA; border-bottom: 1px solid #EDE5DA; }
.og-tint { background: var(--og-tint); border-top: 1px solid #DFE3D9; border-bottom: 1px solid #DFE3D9; }
.og-dark { background: var(--og-navy); color: #FAF5EF; }
.og-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.og-stack { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Type ---------- */
.og-eyebrow { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: var(--og-sage-text); }
.og-eyebrow::before, .og-center .og-eyebrow::after { content: ""; width: 44px; height: 1px; background: var(--og-gold); }
.og-script { font-family: var(--og-script); font-size: 40px; line-height: 1; color: var(--og-sage-text); }
.og-h1 { font-size: clamp(44px, 6vw, 80px); line-height: 1.03; }
.og-h1 em, .og-h2 em { font-weight: 400; color: var(--og-sage-deep); }
.og-h2 { font-size: clamp(36px, 4vw, 54px); line-height: 1.06; }
.og-h3 { font-size: 32px; line-height: 1.12; }
.og-lead { font-size: 19px; color: var(--og-body); max-width: 560px; }
.og-body { color: var(--og-body); }
.og-num { font-family: var(--og-serif); font-size: 20px; color: var(--og-gold-text); }
.og-label { font-size: 13px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--og-navy); }
.og-tagline { font-size: 13px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; color: var(--og-gold-light); display: flex; align-items: center; gap: 14px; }
.og-tagline::before, .og-tagline::after { content: ""; width: 40px; height: 1px; background: var(--og-gold); }

/* ---------- Buttons & links ---------- */
.og-btn { display: inline-block; padding: 16px 32px; background: var(--og-navy); color: #FAF5EF !important; text-decoration: none; font-size: 14px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; border-radius: 2px; border: 1px solid var(--og-navy); transition: background .2s; }
.og-btn:hover { background: #0E3D63; }
.og-btn-outline { background: transparent; color: var(--og-navy) !important; }
.og-btn-outline:hover { background: var(--og-navy); color: #FAF5EF !important; }
.og-btn-gold { background: var(--og-gold); border-color: var(--og-gold); color: var(--og-navy) !important; }
.og-btn-gold:hover { background: #D9A93A; }
.og-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.og-link { display: inline-block; padding: 10px 0; font-size: 13px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; text-underline-offset: 6px; }

/* ---------- Header ---------- */
.og-header { background: var(--og-cream); border-bottom: 1px solid var(--og-line); }
.og-nav { max-width: 1240px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.og-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.og-logo img { height: 46px; width: auto; }
.og-wordmark { display: flex; flex-direction: column; line-height: 1; }
.og-wordmark b { font-family: var(--og-serif); font-weight: 500; font-size: 22px; letter-spacing: .28em; color: var(--og-navy); }
.og-wordmark i { font-family: var(--og-script); font-style: normal; font-size: 24px; color: var(--og-sage-text); padding-left: 20px; }
.og-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 0 26px; font-size: 14px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.og-menu a { text-decoration: none; padding: 12px 0; border-bottom: 1px solid transparent; }
.og-menu a:hover, .og-menu a[aria-current="page"] { border-bottom-color: var(--og-gold); color: var(--og-navy); }
.og-menu .og-btn { padding: 12px 22px; font-size: 14px; letter-spacing: .08em; margin-left: 6px; }
.og-menu .og-btn:hover { border-bottom-color: var(--og-navy); }

/* ---------- Grids ---------- */
.og-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 64px; align-items: center; }
.og-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.og-cols-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 64px 80px; }
.og-row { display: flex; flex-wrap: wrap; gap: 40px 80px; }
.og-row > .og-side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; }
.og-row > .og-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; color: var(--og-body); }

/* ---------- Photos ---------- */
.og-arch { width: 100%; max-width: 460px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 260px 260px 4px 4px; justify-self: center; }
.og-frame { width: 100%; max-width: 380px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; outline: 1px solid var(--og-gold); outline-offset: 14px; justify-self: center; }
.og-frame.og-frame-wide { max-width: 560px; aspect-ratio: 4 / 3; }
.og .og-portrait { width: 180px; height: 180px; max-width: none; aspect-ratio: 1 / 1; flex-shrink: 0; object-fit: cover; object-position: center 25%; border-radius: 50%; outline: 1px solid var(--og-gold); outline-offset: 8px; margin-bottom: 16px; }
.og-hero-photo { position: relative; display: flex; justify-content: center; }
.og-sprig { position: absolute; left: 4%; bottom: -36px; width: 120px; height: auto; }

/* ---------- Cards ---------- */
.og-card { background: var(--og-paper); border: 1px solid var(--og-line); border-top: 2px solid var(--og-gold); padding: 44px 36px; display: flex; flex-direction: column; gap: 16px; }
.og-card .og-script { font-size: 34px; }
.og-card p { font-size: 16px; color: var(--og-body); flex-grow: 1; }
.og-card-links { display: flex; gap: 24px; padding-top: 12px; border-top: 1px solid #EDE5DA; }
.og-pill { align-self: flex-start; padding: 8px 16px; border: 1px solid var(--og-gold); }
.og-value { display: flex; flex-direction: column; gap: 16px; padding-top: 28px; border-top: 1px solid var(--og-gold); color: var(--og-body); }
.og-value h2 { font-size: 36px; line-height: 1.1; }

/* ---------- Belief band ---------- */
.og-belief { font-family: var(--og-serif); font-style: italic; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.3; max-width: 980px; }

/* ---------- Testimonials ---------- */
.og-quote { margin: 0; background: var(--og-paper); border: 1px solid #E3E6DD; padding: 44px 36px; display: flex; flex-direction: column; gap: 20px; }
.og-quote::before { content: "“"; font-family: var(--og-serif); font-size: 72px; line-height: .5; height: 30px; color: var(--og-gold); }
.og-quote blockquote { margin: 0; padding: 0; border: 0; font-family: var(--og-serif); font-size: 20px; line-height: 1.5; color: var(--og-ink); flex-grow: 1; }
.og-quote figcaption { font-size: 13px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--og-navy); padding-top: 16px; border-top: 1px solid #EDE5DA; }
.og-quote figcaption span { display: block; font-weight: 300; letter-spacing: .1em; color: var(--og-sage-text); }

/* ---------- Team ---------- */
.og-creds { width: 100%; max-width: 380px; font-size: 14px; color: var(--og-body); }
.og-creds div { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #EDE5DA; }
.og-creds div::before { content: ""; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--og-gold); flex-shrink: 0; }
.og-member { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.og-member p { font-size: 16px; color: var(--og-body); }
.og-team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px 32px; }

/* ---------- Footer ---------- */
.og-footer { background: var(--og-navy); color: #E9E3DA; font-size: 15px; }
.og-footer a { color: #FAF5EF; text-decoration: none; padding: 6px 0; display: inline-block; }
.og-footer a:hover { color: var(--og-gold-light); }
.og-footer-grid { max-width: 1240px; margin: 0 auto; padding: 88px 24px 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 48px; }
.og-footer-grid > div { display: flex; flex-direction: column; gap: 2px; }
.og-footer h4 { margin: 0 0 8px; font-family: var(--og-sans); font-size: 12px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--og-gold-light); }
.og-footer .og-wordmark b { color: #FAF5EF; font-size: 30px; letter-spacing: .26em; }
.og-footer .og-wordmark i { color: #B9C4B5; font-size: 32px; padding-left: 28px; }
.og-footer-tag { margin-top: 12px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--og-gold-light); }
.og-footer-bottom { max-width: 1240px; margin: 0 auto; padding: 24px; border-top: 1px solid #22476A; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; font-size: 13px; color: #B8C2CC; }
.og-footer-bottom a { color: #B8C2CC; text-decoration: underline; padding: 8px 0; }
.og-footer-bottom nav { display: flex; flex-wrap: wrap; gap: 0 24px; }


/* =========================================================
   THEME LAYOUT — page shell, posts, forms, legal, single posts
   ========================================================= */
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--og-cream); font-family: var(--og-sans); font-weight: 300; color: var(--og-ink); -webkit-font-smoothing: antialiased; }
.og-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--og-navy); color: #FAF5EF; padding: 10px 16px; }
.og-skip:focus { left: 8px; }
.og :focus-visible { outline: 2px solid var(--og-gold); outline-offset: 3px; }
.og-main-content { display: block; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* Blog / podcast grids built by the theme */
.og-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 56px 36px; }
.og-posts.og-two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.og-post { display: flex; flex-direction: column; gap: 14px; }
.og-post-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: var(--og-photo); }
.og-post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.og-post-img:hover img { transform: scale(1.03); }
.og-post-date { font-size: 12px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--og-sage-text); }
.og-post h3, .og-post h2 { font-size: 26px; line-height: 1.18; }
.og-post h3 a, .og-post h2 a { color: var(--og-navy); text-decoration: none; }
.og-post h3 a:hover, .og-post h2 a:hover { color: var(--og-gold-text); }
.og-post p { font-size: 16px; color: var(--og-body); }

.og-featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); background: var(--og-paper); border: 1px solid var(--og-line); border-top: 2px solid var(--og-gold); }
.og-featured .og-post-img { aspect-ratio: auto; min-height: 360px; border-radius: 0; }
.og-featured-body { padding: 56px 48px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.og-featured-body h2 { font-size: clamp(32px, 3.2vw, 44px); line-height: 1.1; }
.og-featured-body h2 a { color: var(--og-navy); text-decoration: none; }

.og-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--og-line); font-size: 14px; }
.og-pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #DCCFBD; border-radius: 2px; text-decoration: none; color: var(--og-navy); }
.og-pagination .page-numbers.current { background: var(--og-navy); border-color: var(--og-navy); color: #FAF5EF; }
.og-pagination .page-numbers.dots { border: 0; }
.og-pagination .next, .og-pagination .prev { border-color: var(--og-navy); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

/* Podcast episode list */
.og-episode { display: flex; flex-wrap: wrap; gap: 12px 40px; padding: 32px 0; border-top: 1px solid var(--og-line); align-items: flex-start; }
.og-episode-num { flex: 0 0 140px; display: flex; flex-direction: column; gap: 4px; }
.og-episode-num b { font-family: var(--og-serif); font-weight: 500; font-size: 44px; line-height: 1; color: var(--og-gold-text); }
.og-episode-body { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.og-episode-body h3 { font-size: 28px; line-height: 1.15; }
.og-episode-body h3 a { color: var(--og-navy); text-decoration: none; }
.og-episode-body p { font-size: 16px; color: var(--og-body); }
.og-episode .og-btn { align-self: center; padding: 12px 22px; font-size: 12px; letter-spacing: .16em; }
.og-latest { background: var(--og-navy); color: #FAF5EF; padding: 44px 40px; display: flex; flex-direction: column; gap: 16px; border-radius: 4px; border-top: 2px solid var(--og-gold); }
.og-latest h2 { color: #FAF5EF; font-size: 40px; line-height: 1.08; }
.og-latest p { font-size: 16px; color: #E4DED5; }

/* Forms: Jetpack contact form + newsletter */
.og-form { background: var(--og-paper); border: 1px solid var(--og-line); border-top: 2px solid var(--og-gold); padding: 44px 40px; }
.og-form label, .og-form .grunion-field-label { display: block; font-family: var(--og-sans); font-size: 12px !important; font-weight: 400 !important; letter-spacing: .18em; text-transform: uppercase; color: var(--og-navy); margin-bottom: 8px; }
.og-form input[type="text"], .og-form input[type="email"], .og-form input[type="tel"], .og-form input[type="url"], .og-form textarea { width: 100%; font-family: var(--og-sans) !important; font-size: 16px !important; padding: 13px 14px !important; background: var(--og-cream) !important; border: 1px solid #CFC3B2 !important; border-radius: 2px !important; color: var(--og-ink); }
.og-form textarea { min-height: 140px; }
.og-form button, .og-form input[type="submit"], .og-form .wp-block-button__link { font-family: var(--og-sans) !important; font-size: 14px !important; letter-spacing: .14em; text-transform: uppercase; padding: 16px 36px !important; background: var(--og-navy) !important; color: #FAF5EF !important; border: 0 !important; border-radius: 2px !important; cursor: pointer; }
.og-footer-news form, .og-footer-news .wp-block-jetpack-subscriptions__container { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.og-footer-news p { margin: 0 !important; }
.og-footer-news input[type="email"] { width: 100%; font-family: var(--og-sans); font-size: 15px; padding: 13px 14px; background: transparent; border: 1px solid #5B7590; color: #FAF5EF; border-radius: 2px; }
.og-footer-news button, .og-footer-news input[type="submit"] { width: 100%; font-family: var(--og-sans); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; padding: 13px 14px; background: var(--og-gold); color: var(--og-navy); border: 0; border-radius: 2px; cursor: pointer; }

/* Legal + generic pages: content shown exactly as written */
.og-legal { background: var(--og-paper); border-top: 1px solid #EDE5DA; border-bottom: 1px solid #EDE5DA; }
.og-prose { max-width: 820px; margin: 0 auto; padding: 72px 24px 96px; font-size: 17px; line-height: 1.75; color: var(--og-body); }
.og-prose > :first-child { margin-top: 0; }
.og-prose p, .og-prose ul, .og-prose ol { margin: 0 0 22px; }
.og-prose li { margin-bottom: 8px; }
.og-prose h2, .og-prose h3, .og-prose h4 { font-family: var(--og-serif); font-weight: 500; color: var(--og-navy); line-height: 1.2; margin: 44px 0 12px; }
.og-prose h2 { font-size: 34px; } .og-prose h3 { font-size: 28px; } .og-prose h4 { font-size: 22px; }
.og-prose strong { font-weight: 500; color: var(--og-navy); }
.og-prose a { color: var(--og-navy); text-underline-offset: 4px; }
.og-prose img { border-radius: 4px; margin: 12px 0; }
.og-prose blockquote { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--og-gold); font-family: var(--og-serif); font-size: 24px; line-height: 1.45; color: var(--og-navy); }
.og-prose .wp-block-image, .og-prose figure { margin: 24px 0; }
.og-legal-tabs { display: flex; flex-wrap: wrap; gap: 0 22px; font-size: 13px; letter-spacing: .08em; padding-top: 14px; border-top: 1px solid var(--og-line); }
.og-legal-tabs a { padding: 10px 0; text-decoration: none; border-bottom: 1px solid transparent; }
.og-legal-tabs a[aria-current="page"] { border-bottom-color: var(--og-gold); font-weight: 400; }

/* Single blog post */
.og-single-hero { max-width: 900px; margin: 0 auto; padding: 88px 24px 48px; display: flex; flex-direction: column; gap: 20px; text-align: center; align-items: center; }
.og-single-hero h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.06; }
.og-single-img { max-width: 1100px; margin: 0 auto; padding: 0 24px 48px; }
.og-single-img img { width: 100%; border-radius: 4px; aspect-ratio: 16 / 9; object-fit: cover; }

/* Home hero: centered, type-only */
.og-hero { position: relative; overflow: hidden; padding: 120px 24px 128px; border-bottom: 1px solid var(--og-line); }
.og-hero-inner { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.og .og-hero-mark { width: 200px; height: auto; margin-bottom: 8px; }
.og-hero .og-eyebrow::after { content: ""; width: 44px; height: 1px; background: var(--og-gold); }
.og-hero .og-h1 { font-size: clamp(46px, 7vw, 92px); line-height: 1.02; }
.og-hero .og-h1 em { display: block; }
.og-hero .og-lead { max-width: 620px; font-size: 20px; }
.og-hero .og-btns { justify-content: center; margin-top: 8px; }
.og-hero-sprig { position: absolute; bottom: -10px; opacity: .55; pointer-events: none; }
.og-hero-sprig-left { left: max(24px, calc(50% - 620px)); }
.og-hero-sprig-right { right: max(24px, calc(50% - 620px)); transform: scaleX(-1); }
@media (max-width: 782px) {
  .og-hero { padding: 64px 24px 96px; }
  .og .og-hero-mark { width: 150px; }
  .og-hero-sprig { width: 72px; height: auto; opacity: .4; }
}

/* Footer column headings */
.og-footer .og-footer-h { margin: 0 0 8px; font-family: var(--og-sans); font-size: 12px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--og-gold-light); }

/* Mobile menu */
.og-menu-toggle { display: none; background: none; border: 1px solid var(--og-navy); border-radius: 2px; padding: 10px 14px; font-family: var(--og-sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--og-navy); cursor: pointer; min-height: 44px; }
@media (max-width: 900px) {
  .og-menu-toggle { display: inline-block; }
  .og-menu { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding-bottom: 12px; }
  .og-menu.is-open { display: flex; }
  .og-menu .og-btn { margin: 8px 0 0; }
  .og-featured-body { padding: 36px 26px; }
}
/* ---------- Small screens ---------- */
 @media (max-width: 782px) {
   .og-pad { padding-top: 80px; padding-bottom: 80px; }
   .og-card { padding: 36px 26px; }
   .og-menu { gap: 0 18px; }
 }
