/*
Theme Name: Bama Disability Solutions
Theme URI: https://bamadisability.com.au
Author: Bama Disability Solutions
Description: Accessible, responsive WordPress theme for Bama Disability Solutions.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: bama-disability-solutions
*/

:root {
  --ink: #3e0a20;
  --muted: #65747d;
  --teal: #009fc2;
  --teal-dark: #007f9d;
  --burgundy: #4c001e;
  --mint: #dcf6fb;
  --cream: #fbf7f8;
  --white: #ffffff;
  --line: #dbe7e3;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }

.site-header {
  height: 86px; max-width: 1180px; margin: auto; padding: 0 30px;
  display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 10;
}
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: 210px; height: auto; }
nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 650; }
header.site-header { max-width: none; padding-left: max(30px, calc((100vw - 1120px)/2)); padding-right: max(30px, calc((100vw - 1120px)/2)); background: #25000f; color: white; }
header .brand { padding: 7px 0; }
header .brand img { width: 190px; }
nav a:not(.nav-cta):hover { color: #58d8ed; }
.nav-cta { background: var(--teal); color: white; padding: 13px 20px; border-radius: 999px; }

.hero {
  min-height: 670px; display: grid; grid-template-columns: 1.08fr .92fr; overflow: hidden;
  background: linear-gradient(110deg, #fbf7f8 0%, #fbf7f8 53%, #dcf6fb 53%);
}
.hero-content { padding: 100px max(30px, calc((100vw - 1120px)/2)); padding-right: 65px; align-self: center; }
.eyebrow, .section-label { color: var(--teal); text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 800; margin: 0 0 22px; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(54px, 5.2vw, 78px); line-height: .98; font-weight: 500; letter-spacing: -.04em; }
h1 em { color: var(--burgundy); font-weight: 500; }
.hero-lead { max-width: 620px; font-size: 19px; line-height: 1.7; color: var(--muted); margin: 28px 0 32px; }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.button { border: 0; display: inline-flex; justify-content: center; align-items: center; gap: 18px; padding: 16px 23px; border-radius: 9px; font-weight: 750; font-size: 15px; cursor: pointer; }
.button-primary { background: var(--burgundy); color: white; box-shadow: 0 10px 25px #4c001e24; }
.button-primary:hover { background: #340015; }
.nav-cta:hover { background: var(--teal-dark); }
.text-link { font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.trust-row { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: 12px; font-weight: 700; }
.trust-row span::first-letter { color: var(--teal); }

.hero-visual { position: relative; min-height: 670px; overflow: hidden; }
.hero-visual.has-banner { background: #dceff2; }
.hero-banner-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.sun { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: #9cdae7; left: 50%; top: 49%; transform: translate(-50%, -50%); opacity: .9; }
.portrait { position: absolute; z-index: 2; left: 35%; bottom: 2%; width: 220px; height: 470px; }
.portrait-head { width: 118px; height: 135px; border-radius: 48% 48% 45% 46%; background: #97684f; margin: 0 auto; position: relative; box-shadow: inset 0 24px 0 #3f322c; }
.portrait-head::after { content: ""; position: absolute; width: 68px; height: 14px; left: 25px; top: 78px; border-bottom: 3px solid #4c3028; border-radius: 50%; }
.portrait-body { height: 360px; margin-top: -12px; background: var(--burgundy); border-radius: 80px 80px 18px 18px; clip-path: polygon(15% 0, 85% 0, 100% 100%, 0 100%); }
.portrait-two { left: 8%; bottom: -9%; transform: scale(.82); }
.portrait-two .portrait-head { background: #d4a17d; box-shadow: inset 0 26px 0 #e9e3d5; }
.portrait-two .portrait-body { background: #087f9b; }
.visual-card { position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px; background: #ffffffee; border-radius: 14px; box-shadow: 0 15px 40px #174f4722; padding: 14px 16px; min-width: 205px; }
.visual-card strong, .visual-card small { display: block; }
.visual-card strong { font-size: 13px; }
.visual-card small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.mini-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--teal); font-size: 24px; }
.card-one { top: 22%; left: 4%; }
.card-two { right: 4%; bottom: 19%; }
.pulse { width: 34px; height: 34px; border: 8px solid #d6eee6; border-radius: 50%; background: var(--teal); }
.leaf { position: absolute; font-size: 35px; color: var(--teal); z-index: 3; }
.leaf-one { right: 8%; top: 15%; }.leaf-two { left: 8%; bottom: 12%; color: #f1b65b; }

.intro, .services, .stories, .contact { padding: 105px max(30px, calc((100vw - 1120px)/2)); }
.intro { text-align: center; }
.intro h2, .section-heading h2, .contact h2 { font-family: Georgia, serif; font-weight: 500; font-size: clamp(38px, 4vw, 54px); line-height: 1.12; letter-spacing: -.025em; margin: 0; }
.intro > p:not(.section-label) { max-width: 720px; margin: 26px auto 55px; color: var(--muted); line-height: 1.8; font-size: 17px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 930px; margin: auto; border-top: 1px solid var(--line); }
.values article { padding: 28px 35px; border-right: 1px solid var(--line); }
.values article:last-child { border: 0; }
.values strong, .values span { display: block; }
.values strong { font-family: Georgia, serif; font-size: 23px; color: var(--teal); }
.values span { color: var(--muted); font-size: 13px; margin-top: 8px; line-height: 1.5; }

.services { background: #eef9fb; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 50px; margin-bottom: 50px; }
.section-heading > p { max-width: 390px; color: var(--muted); line-height: 1.7; }
.section-heading .section-label { margin-bottom: 15px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card { background: white; min-height: 330px; padding: 28px; border: 1px solid #e0ebe7; border-radius: 12px; display: flex; flex-direction: column; transition: .2s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px #234d4313; }
.service-number { width: 48px; height: 48px; display: grid; place-items: center; background: var(--mint); color: var(--teal); border-radius: 50%; font: 700 12px Georgia, serif; }
.service-card h3 { margin: 25px 0 13px; font: 500 23px Georgia, serif; }
.service-card p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; }
.service-card a { color: var(--teal); font-weight: 750; font-size: 12px; margin-top: auto; }

.stories { background: var(--white); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
figure { margin: 0; padding: 32px; border-radius: 12px; border: 1px solid var(--line); background: var(--cream); }
.stars { color: #e0a43a; letter-spacing: 3px; font-size: 13px; }
blockquote { margin: 20px 0 28px; font: 500 20px/1.55 Georgia, serif; }
figcaption { display: flex; align-items: center; gap: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: white; font-weight: bold; }
figcaption strong, figcaption small { display: block; }
figcaption strong { font-size: 12px; } figcaption small { color: var(--muted); font-size: 10px; margin-top: 4px; }

.contact { background: var(--burgundy); color: white; display: grid; grid-template-columns: 1fr .85fr; gap: 90px; }
.contact .section-label { color: #72d0c1; }
.contact-copy > p:not(.section-label) { color: #b8cdca; font-size: 16px; line-height: 1.8; margin: 24px 0; }
.contact-notes { display: grid; gap: 12px; color: #d8e8e5; font-size: 13px; }
.contact-form { background: white; color: var(--ink); padding: 32px; border-radius: 15px; display: grid; gap: 16px; }
.contact-form label { font-size: 12px; font-weight: 750; }
input, textarea { display: block; width: 100%; margin-top: 7px; padding: 13px 14px; border: 1px solid #d7e2df; border-radius: 7px; font: inherit; color: var(--ink); background: #fbfdfc; }
textarea { resize: vertical; }
input:focus, textarea:focus { outline: 2px solid #5ebcb0; outline-offset: 1px; }
.contact-form small { color: var(--muted); text-align: center; font-size: 10px; }
.form-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-success, .form-error { margin: 0; padding: 12px 14px; border-radius: 7px; font-size: 13px; line-height: 1.5; text-align: center; }
.form-success { color: #17633e; background: #e6f7ef; }
.form-error { color: #8e1d2f; background: #fff0f2; }
.contact-form button:disabled { cursor: wait; opacity: .72; }

footer { min-height: 180px; padding: 45px max(30px, calc((100vw - 1120px)/2)); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 25px; background: #25000f; color: #e9dce1; font-size: 12px; }
.footer-brand { width: fit-content; padding: 10px 0; }
.footer-brand img { width: 190px; }
.copyright { text-align: right; color: #8ea9a5; }
.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; }
.contact-form .notice { margin:0; padding:12px 14px; border-radius:7px; font-size:13px; text-align:center; }
.contact-form .success { color:#17633e; background:#e6f7ef; }
.contact-form .error { color:#8e1d2f; background:#fff0f2; }

.admin-shell { min-height: 100vh; padding-bottom: 95px; background: #f3f8f8; color: var(--ink); }
.admin-header { padding: 34px max(24px, calc((100vw - 1050px)/2)); background: #25000f; color: white; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.admin-header p { margin: 0 0 7px; color: #71d3e4; text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 800; }
.admin-header h1 { margin: 0; font: 500 clamp(36px,5vw,54px)/1 Georgia,serif; }
.admin-header nav { display: flex; gap: 10px; }
.admin-header nav a { border: 1px solid #ffffff55; border-radius: 8px; padding: 11px 15px; }
.admin-tabs { max-width: 1050px; margin: 30px auto 0; padding: 0 24px; display: flex; gap: 8px; overflow-x: auto; }
.admin-tabs button, .editor-title button { border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); padding: 12px 18px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.admin-tabs button.active { border-color: var(--teal); background: var(--teal); color: white; }
.admin-panel { max-width: 1050px; min-height: 430px; margin: 12px auto; padding: 34px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.admin-panel h2 { margin: 0; font: 500 32px Georgia,serif; }
.editor-stack { display: grid; gap: 20px; }
.editor-stack label, .repeat-card label { font-size: 13px; font-weight: 750; }
.editor-title { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.repeat-card { position: relative; padding: 25px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfc; display: grid; gap: 14px; }
.repeat-card .remove { position: absolute; top: 14px; right: 16px; border: 0; background: transparent; color: #a52c43; cursor: pointer; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.save-bar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; min-height: 76px; padding: 12px max(24px,calc((100vw - 1050px)/2)); border-top: 1px solid var(--line); background: #ffffffed; backdrop-filter: blur(8px); display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.save-bar span { color: var(--muted); font-size: 13px; }
.admin-loading, .admin-denied { padding: 70px 25px; text-align: center; }
.admin-denied a { color: var(--teal-dark); font-weight: 700; }
.banner-editor { padding: 22px; border: 1px solid var(--line); border-radius: 11px; background: #f7fbfb; display: grid; gap: 16px; }
.banner-editor h3 { margin: 0 0 6px; font: 500 22px Georgia,serif; }
.banner-editor p { margin: 0; color: var(--muted); font-size: 13px; }
.banner-editor img { width: 100%; max-height: 300px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.banner-actions { display: flex; gap: 10px; align-items: center; }
.upload-button, .banner-actions button { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 10px 16px; border: 1px solid var(--teal); border-radius: 8px; background: var(--teal); color: white; font-size: 13px; font-weight: 750; cursor: pointer; }
.upload-button input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.banner-actions button { background: white; color: #a52c43; border-color: #ddbac2; }

@media (max-width: 900px) {
  nav a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; background: var(--cream); }
  .hero-content { padding: 75px 30px 60px; }
  .hero-visual { min-height: 500px; background: var(--mint); }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 45px; }
}

@media (max-width: 600px) {
  .site-header { height: 75px; padding: 0 16px; }
  header .brand { padding: 6px 0; }
  header .brand img { width: 132px; }
  nav { gap: 0; }.nav-cta { padding: 11px 15px; font-size: 12px; }
  .hero-content { padding: 65px 22px 50px; }
  h1 { font-size: 51px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .hero-visual { min-height: 410px; }
  .sun { width: 330px; height: 330px; }
  .portrait { left: 34%; transform: scale(.82); transform-origin: bottom; }
  .portrait-two { left: -7%; transform: scale(.66); }
  .visual-card { transform: scale(.85); }
  .card-one { left: -4%; top: 12%; }.card-two { right: -5%; bottom: 12%; }
  .intro, .services, .stories, .contact { padding: 75px 22px; }
  .values { grid-template-columns: 1fr; }
  .values article { border-right: 0; border-bottom: 1px solid var(--line); }
  .section-heading { align-items: start; flex-direction: column; gap: 14px; }
  .service-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 18px; }
  .admin-header { align-items: flex-start; flex-direction: column; }
  .admin-header nav { width: 100%; justify-content: space-between; }
  .admin-tabs { padding: 0 12px; }
  .admin-panel { margin: 12px; padding: 22px 16px; }
  .two-fields { grid-template-columns: 1fr; }
  .save-bar { padding: 12px 16px; }
  input, textarea { font-size: 16px; }
  .button { width: 100%; min-height: 50px; }
  footer { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; margin: auto; }.footer-brand img { width: 190px; }.copyright { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .service-card { transition: none; }
}
