/*
Theme Name: Vantage Accounting
Theme URI: https://vantageaccounting.co.za/
Author: Vantage Accounting
Description: A clean, friendly accounting website for Vantage Accounting.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: vantage-accounting
*/

:root {
  --ink: #20252b;
  --muted: #626b74;
  --deep: #496b89;
  --deep-2: #2d4358;
  --blush: #e4ebf1;
  --ivory: #faf8f4;
  --paper: #ffffff;
  --gold: #c27a52;
  --clay: #8d5e42;
  --line: rgba(32, 37, 43, 0.13);
  --shadow: 0 24px 65px rgba(45, 67, 88, 0.12);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  width: min(calc(100% - 32px), var(--max));
  min-height: 70px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(32, 37, 43, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 35px rgba(45, 67, 88, 0.09);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--deep);
  border-radius: 2px;
  background: transparent;
  color: var(--deep);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 1px;
  background: currentColor;
  opacity: 0.42;
}

.brand-mark span {
  position: relative;
  z-index: 1;
}

.brand-name,
.brand-sub {
  display: block;
  line-height: 1;
}

.brand-name {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 13px;
  border-radius: var(--radius);
  color: #222222;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a:hover {
  background: #eaf0f4;
  color: var(--deep-2);
}

.edit-toggle {
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  padding: 9px 14px;
  cursor: pointer;
}

.edit-toggle[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
}

.edit-toolbar {
  position: fixed;
  z-index: 19;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 48px);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.edit-toolbar span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.edit-toolbar button {
  min-height: 36px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 7px 11px;
  cursor: pointer;
}

.edit-toolbar button:last-child {
  background: var(--paper);
  color: var(--ink);
}

body.edit-mode [data-editable] {
  cursor: text;
  outline: 1px dashed rgba(13, 13, 13, 0.35);
  outline-offset: 4px;
}

body.edit-mode a,
body.edit-mode button[type="submit"] {
  cursor: text;
}

body.edit-mode [data-editable]:hover,
body.edit-mode [data-editable]:focus {
  background: rgba(255, 255, 255, 0.72);
  outline-color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 91vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 150px 24px 104px;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  filter: saturate(0.96) contrast(1.03) brightness(1.02);
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(250, 248, 244, 0.94) 0%, rgba(250, 248, 244, 0.86) 30%, rgba(250, 248, 244, 0.38) 51%, rgba(250, 248, 244, 0.05) 70%, transparent 100%),
    linear-gradient(180deg, rgba(250, 248, 244, 0.18) 0%, rgba(250, 248, 244, 0.02) 100%);
}

.hero-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  line-height: 1.02;
}

h1 {
  max-width: 780px;
  font-size: clamp(3.8rem, 7.4vw, 6.8rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.45rem);
}

h3 {
  font-size: 1.28rem;
}

.hero-line {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  font-weight: 600;
  line-height: 1.28;
}

.hero-copy {
  max-width: 640px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 19px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.button-primary {
  background: var(--deep);
  color: var(--paper);
  box-shadow: 0 14px 30px rgba(45, 67, 88, 0.22);
}

.button-primary:hover {
  background: var(--deep-2);
}

.button-secondary {
  border-color: rgba(32, 37, 43, 0.18);
  background: rgba(255, 255, 255, 0.76);
  color: var(--deep-2);
}

.trust-band {
  width: min(calc(100% - 48px), var(--max));
  margin: -34px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid rgba(32, 37, 43, 0.12);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.trust-item {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item strong {
  color: var(--deep);
  font-family: "Newsreader", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.trust-item span {
  color: var(--muted);
  font-weight: 700;
}

.section {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 104px 0;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 80px;
}

.intro-text,
.section-heading p,
.about-panel p,
.quote-panel p,
.process-grid p,
.contact-copy p,
.site-footer p {
  color: var(--muted);
  font-size: 1.03rem;
}

.section-tint {
  width: 100%;
  max-width: none;
  padding: 92px max(24px, calc((100vw - var(--max)) / 2));
  background: #e9eef2;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading p {
  margin: 16px 0 0;
}

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

.service-card {
  min-height: 278px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid rgba(32, 37, 43, 0.1);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(45, 67, 88, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(73, 107, 137, 0.28);
  box-shadow: 0 18px 36px rgba(45, 67, 88, 0.09);
}

.service-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(73, 107, 137, 0.3);
  border-radius: 2px;
  background: var(--blush);
  color: var(--deep);
}

.service-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 24px;
  align-items: stretch;
}

.about-panel,
.quote-panel {
  padding: 42px;
  border-radius: var(--radius);
}

.about-panel {
  background: var(--deep);
}

.about-panel .eyebrow {
  color: #c9c9c9;
}

.about-panel h2,
.about-panel p {
  color: var(--paper);
}

.about-panel p {
  opacity: 0.82;
}

.quote-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: var(--paper);
}

blockquote {
  margin: 0;
}

blockquote p {
  margin: 0;
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1.2;
}

.proof-list {
  display: grid;
  gap: 10px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.proof-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-weight: 700;
}

.proof-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--gold);
}

