/* iCare Aged Service - NDIS Color Palette */
:root {
  --primary: #6A2875;
  --primary-dark: #5a2065;
  --magenta: #C3185D;
  --magenta-dark: #a31450;
  --lavender: #EAD9F0;
  --teal: #00897B;
  --charcoal: #313131;
  --gray-light: #F5F5F5;
  --white: #FFFFFF;
  --text: #313131;
  --text-light: #666666;
  --border: #E5E7EB;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px rgba(106, 40, 117, 0.1);
  --shadow-lg: 0 8px 30px rgba(106, 40, 117, 0.15);
  --font: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4 { color: var(--primary); font-weight: 700; line-height: 1.3; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }
a { color: var(--magenta); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }

.skip-link { position: absolute; top: -100%; left: 1rem; background: var(--primary); color: white; padding: 0.5rem 1rem; border-radius: var(--radius); z-index: 9999; }
.skip-link:focus { top: 1rem; }

.header { position: fixed; top: 0; left: 0; right: 0; background: var(--white); z-index: 1000; box-shadow: var(--shadow); }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; gap: 2rem; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.1rem; color: var(--primary); text-decoration: none; }
.logo__icon { width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary), var(--magenta)); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.25rem; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav__link { padding: 0.5rem 0.875rem; color: var(--charcoal); font-weight: 600; font-size: 0.95rem; border-radius: var(--radius); transition: all 0.2s; }
.nav__link:hover, .nav__link--active { color: var(--primary); background: var(--lavender); }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger span { display: block; width: 24px; height: 3px; background: var(--primary); margin: 5px 0; border-radius: 2px; }
.mobile-nav { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--white); padding: 5rem 2rem 2rem; box-shadow: var(--shadow-lg); transition: right 0.3s; z-index: 999; }
.mobile-nav.open { right: 0; }
.mobile-nav__close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 2rem; color: var(--primary); cursor: pointer; }
.mobile-nav__link { display: block; padding: 1rem 0; color: var(--charcoal); font-weight: 600; border-bottom: 1px solid var(--border); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.875rem 1.75rem; font-family: var(--font); font-size: 1rem; font-weight: 700; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.btn--primary { background: var(--magenta); color: white; }
.btn--primary:hover { background: var(--magenta-dark); color: white; }
.btn--secondary { background: var(--primary); color: white; }
.btn--secondary:hover { background: var(--primary-dark); color: white; }
.btn--outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: white; }
.btn--white { background: white; color: var(--primary); }
.btn--white:hover { background: var(--lavender); color: var(--primary); }
.btn--lg { padding: 1rem 2rem; font-size: 1.1rem; }

