/**
 * Tax Solutions SA - Main Stylesheet
 * Professional Accounting Website - Adelaide, South Australia
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Primary Colors - Charcoal & Gold Theme */
    --primary-100: #F5F3F0;
    --primary-200: #E2DDD6;
    --primary-300: #B8AFA5;
    --primary-400: #8A8078;
    --primary-500: #4A4340;
    --primary-600: #333333;
    --primary-700: #2A2A2A;
    --primary-800: #1F1F1F;
    --primary-900: #141414;

    /* Accent Colors - Gold */
    --accent-100: #FFF8E1;
    --accent-200: #FFECB3;
    --accent-300: #FFD54F;
    --accent-400: #F5C518;
    --accent-500: #D4A017;
    --accent-600: #B8860B;
    --accent-700: #8B6914;

    /* Neutral Colors */
    --neutral-50: #FAFAFA;
    --neutral-100: #F5F5F5;
    --neutral-200: #EEEEEE;
    --neutral-300: #E0E0E0;
    --neutral-400: #BDBDBD;
    --neutral-500: #9E9E9E;
    --neutral-600: #757575;
    --neutral-700: #616161;
    --neutral-800: #424242;
    --neutral-900: #212121;

    /* Semantic Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Layout */
    --container-max: 1280px;
    --header-height: 80px;
    --top-bar-height: 40px;
}

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

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

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--neutral-800);
    background-color: var(--neutral-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--accent-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-700);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    padding: var(--space-2) var(--space-4);
    background: var(--primary-600);
    color: white;
    z-index: 1000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

.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;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section {
    padding: var(--space-20) 0;
}

.section-sm {
    padding: var(--space-12) 0;
}

.section-lg {
    padding: var(--space-24) 0;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--neutral-900);
    margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin-bottom: var(--space-4);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--accent-600); }
.text-muted { color: var(--neutral-600); }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-12);
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-500), var(--accent-400));
    border-radius: var(--radius-full);
}

.section-header p {
    margin-top: var(--space-6);
    color: var(--neutral-600);
    font-size: var(--text-lg);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-400), var(--accent-500));
    color: var(--primary-900);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
    color: var(--primary-900);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary-800);
    border-color: var(--primary-600);
}

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

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-800);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--neutral-900);
    color: white;
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--neutral-300);
    transition: color var(--transition-fast);
}

.top-bar-item:hover {
    color: var(--accent-400);
}

.top-bar .icon {
    flex-shrink: 0;
}

/* ============================================
   HEADER
   ============================================ */
.main-header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo img {
    height: 50px;
    width: auto;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-4);
    color: var(--neutral-700);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-600);
    background: var(--accent-100);
}

