/*
Theme Name: Cranbourne AC Cairo
Theme URI: https://apexstrategy.au/
Author: Apex Strategy
Author URI: https://apexstrategy.au/
Description: Optimised CSS for the Cranbourne AC Cairo/Chiro-style theme.
Version: 1.3.0
Text Domain: cranbourne-ac-cairo
*/

/* =========================================================
   01. Variables and base
   ========================================================= */

:root {
  --ac-navy: #003d5b;
  --ac-navy-dark: #063449;
  --ac-navy-deep: #052b3d;
  --ac-navy-black: #031e2c;
  --ac-blue: #006f98;
  --ac-sky: #eef9fd;
  --ac-yellow: #ffb81c;
  --ac-yellow-dark: #e7a20f;
  --ac-white: #ffffff;
  --ac-ink: #003d5b;
  --ac-text: #203044;
  --ac-muted: #617082;
  --ac-border: #dce8ef;
  --ac-shadow: 0 20px 50px rgba(0, 61, 91, .15);
  --ac-shadow-soft: 0 14px 34px rgba(0, 61, 91, .10);
  --ac-radius: 4px;
  --ac-container: 1180px;
  --ac-content: 980px;
  --ac-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ac-font);
  color: var(--ac-text);
  background: #fff;
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--ac-navy);
  text-decoration: none;
}

a:hover {
  color: var(--ac-blue);
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin-top: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-main {
  overflow: hidden;
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-title-large,
.inner-hero h1,
.section-heading-center,
.reviews-heading,
.faq-heading,
.articles-heading,
.final-cta-heading,
.footer-heading {
  font-family: var(--ac-font);
  color: var(--ac-ink);
  line-height: 1.12;
  font-weight: 800;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
}

h3 {
  font-size: 1.45rem;
}

h4 {
  font-size: 1.2rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: .9rem;
}

/* =========================================================
   02. Buttons
   ========================================================= */

.btn,
.wp-block-button__link,
button.btn,
.ac-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-size: .88rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.btn:hover,
.wp-block-button__link:hover,
.ac-form button:hover {
  transform: translateY(-1px);
}

.btn-primary,
.wp-block-button__link,
.ac-form button {
  background: var(--ac-yellow);
  color: var(--ac-navy-deep);
  box-shadow: 0 12px 24px rgba(255, 184, 28, .22);
}

.btn-primary:hover,
.wp-block-button__link:hover,
.ac-form button:hover {
  background: var(--ac-yellow-dark);
  color: var(--ac-navy-deep);
}

.btn-outline {
  background: transparent;
  border-color: var(--ac-navy);
  color: var(--ac-navy);
}

.btn-outline:hover {
  background: var(--ac-navy);
  color: #fff;
}

/* =========================================================
   03. Header and navigation
   Kept deliberately close to the working version.
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--ac-navy-dark);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

body.admin-bar .site-header {
  top: 32px;
	padding: 6px;
}

.nav {
  width: min(var(--ac-container), calc(100% - 48px));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.nav-left {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 28px;
}

.site-logo,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-logo img,
.custom-logo-link img {
  width: min(310px, 34vw);
  max-height: 72px;
  object-fit: contain;
}

.mobile-nav {
  margin-left: auto;
  display: block;
}

.main-menu {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.main-menu li {
  position: relative;
  margin: 0;
}

.main-menu a {
  display: block;
  color: #fff;
  font-size: .98rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 30px 0;
}

.main-menu a:hover,
.main-menu .current-menu-item > a,
.main-menu .current-menu-ancestor > a {
  color: var(--ac-yellow);
}

.main-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: -22px;
  min-width: 80px;
  padding: 12px;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--ac-shadow);
  transition: all .18s ease;
}

.main-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-menu .sub-menu a {
  color: var(--ac-ink);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: .92rem;
}

.main-menu .sub-menu a:hover {
  background: var(--ac-sky);
  color: var(--ac-navy);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

.nav-phone {
  display: none !important;
}

.nav-cta {
  min-width: 170px;
  white-space: nowrap;
  font-size: 0;
}

.nav-cta::before {
  content: '0418 543 420';
  font-size: .92rem;
  line-height: 1;
}

/* Mobile burger alignment fix */
.burger {
  display: none;
  width: 46px;
  height: 42px;
  border: 2px solid rgba(255,255,255,.22);
  border-radius: 12px;
  background: rgba(255,255,255,.10);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  line-height: 0;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.submenu-toggle {
  display: none;
}

/* =========================================================
   04. Hero
   ========================================================= */

.hero {
  min-height: 560px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.78) 44%, rgba(255,255,255,.18) 74%, rgba(255,255,255,.05) 100%),
    url('/wp-content/themes/cranbourne-ac-cairo/assets/images/family-business-work-van.jpg') center right / cover no-repeat;
  border-bottom: 1px solid var(--ac-border);
}

.hero-inner {
  width: min(var(--ac-container), calc(100% - 96px));
  margin: 0 auto;
  padding: 76px 0;
}

.hero-eyebrow,
.inner-hero-eyebrow,
.footer-heading,
.award-copy .inner-hero-eyebrow {
  color: var(--ac-navy);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-title-block {
  margin: 0 0 24px;
}

.hero-title-large {
  font-size: clamp(2.85rem, 5vw, 4.8rem);
}

.hero-lead {
  max-width: 560px;
  margin: 0 0 28px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ac-ink);
}

.hero-logos,
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 28px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 17px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--ac-navy);
  font-size: .84rem;
  font-weight: 800;
  box-shadow: var(--ac-shadow-soft);
}

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

