/*
   Brisbane DUI Lawyer - Calm Premium Redesign
   Theme: Professional, Credible, Editorial (Dark Slate/Teal)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&display=swap');

:root {
    /* PREMIUM DESIGN TOKENS - ENHANCED */
    --color-bg: #FFFFFF;
    --color-surface-1: #FFFFFF;
    --color-surface-2: #F8FAFC;
    --color-surface-elevated: #FFFFFF;

    --color-border: #F1F5F9;
    --color-border-hover: #E2E8F0;

    /* Text - Dark on Light */
    --color-text-main: #020617;
    --color-text-muted: #475569;
    --color-text-subtle: #94A3B8;
    --color-text-light: #F8FAFC;

    /* Accents - Extended Palette */
    --color-accent: #91724C;
    --color-accent-hover: #7a5f3f;
    --color-accent-subtle: rgba(145, 114, 76, 0.12);
    --color-accent-light: #B5966D;
    --color-accent-glow: rgba(145, 114, 76, 0.25);
    --color-action: #2CB7A8;

    /* Premium Gradients */
    --gradient-hero: radial-gradient(ellipse at top right, rgba(145, 114, 76, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(44, 183, 168, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0B1220 0%, #151e2e 100%);

    --gradient-mesh: radial-gradient(at 27% 37%, hsla(215, 98%, 61%, 0.15) 0px, transparent 50%),
        radial-gradient(at 97% 21%, hsla(125, 98%, 72%, 0.1) 0px, transparent 50%),
        radial-gradient(at 52% 99%, hsla(354, 98%, 61%, 0.1) 0px, transparent 50%),
        radial-gradient(at 10% 29%, hsla(256, 96%, 67%, 0.1) 0px, transparent 50%);

    --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

    /* Premium Shadows - Multi-layer with Color */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1),
        0 1px 2px -1px rgba(0, 0, 0, 0.1);

    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -2px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);

    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.1),
        0 0 1px 0 rgba(0, 0, 0, 0.1);

    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 8px 10px -6px rgba(0, 0, 0, 0.1),
        0 1px 3px 0 rgba(0, 0, 0, 0.08);

    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 12px 24px -8px rgba(0, 0, 0, 0.15),
        0 2px 6px 0 rgba(0, 0, 0, 0.1);

    /* Colored Shadows for Premium Cards */
    --shadow-accent: 0 20px 40px -12px rgba(145, 114, 76, 0.3),
        0 8px 16px -8px rgba(145, 114, 76, 0.2),
        0 0 1px 0 rgba(145, 114, 76, 0.15);

    --shadow-accent-hover: 0 30px 60px -12px rgba(145, 114, 76, 0.4),
        0 18px 36px -18px rgba(145, 114, 76, 0.3),
        0 0 1px 0 rgba(145, 114, 76, 0.2);

    /* Spacing Scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;

    /* Typography */
    --font-heading: 'Source Serif 4', serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;

    --container-max: 1200px;

    /* Premium Transitions */
    --transition: cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s;
    --transition-spring: cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s;

    /* Dark Theme Tokens */
    --dark-bg: #0B1220;
    --dark-surface: #151e2e;
    --dark-border: rgba(255, 255, 255, 0.10);
    --dark-text-main: rgba(255, 255, 255, 0.95);
    --dark-text-muted: rgba(255, 255, 255, 0.70);
    --dark-accent: #B5966D;
}

/* Scroll Progress Bar - Premium */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-accent);
    z-index: 10000;
    transform-origin: left;
    box-shadow: 0 0 10px rgba(145, 114, 76, 0.4),
        0 0 20px rgba(145, 114, 76, 0.2);
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {

    0%,
    100% {
        filter: brightness(1) saturate(1);
    }

    50% {
        filter: brightness(1.2) saturate(1.3);
    }
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    /* More leading for editorial feel */
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

/* Typography Premium - Editorial Quality */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    font-weight: 600;
    font-feature-settings: "liga" 1, "calt" 1;
    text-rendering: optimizeLegibility;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-weight: 600;
    text-wrap: balance;
}

h1 strong {
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    margin-bottom: var(--space-6);
    margin-top: var(--space-12);
    letter-spacing: -0.015em;
    line-height: 1.2;
    text-wrap: balance;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin-bottom: var(--space-4);
    margin-top: var(--space-8);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

h4 {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: 600;
    letter-spacing: -0.005em;
}

p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
    text-wrap: pretty;
}