.hero { padding: 8rem 0 5rem; background: linear-gradient(135deg, var(--primary) 0%, var(--magenta) 100%); color: white; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; right: 0; width: 50%; height: 100%; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); opacity: 0.5; }
.hero__content { position: relative; max-width: 700px; }
.hero__badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.2); padding: 0.5rem 1rem; border-radius: var(--radius); font-size: 0.9rem; font-weight: 600; margin-bottom: 1.5rem; }
.hero__title { color: white; margin-bottom: 1.5rem; }
.hero__subtitle { font-size: 1.2rem; opacity: 0.95; margin-bottom: 2rem; line-height: 1.8; }
.hero__buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.section { padding: 5rem 0; }
.section--alt { background: var(--gray-light); }
.section--lavender { background: var(--lavender); }
.section__header { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section__label { display: inline-block; background: var(--lavender); color: var(--primary); padding: 0.375rem 1rem; border-radius: var(--radius); font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 1rem; }
.section__title { margin-bottom: 1rem; }
.section__desc { color: var(--text-light); font-size: 1.1rem; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.service-card { background: white; border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; border: 1px solid var(--border); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card__icon { width: 60px; height: 60px; background: var(--lavender); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.75rem; margin-bottom: 1.25rem; }
.service-card__title { margin-bottom: 0.75rem; font-size: 1.1rem; }
.service-card__desc { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; margin: 0; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.value-item { text-align: center; padding: 2rem; }
.value-item__icon { width: 70px; height: 70px; background: linear-gradient(135deg, var(--primary), var(--magenta)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 1.25rem; color: white; }
.value-item__title { margin-bottom: 0.5rem; }
.value-item__desc { color: var(--text-light); font-size: 0.95rem; margin: 0; }

.cta-banner { background: linear-gradient(135deg, var(--primary), var(--magenta)); color: white; padding: 4rem 2rem; border-radius: var(--radius-lg); text-align: center; }
.cta-banner__title { color: white; margin-bottom: 1rem; }
.cta-banner__text { font-size: 1.1rem; opacity: 0.95; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-banner__buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; }
.contact-info { background: var(--primary); color: white; padding: 2.5rem; border-radius: var(--radius-lg); }
.contact-info__title { color: white; margin-bottom: 1rem; }
.contact-info__text { opacity: 0.9; margin-bottom: 2rem; }
.contact-info__item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-info__icon { width: 40px; height: 40px; background: rgba(255,255,255,0.2); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info__label { font-weight: 700; margin-bottom: 0.25rem; }
.contact-info__value { opacity: 0.9; }
.contact-info__value a { color: white; }

.contact-form { background: white; padding: 2.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group--full { grid-column: 1 / -1; }
.form-label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--charcoal); }
.form-label .required { color: var(--magenta); }
.form-input, .form-select, .form-textarea { width: 100%; padding: 0.875rem 1rem; font-family: var(--font); font-size: 1rem; border: 2px solid var(--border); border-radius: var(--radius); background: var(--gray-light); transition: border-color 0.2s, background 0.2s; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--primary); background: white; }
.form-textarea { min-height: 120px; resize: vertical; }
.form-radio-group, .form-checkbox-group { display: flex; flex-wrap: wrap; gap: 1rem; }
.form-radio, .form-checkbox { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.form-radio input, .form-checkbox input { width: 18px; height: 18px; accent-color: var(--primary); }
.services-checkboxes { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-consent { background: var(--gray-light); padding: 1rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.form-consent label { display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer; font-size: 0.9rem; line-height: 1.5; }
.form-consent input { margin-top: 0.25rem; width: 18px; height: 18px; accent-color: var(--primary); }

.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-intro__image { background: var(--lavender); border-radius: var(--radius-lg); padding: 3rem; text-align: center; }
.about-intro__image-icon { font-size: 6rem; margin-bottom: 1rem; }

.footer { background: var(--charcoal); color: white; padding: 4rem 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer__logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer__logo-icon { width: 45px; height: 45px; background: linear-gradient(135deg, var(--primary), var(--magenta)); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.footer__logo-text { font-weight: 800; font-size: 1.1rem; }
.footer__tagline { opacity: 0.8; line-height: 1.7; margin-bottom: 1.5rem; }
.footer__heading { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; color: white; }
.footer__link { display: block; color: rgba(255,255,255,0.8); padding: 0.375rem 0; transition: color 0.2s; }
.footer__link:hover { color: white; }
.footer__contact { color: rgba(255,255,255,0.8); line-height: 1.8; }
.footer__ndis { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.1); padding: 0.5rem 1rem; border-radius: var(--radius); font-size: 0.85rem; margin-top: 1rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; text-align: center; opacity: 0.7; font-size: 0.9rem; }

@media (max-width: 968px) {
  .nav { display: none; }
  .hamburger { display: block; }
  .hero { padding: 7rem 0 4rem; }
  .contact-grid, .about-intro { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }
  .hero__buttons { flex-direction: column; }
  .hero__buttons .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .services-checkboxes { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-banner { padding: 3rem 1.5rem; }
  .cta-banner__buttons { flex-direction: column; }
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeInUp 0.6s ease forwards; }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