.animate-fade-left {
  animation: fadeLeft .75s ease both;
}

.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* =========================================================
   05. Intro and content sections
   ========================================================= */

.inner-hero {
  background: linear-gradient(180deg, #f5fbff 0%, #fff 100%);
  border-bottom: 1px solid var(--ac-border);
}

.inner-hero-inner {
  width: min(var(--ac-container), calc(100% - 96px));
  margin: 0 auto;
  padding: 62px 0;
}

.inner-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.1rem, 3.45vw, 3.65rem);
}

.inner-hero p {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--ac-muted);
}

.page-hero .inner-hero-inner {
  padding: 74px 0;
}

.inner-main-section {
  padding: 78px 0 88px;
}

.inner-main-inner {
  width: min(var(--ac-container), calc(100% - 96px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 70px;
  align-items: start;
}

.inner-main-inner.no-sidebar {
  grid-template-columns: 1fr;
}

.inner-main-left {
  min-width: 0;
}

.inner-main-left p + p {
  margin-top: .2rem;
}

.inner-main-right {
  background: #f5fbff;
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius);
  box-shadow: var(--ac-shadow-soft);
  padding: 28px;
}

.inner-main-right h3 {
  margin: 0 0 18px;
  font-size: 1.38rem;
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.why-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  font-weight: 700;
  line-height: 1.45;
}

.why-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e6f5fa;
  color: var(--ac-navy);
  font-weight: 900;
  font-size: .8rem;
}

.post-content {
  max-width: 850px;
}

.post-content h2,
.post-content h3 {
  margin-top: 2.2rem;
}

.post-content img {
  border-radius: 14px;
}

.full-width-content {
  max-width: var(--ac-content);
  margin: 0 auto;
}

/* =========================================================
   06. Cards and shared grids
   ========================================================= */

.team-band,
.services-band,
.articles-section,
.reviews-section,
.brands-band,
.contact-band {
  padding: 88px 0;
}

.team-inner,
.services-inner,
.articles-inner,
.reviews-inner,
.brands-inner,
.contact-inner,
.faq-inner {
  width: min(var(--ac-container), calc(100% - 96px));
  margin: 0 auto;
}

.section-heading-center,
.reviews-heading,
.faq-heading,
.articles-heading {
  margin: 0 auto 14px;
  text-align: center;
  font-size: clamp(1.85rem, 2.6vw, 2.75rem);
}

.section-subheading-center,
.reviews-subheading,
.articles-subheading {
  max-width: 650px;
  margin: 0 auto 40px;
  text-align: center;
  color: var(--ac-muted);
}

.team-grid,
.services-grid,
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

.team-card,
.service-card,
.post-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
  background: #fff;
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius);
  overflow: hidden;
  box-shadow: var(--ac-shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease;
}

.team-card:hover,
.service-card:hover,
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ac-shadow);
}