.heading-display {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-wrap: balance;
}

.heading-display strong {
    position: relative;
    display: inline-block;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: var(--space-3);
    display: block;
}

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

/* Editorial Grid System */
.editorial-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-8);
    position: relative;
    padding-bottom: var(--space-20);
}

.content-rail {
    grid-column: span 8;
}

.right-rail {
    grid-column: span 4;
}

@media (max-width: 960px) {
    .content-rail {
        grid-column: span 12;
    }

    .right-rail {
        display: none;
    }

    /* Replaced by bottom sticky on mobile */
}

.section-padding {
    padding: 120px 0;
    /* "Expensive" whitespace */
}

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

.text-accent {
    color: var(--color-accent);
}

.hidden-mobile {
    display: block;
}

/* Grid System */
.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-6);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 var(--space-6);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #FFFFFF;
    box-shadow: var(--shadow-accent);
    border: none;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-accent-hover);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

/* Premium Shimmer Effect */
.btn-primary.shimmer::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary.shimmer:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary.shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 70%);
    animation: shimmerSlide 3s infinite;
}

@keyframes shimmerSlide {
    0% {
        transform: translateX(-100%) translateY(-100%);
    }

    100% {
        transform: translateX(100%) translateY(100%);
    }
}

.btn-secondary {
    background: transparent;
    border-color: var(--color-border);
    color: var(--color-text-main);
}

.btn-secondary:hover {
    background: var(--color-surface-2);
    border-color: var(--color-accent);
}

.btn-white {
    background: #FFFFFF;
    color: var(--color-text-main);
    border: none;
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}



.btn-outline {
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    background: transparent;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(13, 148, 136, 0.05);
    /* Slight accent tint */
}

/* Forms */
.form-control {
    width: 100%;
    padding: 14px 16px;
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

/* =========================================
   DARK HEADER & HERO
   ========================================= */

.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 18, 32, 0.95);
    /* Nearly opaque dark */
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--dark-border);
    padding: 6px 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.nav-menu {
    display: flex;
    gap: var(--space-8);
}

.main-header .nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #CBD5E1;
    position: relative;
    padding-bottom: 4px;
}

.main-header .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transform: translateX(-50%);
    transition: width var(--transition-smooth);
}

.main-header .nav-menu a:hover::after,
.main-header .nav-menu a.active::after {
    width: 100%;
}

.main-header .nav-menu a:hover,
.main-header .nav-menu a.active {
    color: var(--dark-accent);
}

/* Hero Section - Premium Multi-layer Design */
.hero-section {
    min-height: 850px;
    padding-top: 180px;
    padding-bottom: 120px;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero-parallax-bg {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
    will-change: transform;
    opacity: 0.95;
}

/* Multi-layer Overlay System */
.hero-section::before {
    display: block;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(11, 18, 32, 0.5) 0%,
            rgba(21, 30, 46, 0.8) 50%,
            rgba(11, 18, 32, 0.6) 100%);
    z-index: 0;
    pointer-events: none;
}

/* Ambient Glow Effect */
.hero-section::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(145, 114, 76, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    animation: ambientFloat 20s ease-in-out infinite;
}

@keyframes ambientFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-30px, 30px) scale(1.1);
    }
}

/* Hero Content Override - Enforce Dark Mode Colors */
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4 {
    color: white;
}

.hero-section p,
.hero-section .lead {
    color: var(--dark-text-muted);
}

/* Ensure hero paragraphs have high contrast */
.hero-section p {
    opacity: 0.9;
    color: #e2e8f0;
}

.hero-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-8);
    align-items: flex-start;
    /* Important for sticky rail */
    position: relative;
    z-index: 1;
}

/* Authority Bar */
.authority-bar {
    background: rgba(15, 23, 42, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--space-6) 0;
    position: relative;
    z-index: 2;
    margin-top: -60px;
    /* Overlap hero slightly */
    backdrop-filter: blur(4px);
}

.authority-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-12);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.authority-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.authority-item i {
    color: var(--dark-accent);
    font-size: 1.1rem;
}

/* Right Rail TOC Styles */
.right-rail-toc {
    margin-top: var(--space-6);
    padding: var(--space-6);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.right-rail-toc h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-subtle);
    margin-bottom: var(--space-3);
    font-weight: 700;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-link {
    display: block;
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition);
    border-left: 2px solid transparent;
    padding-left: 12px;
    margin-left: -12px;
}

