/* CSS Custom Properties (Variables) */
:root {
  /* Colors */
  --primary-gradient: linear-gradient(135deg, #8378d5, #6b5fbd);
  --primary-gradient-hover: linear-gradient(135deg, #6b5fbd, #5a4fa5);
  --primary-color: #8378d5;
  --primary-color-dark: #6b5fbd;
  --primary-color-darker: #5a4fa5;
  --text-dark: #1f2937;
  --text-medium: #374151;
  --text-light: #6b7280;
  --text-lighter: #9ca3af;
  --bg-white: #fff;
  --bg-light: #f8fafc;
  --bg-gray: #e5e7eb;
  --bg-dark: #1f2937;
  --border-light: #f3f4f6;
  --border-gray: #e5e7eb;
  
  /* Accessibility Colors */
  --focus-color: #2563eb;
  --focus-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
  --error-color: #dc2626;
  --error-bg: #fef2f2;
  --success-color: #059669;
  --success-bg: #f0fdf4;
  --warning-color: #d97706;
  --warning-bg: #fffbeb;
  
  /* Shadows */
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --card-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
  --btn-shadow-primary: 0 4px 15px rgba(131, 120, 213, 0.3);
  --btn-shadow-primary-hover: 0 6px 20px rgba(131, 120, 213, 0.4);
  
  /* Spacing */
  --card-padding: 2rem;
  --section-padding: 100px 0;
  --container-padding: 0 20px;
  
  /* Accessibility */
  --transition-duration: 0.2s;
  --focus-outline-width: 3px;
}

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: #666;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn--primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--btn-shadow-primary);
}

.btn--primary:hover {
    background: var(--primary-gradient-hover);
    transform: translateY(-2px);
    box-shadow: var(--btn-shadow-primary-hover);
}

.btn--secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn--secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
}

/* Section Headers */
.section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.section__title {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section__description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav__brand > a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav__logo {
    height: 40px;
    width: 40px;
    border-radius: 8px;
}

.nav__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav__menu {
    /* Desktop: always visible */
    display: block;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav__link {
    font-weight: 500;
    color: #374151;
    transition: color 0.3s ease;
}

.nav__link:hover,
.nav__link--active {
    color: var(--primary-color);
}

.nav__link--cta {
    background: var(--primary-gradient);
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav__link--cta:hover {
    background: var(--primary-gradient-hover);
    transform: translateY(-1px);
}

/* Mobile Navigation */
.nav__toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
    border-radius: 4px;
    background: transparent;
    border: none;
    min-width: 44px;
    min-height: 44px;
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background: #374151;
    transition: all 0.3s ease;
}

.nav__toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.nav__toggle:active {
    background: rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__title {
    font-size: 3.5rem;
    color: #1f2937;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero__title--highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__description {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
}

.hero__image {
    display: flex;
    justify-content: center;
}

.hero__img {
    width: 100%;
    max-width: 500px;
    height: 400px;
    background: #e5e7eb;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1.1rem;
}

/* Full Background Hero */
.hero--fullbg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.hero--fullbg .hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.85) 0%, rgba(55, 65, 81, 0.75) 100%);
    z-index: 1;
}

.hero--fullbg .hero__container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
}

.hero__content--centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero__title--light {
    color: white;
}