.post-image {
  display: block;
  width: 100%;
  height: 250px;
  margin: 0;
  padding: 0;
  line-height: 0;
  background: #eef5f8;
  overflow: hidden;
  border-radius: 0;
}

.post-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  filter: none;
  -webkit-filter: none;
  transition: transform .3s ease;
}

.post-card:hover .post-image img,
.service-card:hover .post-image img {
  transform: scale(1.03);
}

.post-body {
  padding: 34px 36px 36px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.post-title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.post-title a {
  color: var(--ac-ink);
}

.post-excerpt {
  color: var(--ac-text);
  margin: 0 0 20px;
}

.post-date {
  margin: 0 0 14px;
  color: var(--ac-muted);
  font-weight: 800;
}

.post-link {
  margin-top: auto;
  color: var(--ac-yellow-dark);
  font-weight: 800;
}

/* =========================================================
   07. History
   ========================================================= */

.history-band {
  padding: 92px 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(17,168,213,.20), transparent 36%),
    linear-gradient(135deg, var(--ac-navy-black) 0%, var(--ac-navy-dark) 48%, var(--ac-navy) 100%);
  color: #fff;
}

.history-inner {
  width: min(var(--ac-container), calc(100% - 96px));
  margin: 0 auto;
}

.history-content {
  display: grid;
  grid-template-columns: minmax(300px, 500px) minmax(0, 1fr);
  gap: 64px;
  align-items: flex-start;
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.history-side-image,
.aca-logo {
  width: 100%;
  max-width: 500px;
  border-radius: var(--ac-radius);
  box-shadow: 0 25px 60px rgba(0,0,0,.26);
}

.history-copy {
  min-width: 0;
  max-width: 600px;
}

.history-band .inner-hero-eyebrow,
.history-band h2,
.history-band p,
.history-band a:not(.btn) {
  color: #fff;
}

.history-band .inner-hero-eyebrow {
  color: var(--ac-yellow);
}

.history-band h2 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 3vw, 3.35rem);
}

.history-band p {
  color: rgba(255,255,255,.88);
}

.award-band {
  margin: 30px 0 0;
}

.award-band--compact {
  margin-top: 30px;
  padding: 0;
  background: transparent;
}

.award-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  column-gap: 24px;
  align-items: center;
  padding: 22px;
  border-radius: var(--ac-radius);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.20);
}

.award-grid > p {
  display: none;
}

.award-copy p {
  margin: 0;
}

.award-badge img {
  width: 150px;
  border-radius: 4px;
  background: #fff;
  padding: 8px;
}

.award-copy h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.award-copy p {
  margin: 0;
}

.history-cta {
  margin-top: 30px;
}

/* =========================================================
   08. Reviews and brands
   ========================================================= */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.review-card {
  padding: 34px;
  border-radius: var(--ac-radius);
  border: 1px solid var(--ac-border);
  box-shadow: var(--ac-shadow-soft);
  background: #fff;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ac-navy);
  color: #fff;
  font-weight: 800;
}

.review-name {
  font-weight: 800;
}

.review-location {
  color: var(--ac-muted);
  font-size: .92rem;
}

.review-stars {
  color: var(--ac-yellow);
  letter-spacing: .08em;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.review-text {
  margin-bottom: 0;
}

.brands-band {
  padding-top: 34px;
  padding-bottom: 86px;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.brand-card {
  padding: 24px;
  border: 1px solid var(--ac-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--ac-shadow-soft);
  display: grid;
  place-items: center;
  min-height: 108px;
  text-align: center;
}

.brand-card img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
}

.brand-card--text {
  color: var(--ac-navy);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.025em;
}

/* =========================================================
   09. FAQ
   ========================================================= */

.faq-band {
  padding: 78px 0;
  background: var(--ac-navy-dark);
  color: #fff;
}

.faq-band .faq-heading {
  color: #fff;
}

.faq-accordion {
  max-width: 860px;
  margin: 34px auto 0;
  display: grid;
  gap: 14px;
}

.faq-item {
  border-radius: 14px;
  background: #fff;
  color: var(--ac-ink);
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}

.faq-question {
  width: 100%;
  min-height: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 20px 26px;
  border: 0;
  background: transparent;
  color: var(--ac-ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.faq-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--ac-navy);
  font-size: 1.35rem;
  line-height: 1;
  transition: transform .18s ease;
}

.faq-answer {
  display: none;
  padding: 0 26px 22px;
  color: var(--ac-text);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* =========================================================
   10. Contact, footer and widgets
   ========================================================= */

.contact-band {
  background: #fff;
}

.contact-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 980px;
}

.contact-card {
  padding: 40px;
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius);
  background: #f7fcff;
  box-shadow: var(--ac-shadow-soft);
}