.dropdown-arrow {
    transition: transform var(--transition-fast);
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    z-index: 100;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: var(--space-3) var(--space-4);
    color: var(--neutral-700);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.dropdown-menu li a:hover {
    background: var(--accent-100);
    color: var(--accent-600);
}

.nav-cta {
    margin-left: var(--space-4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle,
.mobile-menu-close {
    display: none;
}

.mobile-menu-toggle {
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    padding: 5px;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: var(--neutral-800);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(51, 51, 51, 0.75), rgba(74, 67, 64, 0.65));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    color: white;
}

.hero-title {
    font-size: var(--text-6xl);
    color: white;
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: var(--text-xl);
    margin-bottom: var(--space-8);
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    gap: var(--space-8);
    margin-top: var(--space-10);
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.hero-feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-feature-text h4 {
    color: white;
    font-size: var(--text-lg);
    margin-bottom: var(--space-1);
}

.hero-feature-text p {
    font-size: var(--text-sm);
    opacity: 0.8;
    margin: 0;
}

/* ============================================
   PAGE HEADERS
   ============================================ */
.page-header {
    position: relative;
    padding: var(--space-16) 0;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: white;
    text-align: center;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--page-header-bg, url('/images/placeholders/hero-services.jpg')) center/cover no-repeat;
    opacity: 0.3;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: white;
    margin-bottom: var(--space-4);
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    opacity: 0.8;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb-separator {
    opacity: 0.6;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.service-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.service-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-card-image img {
    transform: scale(1.05);
}

.service-card-content {
    padding: var(--space-6);
}

.service-card-content h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.service-card-content p {
    color: var(--neutral-600);
    margin-bottom: var(--space-4);
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    color: var(--accent-600);
}

.service-card-link:hover {
    gap: var(--space-3);
}

/* ============================================
   FEATURES / WHY CHOOSE US
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
}

.feature-card {
    text-align: center;
    padding: var(--space-8);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    background: linear-gradient(135deg, var(--accent-100), var(--accent-200));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-600);
}

.feature-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.feature-card p {
    color: var(--neutral-600);
    margin: 0;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
    background: linear-gradient(135deg, var(--neutral-900), var(--neutral-800));
    color: white;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    text-align: center;
    padding: var(--space-8);
}

.testimonial-quote {
    font-size: var(--text-xl);
    font-style: italic;
    margin-bottom: var(--space-6);
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.testimonial-info h4 {
    color: white;
    margin-bottom: var(--space-1);
}

.testimonial-info p {
    color: var(--neutral-400);
    font-size: var(--text-sm);
    margin: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: white;
    text-align: center;
    padding: var(--space-16) 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: var(--space-4);
}

.cta-section p {
    font-size: var(--text-lg);
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto var(--space-8);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
    background: var(--neutral-100);
    padding: var(--space-12) 0;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
}

.newsletter-text h3 {
    margin-bottom: var(--space-2);
}

.newsletter-text p {
    color: var(--neutral-600);
    margin: 0;
}

.newsletter-form {
    flex-shrink: 0;
}

.newsletter-input-group {
    display: flex;
    gap: var(--space-2);
}

.newsletter-input-group input {
    width: 300px;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--neutral-300);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--transition-fast);
}

.newsletter-input-group input:focus {
    border-color: var(--accent-500);
}

.newsletter-disclaimer {
    font-size: var(--text-xs);
    color: var(--neutral-500);
    margin-top: var(--space-2);
}

.newsletter-disclaimer a {
    color: var(--accent-600);
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: var(--neutral-900);
    color: white;
    padding-top: var(--space-16);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: var(--space-10);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid var(--neutral-700);
}

.footer-logo {
    display: inline-block;
    margin-bottom: var(--space-4);
    background: white;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-description {
    color: var(--neutral-400);
    margin-bottom: var(--space-6);
}

.footer-certifications {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.partner-logo {
    display: inline-block;
    background: white;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
}

.footer-heading {
    font-family: var(--font-primary);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-6);
    color: white;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: var(--neutral-400);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-400);
}

.footer-contact li {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    color: var(--neutral-400);
}

.footer-contact .icon {
    flex-shrink: 0;
    color: var(--accent-500);
    margin-top: 2px;
}

.footer-contact a {
    color: var(--neutral-400);
}

.footer-contact a:hover {
    color: var(--accent-400);
}

.footer-social {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--neutral-800);
    border-radius: var(--radius-full);
    color: var(--neutral-400);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--accent-500);
    color: var(--primary-900);
}

.footer-bottom {
    padding: var(--space-6) 0;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.copyright {
    color: var(--neutral-500);
    font-size: var(--text-sm);
    margin: 0;
}

.abn {
    margin-left: var(--space-4);
}

.footer-legal {
    display: flex;
    gap: var(--space-6);
}

.footer-legal a {
    color: var(--neutral-500);
    font-size: var(--text-sm);
}

.footer-legal a:hover {
    color: var(--accent-400);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 50px;
    height: 50px;
    background: var(--primary-600);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-700);
    transform: translateY(-3px);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    top: var(--space-8);
    right: var(--space-8);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.toast {
    padding: var(--space-4) var(--space-6);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-error {
    border-left: 4px solid var(--error);
}

.toast-info {
    border-left: 4px solid var(--info);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-2);
    color: var(--neutral-700);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--neutral-300);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--accent-500);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-error {
    color: var(--error);
    font-size: var(--text-sm);
    margin-top: var(--space-1);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-12);
}

.contact-info-card {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: white;
    padding: var(--space-10);
    border-radius: var(--radius-xl);
}

.contact-info-card h3 {
    color: white;
    margin-bottom: var(--space-6);
}

.contact-info-list {
    margin-bottom: var(--space-8);
}

.contact-info-item {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.contact-info-item .icon {
    flex-shrink: 0;
    opacity: 0.9;
}

.contact-info-item h4 {
    color: white;
    font-size: var(--text-base);
    margin-bottom: var(--space-1);
}

.contact-info-item p,
.contact-info-item a {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.contact-form-card {
    background: white;
    padding: var(--space-10);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.contact-form-card h3 {
    margin-bottom: var(--space-6);
}

/* Google Map */
.map-container {
    margin-top: var(--space-12);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-content h2 {
    margin-bottom: var(--space-6);
}

.about-content p {
    color: var(--neutral-600);
    margin-bottom: var(--space-4);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
}

.team-card {
    text-align: center;
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.team-avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto var(--space-6);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 4px solid var(--primary-100);
}

.team-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-1);
}

.team-card .role {
    color: var(--accent-600);
    font-weight: 500;
    margin-bottom: var(--space-4);
}

.team-card p {
    color: var(--neutral-600);
    font-size: var(--text-sm);
    margin: 0;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.value-card {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-6);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.value-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: var(--accent-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-600);
}

.value-card h4 {
    margin-bottom: var(--space-2);
}

.value-card p {
    color: var(--neutral-600);
    margin: 0;
}

/* ============================================
   RESOURCES PAGE
   ============================================ */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.resource-card {
    background: white;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.resource-card h3 {
    margin-bottom: var(--space-4);
}

.resource-card ul {
    list-style: disc;
    padding-left: var(--space-5);
}

.resource-card ul li {
    margin-bottom: var(--space-2);
    color: var(--neutral-600);
}

.resource-card ul li a {
    color: var(--accent-600);
}

/* FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: var(--space-5) var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    text-align: left;
    color: var(--neutral-800);
    background: white;
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: var(--neutral-50);
}

.faq-icon {
    transition: transform var(--transition-base);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 var(--space-6) var(--space-5);
    color: var(--neutral-600);
}

/* ============================================
   SERVICE DETAIL PAGES
   ============================================ */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-12);
}

.service-main h2 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
}

.service-main p {
    color: var(--neutral-600);
}

.service-main ul {
    list-style: none;
    margin: var(--space-6) 0;
}

.service-main ul li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    color: var(--neutral-700);
}