.hero__title--highlight-light {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__description--light {
    color: rgba(255, 255, 255, 0.9);
}

.hero__content--centered .hero__buttons {
    justify-content: center;
}

.btn--secondary-light {
    border-color: white;
    color: white;
}

.btn--secondary-light:hover {
    background: white;
    color: var(--primary-color);
}

/* Reusable Card Component */
.card-base {
    background: white;
    border-radius: 16px;
    padding: var(--card-padding);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.card-base:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

/* Section Base */
.section-padding {
    padding: var(--section-padding);
}

/* Advantage Section */
.advantage {
    padding: var(--section-padding);
    background: white;
}

.advantage__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.advantage__card {
    background: white;
    border-radius: 16px;
    padding: var(--card-padding);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.advantage__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.advantage__icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.advantage__icon img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

.advantage__title {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.advantage__description {
    color: #6b7280;
    line-height: 1.6;
}

/* Services Section */
.services {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service__card {
    background: white;
    border-radius: 16px;
    padding: var(--card-padding);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.service__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.service__icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service__icon img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

.service__title {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service__description {
    color: #6b7280;
    line-height: 1.6;
}

/* Service Card Link Styles */
.service__card--link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.service__card--link:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.service__card--link:hover .service__cta {
    color: var(--primary-color-dark);
}

.service__cta {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.service__features {
    list-style: none;
    margin-top: 1.5rem;
    padding: 0;
}

.service__features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #6b7280;
    line-height: 1.5;
}

.service__features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* About Section */
.about {
    padding: 100px 0;
    background: #f8fafc;
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about__description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.feature {
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border-left: 4px solid #8378d5;
}

.feature__title {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature__description {
    color: #6b7280;
    margin: 0;
}

.about__image {
    flex: 1;
}

.about__img {
    width: 100%;
    height: 400px;
    background: #e5e7eb;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: var(--card-shadow);
}

/* Portrait image variant */
.about__image--portrait {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about__img--portrait {
    width: auto;
    max-width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center top;
}

/* Team Section */
.team {
    padding: var(--section-padding);
    background: white;
}

.team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Single team member styling - fallback for older browsers */
.team__grid.single-member {
    grid-template-columns: minmax(300px, 400px);
    justify-content: center;
}

/* Single team member styling - modern browsers */
.team__grid:has(.team__card:only-child) {
    grid-template-columns: minmax(300px, 400px);
    justify-content: center;
}

.team__card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.team__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.team__image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.team__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1.1rem;
}

.team__info {
    padding: 2rem;
}

.team__name {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.team__role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team__credentials {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.team__bio {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Referral Section */
.referral {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.referral__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.referral__description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.benefit {
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border-left: 4px solid #16a34a;
}

.benefit__title {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.benefit__description {
    color: #6b7280;
    margin: 0;
}

/* Form Styles */
.referral__form {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form__input,
.form__select,
.form__textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    outline: none;
    border-color: #8378d5;
    box-shadow: 0 0 0 3px rgba(131, 120, 213, 0.1);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__group--checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form__checkbox {
    width: auto;
    margin: 0;
}

.form__checkbox-label {
    margin: 0;
    cursor: pointer;
}

/* Form Sections */
.form__section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.form__section:last-of-type {
    border-bottom: none;
    margin-bottom: 2rem;
}

.form__section-title {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #8378d5;
    display: inline-block;
}

.form__subsection-title {
    color: #374151;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Radio Button Styles */
.form__fieldset {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 0;
}

.form__legend {
    font-weight: 600;
    color: #374151;
    padding: 0 0.5rem;
}

.form__radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.form__radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form__radio {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
}

.form__radio-label {
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    margin: 0;
}

.form__radio:checked + .form__radio-label {
    color: #8378d5;
    font-weight: 600;
}

/* Progressive Form Disclosure */
.form__section--hidden {
    display: none !important;
}

.form__section--reveal {
    display: block;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.form__section--reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/* NDIS Fields Animation */
.form__ndis-fields {
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.form__ndis-fields.show {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: white;
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact__title {
    color: #1f2937;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.contact__item {
    margin-bottom: 1.5rem;
}

.contact__item h4 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact__item p {
    color: #6b7280;
    margin: 0;
}

.contact__item a {
    color: #8378d5;
    text-decoration: none;
}

.contact__item a:hover {
    text-decoration: underline;
}

.contact__cta {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-gray);
}

.contact__cta p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

/* Gallery Section */
.gallery {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery__item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--bg-gray);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.gallery__item:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery__item:hover .gallery__img {
    transform: scale(1.05);
}

/* Gallery placeholder styling */
.gallery__img[src*="placeholder"] {
    background: linear-gradient(135deg, var(--bg-gray) 0%, #d1d5db 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .gallery__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Location Section */
.location {
    padding: var(--section-padding);
    background: white;
}

.location__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.location__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.location__card {
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.location__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.location__image {
    height: 200px;
    overflow: hidden;
}

.location__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Contain variant - show full image without cropping */
.location__image--contain {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 1rem;
}

.location__img--contain {
    object-fit: contain;
    max-height: 100%;
}

.location__card:hover .location__img:not(.location__img--contain) {
    transform: scale(1.05);
}

.location__info {
    padding: 1.5rem;
}

.location__name {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.location__address {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.location__link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.location__link:hover {
    color: var(--primary-color-dark);
}

/* Map embed */
.location__map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    min-height: 350px;
}

.location__map iframe {
    display: block;
}

@media (max-width: 768px) {
    .location__content {
        grid-template-columns: 1fr;
    }
    
    .location__map {
        min-height: 300px;
    }
    
    .location__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery__item:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}



/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer__brand {
    display: flex;
    flex-direction: column;
}

.footer__logo {
    height: 40px;
    width: 40px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.footer__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer__description {
    color: #9ca3af;
    line-height: 1.6;
}

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

.footer__heading {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer__list {
    list-style: none;
}

.footer__list li {
    margin-bottom: 0.5rem;
}

.footer__link {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: white;
}

.footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid #374151;
    text-align: center;
}

.footer__copyright {
    color: #9ca3af;
    margin: 0;
}

/* Error Page Styles */
.error-page {
    padding: 120px 0 80px;
    min-height: 100vh;
    background: #f8fafc;
}

.error__container {
    text-align: center;
}

.error__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.error__image {
    display: flex;
    justify-content: center;
}

.error__img {
    width: 100%;
    max-width: 400px;
    height: 300px;
    background: #e5e7eb;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1.1rem;
}

.error__title {
    font-size: 6rem;
    font-weight: 700;
    color: #8378d5;
    margin-bottom: 1rem;
}

.error__subtitle {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.error__description {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.error__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.error__help {
    margin-bottom: 4rem;
    text-align: left;
}

.error__help-title {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: center;
}

.error__help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.help__card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.help__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.help__title {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.help__description {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.help__link {
    color: #8378d5;
    font-weight: 500;
    text-decoration: none;
}

.help__link:hover {
    text-decoration: underline;
}

.error__contact {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.error__contact-title {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.error__contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.contact-item {
    text-align: center;
}

.contact-item strong {
    display: block;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: #8378d5;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }
    
    .hero__title {
        font-size: 3rem;
    }
    
    .advantage__grid,
    .services__grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav__menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        z-index: 50;
    }
    
    /* Mobile menu active state */
    .nav__menu--active {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0 !important;
        right: 0 !important;
        background: white;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        z-index: 50;
        transform: none !important;
        transition: none !important;
        animation: none !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .nav__list {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }
    
    .nav__link {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid #f3f4f6;
        color: #374151;
        text-decoration: none;
        transition: background-color 0.2s ease, color 0.2s ease;
    }
    
    .nav__link:hover,
    .nav__link--active {
        background-color: #f9fafb;
        color: var(--primary-color);
    }
    
    .nav__link--cta {
        background: var(--primary-gradient);
        color: white !important;
        margin: 1rem 2rem;
        border-radius: 6px;
        border-bottom: none;
        text-align: center;
    }
    
    .nav__link--cta:hover {
        background: var(--primary-gradient-hover);
    }
    
    .nav__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        border-radius: 4px;
        background: transparent;
        border: none;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .about__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about__img {
        height: 300px;
    }
    
    .about__img--portrait {
        height: 400px;
        width: 100%;
    }
    
    .referral__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer__links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .error__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .error__title {
        font-size: 4rem;
    }
    
    .error__actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error__help-grid {
        grid-template-columns: 1fr;
    }
    
    .error__contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Form responsive styles */
    .form__radio-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form__fieldset {
        padding: 1rem;
    }
    
    .form__section-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }
    
    .advantage__grid,
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .team__grid,
    .team__grid.single-member {
        grid-template-columns: 1fr;
        max-width: 350px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .section__header {
        margin-bottom: 2rem;
    }
    
    .error__title {
        font-size: 3rem;
    }
    
    .error__subtitle {
        font-size: 1.8rem;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* Form Validation States */
.form__input--error,
.form__select--error,
.form__textarea--error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form__char-counter {
    float: right;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 400;
}

.form__char-counter.warning {
    color: #d97706;
}

.form__char-counter.error {
    color: #dc2626;
}

.form__message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.form__message--success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form__message--error {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.nav__toggle--active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle--active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle--active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Header Scroll State */
.header--scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    transform: none !important;
}

/* Focus States for Accessibility */
.btn:focus,
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    outline: 2px solid #8378d5;
    outline-offset: 2px;
}

/* Privacy Policy Styles */
.privacy-policy {
    padding: 120px 0 80px;
    background: #f8fafc;
    min-height: 100vh;
}

.privacy-policy__header {
    text-align: center;
    margin-bottom: 4rem;
}

.privacy-policy__content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-policy__section {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f3f4f6;
}

.privacy-policy__section-title {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #8378d5;
}

.privacy-policy__subsection-title {
    color: #374151;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.privacy-policy__text {
    color: #6b7280;
    line-height: 1.7;
}

.privacy-policy__text p {
    margin-bottom: 1rem;
}

.privacy-policy__text p:last-child {
    margin-bottom: 0;
}

.privacy-policy__list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.privacy-policy__list li {
    margin-bottom: 0.5rem;
    color: #6b7280;
    line-height: 1.6;
}

.privacy-policy__contact-info {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid #8378d5;
}

.privacy-policy__contact-info p {
    margin-bottom: 0.5rem;
    color: #374151;
}

.privacy-policy__contact-info p:last-child {
    margin-bottom: 0;
}

.privacy-policy__contact-info a {
    color: #8378d5;
    text-decoration: none;
    font-weight: 500;
}

.privacy-policy__contact-info a:hover {
    text-decoration: underline;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .nav__toggle {
        display: none;
    }
    
    .hero {
        padding: 20px 0;
    }
    
    .section {
        padding: 20px 0;
    }
    
    .privacy-policy {
        padding: 20px 0;
    }
    
    .privacy-policy__section {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
}

/* ===== ACCESSIBILITY STYLES ===== */

/* Skip Links */
.skip-link {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    background: var(--bg-dark);
    color: var(--bg-white);
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
    font-weight: 600;
    transition: all var(--transition-duration) ease;
}

.skip-link:focus {
    position: fixed;
    top: 6px;
    left: 6px;
    width: auto;
    height: auto;
    overflow: visible;
    outline: var(--focus-outline-width) solid var(--focus-color);
    outline-offset: 2px;
}

/* Screen Reader Only Content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Management */
*:focus {
    outline: var(--focus-outline-width) solid var(--focus-color);
    outline-offset: 2px;
}

/* High contrast focus for buttons */
.btn:focus {
    outline: var(--focus-outline-width) solid var(--focus-color);
    outline-offset: 4px;
    box-shadow: var(--focus-shadow), var(--btn-shadow-primary);
}

.nav__link:focus,
.footer__link:focus {
    outline: var(--focus-outline-width) solid var(--focus-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Navigation Toggle Button Enhancement */
.nav__toggle:focus {
    outline: var(--focus-outline-width) solid var(--focus-color);
    outline-offset: 2px;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Form Accessibility Enhancements */
.form__instructions {
    background: var(--bg-light);
    padding: 16px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 24px;
    border-radius: 4px;
}

.form__instructions p {
    margin: 0;
    color: var(--text-medium);
}

.form__hint {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 4px;
    line-height: 1.4;
}

.form__error {
    font-size: 0.875rem;
    color: var(--error-color);
    margin-top: 4px;
    line-height: 1.4;
    display: none;
}

.form__error.is-visible {
    display: block;
}

.form__input[aria-invalid="true"],
.form__textarea[aria-invalid="true"],
.form__select[aria-invalid="true"] {
    border-color: var(--error-color);
    background-color: var(--error-bg);
}

.form__input[aria-invalid="true"]:focus,
.form__textarea[aria-invalid="true"]:focus,
.form__select[aria-invalid="true"]:focus {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3);
}

/* Radio Group Enhancements */
.form__radio:focus {
    outline: var(--focus-outline-width) solid var(--focus-color);
    outline-offset: 2px;
}

.form__radio-label:hover {
    color: var(--primary-color-dark);
    cursor: pointer;
}

/* Submit Button Loading State */
.btn__loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn.is-loading .btn__text {
    display: none;
}

.btn.is-loading .btn__loading {
    display: flex;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .hero__title--highlight {
        background: var(--text-dark);
        color: var(--bg-white);
        padding: 2px 4px;
        border-radius: 2px;
    }
    
    .btn--primary {
        border: 2px solid var(--text-dark);
    }
    
    .btn--secondary {
        border: 2px solid var(--primary-color);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .spinner {
        animation: none;
    }
}

/* Touch Target Enhancement */
@media (hover: none) and (pointer: coarse) {
    .nav__link,
    .btn,
    .form__radio-label {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav__toggle {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ===== ENHANCED ERROR HANDLING STYLES ===== */

/* Offline Indicator */
.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--warning-color);
    color: white;
    z-index: 10000;
    padding: 12px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform var(--transition-duration) ease;
}

.offline-indicator[style*="block"] {
    transform: translateY(0);
}

.offline-indicator__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px;
}

.offline-indicator__icon {
    font-size: 1.2rem;
}

.offline-indicator__text {
    font-weight: 600;
}

.offline-indicator__retry {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color var(--transition-duration) ease;
}

.offline-indicator__retry:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Form Error Messages */
.form__general-error {
    background: var(--error-bg);
    border: 1px solid var(--error-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    animation: slideIn 0.3s ease;
}

.form__success-message {
    background: var(--success-bg);
    border: 1px solid var(--success-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    animation: slideIn 0.3s ease;
}

.form__error-content,
.form__success-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form__error-icon,
.form__success-icon {
    font-size: 1.25rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.form__error-text,
.form__success-text {
    flex: 1;
}

.form__error-text strong,
.form__success-text strong {
    color: var(--error-color);
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
}

.form__success-text strong {
    color: var(--success-color);
}

.form__error-text p,
.form__success-text p {
    margin: 0;
    color: var(--text-medium);
    line-height: 1.5;
}

.form__retry-btn {
    background: var(--error-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    margin-top: 12px;
    transition: background-color var(--transition-duration) ease;
}

.form__retry-btn:hover {
    background: var(--primary-color-darker);
}

.form__retry-btn:focus {
    outline: var(--focus-outline-width) solid var(--focus-color);
    outline-offset: 2px;
}

/* Global Error Alert */
.global-error-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--error-bg);
    border: 1px solid var(--error-color);
    border-radius: 8px;
    padding: 16px;
    max-width: 400px;
    z-index: 9999;
    box-shadow: var(--card-shadow);
    animation: slideInRight 0.3s ease;
}

.global-error-alert__content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.global-error-alert__icon {
    font-size: 1.25rem;
    color: var(--error-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.global-error-alert__message {
    flex: 1;
    color: var(--text-medium);
    line-height: 1.5;
}

.global-error-alert__close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color var(--transition-duration) ease;
}

.global-error-alert__close:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Offline State Styling */
.is-offline .btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.is-offline .form__input,
.is-offline .form__textarea,
.is-offline .form__select {
    background-color: var(--bg-gray);
    color: var(--text-light);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Error Handling */
@media (max-width: 768px) {
    .offline-indicator__content {
        flex-direction: column;
        gap: 8px;
    }
    
    .global-error-alert {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .form__error-content,
    .form__success-content {
        flex-direction: column;
        text-align: center;
    }
}

/* High Contrast Mode Support for Error Handling */
@media (prefers-contrast: high) {
    .form__general-error {
        border-width: 2px;
        background: white;
    }
    
    .form__success-message {
        border-width: 2px;
        background: white;
    }
    
    .offline-indicator {
        border-bottom: 2px solid white;
    }
}

/* Reduced Motion for Error Handling */
@media (prefers-reduced-motion: reduce) {
    .offline-indicator,
    .form__general-error,
    .form__success-message,
    .global-error-alert {
        animation: none;
        transition: none;
    }
}