.contact-card h2 {
  font-size: clamp(1.9rem, 2.6vw, 2.7rem);
  margin: 0 0 20px;
}

.contact-card h3 {
  margin: 0 0 20px;
  font-size: 1.55rem;
}

.contact-line strong {
  color: var(--ac-ink);
}

.contact-line a {
  font-weight: 800;
}

.ac-form {
  display: grid;
  gap: 15px;
}

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

.ac-form input,
.ac-form select,
.ac-form textarea,
.search-field {
  width: 100%;
  border: 1px solid var(--ac-border);
  border-radius: 12px;
  background: #fff;
  padding: 13px 14px;
  color: var(--ac-ink);
  outline: none;
}

.ac-form input:focus,
.ac-form select:focus,
.ac-form textarea:focus {
  border-color: var(--ac-navy);
  box-shadow: 0 0 0 3px rgba(0, 61, 91, .1);
}

.form-message {
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 800;
}

.form-message.success {
  background: #e8f8ed;
  color: #175b2e;
}

.form-message.error {
  background: #fff0f0;
  color: #8b1d1d;
}


.final-cta-band {
  padding: 78px 0;
  background: #fff;
  border-top: 1px solid var(--ac-border);
}

.final-cta-inner {
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
  text-align: center;
}

.final-cta-heading {
  margin: 0 0 16px;
  font-size: clamp(1.95rem, 2.6vw, 2.85rem);
}

.final-cta-text {
  max-width: 690px;
  margin: 0 auto 30px;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 20px;
}

.final-cta-note {
  margin: 0;
  color: var(--ac-muted);
}

.footer {
  background: linear-gradient(135deg, var(--ac-navy-black), var(--ac-navy-dark));
  color: rgba(255,255,255,.88);
  padding: 70px 0 0;
}

.footer-inner {
  width: min(var(--ac-container), calc(100% - 96px));
  margin: 0 auto;
}

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

.footer-heading,
.footer .widget-title {
  color: var(--ac-yellow);
  margin: 0 0 18px;
  font-size: .9rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.footer a {
  color: rgba(255,255,255,.92);
  font-weight: 700;
}

.footer a:hover {
  color: var(--ac-yellow);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.footer p {
  margin-bottom: 12px;
}

.footer-bottom {
  margin-top: 54px;
  padding: 22px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.78);
  font-size: .9rem;
}

.footer .menu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 24px;
}

.footer .menu .sub-menu {
  margin-top: 8px;
  padding-left: 12px;
  display: grid;
  gap: 6px;
}

.footer .menu a {
  font-size: .92rem;
}

.widget {
  margin: 0 0 28px;
}

.widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  margin: 0 0 16px;
  font-size: 1.32rem;
}

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

.widget a {
  font-weight: 800;
}

.search-submit {
  margin-top: 10px;
}

.single-featured-image {
  margin-bottom: 32px;
}

.pagination-wrap {
  margin-top: 44px;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.has-text-align-center {
  text-align: center;
}

.alignwide {
  max-width: var(--ac-container);
}

.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
}

/* =========================================================
   11. Responsive
   ========================================================= */

@media (max-width: 1080px) {
  .nav {
    width: min(var(--ac-container), calc(100% - 32px));
    min-height: 76px;
    gap: 16px;
  }

  .nav-left {
    gap: 18px;
  }

  .site-logo img,
  .custom-logo-link img {
    width: min(260px, 34vw);
  }

  .main-menu {
    gap: 20px;
  }

  .hero-inner,
  .inner-hero-inner,
  .inner-main-inner,
  .team-inner,
  .services-inner,
  .articles-inner,
  .reviews-inner,
  .brands-inner,
  .contact-inner,
  .faq-inner,
  .history-inner,
  .footer-inner {
    width: min(var(--ac-container), calc(100% - 48px));
  }
}