.service-main ul li svg {
    flex-shrink: 0;
    color: var(--accent-500);
    margin-top: 4px;
}

/* Service Sidebar */
.service-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-8));
}

.sidebar-card {
    background: white;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-6);
}

.sidebar-card h4 {
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--neutral-100);
}

.sidebar-links li {
    margin-bottom: var(--space-2);
}

.sidebar-links a {
    display: block;
    padding: var(--space-3);
    color: var(--neutral-700);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.sidebar-links a:hover,
.sidebar-links a.active {
    background: var(--accent-100);
    color: var(--accent-600);
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: white;
}

.sidebar-cta h4 {
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.sidebar-cta p {
    margin-bottom: var(--space-4);
    opacity: 0.95;
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: var(--space-10);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.legal-content h2 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
    padding-top: var(--space-8);
    border-top: 1px solid var(--neutral-200);
}

.legal-content h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-content p {
    color: var(--neutral-600);
}

.legal-content ul {
    list-style: disc;
    padding-left: var(--space-6);
    margin-bottom: var(--space-4);
}

.legal-content ul li {
    margin-bottom: var(--space-2);
    color: var(--neutral-600);
}

.last-updated {
    font-size: var(--text-sm);
    color: var(--neutral-500);
    margin-bottom: var(--space-8);
}

/* ============================================
   MEGA MENU
   ============================================ */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-6);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 100;
    min-width: 500px;
}

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
    display: grid;
    gap: var(--space-1);
}

.mega-menu-3col {
    grid-template-columns: repeat(3, 1fr);
    min-width: 600px;
}

.mega-menu-2col {
    grid-template-columns: repeat(2, 1fr);
    min-width: 480px;
}

