/*
Theme Name: OG Accountants
Theme URI: https://www.ogaccountants.co.za
Author: Oxironix Web Design
Author URI: https://www.oxironix.co.za
Description: Custom WordPress theme for OG Accountants, a Johannesburg-based professional accounting practice. Built for Sean Moloko to showcase accounting, tax, audit, payroll and CIPC compliance services across South Africa.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary - built for OG Accountants
Text Domain: ogacc
*/

/* =========================================================
   0. RESET & BASE
========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
	--gold-light: #f0d264;
	--gold: #dbb447;
	--gold-dark: #c99a2e;
	--gold-deep: #8d761b;
	--olive-dark: #444415;
	--olive: #5e5a21;
	--olive-light: #7a722f;
	--navy: #1b2a41;
	--mint: #a5e8d3;
	--green: #81b673;
	--sage: #7a9a8c;
	--offwhite: #f5f6f8;
	--yellow: #f1cd41;
	--yellow2: #ccc14f;
	--ink: #262a1f;
	--white: #ffffff;

	--font-heading: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 10px 30px rgba(27, 42, 65, 0.10);
	--shadow-sm: 0 4px 14px rgba(27, 42, 65, 0.08);
	--container-w: 1180px;
}

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--white);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: var(--font-heading);
	color: var(--olive-dark);
	line-height: 1.2;
	margin: 0 0 0.6em;
	font-weight: 700;
}

p { margin: 0 0 1em; }

a { color: var(--gold-deep); text-decoration: none; }
a:hover { color: var(--olive-dark); }

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

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

.container {
	max-width: var(--container-w);
	margin: 0 auto;
	padding: 0 24px;
}

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

.skip-link {
	position: absolute;
	top: -100px;
	left: 0;
	background: var(--olive-dark);
	color: #fff;
	padding: 12px 20px;
	z-index: 10000;
}
.skip-link:focus { top: 0; }

.section { padding: 80px 0; }
.section--404 { padding: 140px 0; }

.eyebrow {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.8rem;
	color: var(--gold-deep);
	margin-bottom: 0.8em;
}
.eyebrow--light { color: var(--yellow); }

.section-title { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-lead { max-width: 680px; font-size: 1.05rem; color: #4b4b42; }

.grid { display: grid; gap: 30px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* =========================================================
   1. BUTTONS
========================================================= */
.btn-group { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 1.6em; }

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: var(--radius-sm);
	font-weight: 700;
	font-size: 0.95rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg, .btn .ogacc-icon { width: 18px; height: 18px; fill: currentColor; }

.btn--primary {
	background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
	color: var(--olive-dark);
	box-shadow: var(--shadow-sm);
}
.btn--primary:hover { color: var(--olive-dark); box-shadow: 0 10px 24px rgba(201, 154, 46, 0.35); }

.btn--outline {
	background: transparent;
	border-color: var(--gold-dark);
	color: var(--gold-deep);
}
.btn--outline:hover { background: var(--gold-dark); color: #fff; }

.btn--outline-light {
	background: transparent;
	border-color: rgba(255,255,255,0.6);
	color: #fff;
}
.btn--outline-light:hover { background: rgba(255,255,255,0.15); color: #fff; }

.btn--full { width: 100%; justify-content: center; }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	color: var(--gold-deep);
}
.link-arrow svg, .link-arrow .ogacc-icon { width: 20px; height: 20px; fill: currentColor; }
.link-arrow:hover { color: var(--olive-dark); }

/* =========================================================
   2. ICONS
========================================================= */
.ogacc-icon { width: 28px; height: 28px; fill: currentColor; flex-shrink: 0; }

/* =========================================================
   3. HEADER / NAV
========================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 999;
	background: var(--white);
	box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 24px;
}

.site-logo img { height: 88px; width: auto; display: block; }

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

.site-nav__list {
	display: flex;
	gap: 28px;
	align-items: center;
}

.site-nav__list a {
	color: var(--olive-dark);
	font-weight: 600;
}
.site-nav__list a:hover,
.site-nav__list a.is-active { color: var(--gold-deep); }

.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}
.nav-toggle__bar {
	width: 26px;
	height: 3px;
	background: var(--olive-dark);
	border-radius: 2px;
}

/* =========================================================
   4. HERO
========================================================= */
.hero {
	position: relative;
	color: #fff;
	overflow: hidden;
}

.hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-color: var(--navy);
}

.hero__inner {
	position: relative;
	padding: 130px 24px 100px;
	max-width: 760px;
}

.hero__title {
	color: #fff;
	font-size: clamp(2.1rem, 5vw, 3.4rem);
	margin-bottom: 0.3em;
}

.hero__tagline {
	font-family: var(--font-heading);
	font-style: italic;
	color: var(--yellow);
	font-size: 1.3rem;
	margin-bottom: 0.6em;
}