.toc-link:hover {
    color: var(--color-accent);
}

.toc-link.active {
    color: var(--color-accent);
    font-weight: 600;
    border-left-color: var(--color-accent);
    background: linear-gradient(to right, rgba(44, 183, 168, 0.05), transparent);
}

/* Trust Bullets in Hero need to be light */
.trust-bullets {
    display: flex;
    gap: var(--space-6);
    margin-top: var(--space-8);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.9rem;
    color: #CBD5E1;
    font-weight: 500;
}

.trust-item i {
    color: var(--dark-accent);
}

/* Hero Form Panel - Premium Glassmorphism */
.hero-form-panel {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid transparent;
    border-image: linear-gradient(135deg,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(145, 114, 76, 0.3) 100%) 1;
    border-radius: var(--radius-xl);
    padding: 44px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6),
        0 10px 20px -5px rgba(145, 114, 76, 0.2),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.1);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-form-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 100%);
    opacity: 0.6;
}

.hero-form-panel h3 {
    color: white;
}

.hero-form-panel p {
    color: #CBD5E1;
}

.hero-form-panel input,
.hero-form-panel textarea,
.hero-form-panel select {
    background: #0F172A;
    /* Slate 900 input bg */
    border-color: #334155;
    color: white;
}

/* =========================================
   LIGHT BODY COMPONENTS
   ========================================= */

/* Premium Chips */
.situation-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.chip {
    display: inline-flex;
    padding: 10px 18px;
    background: transparent;
    border: 1.5px solid var(--color-accent);
    border-radius: 999px;
    color: var(--color-accent);
    box-shadow: none;
    transition: all var(--transition-smooth);
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.chip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--color-accent-subtle);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.chip:hover::before {
    width: 200%;
    height: 200%;
}

.chip:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(145, 114, 76, 0.2),
        0 0 20px rgba(145, 114, 76, 0.1);
}

/* Cards (White on Light BG) */
/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: var(--space-6);
}

.bento-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

/* Editorial Detail: Section Numbers */
.section-header {
    position: relative;
    margin-bottom: var(--space-16);
    text-align: center;
}

.section-number {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.25em;
    opacity: 0.6;
}

.section-number::before {
    content: '[';
    margin-right: 4px;
}

.section-number::after {
    content: ']';
    margin-left: 4px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.premium-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    transform-style: preserve-3d;
    will-change: transform;
}

/* Border Shimmer Effect */
.premium-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    padding: 1px;
    background: linear-gradient(135deg,
            var(--color-accent-light),
            var(--color-action),
            var(--color-accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

/* Premium Card Transformation with 3D */
.premium-card::before {
    content: 'View Details';
    position: absolute;
    bottom: 20px;
    right: 32px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-accent);
    opacity: 0;
    transform: translateX(10px) translateZ(20px);
    transition: all var(--transition-smooth);
}

.premium-card:hover::before {
    opacity: 1;
    transform: translateX(0) translateZ(20px);
}

.premium-card:hover::after {
    opacity: 1;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
        background-size: 200% 200%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Magnetic Hover with 3D Transform */
.premium-card:hover {
    border-color: transparent;
    transform: translateY(-12px) translateZ(20px) rotateX(2deg);
    box-shadow: var(--shadow-accent-hover);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg,
            rgba(145, 114, 76, 0.1) 0%,
            rgba(44, 183, 168, 0.1) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.4rem;
    margin-bottom: var(--space-4);
    transition: all var(--transition-bounce);
    box-shadow: 0 4px 12px rgba(145, 114, 76, 0.15);
}

.premium-card:hover .card-icon {
    transform: translateY(-4px) rotate(5deg) scale(1.1);
    box-shadow: 0 8px 24px rgba(145, 114, 76, 0.25);
}

.card-link {
    margin-top: auto;
    font-weight: 600;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
}

.card-link:hover {
    gap: 12px;
    color: var(--color-accent-hover);
}

.card-link i {
    transition: transform var(--transition-bounce);
}

.card-link:hover i {
    transform: translateX(4px);
}

.card-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(13, 148, 136, 0.15);
    color: var(--color-accent);
    padding: 4px 10px;
    border-radius: 99px;
    font-weight: 600;
}

/* Stepper */
.process-stepper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    position: relative;
    margin-top: var(--space-8);
}