.mega-menu-grid a {
    display: block;
    padding: var(--space-3) var(--space-4);
    color: var(--neutral-700);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.mega-menu-grid a:hover {
    background: var(--accent-100);
    color: var(--accent-600);
}

.mega-menu-footer {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--neutral-200);
}

.mega-menu-view-all {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent-600);
}

.mega-menu-view-all:hover {
    color: var(--accent-700);
}

/* ============================================
   INDUSTRY GRID
   ============================================ */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-6);
}

.industry-card {
    background: white;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    text-align: center;
    border: 1px solid var(--neutral-200);
}

.industry-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-400);
}

.industry-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-4);
    background: var(--accent-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-600);
}

.industry-card h3 {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.industry-card p {
    font-size: var(--text-sm);
    color: var(--neutral-600);
    margin: 0;
    line-height: 1.5;
}

.industry-card a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   CAPABILITY PILLARS
   ============================================ */
.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.capability-card {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border-left: 4px solid var(--accent-500);
}

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

.capability-card h3 {
    font-family: var(--font-primary);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.capability-card p {
    font-size: var(--text-sm);
    color: var(--neutral-600);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.capability-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent-600);
}

.capability-card .card-link:hover {
    gap: var(--space-3);
}

/* ============================================
   PHILOSOPHY SECTION
   ============================================ */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-8);
}

.philosophy-card {
    position: relative;
    padding: var(--space-8);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.philosophy-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-600);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
}

.philosophy-card h3 {
    font-family: var(--font-primary);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.philosophy-card p {
    color: var(--neutral-600);
    font-size: var(--text-sm);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   INSIGHT CARDS
   ============================================ */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
}

.insight-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.insight-card-body {
    padding: var(--space-6);
}

.insight-card-tag {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--accent-100);
    color: var(--accent-600);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.insight-card h3 {
    font-family: var(--font-primary);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-3);
    line-height: 1.4;
}

.insight-card p {
    font-size: var(--text-sm);
    color: var(--neutral-600);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.insight-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent-600);
}

/* ============================================
   DETAIL PAGE LAYOUT (Industries & Capabilities)
   ============================================ */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-12);
}

.detail-main h2 {
    font-size: var(--text-2xl);
    margin-top: var(--space-10);
    margin-bottom: var(--space-4);
    padding-top: var(--space-8);
    border-top: 1px solid var(--neutral-200);
}

.detail-main h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.detail-main p {
    color: var(--neutral-700);
    line-height: 1.7;
}

.detail-main ul {
    list-style: none;
    margin: var(--space-4) 0;
}

.detail-main ul li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    color: var(--neutral-700);
    line-height: 1.6;
}

.detail-main ul li::before {
    content: '';
    width: 8px;
    height: 8px;
    min-width: 8px;
    background: var(--accent-500);
    border-radius: var(--radius-full);
    margin-top: 8px;
}

.detail-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-8));
}

.challenge-block {
    background: var(--neutral-50);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
    border-left: 3px solid var(--accent-500);
}

.challenge-block h3 {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.challenge-block p {
    font-size: var(--text-sm);
    color: var(--neutral-600);
    margin: 0;
    line-height: 1.6;
}

.scenario-block {
    background: var(--accent-100);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    margin: var(--space-6) 0;
}

.scenario-block h3 {
    font-family: var(--font-primary);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--primary-800);
}

.scenario-block p {
    color: var(--primary-900);
    line-height: 1.7;
}

.related-insights-list {
    margin-top: var(--space-6);
}

.related-insight-item {
    display: block;
    padding: var(--space-4);
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    border: 1px solid var(--neutral-200);
}

.related-insight-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-400);
    color: var(--accent-600);
}

.related-insight-item span {
    display: block;
    font-size: var(--text-xs);
    color: var(--neutral-500);
    margin-bottom: var(--space-1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.related-insight-item strong {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--neutral-800);
}

/* Footer nav row */
.footer-nav-row {
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--neutral-700);
}

.footer-nav-links {
    display: flex;
    gap: var(--space-8);
    justify-content: center;
}

