/*
Theme Name: Whole Ability
Theme URI: https://wholeability.com
Author: Whole Ability
Author URI: https://wholeability.com
Description: Official WordPress theme for Whole Ability — personalised NDIS support services in Dubbo, NSW. Empowering Every Ability.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: whole-ability
Tags: one-page, accessibility-ready, custom-colors, custom-logo
*/

/* ============================================================
   CSS Custom Properties (Design Tokens)
   ============================================================ */
:root {
  --background: hsl(30, 30%, 98%);
  --foreground: hsl(25, 25%, 15%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(25, 25%, 15%);
  --primary: hsl(24, 75%, 50%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(145, 25%, 45%);
  --secondary-foreground: hsl(0, 0%, 100%);
  --muted: hsl(30, 15%, 92%);
  --muted-foreground: hsl(25, 15%, 45%);
  --accent: hsl(145, 30%, 92%);
  --accent-foreground: hsl(145, 35%, 30%);
  --border: hsl(30, 20%, 88%);
  --radius: 0.75rem;
  --card-shadow: 0 4px 20px -4px hsl(25 25% 15% / 0.08);
  --card-shadow-hover: 0 12px 40px -8px hsl(24 75% 50% / 0.15);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
}

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

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

ul, ol {
  list-style: none;
}

/* ============================================================
   Utility Classes
   ============================================================ */
.container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

.section-padding {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
@media (min-width: 768px) {
  .section-padding { padding-top: 6rem; padding-bottom: 6rem; }
}
@media (min-width: 1024px) {
  .section-padding { padding-top: 8rem; padding-bottom: 8rem; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover {
  background-color: hsl(24, 75%, 42%);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px hsl(24 75% 50% / 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.8);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background-color: rgba(255,255,255,0.1);
}

.btn-lg {
  padding: 0.875rem 2.5rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  height: 3.5rem;
}

.btn-xl {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  height: 3.5rem;
  border-radius: 0.5rem;
}

/* ============================================================
   Header / Navigation
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.header-top-bar {
  display: none;
  align-items: center;
  justify-content: flex-start;
  padding: 0.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) {
  .header-top-bar { display: flex; }
}

.header-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-right: 1.5rem;
}

.header-contact-item a:hover {
  color: var(--primary);
}

.header-contact-item svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
  flex-shrink: 0;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.site-logo-text {
  display: flex;
  flex-direction: column;
}

.site-logo-text strong {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.site-logo-text span {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: -2px;
}

#primary-navigation {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) {
  #primary-navigation { display: flex; }
}

#primary-navigation a {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(25, 25%, 15%, 0.8);
  transition: color 0.2s;
}
#primary-navigation a:hover { color: var(--primary); }

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--foreground);
}
@media (min-width: 768px) {
  .menu-toggle { display: none; }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--card);
  gap: 0.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  padding: 0.625rem 0;
  color: hsl(25, 25%, 15%, 0.8);
  font-weight: 500;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--primary); }
.mobile-menu .btn { margin-top: 0.5rem; width: 100%; }

/* ============================================================
   Hero Section
   ============================================================ */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsl(25 25% 15% / 0.7) 0%, hsl(25 25% 15% / 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 5rem 0;
  width: 100%;
}

.hero-inner {
  max-width: 42rem;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-accent-bar {
  width: 6px;
  height: 3rem;
  background-color: var(--primary);
  border-radius: 9999px;
  flex-shrink: 0;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
@media (min-width: 768px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }

.hero-title-accent { color: var(--primary); }

.hero-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
}
@media (min-width: 768px) { .hero-subtitle { font-size: 1.5rem; } }

.hero-description {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.hero-wave svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   About Section
   ============================================================ */
#about {
  background-color: var(--background);
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.section-heading-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.section-accent-bar {
  width: 4px;
  height: 2.5rem;
  background-color: var(--primary);
  border-radius: 9999px;
  flex-shrink: 0;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
}
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .section-title { font-size: 3rem; } }

.two-col-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .two-col-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
}

.about-text .lead {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 1rem;
}
.about-text p {
  color: var(--muted-foreground);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.about-text .strong-note {
  font-weight: 500;
  color: var(--foreground);
}
.about-text .btn { margin-top: 1rem; }

.about-images {
  position: relative;
}

.about-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-image-col-1 { }
.about-image-col-2 { padding-top: 2rem; }

.about-image-grid img {
  border-radius: 1rem;
  box-shadow: var(--card-shadow);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border);
}

.stat-item { text-align: center; }
.stat-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
@media (min-width: 768px) { .stat-value { font-size: 2.5rem; } }
@media (min-width: 1024px) { .stat-value { font-size: 3rem; } }

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 500;
}
@media (min-width: 768px) { .stat-label { font-size: 1rem; } }

/* ============================================================
   Services Section
   ============================================================ */
#services {
  background-color: hsl(30, 15%, 92%, 0.5);
}

.section-header-centered {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.section-header-centered .section-title {
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-header-centered p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.services-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }

.service-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.service-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  background-color: hsl(145, 30%, 92%);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--secondary);
}

.service-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.75;
}

/* ============================================================
   Why Choose Us Section
   ============================================================ */
#why-us {
  background-color: var(--background);
}

