/*
Theme Name: Top Accounting Experts
Theme URI: https://topaccountingexperts.com
Description: Lightweight Astra child theme for Top Accounting Experts, a BOMCAS Canada accounting practice in Edmonton.
Author: BOMCAS Canada
Template: astra
Version: 1.0.0
Text Domain: tae-bomcas
*/

:root {
  --tae-navy: #12263A;
  --tae-navy-2: #1B3A57;
  --tae-ink: #1C1C1C;
  --tae-muted: #5A6270;
  --tae-cream: #F6F3EE;
  --tae-line: #D9D3C9;
  --tae-red: #9B1C1C;
  --tae-red-dark: #7A1515;
  --tae-white: #ffffff;
  --tae-max: 1120px;
  --tae-radius: 6px;
  --tae-shadow: 0 8px 24px rgba(18, 38, 58, 0.08);
  --tae-sans: "Segoe UI", Calibri, "Helvetica Neue", Arial, sans-serif;
  --tae-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.tae-site {
  margin: 0;
  color: var(--tae-ink);
  font-family: var(--tae-sans);
  font-size: 17px;
  line-height: 1.65;
  background: var(--tae-white);
  -webkit-font-smoothing: antialiased;
}
body.tae-site .site-content,
body.tae-site #content,
body.tae-site .ast-container {
  padding: 0;
  margin: 0;
  max-width: none;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tae-navy-2); }
a:hover { color: var(--tae-red); }
.tae-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--tae-navy);
  color: #fff;
  padding: 8px 12px;
  z-index: 1000;
}
.tae-skip:focus { left: 12px; top: 12px; }
.tae-wrap {
  width: min(100% - 40px, var(--tae-max));
  margin-inline: auto;
}
.tae-kicker {
  margin: 0 0 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: var(--tae-red);
}
h1, h2, h3, .tae-wordmark-name {
  font-family: var(--tae-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--tae-navy);
}
h1 { font-size: clamp(2rem, 4vw, 3.15rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); margin: 0 0 14px; }
h3 { font-size: 1.15rem; margin: 0 0 8px; }
p { margin: 0 0 1rem; }
.tae-lead { font-size: 1.125rem; color: #2c3440; max-width: 42rem; }

/* Header */
.tae-header {
  background: #fff;
  border-bottom: 1px solid var(--tae-line);
  position: sticky;
  top: 0;
  z-index: 200;
}
.tae-header-inner {
  width: min(100% - 32px, var(--tae-max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}
.tae-wordmark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--tae-navy);
  flex: 0 1 auto;
  min-width: 0;
}
.tae-wordmark-name {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--tae-navy);
}
.tae-wordmark-tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tae-red);
  font-weight: 700;
  margin-top: 3px;
}
.tae-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px 22px;
}
.tae-nav ul {
  list-style: none;
  display: flex;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.tae-nav a {
  text-decoration: none;
  color: var(--tae-navy);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 0;
}
.tae-nav a:hover,
.tae-nav .current-menu-item > a,
.tae-nav .current_page_item > a { color: var(--tae-red); }
.tae-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tae-red);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 16px;
  border-radius: 4px;
  white-space: nowrap;
}
.tae-cta:hover { background: var(--tae-red-dark); color: #fff !important; }
.tae-nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--tae-line);
  border-radius: 4px;
  padding: 8px 12px;
  font: 700 0.85rem var(--tae-sans);
  color: var(--tae-navy);
  cursor: pointer;
}