@media (max-width: 900px) {
  body.admin-bar .site-header {
    top: 0;
  }

  .site-header {
    position: sticky;
    top: 0;
  }

  .nav {
    position: relative;
    min-height: 78px;
  }

  .nav-left {
    flex: 1 1 auto;
    min-width: 0;
  }

  .burger {
    display: flex;
    margin-left: auto;
    flex: 0 0 auto;
  }

  .nav-actions {
    display: flex;
    flex: 0 0 auto;
  }

  .nav-actions .nav-cta {
    min-width: 148px;
    min-height: 44px;
    padding-inline: 18px;
  }

  .nav-cta::before {
    font-size: .86rem;
  }

  .mobile-nav {
    display: none !important;
    position: absolute;
    top: 100%;
    left: -16px;
    right: -16px;
    margin-left: 0;
    background: var(--ac-navy-black);
    border-top: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 20px 40px rgba(0,0,0,.24);
  }

  .mobile-nav.open,
  body.menu-open .mobile-nav {
    display: block !important;
  }

  .mobile-nav .main-menu {
    display: block;
    padding: 12px 0;
  }

  .mobile-nav .main-menu li {
    border-bottom: 1px solid rgba(255,255,255,.1);
  }

  .mobile-nav .main-menu li:last-child {
    border-bottom: 0;
  }

  .mobile-nav .main-menu a {
    padding: 15px 18px;
    color: #fff;
  }

  .mobile-nav .main-menu .sub-menu {
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    box-shadow: none;
    background: rgba(255,255,255,.08);
    padding: 0;
    border-radius: 0;
  }

  .mobile-nav .main-menu .sub-menu a {
    color: #fff;
    padding-left: 34px;
  }

  .mobile-nav .menu-item-has-children.open > .sub-menu {
    display: block;
  }

  .submenu-toggle {
    display: grid;
    place-items: center;
    position: absolute;
    right: 10px;
    top: 8px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-weight: 800;
  }

  .hero {
    min-height: auto;
    background-position: 58% center;
  }

  .hero-inner {
    padding: 64px 0;
  }

  .inner-main-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .history-content {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .history-side-image {
    max-width: 560px;
  }

  .team-grid,
  .services-grid,
  .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .post-image {
    height: 220px;
  }

  .post-body {
    padding: 26px 24px 30px;
  }

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

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

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

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

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .nav {
    width: calc(100% - 24px);
    min-height: 72px;
    gap: 10px;
  }

  .site-logo img,
  .custom-logo-link img {
    width: min(220px, 52vw);
  }

  .burger {
    width: 42px;
    height: 40px;
  }

  .nav-actions .nav-cta {
    min-width: 128px;
    min-height: 40px;
    padding: 10px 12px;
  }

  .nav-cta::before {
    font-size: .78rem;
  }

  .hero-inner,
  .inner-hero-inner,
  .inner-main-inner,
  .team-inner,
  .services-inner,
  .articles-inner,
  .reviews-inner,
  .brands-inner,
  .contact-inner,
  .faq-inner,
  .history-inner,
  .footer-inner {
    width: calc(100% - 32px);
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.86)),
      url('/wp-content/themes/cranbourne-ac-cairo/assets/images/family-business-work-van.jpg') center / cover no-repeat;
  }

  .hero-inner {
    padding: 50px 0;
  }

  .hero-title-large {
    font-size: clamp(2.25rem, 10vw, 3.2rem);
    letter-spacing: -.025em;
  }

  .hero-actions,
  .final-cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .inner-hero-inner {
    padding: 48px 0;
  }

  .inner-hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.55rem);
  }

  .inner-main-section,
  .team-band,
  .services-band,
  .articles-section,
  .reviews-section,
  .contact-band,
  .faq-band,
  .history-band {
    padding: 58px 0;
  }

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

  .post-image {
    height: 130px;
  }

  .post-body,
  .review-card,
  .contact-card {
    padding: 18px 16px 20px;
  }

  .post-title {
    font-size: 18px;
    line-height: 1.15;
    margin-bottom: 10px;
  }

  .post-excerpt {
    font-size: 14px;
    line-height: 1.45;
  }

  .post-link {
    font-size: 13px;
  }

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

  .brand-card {
    min-height: 90px;
    padding: 18px;
  }

  .brand-card--text {
    font-size: 1.1rem;
  }

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

  .award-badge img {
    width: 160px;
  }

  .faq-band {
    padding: 56px 0;
  }

  .faq-accordion {
    gap: 12px;
  }

  .faq-question {
    padding: 18px 20px;
    font-size: .95rem;
  }

  .faq-answer {
    padding: 0 20px 20px;
  }

  .final-cta-band {
    padding: 58px 0;
  }

  .footer {
    padding-top: 52px;
  }

  .footer-grid,
  .footer .menu {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    margin-top: 36px;
  }
}