.footer-nav-links a {
    color: var(--neutral-400);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.footer-nav-links a:hover {
    color: var(--accent-400);
}

.footer-view-all {
    font-weight: 600;
    color: var(--accent-400) !important;
    margin-top: var(--space-2);
    display: inline-block;
}

/* ============================================
   SUPPORT CAPABILITY CARDS (How We Support)
   ============================================ */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-6);
}

.support-card {
    display: flex;
    gap: var(--space-5);
    padding: var(--space-6);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    transition: all var(--transition-base);
}

.support-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-400);
    transform: translateY(-2px);
}

.support-card-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: linear-gradient(135deg, var(--accent-100), var(--accent-200));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-600);
}

.support-card-content h3 {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.support-card-content p {
    font-size: var(--text-sm);
    color: var(--neutral-600);
    line-height: 1.6;
    margin-bottom: var(--space-3);
}

.support-card-content .card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.support-card-content .card-link:hover {
    gap: var(--space-3);
}

/* ============================================
   CLIENT SEGMENT CARDS (Who We Work With)
   ============================================ */
.segment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
    margin-top: var(--space-6);
}

.segment-card {
    position: relative;
    padding: var(--space-6);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    overflow: hidden;
}

.segment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-500), var(--accent-400));
}

.segment-card h3 {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--neutral-900);
}

.segment-card p {
    font-size: var(--text-sm);
    color: var(--neutral-600);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   INSIGHT CARD IMAGE
   ============================================ */
.insight-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--accent-100);
}

.insight-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.insight-card:hover .insight-card-image img {
    transform: scale(1.05);
}

/* ============================================
   DETAIL PAGE HERO IMAGE
   ============================================ */
.detail-hero-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--space-8);
    box-shadow: var(--shadow-md);
}

.detail-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   SECTION IMAGE (inline content images)
   ============================================ */
.section-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: var(--space-6) 0;
    box-shadow: var(--shadow-sm);
}

.section-image img {
    width: 100%;
    height: auto;
    display: block;
}

.section-image figcaption {
    padding: var(--space-3) var(--space-4);
    background: var(--neutral-50);
    font-size: var(--text-xs);
    color: var(--neutral-500);
    text-align: center;
}

/* ============================================
   CAPABILITY DETAIL PAGE — SERVICE ITEMS GRID
   ============================================ */
.service-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    margin: var(--space-6) 0;
}

.service-item {
    background: var(--neutral-50);
    padding: var(--space-5) var(--space-6);
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--accent-500);
}

.service-item h3 {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--neutral-900);
}

.service-item p {
    font-size: var(--text-sm);
    color: var(--neutral-600);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   CAPABILITY DETAIL PAGE — PROCESS STEPS
   ============================================ */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    margin: var(--space-6) 0;
}

.process-step {
    display: flex;
    gap: var(--space-5);
    align-items: flex-start;
}

.process-step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-500);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--text-lg);
    border-radius: var(--radius-full);
}

.process-step-content h3 {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-1);
    color: var(--neutral-900);
}

.process-step-content p {
    font-size: var(--text-sm);
    color: var(--neutral-600);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   CAPABILITY DETAIL PAGE — INDUSTRY TAGS
   ============================================ */
.industry-application-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin: var(--space-6) 0;
}

.industry-application-card {
    background: white;
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200);
    transition: all var(--transition-fast);
}

.industry-application-card:hover {
    border-color: var(--accent-400);
    box-shadow: var(--shadow-sm);
}

.industry-application-card h3 {
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent-600);
    margin-bottom: var(--space-2);
}

.industry-application-card p {
    font-size: var(--text-sm);
    color: var(--neutral-600);
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   CAPABILITY DETAIL PAGE — HIGHLIGHT BOX
   ============================================ */
.highlight-box {
    background: var(--accent-100);
    border: 1px solid var(--accent-200);
    padding: var(--space-6) var(--space-8);
    border-radius: var(--radius-xl);
    margin: var(--space-6) 0;
}

.highlight-box p {
    color: var(--primary-900);
    line-height: 1.7;
    margin-bottom: var(--space-3);
}

.highlight-box p:last-child {
    margin-bottom: 0;
}