/* Buttons */
.tae-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.2;
}
.tae-btn-primary { background: var(--tae-red); color: #fff !important; }
.tae-btn-primary:hover { background: var(--tae-red-dark); }
.tae-btn-ghost {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.7);
}
.tae-btn-ghost:hover { background: rgba(255,255,255,0.12); }
.tae-btn-navy { background: var(--tae-navy); color: #fff !important; }
.tae-btn-navy:hover { background: var(--tae-navy-2); }
.tae-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Hero */
.tae-hero {
  position: relative;
  min-height: 560px;
  display: grid;
  background: var(--tae-navy);
  color: #fff;
  overflow: hidden;
}
.tae-hero > img {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center 40%;
}
.tae-hero-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 560px;
  padding: 72px 0;
  background: linear-gradient(90deg, rgba(18,38,58,0.88) 0%, rgba(18,38,58,0.72) 46%, rgba(18,38,58,0.28) 100%);
  color: #fff;
}
.tae-hero h1,
.tae-hero .tae-kicker,
.tae-page-hero h1 { color: #fff; }
.tae-hero .tae-kicker { color: #F3C7C7; }
.tae-hero .tae-lead { color: #EEF2F5; }

.tae-page-hero {
  background: var(--tae-navy);
  color: #fff;
  padding: 64px 0 56px;
}
.tae-page-hero .tae-lead { color: #E4E9EE; }

/* Sections */
.tae-section { padding: 72px 0; }
.tae-section-cream { background: var(--tae-cream); }
.tae-section-intro { max-width: 44rem; margin-bottom: 36px; }
.tae-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tae-card {
  background: #fff;
  border: 1px solid var(--tae-line);
  border-radius: var(--tae-radius);
  overflow: hidden;
  box-shadow: var(--tae-shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
a.tae-card:hover { border-color: var(--tae-navy-2); }
.tae-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #e8e4dc; }
.tae-card-body { padding: 20px 20px 24px; display: flex; flex-direction: column; flex: 1; }
.tae-card-body h2 { font-size: 1.15rem; margin-bottom: 8px; }
.tae-card-body p { color: var(--tae-muted); flex: 1; }
.tae-card-link {
  font-weight: 700;
  color: var(--tae-red);
  text-decoration: none;
  margin-top: 8px;
}
.tae-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.tae-split img {
  position: static !important;
  inset: auto;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  border-radius: var(--tae-radius);
  box-shadow: var(--tae-shadow);
}
.tae-points { list-style: none; margin: 16px 0 0; padding: 0; }
.tae-points li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid var(--tae-line);
}
.tae-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tae-red);
  position: absolute;
  left: 4px;
  top: 18px;
}
.tae-cta-band {
  background: var(--tae-navy);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.tae-cta-band h2 { color: #fff; }
.tae-cta-band p { color: #E4E9EE; max-width: 40rem; margin: 0 auto 24px; }

/* Contact / form */
.tae-contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}
.tae-nap-card {
  background: var(--tae-cream);
  border: 1px solid var(--tae-line);
  border-radius: var(--tae-radius);
  padding: 24px;
}
.tae-nap-card h2, .tae-nap-card h3 { margin-top: 0; }
.tae-nap-card + .tae-nap-card { margin-top: 16px; }
.tae-nap-card p { margin-bottom: 0.55rem; }
.tae-form .wpcf7-form p, .tae-form p { margin: 0 0 14px; }
.tae-form label, .tae-form .input-field {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--tae-navy);
}
.tae-form .row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.tae-form input[type="text"],
.tae-form input[type="email"],
.tae-form input[type="tel"],
.tae-form textarea {
  width: 100%;
  border: 1px solid var(--tae-line);
  background: #fff;
  border-radius: 4px;
  padding: 12px 14px;
  font: inherit;
  color: var(--tae-ink);
}
.tae-form textarea { min-height: 140px; }
.tae-form input:focus,
.tae-form textarea:focus {
  outline: 2px solid var(--tae-navy);
  outline-offset: 1px;
}
.tae-form .wpcf7-submit,
.tae-form input[type="submit"] {
  background: var(--tae-red);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 12px 22px;
  font: 700 1rem var(--tae-sans);
  cursor: pointer;
}
.tae-form .wpcf7-submit:hover { background: var(--tae-red-dark); }
.wpcf7-not-valid-tip { color: var(--tae-red); font-size: 0.85rem; }

/* Footer */
.tae-footer {
  background: #0D1B2A;
  color: #D5DCE3;
  padding: 56px 0 24px;
  font-size: 0.95rem;
}
.tae-footer a { color: #fff; text-decoration: none; }
.tae-footer a:hover { color: #F3C7C7; }
.tae-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 36px;
}
.tae-footer h2 {
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--tae-sans);
  font-weight: 700;
  margin: 0 0 14px;
}
.tae-footer .tae-wordmark-name { color: #fff; font-size: 1.2rem; }
.tae-footer ul { list-style: none; margin: 0; padding: 0; }
.tae-footer li { margin: 0 0 8px; }
.tae-legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #9AA3AD;
  font-size: 0.85rem;
}

/* Content pages */
.tae-prose { max-width: 44rem; }
.tae-prose h2 { margin-top: 2rem; }
/* FAQ spacing */
.tae-prose h2 + p { margin-bottom: 1.6rem; }
.tae-article { padding: 48px 0 72px; max-width: 760px; margin: 0 auto; }

/* Hide leftover Astra chrome if any */
.tae-site #masthead,
.tae-site .ast-mobile-header-wrap,
.tae-site .site-footer,
.tae-site #colophon,
.tae-site .ast-breadcrumbs-wrapper,
.tae-site #secondary,
.tae-site .entry-header,
.tae-site .ast-above-header-bar,
.tae-site .ast-below-header-bar { display: none !important; }
.tae-site .site-content { padding-top: 0 !important; }

@media (max-width: 900px) {
  .tae-grid-3, .tae-split, .tae-contact-grid, .tae-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tae-split, .tae-contact-grid { grid-template-columns: 1fr; }
  .tae-hero, .tae-hero-overlay { min-height: 480px; }
}
@media (max-width: 768px) {
  .tae-header-inner { min-height: 68px; }
  .tae-nav-toggle { display: inline-flex; }
  .tae-header-inner .tae-cta { display: none; }
  .tae-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--tae-line);
    padding: 12px 20px 20px;
    margin: 0;
    box-shadow: var(--tae-shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .tae-nav.is-open { display: flex; }
  .tae-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .tae-nav a { padding: 12px 0; border-bottom: 1px solid var(--tae-line); }
  .tae-nav .tae-cta { display: flex; margin-top: 12px; text-align: center; }
  .tae-grid-3, .tae-footer-grid { grid-template-columns: 1fr; }
  .tae-form .row { grid-template-columns: 1fr; }
  .tae-section { padding: 52px 0; }
  .tae-hero-overlay { background: linear-gradient(180deg, rgba(18,38,58,0.86) 10%, rgba(18,38,58,0.55) 100%); }
  .tae-legal { flex-direction: column; }
}
@media (max-width: 420px) {
  .tae-wordmark-name { font-size: 1.02rem; }
  .tae-wrap { width: min(100% - 28px, var(--tae-max)); }
}