@media (max-width: 420px) {
  .site-logo img,
  .custom-logo-link img {
    width: min(190px, 49vw);
  }

  .nav-actions .nav-cta {
    min-width: 118px;
  }

  .nav-cta::before {
    content: 'Call';
    font-size: .8rem;
  }
}

/* =========================================================
   TEMP MENU DROPDOWN PATCH - UPDATED
   Purpose:
   - Restore desktop second-level dropdowns
   - Make dropdown dark blue with white text
   - Restore yellow underline style
   - Stop desktop menu disappearing before cursor reaches dropdown
   - Remove mobile hover/rollover effects
   TODO:
   Merge cleanly into the main navigation CSS during a later
   redundancy/cleanup pass.
   ========================================================= */


/* ---------- Desktop dropdown behaviour ---------- */

@media (min-width: 901px) {

  .main-menu,
  .main-menu ul,
  .main-menu li {
    list-style: none;
  }

  .main-menu li {
    position: relative;
  }

  .main-menu > li > a {
    position: relative;
    color: #ffffff;
  }

  /* Top-level yellow underline */
  .main-menu > li > a::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    height: 3px;
    background: var(--ac-yellow);
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .18s ease;
  }

  .main-menu > li:hover > a,
  .main-menu > li:focus-within > a,
  .main-menu > .current-menu-item > a,
  .main-menu > .current-menu-ancestor > a {
    color: #ffffff;
  }

  .main-menu > li:hover > a::before,
  .main-menu > li:focus-within > a::before,
  .main-menu > .current-menu-item > a::before,
  .main-menu > .current-menu-ancestor > a::before {
    transform: scaleX(1);
  }

  /* Remove previous arrow indicators if old patch added them */
  .main-menu .menu-item-has-children > a::after {
    content: none !important;
  }

  /* Invisible hover bridge so the dropdown does not disappear */
  .main-menu > li.menu-item-has-children::after {
    content: "";
    position: absolute;
    left: -28px;
    right: -28px;
    top: 100%;
    height: 22px;
    z-index: 9998;
    background: transparent;
  }

  .main-menu .sub-menu {
    position: absolute;
    top: calc(100% - 8px);
    left: 50%;
    z-index: 9999;
    display: block;
    width: max-content;
    max-width: 360px;
    margin: 0;
    padding: 12px 0;
    background: var(--ac-navy-dark);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 4px;
    box-shadow: 0 22px 46px rgba(0,0,0,.26);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 10px);
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
  }

  .main-menu li:hover > .sub-menu,
  .main-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  .main-menu .sub-menu li {
    position: relative;
    width: 100%;
  }

  .main-menu .sub-menu a {
    position: relative;
    display: block;
    width: 100%;
    padding: 13px 24px 14px;
    color: #ffffff;
    background: transparent !important;
    border-radius: 0;
    font-size: .96rem;
    font-weight: 800;
    line-height: 1.25;
    white-space: normal;
  }

  .main-menu .sub-menu a::before {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 8px;
    height: 2px;
    background: var(--ac-yellow);
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .18s ease;
  }

  .main-menu .sub-menu a:hover,
  .main-menu .sub-menu li:focus-within > a {
    color: #ffffff !important;
    background: transparent !important;
  }

  .main-menu .sub-menu a:hover::before,
  .main-menu .sub-menu li:focus-within > a::before {
    transform: scaleX(1);
  }

  /* Second-level dropdown */
  .main-menu .sub-menu .sub-menu {
    top: -12px;
    left: calc(100% - 4px);
    transform: translate(10px, 0);
  }

  .main-menu .sub-menu li:hover > .sub-menu,
  .main-menu .sub-menu li:focus-within > .sub-menu {
    transform: translate(0, 0);
  }

  /* Small invisible bridge for second-level flyouts */
  .main-menu .sub-menu li.menu-item-has-children::after {
    content: "";
    position: absolute;
    top: 0;
    left: 100%;
    width: 14px;
    height: 100%;
    background: transparent;
  }
}


