/*
Theme Name: Above & Beyond CPA
Theme URI: https://aboveandbeyondcpa.com/
Author: Above & Beyond CPA
Description: A lightweight native WordPress theme recreating the Above & Beyond CPA website.
Version: 1.3.4
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: above-and-beyond-cpa
*/

:root {
  --aab-ink: #171717;
  --aab-blue: #66a2ce;
  --aab-pale: #edf4fb;
  --aab-rule: #58839a;
  --aab-white: #fff;
  --aab-max: 1112px;
  --aab-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --aab-sans: "Open Sans", Arial, Helvetica, sans-serif;
}

@font-face { font-family: "Open Sans"; src: url("assets/fonts/open-sans-400.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("assets/fonts/open-sans-600.ttf") format("truetype"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("assets/fonts/open-sans-700.ttf") format("truetype"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("assets/fonts/playfair-display-400.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--aab-ink);
  background: var(--aab-white);
  font-family: var(--aab-sans);
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus { position: fixed !important; left: 1rem; top: 1rem; z-index: 10000; width: auto; height: auto; padding: .75rem 1rem; clip: auto; background: #fff; }

.site-header { padding: 56px 24px 48px; background: #fff; }
.header-inner { max-width: var(--aab-max); margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.site-logo { width: 292px; }
.site-logo img { width: 292px; max-height: 200px; object-fit: contain; }
.menu-toggle { display: none; border: 0; padding: 12px; background: transparent; color: var(--aab-rule); cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { display: block; width: 20px; height: 2px; margin: 4px 0; background: currentColor; content: ""; }
.primary-nav { margin-top: 28px; }
.primary-nav ul { display: flex; gap: 35px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: block; padding: 4px 0 9px; border-bottom: 1px solid transparent; font-size: 14px; letter-spacing: .22em; text-decoration: none; text-transform: uppercase; }
.primary-nav .current-menu-item > a, .primary-nav a[aria-current="page"] { border-color: var(--aab-rule); }

.site-main { min-height: 45vh; }
.hero { width: min(var(--aab-max), calc(100% - 10rem)); margin: 0 auto; display: grid; grid-template-columns: 2fr 1.08fr; }
.hero-media { min-height: 0; aspect-ratio: 3 / 2; background: center/cover no-repeat url("assets/images/finance-hero.jpg"); }
.hero-copy { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 42px; background: var(--aab-pale); text-align: center; }
.hero h1 { max-width: 360px; margin: 0; font: 400 32px/1.2 var(--aab-serif); letter-spacing: .023em; }

.services { max-width: var(--aab-max); margin: 0 auto; padding: 72px 28px 86px; }
.eyebrow, .services > h2 { margin: 0 0 48px; color: #507b95; font: 400 16px/1.4 var(--aab-sans); letter-spacing: 2px; text-align: center; text-transform: uppercase; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.service-card { padding: 32px; background: var(--aab-pale); }
.service-card h3 { margin: 0 0 13px; font: 400 22px/1.3 var(--aab-sans); text-align: center; }
.service-card p { margin: 0; color: #5e5e5e; font: 400 16px/24px var(--aab-sans); text-align: left; }

.contact-hero { max-width: var(--aab-max); margin: 0 auto; padding: 150px 26px 105px; background: #fff; text-align: center; }
.contact-hero .location { width: 100%; margin: 0 0 16px; color: #595959; font: 400 14px/21px var(--aab-sans); letter-spacing: 0; text-align: center; text-transform: none; }
.contact-hero h1 { max-width: 760px; margin: 0 auto 24px; color: #1b1b1b; font: 400 22px/27.5px var(--aab-sans); letter-spacing: .99px; }
.contact-hero p { max-width: 760px; margin: 0 auto; color: #5e5e5e; font: 400 22px/33px var(--aab-sans); }
.contact-section { padding: 64px 0 95px; }
.contact-section-inner { width: calc(100% - 48px); max-width: var(--aab-max); margin: 0 auto; }
.contact-eyebrow { margin: 0 0 32px; color: #487ba1; font: 400 16px/22.4px var(--aab-sans); letter-spacing: 2px; text-align: left; text-transform: uppercase; }
.contact-form-title { margin: 0 0 24px; color: #1b1b1b; font: 400 22px/27.5px var(--aab-sans); letter-spacing: .99px; text-align: center; }
.aab-form { display: grid; max-width: 725px; margin: 0 auto; gap: 22px; }
.aab-form p { margin: 0; }
.aab-form label { display: block; margin: 0; color: #5e5e5e; font: 400 16px/1.4 var(--aab-sans); letter-spacing: 0; text-transform: none; }
.aab-form input, .aab-form textarea { width: 100%; border: 0; border-bottom: 1px solid #e2e2e2; border-radius: 0; padding: 23px 8px 8px; background: transparent; color: #5e5e5e; font: 400 16px/1.45 var(--aab-sans); }
.aab-form input { height: 54px; }
.aab-form textarea { min-height: 146px; border: 1px solid #e2e2e2; padding: 16px 8px; resize: vertical; }
.aab-form textarea::placeholder { color: rgba(94,94,94,.85); opacity: 1; }
.aab-form-submit { text-align: center; }
.aab-recaptcha { display: flex; justify-content: center; margin: 25px 0 18px; overflow: hidden; }
.aab-form button { min-width: 113px; height: 56px; border: 0; padding: 8px 32px; background: #65a1cd; color: #000; font: 700 14px/1 var(--aab-sans); letter-spacing: 0; text-transform: uppercase; cursor: pointer; }
.aab-form button:hover, .aab-form button:focus { background: #4f8fbd; }
.aab-form-note { margin: 4px auto 0 !important; color: #5e5e5e; font-size: 12px; text-align: center; }
.aab-form-status { padding: 12px 14px; border: 1px solid #94a7b5; background: #f3f8fb; }
.aab-hp { position: absolute !important; left: -10000px !important; }

.blog-archive {
    position: relative;
    padding: 42px 24px 70px;
    background: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .35)), center / cover fixed url(assets/images/blog-background.jpg);
    background-size: cover;
    background-position: center;
}
.blog-inner { max-width: 1215px; margin: 0 auto; }
.blog-categories { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 25px; row-gap: 7px; margin: 0 0 34px; padding: 0; list-style: none; color: #fff; }
.blog-categories a { font-size: 16px; text-decoration: none; }
.blog-categories a.active { font-weight: 700; }
.post-carousel-shell { position: relative; }
.post-grid { display: flex; gap: 24px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
.post-grid::-webkit-scrollbar { display: none; }
.post-grid.is-centered { justify-content: center; }
.post-card { display: flex; width: 245px; min-width: 245px; height: 330px; flex: 0 0 245px; flex-direction: column; background: #fff; scroll-snap-align: start; text-align: center; }
.carousel-arrow { position: absolute; top: 50%; z-index: 5; width: 48px; height: 48px; border: 0; border-radius: 50%; padding: 0; transform: translateY(-50%); background: rgba(0,0,0,.5); color: #fff; cursor: pointer; }
.carousel-arrow::before { position: absolute; top: 50%; left: 50%; width: 16px; height: 20px; transform: translate(-50%,-50%); background: #fff; content: ""; }
.carousel-prev::before { clip-path: polygon(100% 0, 100% 100%, 0 50%); }
.carousel-next::before { clip-path: polygon(0 0, 100% 50%, 0 100%); }
.carousel-arrow:hover, .carousel-arrow:focus-visible { background: rgba(0,0,0,.7); }
.carousel-arrow:disabled { opacity: .25; cursor: default; }
.carousel-prev { left: -58px; }
.carousel-next { right: -58px; }
.carousel-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; min-height: 12px; margin-top: 18px; }
.carousel-dot { width: 10px; height: 10px; border: 0; border-radius: 50%; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; }
.carousel-dot.is-active { background: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.22); }
.post-card-image { display: block; height: 145px; overflow: hidden; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { display: flex; flex: 1; flex-direction: column; align-items: center; padding: 15px 16px 18px; }
.post-card time { color: #666; font: 14px/1.4 var(--aab-serif); }
.post-card h2 { margin: 8px 0 12px; color: #1b1b1b; font: 400 22px/24.75px var(--aab-sans); letter-spacing: .99px; }
.post-card h2 a { text-decoration: none; }
.post-card .read-more { margin-top: auto; color: #557b90; font: 16px/1.4 var(--aab-serif); text-decoration: none; }
.no-posts { grid-column: 1/-1; padding: 40px; background: #fff; text-align: center; }

.single-layout { max-width: var(--aab-max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(230px, .8fr); gap: 64px; padding: 48px 24px 90px; }
.back-link { display: inline-block; margin-bottom: 22px; color: #557b90; text-decoration: none; }
.post-title { margin: 0 0 8px; color: #1b1b1b; font: 400 32px/36px var(--aab-serif); letter-spacing: .992px; }
.post-meta { margin-bottom: 32px; color: #5e5e5e; font: 400 14px/21px var(--aab-sans); }
.post-content { color: #5e5e5e; font: 400 16px/24px var(--aab-sans); }
.post-content p { margin: 0 0 1.25em; }
.post-content figure { margin: 0 0 28px; }
.post-content ul, .post-content ol { margin: 0 0 1.25em; padding-left: 1.4em; }
.post-content hr { height: 1px; margin: 30px 0; border: 0; background: #ccc; }
.post-sidebar h2 { margin: 0 0 12px; color: #1b1b1b; font: 400 22px/27.5px var(--aab-sans); letter-spacing: .99px; }
.post-sidebar ul { margin: 0 0 40px; padding: 0; list-style: none; }
.post-sidebar li { margin-bottom: 10px; }
.post-sidebar a { color: #5e5e5e; text-decoration: none; }
.recent-posts li { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 12px; align-items: center; }
.recent-posts .recent-thumbnail { display: block; width: 110px; height: 110px; overflow: hidden; }
.recent-posts .recent-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.recent-posts .recent-copy { min-width: 0; }
.recent-posts .recent-copy a { display: block; font-size: 14px; line-height: 1.3; }
.recent-posts time { color: #777; font-size: 12px; }
.post-sharing { display: flex; align-items: center; gap: 10px; margin-top: 34px; color: #5e5e5e; }
.post-sharing > span { margin-right: 4px; font-size: 13px; }
.post-sharing a { display: inline-grid; width: 34px; height: 34px; border-radius: 50%; color: #5e5e5e; place-items: center; }
.post-sharing a:hover, .post-sharing a:focus-visible { background: #edf4fb; color: #1b1b1b; }
.post-sharing svg { width: 28px; height: 28px; fill: currentColor; }

.site-footer { padding: 44px 24px 52px; background: #fff; text-align: center; }
.footer-name { margin: 0 0 48px; font-size: 12px; font-weight: 700; letter-spacing: .11em; }
.copyright { margin: 0; color: #666; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

.cookie-banner { position: fixed; right: 24px; bottom: 24px; z-index: 9999; width: min(400px, calc(100vw - 48px)); padding: 22px 24px 24px; border-radius: 6px; background: var(--aab-blue); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { margin: 0 0 9px; font: 400 24px/1.25 var(--aab-serif); }
.cookie-banner p { margin: 0 0 19px; font: 16px/1.45 var(--aab-serif); }
.cookie-banner button { width: 100%; border: 0; padding: 14px; background: #171717; color: #fff; font: 700 12px/1 var(--aab-sans); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.cookie-settings { margin-top: 16px; border: 0; background: transparent; color: #555; font: 12px var(--aab-sans); text-decoration: underline; cursor: pointer; }

@media (max-width: 1023px) {
  body.menu-open { overflow: hidden; }
  .site-header { padding: 24px 48px 30px; }
  .header-inner { position: relative; min-height: 125px; justify-content: center; }
  .site-logo, .site-logo img { width: 205px; max-height: 140px; }
  .menu-toggle { position: absolute; left: 0; top: 46px; z-index: 10001; display: block; }
  .menu-toggle[aria-expanded="true"] span { opacity: 0; }
  .menu-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }
  .menu-toggle::before, .menu-toggle::after { transition: transform .2s ease; }
  .primary-nav { position: fixed; inset: 0; z-index: 10000; display: none; margin: 0; padding: 110px 32px 48px; background: #fff; }
  .primary-nav.is-open { display: grid; place-items: center; }
  .primary-nav ul { flex-direction: column; gap: 28px; align-items: center; }
  .primary-nav a { padding: 7px 0; font-size: clamp(22px, 4vw, 32px); letter-spacing: .14em; }
  .hero { width: calc(100% - 6rem); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
  .single-layout { grid-template-columns: 1fr; }
  .post-sidebar { border-top: 1px solid #ddd; padding-top: 35px; }
}

@media (max-width: 600px) {
  .site-header { padding: 24px 24px 28px; }
  .header-inner { position: relative; min-height: 105px; justify-content: center; }
  .site-logo, .site-logo img { width: 175px; max-height: 120px; }
  .menu-toggle { top: 36px; }
  .hero { display: block; width: calc(100% - 48px); }
  .hero-media { min-height: 229px; }
  .hero-copy { min-height: 281px; padding: 38px 24px; }
  .hero h1 { max-width: 290px; font-size: 34px; }
  .services { padding: 57px 24px 70px; }
  .services > h2 { margin-bottom: 38px; font-size: 13px; }
  .service-grid { grid-template-columns: 1fr; gap: 38px; }
  .contact-hero { margin: 0 24px; padding: 70px 22px 64px; }
  .contact-hero h1 { font-size: 22px; line-height: 1.3; }
  .contact-hero p { font-size: 18px; line-height: 1.55; }
  .contact-section { padding: 52px 0 75px; }
  .contact-eyebrow { margin-bottom: 28px; }
  .blog-archive { padding: 26px 24px 34px; background-attachment: scroll; }
  .blog-categories { column-gap: 15px; row-gap: 4px; }
  .single-layout { padding: 34px 24px 70px; }
  .post-title { font-size: 32px; line-height: 36px; }
  .cookie-banner { left: 0; right: 0; bottom: 0; width: 100%; max-width: none; border-radius: 0; padding: 22px 24px; }
  .cookie-banner h2 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
