/*
Theme Name: My Daily Accountant
Theme URI: https://mydailyaccountant.com.au/
Author: My Daily Accountant
Description: A modern WordPress theme for My Daily Accountant accounting, bookkeeping and advisory services.
Version: 1.0.3
License: GPL-2.0-or-later
Text Domain: my-daily-accountant
*/

:root {
  --ink: #141c26;
  --charcoal: #1f2933;
  --muted: #66717d;
  --line: #dce3e8;
  --soft: #f4f7f6;
  --white: #ffffff;
  --green: #0e7a59;
  --green-2: #119665;
  --mint: #e6f4ee;
  --gold: #c99a3f;
  --coral: #d9795e;
  --blue: #27648d;
  --radius: 8px;
  --shadow: 0 18px 55px rgba(20, 28, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 227, 232, 0.86);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 206px;
  height: auto;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
}

.main-nav a,
.nav-item > a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after,
.nav-item > a::after {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  content: "";
  background: var(--green);
  transition: width 0.18s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.nav-item:hover > a::after,
.nav-item:focus-within > a::after {
  width: 100%;
}

.nav-item {
  position: relative;
}

.has-mega > a::before {
  content: "";
  position: absolute;
  right: -13px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
}

.mega-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  width: min(860px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(420px, 1fr);
  gap: 24px;
  padding: 26px;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(20, 28, 38, 0.16);
}

.compact-mega .mega-menu {
  width: min(650px, calc(100vw - 48px));
  grid-template-columns: minmax(180px, 0.55fr) minmax(320px, 1fr);
}

.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.mega-menu::before {
  position: absolute;
  left: 0;
  right: 0;
  top: -20px;
  height: 20px;
  content: "";
}

.mega-intro {
  padding: 20px;
  border-radius: 8px;
  background: var(--mint);
}

.mega-intro strong {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 22px;
  font-weight: 650;
}

.mega-intro span {
  display: block;
  color: #40505d;
  font-size: 14px;
  line-height: 1.5;
}

.mega-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.compact-mega .mega-links {
  grid-template-columns: 1fr;
}

.mega-links a {
  display: block;
  padding: 13px 14px;
  border-radius: 8px;
}

.mega-links a::after {
  display: none;
}

.mega-links a:hover,
.mega-links a:focus-visible {
  background: #f5f8f7;
}

.mega-links strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 600;
}

.mega-links span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  line-height: 1.1;
  box-shadow: 0 10px 22px rgba(14, 122, 89, 0.16);
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  background: #0a684c;
}

.button.secondary {
  background: var(--white);
  color: var(--green);
  border: 1px solid rgba(14, 122, 89, 0.24);
  box-shadow: none;
}

.button.dark {
  background: var(--ink);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 650px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 86px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84)),
    url("assets/images/hero-accounting.png") center right / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 820px;
}

.page-hero .lead {
  max-width: 760px;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 36%, rgba(255, 255, 255, 0.62) 58%, rgba(255, 255, 255, 0.16) 100%),
    linear-gradient(0deg, rgba(20, 28, 38, 0.08), rgba(20, 28, 38, 0));
}

.hero-content {
  position: relative;
  padding: 94px 0 82px;
}

.hero-copy {
  max-width: 710px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 3px;
  content: "";
  background: var(--green);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  max-width: 720px;
  color: var(--ink);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  max-width: 640px;
  margin-bottom: 30px;
  color: #33404c;
  font-size: 19px;
  font-weight: 400;
}

.hero-actions,
.section-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin-top: 44px;
}

.stat {
  padding: 22px;
  border: 1px solid rgba(14, 122, 89, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(10px);
}

.stat strong {
  display: block;
  color: var(--green);
  font-size: 25px;
  font-weight: 650;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

section {
  padding: 86px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.62fr);
  gap: 52px;
  align-items: end;
  margin-bottom: 44px;
}

.section-head h2,
.center-head h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: 0;
}

.section-head p,
.center-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.center-head {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.trust-strip {
  padding: 26px 0;
  background: var(--ink);
  color: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.trust-icon,
.service-icon,
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--green);
}

.services {
  background: var(--soft);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.industry-card,
.tool-card,
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 26px rgba(20, 28, 38, 0.04);
}

.service-card {
  padding: 28px;
}

.service-card h3,
.industry-card h3,
.tool-card h3 {
  margin: 18px 0 10px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
}

.service-card h3 a:hover,
.service-card h3 a:focus-visible {
  color: var(--green);
}

.service-card p,
.industry-card p,
.tool-card p {
  color: var(--muted);
}

.service-card ul,
.check-list {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.check-list.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
}