/* ---------- Mobile dropdown behaviour ---------- */

@media (max-width: 900px) {

  .mobile-nav {
    overflow: visible;
  }

  .mobile-nav .main-menu {
    display: block;
    width: 100%;
    margin: 0;
    padding: 12px 0;
  }

  .mobile-nav .main-menu li {
    position: relative;
    display: block;
    width: 100%;
  }

  .mobile-nav .main-menu a {
    display: block;
    width: 100%;
    padding: 15px 54px 15px 18px;
    color: #ffffff !important;
    background: transparent !important;
    font-weight: 800;
    line-height: 1.35;
  }

  /* Remove mobile rollover effect */
  .mobile-nav .main-menu a:hover,
  .mobile-nav .main-menu a:focus,
  .mobile-nav .main-menu .current-menu-item > a,
  .mobile-nav .main-menu .current-menu-ancestor > a {
    color: #ffffff !important;
    background: transparent !important;
  }

  .mobile-nav .main-menu a::before,
  .mobile-nav .main-menu a::after {
    content: none !important;
  }

  .mobile-nav .main-menu .sub-menu {
    display: none;
    position: static;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    background: rgba(0,0,0,.18) !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .mobile-nav .main-menu .sub-menu a {
    padding-left: 34px;
    color: rgba(255,255,255,.94) !important;
    background: transparent !important;
    font-size: .94rem;
  }

  .mobile-nav .main-menu .sub-menu .sub-menu {
    background: rgba(0,0,0,.22) !important;
  }

  .mobile-nav .main-menu .sub-menu .sub-menu a {
    padding-left: 52px;
    color: rgba(255,255,255,.88) !important;
    background: transparent !important;
    font-size: .9rem;
  }

  .mobile-nav .main-menu .menu-item-has-children.open > .sub-menu {
    display: block;
  }

  .mobile-nav .main-menu .menu-item-has-children:focus-within > .sub-menu {
    display: block;
  }

  .submenu-toggle {
    display: grid;
    place-items: center;
    position: absolute;
    top: 7px;
    right: 10px;
    z-index: 3;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: #ffffff;
    font-size: 0;
    line-height: 1;
    cursor: pointer;
  }

  .submenu-toggle:hover,
  .submenu-toggle:focus {
    background: rgba(255,255,255,.08);
    color: #ffffff;
  }

  .submenu-toggle::before {
    content: "+";
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
  }

  .menu-item-has-children.open > .submenu-toggle::before {
    content: "−";
  }

  .mobile-nav .main-menu .sub-menu .submenu-toggle {
    top: 5px;
    right: 10px;
    width: 34px;
    height: 34px;
  }
}

/* =========================================================
   TEMP OVERRIDE PATCH - HERO + SIDEBAR CLEANUP
   Purpose:
   - Update homepage hero image/overlay
   - Make hero text white
   - Make hero outline button yellow
   - Convert sidebar/card panels to dark blue with white text
   - Keep form fields readable
   - Avoid sticky behaviour on long form sidebars
   TODO:
   Merge into the main CSS during a later redundancy run-through.
   ========================================================= */


/* ---------- Hero image and text patch ---------- */

.hero {
  background:
    linear-gradient(
      90deg,
      rgba(3, 30, 44, 0.96) 0%,
      rgba(6, 52, 73, 0.88) 42%,
      rgba(0, 61, 91, 0.62) 72%,
      rgba(0, 61, 91, 0.45) 100%
    ),
    url('https://ac.apexstrategy.au/wp-content/uploads/2026/06/air-conditioning-technician-hero.jpg') center right / cover no-repeat !important;
  background-color: var(--ac-navy-dark) !important;
}

.hero-eyebrow {
  color: var(--ac-yellow) !important;
}

.hero-title-large,
.hero-lead {
  color: #ffffff !important;
}

.hero-pill {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: none !important;
}

.hero .btn-outline {
  border-color: var(--ac-yellow) !important;
  color: var(--ac-yellow) !important;
  background: transparent !important;
}

.hero .btn-outline:hover {
  background: var(--ac-yellow) !important;
  border-color: var(--ac-yellow) !important;
  color: var(--ac-navy-deep) !important;
}

@media (max-width: 640px) {
  .hero {
    background:
      linear-gradient(
        180deg,
        rgba(3, 30, 44, 0.94) 0%,
        rgba(6, 52, 73, 0.86) 58%,
        rgba(0, 61, 91, 0.72) 100%
      ),
      url('https://ac.apexstrategy.au/wp-content/uploads/2026/06/air-conditioning-technician-hero.jpg') center right / cover no-repeat !important;
  }
}


/* ---------- Sidebar/card dark-blue patch ---------- */

:is(.inner-main-right, .sidebar, .page-sidebar, .site-sidebar) {
  background: var(--ac-navy-dark) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18) !important;
}