.hero__lead { font-size: 1.1rem; max-width: 620px; color: #eef0ea; }

/* =========================================================
   5. TRUST STRIP
========================================================= */
.trust-strip {
	background: var(--offwhite);
	padding: 34px 0;
	border-bottom: 1px solid #e7e6df;
}
.trust-strip__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	text-align: center;
}
.trust-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	color: var(--olive-dark);
}
.trust-item .ogacc-icon { color: var(--gold-deep); width: 30px; height: 30px; }

/* =========================================================
   6. SERVICE CARDS (home teaser)
========================================================= */
.services-teaser { background: var(--white); }

.services-grid { margin-top: 40px; }

.service-card {
	display: block;
	background: var(--offwhite);
	border-radius: var(--radius);
	padding: 34px 28px;
	box-shadow: var(--shadow-sm);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	color: var(--ink);
}
.service-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow);
	color: var(--ink);
}
.service-card__icon {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}
.service-card__icon .ogacc-icon { color: var(--olive-dark); width: 28px; height: 28px; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 0.4em; }
.service-card p { margin: 0; color: #504f45; }

/* =========================================================
   7. ABOUT SEAN
========================================================= */
.about-sean__grid {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	gap: 60px;
	align-items: center;
}
.about-sean__image img {
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	width: 100%;
	object-fit: cover;
}
.about-sean { background: var(--offwhite); }

/* =========================================================
   8. WHY US
========================================================= */
.why-us-grid { margin-top: 40px; }
.why-item {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}
.why-item__number {
	font-family: var(--font-heading);
	font-size: 2rem;
	color: var(--gold);
	font-weight: 700;
	line-height: 1;
}
.why-item h3 { font-size: 1.15rem; margin-bottom: 0.3em; }
.why-item p { margin: 0; color: #504f45; }

/* =========================================================
   9. CTA BANNER
========================================================= */
.cta-banner {
	background: linear-gradient(135deg, var(--olive-dark), var(--navy));
	color: #fff;
	padding: 70px 0;
	text-align: center;
}
.cta-banner__inner { max-width: 700px; margin: 0 auto; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #dfe3d8; }
.cta-banner .btn-group { justify-content: center; }

/* =========================================================
   10. FOOTER
========================================================= */
.site-footer {
	background: var(--olive-dark);
	color: #d9dccb;
}
.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 40px;
	padding: 60px 24px 40px;
}
.site-footer__logo {
	height: 78px;
	width: auto;
	margin-bottom: 16px;
	filter: brightness(0) invert(1);
}
.site-footer__about p { color: #c7cbb8; font-size: 0.95rem; }
.site-footer__tagline {
	font-family: var(--font-heading);
	font-style: italic;
	color: var(--yellow);
}
.footer-widget-title {
	color: #fff;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 18px;
}
.footer-links li,
.footer-contact li { margin-bottom: 10px; }
.footer-links a,
.footer-contact a { color: #c7cbb8; }
.footer-links a:hover,
.footer-contact a:hover { color: var(--yellow); }

.site-footer__bottom {
	border-top: 1px solid rgba(255,255,255,0.12);
}
.site-footer__bottom-inner {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	padding: 20px 24px;
	font-size: 0.85rem;
	color: #a9ad98;
}
.site-footer__bottom-inner a { color: #d9dccb; }
.site-footer__credit { white-space: nowrap; }
.oxironix-logo {
	display: inline-block; /* overrides the global `img { display: block; }` reset, which was forcing this onto its own line */
	height: 32px;
	max-height: 32px;
	width: auto;
	max-width: 50px;
	vertical-align: middle;
	margin-left: 6px;
	transition: opacity 0.15s ease;
}
.oxironix-logo:hover { opacity: 0.85; }

/* =========================================================
   11. PAGE BANNER (Services / Contact)
========================================================= */
.page-banner {
	position: relative;
	background-size: cover;
	background-position: center;
	color: #fff;
	background-color: var(--navy);
}
.page-banner__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(27,42,65,0.88), rgba(68,68,21,0.82));
}
.page-banner__inner {
	position: relative;
	padding: 90px 24px 70px;
	max-width: 760px;
}
.page-banner__inner h1 { color: #fff; margin-bottom: 0.3em; }
.page-banner__inner p { color: #eef0ea; font-size: 1.05rem; }
.page-banner--plain {
	background: linear-gradient(135deg, var(--olive-dark), var(--navy));
	padding: 10px 0;
}
.breadcrumb { color: var(--yellow); font-size: 0.9rem; margin-bottom: 1em; }
.breadcrumb a { color: #fff; text-decoration: underline; }

/* =========================================================
   12. PRICING NOTE
========================================================= */
.pricing-note { background: var(--offwhite); text-align: center; }
.pricing-note__inner { max-width: 760px; margin: 0 auto; }
.pricing-note__inner .btn-group { justify-content: center; }

/* =========================================================
   13. SERVICE BLOCKS (Services page)
========================================================= */
.service-block { padding: 70px 0; }
.service-block--alt { background: var(--offwhite); }
.service-block__inner {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 40px;
	align-items: start;
}
.service-block__icon-col { text-align: center; }
.service-block__number {
	font-family: var(--font-heading);
	font-size: 1.1rem;
	color: var(--gold-dark);
	font-weight: 700;
	margin-bottom: 10px;
}
.service-block__icon {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--mint), var(--green));
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
}
.service-block__icon .ogacc-icon { width: 42px; height: 42px; color: var(--olive-dark); }
.service-block__content h2 { margin-bottom: 0.4em; }

.check-list { margin: 20px 0; }
.check-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px dashed #d9d8cd;
}
.check-list .ogacc-icon { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; }

/* =========================================================
   14. CONTACT PAGE
========================================================= */
.instant-contact {
	background: var(--olive-dark);
	color: #fff;
	padding: 30px 0;
}
.instant-contact__inner { text-align: center; }
.instant-contact__label { color: var(--yellow); font-weight: 600; margin-bottom: 14px; }
.instant-contact__links {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 16px;
}
.instant-contact__links .ogacc-icon { width: 18px; height: 18px; }

.contact-main__grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 60px;
}

.contact-detail-list { margin-top: 30px; }
.contact-detail-list li {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	margin-bottom: 26px;
}
.contact-detail-list__icon {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--offwhite);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.contact-detail-list__icon .ogacc-icon { width: 22px; height: 22px; color: var(--gold-deep); }
.contact-detail-list h4 { margin: 0 0 4px; font-size: 1rem; }
.contact-detail-list p { margin: 0; }

.contact-form-wrap {
	background: var(--offwhite);
	padding: 40px;
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}
.contact-form-note { color: var(--gold-deep); font-weight: 600; }

.form-notice {
	padding: 14px 18px;
	border-radius: var(--radius-sm);
	margin-bottom: 20px;
	font-weight: 600;
}
.form-notice--success { background: #e2f4e9; color: #24632f; }
.form-notice--error { background: #fbe4e0; color: #8a2c1e; }

.form-row--2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
.form-field { margin-bottom: 20px; }
.form-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 0.9rem;
	color: var(--olive-dark);
}
.form-field input,
.form-field select,
.form-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #d5d4c8;
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 0.95rem;
	background: #fff;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
	outline: none;
	border-color: var(--gold-dark);
	box-shadow: 0 0 0 3px rgba(219, 180, 71, 0.25);
}

.form-privacy {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	color: #6b6a5d;
	margin-top: 14px;
}
.form-privacy .ogacc-icon { width: 16px; height: 16px; }

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

/* =========================================================
   15. GENERIC CONTENT (page.php / single.php)
========================================================= */
.generic-content { max-width: 780px; margin: 0 auto; }
.generic-content h2 { margin-top: 1.4em; }

/* =========================================================
   15b. DRAFT PLACEHOLDERS
   Clearly-flagged boxes for content still to be confirmed by the
   client (years of experience, professional body designation,
   physical address). Swap for plain text (and delete this class)
   once real content is confirmed.
========================================================= */
.placeholder-note {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px dashed var(--gold-dark);
	background: #fff8e6;
	color: #6b5b1f;
	padding: 10px 16px;
	border-radius: var(--radius-sm);
	font-size: 0.88rem;
	font-weight: 600;
	margin: 10px 0;
}
.placeholder-note::before {
	content: "\26A0";
	font-size: 1rem;
}
.about-sean__credentials { margin-top: 4px; }
.contact-detail-list .placeholder-note { margin-top: 6px; font-weight: 500; }

/* =========================================================
   16. RESPONSIVE
========================================================= */
@media (max-width: 900px) {
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
	.trust-strip__grid { grid-template-columns: repeat(2, 1fr); }
	.about-sean__grid,
	.contact-main__grid { grid-template-columns: 1fr; }
	.about-sean__image { max-width: 340px; margin: 0 auto; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.service-block__inner { grid-template-columns: 110px 1fr; }
}

@media (max-width: 768px) {
	.nav-toggle { display: flex; }

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		flex-direction: column;
		align-items: stretch;
		padding: 20px 24px 28px;
		box-shadow: 0 12px 20px rgba(0,0,0,0.08);
		display: none;
		gap: 16px;
	}
	.site-nav.is-open { display: flex; }
	.site-nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}
	.site-nav__cta { width: 100%; justify-content: center; }

	.grid--2,
	.grid--3 { grid-template-columns: 1fr; }

	.service-block__inner {
		grid-template-columns: 1fr;
		text-align: left;
	}
	.service-block__icon-col {
		display: flex;
		align-items: center;
		gap: 14px;
		text-align: left;
		margin-bottom: 10px;
	}
	.service-block__icon { margin: 0; width: 64px; height: 64px; }
	.service-block__icon .ogacc-icon { width: 30px; height: 30px; }

	.form-row--2 { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.hero__inner { padding: 100px 24px 70px; }
}