.clients-section {
  padding-top: 26px;
}

.client-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.client-list span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid rgba(32, 37, 43, 0.13);
  border-radius: 4px;
  background: #edf2f5;
  color: var(--deep-2);
  font-weight: 800;
}

.process-section {
  padding-top: 26px;
}

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

.process-grid article {
  min-height: 220px;
  padding: 30px 30px 30px 0;
  border-top: 1px solid rgba(32, 37, 43, 0.18);
}

.process-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--clay);
  font-weight: 900;
}

.process-grid p {
  margin-bottom: 0;
}

.contact-section {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: 34px;
  padding: 46px;
  border-radius: var(--radius);
  background: var(--deep-2);
  color: var(--paper);
}

.contact-section .eyebrow {
  color: #c9c9c9;
}

.contact-section h2,
.contact-section p {
  color: var(--paper);
}

.contact-copy p {
  opacity: 0.82;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-weight: 800;
}

.contact-links svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #bfd1df;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(40, 47, 54, 0.18);
  border-radius: var(--radius);
  background: #fcfaf8;
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(73, 107, 137, 0.18);
  border-color: var(--deep);
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.human-check {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) 1fr;
  gap: 16px;
  align-items: end;
  padding: 14px;
  border-left: 3px solid var(--gold);
  border-radius: 3px;
  background: #eef3f6;
}

.human-check p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

.check-row {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.check-row input {
  min-height: 18px;
  margin-top: 4px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-status {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--deep);
  border-radius: 3px;
  background: #eef3f6;
  color: var(--ink);
  font-size: 0.9rem;
}

.form-status.is-error {
  border-left-color: var(--gold);
  background: #f8eee8;
}

.site-footer {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
}

.site-footer p,
.site-footer span {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-brand .brand-mark {
  width: 38px;
  height: 38px;
}

@media (max-width: 900px) {
  .site-header {
    top: 10px;
    width: min(calc(100% - 20px), var(--max));
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 78px;
    left: 10px;
    right: 10px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 14px;
  }

  .edit-toggle {
    margin-left: auto;
  }

  .hero {
    min-height: auto;
    padding: 124px 20px 70px;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(250, 248, 244, 0.88), rgba(250, 248, 244, 0.56));
  }

  .hero-media img {
    object-position: 64% center;
    opacity: 0.82;
  }

  h1 {
    font-size: clamp(3.2rem, 15vw, 5.8rem);
  }

  .trust-band,
  .section,
  .contact-section,
  .site-footer {
    width: min(calc(100% - 32px), var(--max));
  }

  .trust-band,
  .intro-section,
  .service-grid,
  .split-section,
  .process-grid,
  .contact-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .trust-item {
    min-height: 92px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 70px 0;
  }

  .section-tint {
    padding: 70px 16px;
  }

  .intro-section {
    gap: 24px;
  }

  .contact-section {
    padding: 30px;
  }
}

@media (max-width: 620px) {
  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 1.12rem;
  }

  .brand-sub {
    font-size: 0.68rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    padding-left: 14px;
    padding-right: 14px;
  }

  .edit-toolbar {
    left: 16px;
    right: 16px;
    bottom: 16px;
    justify-content: space-between;
  }

  .edit-toolbar span {
    display: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .human-check {
    grid-template-columns: 1fr;
  }

  .about-panel,
  .quote-panel,
  .contact-form {
    padding: 24px;
  }

  .contact-section {
    padding: 24px 18px;
  }
}