/* Make normal sidebar text inherit white without listing every label/span/heading */
:is(.inner-main-right, .sidebar, .page-sidebar, .site-sidebar) :where(h1, h2, h3, h4, h5, h6, p, li, span, label, legend, strong, em, small, .widget-title) {
  color: inherit !important;
}

/* Sidebar links */
:is(.inner-main-right, .sidebar, .page-sidebar, .site-sidebar) a {
  color: #ffffff !important;
  text-decoration-color: var(--ac-yellow) !important;
}

:is(.inner-main-right, .sidebar, .page-sidebar, .site-sidebar) a:hover {
  color: var(--ac-yellow) !important;
}


/* ---------- Sidebar form readability ---------- */

/* Keep text fields readable on white backgrounds */
:is(.inner-main-right, .sidebar, .page-sidebar, .site-sidebar) input:not([type="submit"]):not([type="button"]):not([type="reset"]),
:is(.inner-main-right, .sidebar, .page-sidebar, .site-sidebar) textarea,
:is(.inner-main-right, .sidebar, .page-sidebar, .site-sidebar) select {
  color: var(--ac-ink) !important;
  background: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
}

/* =========================================================
   TEMP BLOCKQUOTE CALLOUT PATCH
   Purpose: style normal blockquotes as dark AC callout boxes.
   TODO: merge into main content CSS during later redundancy run-through.
   ========================================================= */

.post-content blockquote {
  margin: 34px 0;
  padding: 34px 38px;
  background: var(--ac-navy-dark);
  color: #ffffff;
  border-left: 8px solid var(--ac-yellow);
  box-shadow: var(--ac-shadow-soft);
}

.post-content blockquote * {
  color: inherit;
}

.post-content blockquote a {
  color: var(--ac-yellow);
}

/* =========================================================
   TEMP INTERNAL PAGE HERO PATCH
   Purpose: use featured image as internal page banner background.
   TODO: merge into main hero CSS during later redundancy run-through.
   ========================================================= */

.inner-hero.page-hero {
  background:
    linear-gradient(
      90deg,
      rgba(3, 30, 44, 0.96) 0%,
      rgba(6, 52, 73, 0.88) 45%,
      rgba(0, 61, 91, 0.55) 100%
    ),
    var(--page-hero-image) top right / cover no-repeat !important;
  background-color: var(--ac-navy-dark) !important;
  border-bottom: 0 !important;
}

.inner-hero.page-hero .inner-hero-eyebrow {
  color: var(--ac-yellow) !important;
}

.inner-hero.page-hero h1 {
  color: #ffffff !important;
}

/* =========================================================
   TEMP HERO TICK LIST PATCH
   Purpose: replace hero pills with simple tick list.
   TODO: merge into main hero CSS during later redundancy run-through.
   ========================================================= */

.hero-tick-list {
  display: grid;
  gap: 12px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.hero-tick-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.hero-tick-list li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #11a8d5;
  color: var(--ac-navy-deep);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

/* ---------- Mobile menu scrolling fix ---------- */

@media (max-width: 900px) {
  .mobile-nav.open,
  body.menu-open .mobile-nav {
    display: block !important;
    max-height: calc(100dvh - 78px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  body.menu-open {
    overflow: hidden;
  }

  .mobile-nav .main-menu {
    padding-bottom: 40px !important;
  }
}