.step-item {
    position: relative;
    z-index: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: var(--space-3);
    box-shadow: var(--shadow-md);
}

.step-title {
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 4px;
}

/* Split Section (Court Readiness) */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.checklist-item {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    align-items: flex-start;
}

.checklist-icon {
    color: var(--color-accent);
    margin-top: 4px;
}

/* Legal Notice Section */
.legal-notice-section {
    background-color: var(--color-surface-2);
    border-radius: var(--radius-xl);
    padding: var(--space-12) var(--space-8);
    margin: var(--space-16) 0;
}

.notice-cards-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    margin-top: var(--space-10);
}

.notice-card {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.notice-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: 12px;
}

.notice-card h3 i {
    color: var(--color-accent);
}

.notice-card p {
    font-size: 1.05rem;
    line-height: 1.6;
}

.notice-card ul {
    margin: var(--space-6) 0;
}

.notice-card li {
    position: relative;
    padding-left: 28px;
    margin-bottom: var(--space-3);
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.notice-card li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .section-padding {
        padding: 64px 0;
    }

    .hero-form-panel {
        padding: 24px;
    }

    .premium-card {
        padding: 24px;
    }
}

/* Expert Network Section */
.expert-network-section {
    padding: var(--space-20) 0;
    background: #FFFFFF;
}

.lawyer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-12);
}

body {
    background: var(--color-background);
    color: var(--color-text);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Premium Film Grain Texture Overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.lawyer-card {
    background: var(--color-surface-2);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: var(--transition);
    position: relative;
    padding-top: var(--space-2);
}

.lawyer-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.lawyer-image-container {
    width: 100%;
    height: 280px;
    /* Standardized for perfect alignment across all cards */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: var(--color-surface-2);
}

/* Container for photos 1 & 3 - Align to top */
.lawyer-image-container.portrait-crop {
    align-items: flex-start;
}

.lawyer-image-container img {
    height: 110%;
    /* Default for female photo */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    transition: all 0.5s ease;
}

/* Scaling specifically for photos 1 & 3 */
.lawyer-image-container.portrait-crop img {
    height: 170%;
    transform: translateY(-5%);
    /* Shifted slightly for shorter container */
}

/* Scaling specifically for solicitors (photos 2 & 4) */
.lawyer-image-container.solicitor-crop img {
    height: 130%;
    transform: translateY(12%);
    /* Stronger push to ground them and match head size */
}

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

/* If it was already translated, we need to combine them on hover */
.lawyer-card:hover .lawyer-image-container.portrait-crop img {
    transform: translateY(-5%) scale(1.05);
}

.lawyer-info {
    padding: var(--space-8) var(--space-6);
    /* More vertical padding */
    background: #FFFFFF;
    width: 100%;
    border-top: 1px solid var(--color-border);
}

.lawyer-info h4 {
    font-size: 1.25rem;
    color: var(--color-text-main);
    margin-bottom: 4px;
}

.lawyer-info p {
    font-size: 0.85rem;
    /* Slightly smaller for noise reduction */
    color: var(--color-text-muted);
    /* More neutral color */
    font-weight: 500;
    text-transform: none;
    /* Removed uppercase for noise reduction */
    letter-spacing: normal;
    margin-bottom: 0;
}

@media (max-width: 850px) {
    .lawyer-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Premium Scroll Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-on-scroll.delay-100 {
    transition-delay: 0.1s;
}

.reveal-on-scroll.delay-200 {
    transition-delay: 0.2s;
}

.reveal-on-scroll.delay-300 {
    transition-delay: 0.3s;
}

/* Legacy support */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Suburb Chips */
.suburb-wrapper {
    background: var(--color-surface-1);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    position: relative;
    overflow: hidden;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
}

.accordion-item {
    border-bottom: 1px solid var(--color-border);
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: var(--space-6) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-main);
    transition: all var(--transition);
    position: relative;
}

.accordion-header::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width var(--transition-smooth);
}

.accordion-header:hover::before {
    width: 40px;
}

.accordion-header:hover {
    color: var(--color-accent);
    padding-left: 8px;
}

.accordion-header i {
    transition: transform var(--transition-bounce);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-content p {
    padding-bottom: var(--space-6);
    color: var(--color-text-muted);
}

/* Footer - Dark Footer is standard even in light themes */
.site-footer {
    background: #0F172A;
    color: #CBD5E1;
    border-top: none;
    padding: var(--space-16) 0;
    margin-top: var(--space-16);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-8);
}