.why-left h2 { margin-top: 0.75rem; margin-bottom: 1.5rem; }
.why-left p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.75;
}

.quote-block {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: hsl(145, 30%, 92%, 0.5);
  border-radius: 1rem;
  border: 1px solid hsl(145, 30%, 92%);
}

.quote-block p {
  color: var(--accent-foreground);
  font-weight: 500;
  font-style: italic;
  font-size: 1rem;
}

.why-items { display: flex; flex-direction: column; gap: 1.5rem; }

.why-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--card);
  border-radius: 0.75rem;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.3s;
}
.why-item:hover { box-shadow: var(--card-shadow-hover); }

.why-item-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.why-item-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--secondary);
}

.why-item h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.why-item p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.75;
}

/* ============================================================
   Contact Section
   ============================================================ */
#contact {
  background-color: var(--secondary);
}

#contact .section-eyebrow { color: rgba(255,255,255,0.8); }

#contact .section-title { color: var(--secondary-foreground); }

#contact .section-header-centered p { color: rgba(255,255,255,0.8); }

.contact-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.contact-info { display: flex; flex-direction: column; gap: 2rem; }

.contact-item { display: flex; align-items: flex-start; gap: 1rem; }

.contact-item-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--secondary-foreground);
}

.contact-item-body h3 {
  font-family: inherit;
  font-weight: 600;
  color: var(--secondary-foreground);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.contact-item-body p,
.contact-item-body a {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  line-height: 1.5;
  transition: color 0.2s;
}
.contact-item-body a:hover { color: #fff; }

.contact-note {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.contact-note h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary-foreground);
  margin-bottom: 0.75rem;
}

.contact-note p {
  color: rgba(255,255,255,0.8);
  line-height: 1.75;
}

/* Contact Form */
.contact-form-wrap {
  background: var(--card);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--card-shadow);
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px hsl(24 75% 50% / 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-foreground);
}

.form-group textarea { resize: vertical; min-height: 7rem; }

.form-submit { margin-top: 1.5rem; width: 100%; }

/* Success/Error messages */
.form-message {
  display: none;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.form-message.success {
  display: block;
  background: hsl(143, 85%, 96%);
  color: hsl(140, 100%, 27%);
  border: 1px solid hsl(145, 92%, 91%);
}
.form-message.error {
  display: block;
  background: hsl(359, 100%, 97%);
  color: hsl(360, 100%, 45%);
  border: 1px solid hsl(359, 100%, 94%);
}

/* ============================================================
   Footer
   ============================================================ */
#site-footer {
  background-color: var(--foreground);
  color: #fff;
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-brand .site-logo { margin-bottom: 1rem; }
.footer-brand .site-logo-text strong { color: #fff; }
.footer-brand .site-logo-text span { color: rgba(255,255,255,0.6); }
.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  line-height: 1.75;
}

.footer-links h4,
.footer-contact h4 {
  font-family: inherit;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links nav a {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-links nav a:hover { color: #fff; }

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
}

.footer-contact-item svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
  flex-shrink: 0;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.footer-contact-item a:hover { color: #fff; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeUp 0.6s ease-out forwards;
}

/* ============================================================
   WordPress Default Styles (keep compatibility)
   ============================================================ */
.wp-caption, .wp-caption-text, .gallery-caption, .byline, .updated:not(.published) {
  display: none;
}
.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;
}