.service-card li,
.check-list li {
  position: relative;
  padding-left: 24px;
  margin: 10px 0;
  color: #40505d;
  font-weight: 500;
}

.service-card li::before,
.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.1em;
  content: "✓";
  color: var(--green);
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 56px;
  align-items: center;
}

.feature-panel {
  padding: 34px;
  border: 1px solid rgba(14, 122, 89, 0.16);
  border-radius: var(--radius);
  background: var(--mint);
}

.feature-panel h3 {
  margin-bottom: 14px;
  font-size: 26px;
  font-weight: 600;
}

.mini-list {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.mini-list li {
  padding: 10px 0;
  border-top: 1px solid rgba(14, 122, 89, 0.14);
  color: #40505d;
  font-weight: 500;
}

.outcomes-band {
  background: #f7faf8;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.outcome-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.outcome-card span {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.outcome-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 600;
}

.outcome-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.related-services {
  background: var(--soft);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.related-grid a {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
}

.related-grid a:hover,
.related-grid a:focus-visible {
  border-color: rgba(14, 122, 89, 0.34);
  color: var(--green);
}

.process {
  background: var(--ink);
  color: var(--white);
}

.process .section-head h2,
.process .section-head p {
  color: var(--white);
}

.process .section-head p {
  opacity: 0.76;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.step-number {
  background: var(--green);
  color: var(--white);
  font-weight: 900;
}

.step-card h3 {
  margin: 22px 0 10px;
  color: var(--white);
  font-weight: 600;
}

.step-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
}

.industries {
  background: linear-gradient(180deg, #ffffff 0%, #f5f8f7 100%);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.industry-card {
  padding: 24px;
}

.industry-card h3 {
  margin-top: 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tool-card {
  padding: 26px;
}

.proof-band {
  background: #f7f1e7;
}

.quote {
  margin: 0;
  padding-left: 26px;
  border-left: 5px solid var(--gold);
  color: var(--ink);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.22;
}

.quote cite {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
}

.proof-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.metric-box {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
}

.metric-box strong {
  display: block;
  color: var(--green);
  font-size: 34px;
  font-weight: 650;
  line-height: 1;
}

.metric-box span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 500;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.faq-item {
  padding: 24px;
}

.faq-item h3 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 600;
}

.faq-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--charcoal);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 14px;
  border: 1px solid #cbd5dc;
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.narrow-content {
  max-width: 820px;
}

.narrow-content h2 {
  margin-top: 34px;
  font-size: 28px;
}

.cta {
  position: relative;
  overflow: hidden;
  padding: 88px 0;
  background: var(--green);
  color: var(--white);
}

.cta::after {
  position: absolute;
  right: -140px;
  bottom: -190px;
  width: 520px;
  height: 520px;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) auto;
  gap: 32px;
  align-items: center;
}

.cta h2 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 600;
  line-height: 1.12;
}

.cta p {
  max-width: 700px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.site-footer {
  background: var(--ink);
  color: var(--white);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) repeat(3, minmax(160px, 1fr));
  gap: 36px;
  padding: 64px 0 44px;
}

.footer-logo {
  width: 214px;
  margin-bottom: 18px;
  background: var(--white);
  border-radius: var(--radius);
}

.footer-main p,
.footer-main a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-main h3 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
}

.footer-main ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-main li {
  margin: 9px 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav-wrap {
    position: fixed;
    inset: 86px 0 auto 0;
    display: none;
    padding: 24px 20px 30px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  body.menu-open .nav-wrap {
    display: block;
  }

  .main-nav {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
  }

  .nav-item {
    position: static;
  }

  .has-mega > a::before {
    display: none;
  }

  .mega-menu,
  .compact-mega .mega-menu {
    position: static;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
    margin: 8px 0 8px;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
  }

  .mega-links {
    grid-template-columns: 1fr;
  }

  .header-inner,
  .section-head,
  .split,
  .contact-grid,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .brand img {
    width: 190px;
  }

  .hero {
    min-height: 640px;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.82));
  }

  .service-grid,
  .step-grid,
  .industry-grid,
  .tools-grid,
  .faq-grid,
  .outcome-grid,
  .related-grid,
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 76px;
  }

  .brand img {
    width: 170px;
  }

  .nav-wrap {
    inset: 76px 0 auto 0;
  }

  .hero {
    min-height: 700px;
  }

  .hero-content {
    padding: 82px 0 56px;
  }

  .lead {
    font-size: 18px;
  }

  .hero-stats,
  .service-grid,
  .step-grid,
  .industry-grid,
  .tools-grid,
  .faq-grid,
  .proof-metrics,
  .check-list.two-col,
  .outcome-grid,
  .related-grid,
  .trust-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 76px 0 60px;
  }

  section {
    padding: 64px 0;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