.footer-col h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    margin-bottom: var(--space-4);
}

.footer-link {
    display: block;
    color: #94A3B8;
    margin-bottom: var(--space-2);
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--dark-accent);
}

.site-footer .logo {
    margin-bottom: var(--space-4);
    display: block;
}

/* Force white logo */

/* Mobile Sticky Bar */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: #FFFFFF;
    border-top: 1px solid var(--color-border);
    z-index: 2000;
    display: none;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* 
   SERVICES PAGE STYLES 
   Moved from services/index.html and refined
*/

/* Services Hero (Dark) */
.services-hero {
    padding-top: 140px;
    padding-bottom: var(--space-12);
    background: #FFFFFF;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-text-main);
    margin-bottom: var(--space-12);
}

.services-hero h1,
.services-hero p {
    color: var(--color-text-main);
}

.services-hero .eyebrow {
    color: var(--color-accent);
}

/* Service Cards (White on Light) */
.service-card-new {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--color-text-main);
    position: relative;
    box-shadow: var(--shadow-md);
}

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

.service-image-box {
    height: 200px;
    width: 100%;
    position: relative;
    background: #1a1f1f;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}

.service-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.service-card-new:hover .service-image-box img {
    transform: scale(1.1);
    opacity: 1;
}

.service-icon-placeholder {
    font-size: 3rem;
    color: var(--color-accent);
    opacity: 0.5;
}

.service-info {
    padding: var(--space-6);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-info h3 {
    margin-bottom: var(--space-3);
    color: var(--color-text-main);
    /* Dark text on white card */
    font-weight: 700;
}

.service-info p {
    font-size: 0.95rem;
    color: #475569;
    /* Slate 600 for readable paragraph text on white */
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

.service-card-new:hover h3 {
    color: var(--color-accent);
}

.service-card-new .btn {
    margin-top: auto;
    align-self: flex-start;
}

.service-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-12);
}

/* 
   SERVICE DETAIL PAGE ENHANCEMENTS 
*/

/* Benefit Lists (Bulleted with icons) */
.benefit-list {
    margin: var(--space-6) 0;
    display: grid;
    gap: var(--space-3);
}

.benefit-list li {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.benefit-list li:hover {
    background: #F8FAFC;
    border-color: var(--color-accent);
    transform: translateX(4px);
}

.benefit-list li i {
    margin-top: 4px;
    color: var(--color-accent);
}

/* Sidebar Styling */
aside#assessment-sidebar .hero-form-panel {
    background: #FFFFFF;
    border: 1px solid var(--color-accent);
    box-shadow: var(--shadow-xl);
    color: var(--color-text-main);
}

aside#assessment-sidebar .hero-form-panel h3 {
    color: var(--color-text-main);
}

aside#assessment-sidebar .hero-form-panel p {
    color: var(--color-text-muted);
}

aside#assessment-sidebar .hero-form-panel input,
aside#assessment-sidebar .hero-form-panel select,
aside#assessment-sidebar .hero-form-panel textarea {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
}

/* Content Typography Polish */
main h2.text-gold {
    margin-top: var(--space-12);
    margin-bottom: var(--space-6);
    position: relative;
    padding-bottom: var(--space-4);
}

main h2.text-gold::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

main .premium-card h4 {
    color: var(--color-accent);
}

/* Image Polish in Details */
main>img {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: transform 0.5s ease;
}

main>img:hover {
    transform: scale(1.01);
}

/* Helper classes for standardized service pages */
.page-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    /* Full opacity on light theme looks better */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.card-title-white {
    color: white;
    margin-bottom: 8px;
}

.card-title-accent {
    color: var(--color-accent);
    margin-bottom: 8px;
}

.text-small {
    font-size: 0.9rem;
}

.card-elevated {
    margin: var(--space-6) 0;
    background: var(--color-surface-elevated);
}

.icon-list-item {
    margin-bottom: 8px;
}

.hero-card {
    height: 300px;
    padding: 0 !important;
    overflow: hidden;
    margin-bottom: var(--space-8);
}

/* Responsiveness */
@media (max-width: 900px) {

    .hero-split,
    .split-layout {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .nav-menu,
    .header-cta {
        display: none;
    }

    .process-stepper {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .mobile-sticky-bar {
        display: block;
    }

    .service-grid-new {
        grid-template-columns: 1fr;
    }
}

/* 
   PREMIUM COMPONENTS 
*/

/* 1. Sticky Right Rail */
.sticky-rail-content {
    position: sticky;
    top: 100px;
    /* Space for fixed header */
}

/* TOC Nav */
.toc-nav {
    margin-top: var(--space-8);
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border);
}

.toc-nav h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

.toc-nav ul li a {
    display: block;
    padding: 6px 0;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    border-left: 2px solid transparent;
    padding-left: 12px;
}

.toc-nav ul li a:hover,
.toc-nav ul li a.active {
    color: var(--color-accent);
    border-left-color: var(--color-accent);
}

/* 2. Callout Box (Legal Limits) */
.callout-box {
    background: #F0FDFA;
    /* Very light teal/slate mix */
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-accent);
    padding: var(--space-6);
    border-radius: 8px;
    margin: var(--space-8) 0;
    display: flex;
    gap: var(--space-4);
    color: var(--color-text-main);
}

.callout-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 4px;
}

/* 3. Comparison Grid (Charges) */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin: var(--space-6) 0;
}

.comparison-card {
    background: var(--color-surface-1);
    border: 1px solid var(--color-border);
    padding: var(--space-6);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.comparison-card h4 {
    margin-bottom: var(--space-3);
    color: var(--color-text-main);
    /* Dark text */
}

.comparison-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: var(--color-text-muted);
}

/* 4. Timeline Step (Process) */
.timeline-step {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    position: relative;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    width: 32px;
    height: 32px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
}

/* Vertical Line */
.timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    /* Center of marker */
    top: 32px;
    bottom: -24px;
    /* Connect to next */
    width: 2px;
    background: var(--color-border);
    z-index: 1;
}

.timeline-content h4 {
    margin-bottom: var(--space-2);
    font-size: 1.1rem;
}

.timeline-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* 5. Checklist Module */
.checklist-module {
    list-style: none;
    display: grid;
    gap: var(--space-3);
    margin: var(--space-6) 0;
    color: var(--color-text-main);
}

.checklist-module li {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
}

.checklist-module li i {
    color: var(--color-accent);
    margin-top: 5px;
    font-size: 0.9rem;
}

/* 6. Assessment Form Card (Sticky) */
.assessment-card {
    background: #FFFFFF;
    /* Light card */
    border: 1px solid var(--color-border);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    /* stronger shadow for sticky element */
}

.assessment-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-4);
    color: var(--color-text-main);
    /* Dark text */
}

.assessment-card input,
.assessment-card select,
.assessment-card textarea {
    width: 100%;
    background: #FFFFFF;
    /* White input */
    border: 1px solid var(--color-border);
    padding: 14px 16px;
    /* Uniform padding */
    border-radius: var(--radius-md);
    color: var(--color-text-main);
    /* Dark text */
    margin-bottom: var(--space-4);
    font-size: 1rem;
    transition: var(--transition);
}

.assessment-card label {
    margin-bottom: 6px;
}

.disclaimer-text {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    margin-top: var(--space-4);
}

/* Mobile Sticky Bottom CTA */
.mobile-bottom-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    border-top: 1px solid var(--color-border);
    padding: var(--space-4);
    z-index: 9999;
    display: none;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 960px) {
    .mobile-bottom-cta {
        display: block;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

/* Brisbane Readiness Module */
.brisbane-module {
    background: #F0FDFA;
    /* Light teal surface */
    border: 1px solid var(--color-accent-subtle);
    padding: var(--space-6);
    border-radius: var(--radius-md);
    margin-top: var(--space-12);
}

.brisbane-module h4 {
    color: var(--color-accent);
    margin-bottom: var(--space-3);
}

/* --- Accessibility Vanguard --- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #91724C;
    color: white;
    padding: 8px 16px;
    z-index: 9999;
    transition: top 0.2s;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 4px 0;
}

/* --- Aesthetic Elevation: Typography & Accents --- */
.premium-card {
    box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.premium-card:hover {
    box-shadow: var(--shadow-xl), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.heading-display {
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.heading-display strong {
    color: var(--color-accent);
    font-weight: 800;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--color-accent);
    z-index: 10001;
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Micro-Refinement: Custom Selection */
::selection {
    background: var(--color-accent);
    color: white;
}