/* ================================================================
   Queensland Accounting Professionals - Main Stylesheet
   Premium Australian Accounting Firm Design
   ================================================================ */

/* CSS Variables */
:root {
    --primary: #1a2332;
    --primary-light: #2d3748;
    --primary-dark: #0d1421;
    --secondary: #c9a961;
    --secondary-light: #d4b876;
    --accent: #c9a961;
    --text-dark: #1a2332;
    --text-muted: #6c757d;
    --text-light: #adb5bd;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 25px rgba(0,0,0,0.08);
    --shadow-lg: 0 15px 50px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
[data-bs-theme="dark"] {
    --primary: #1a2332;
    --primary-dark: #0d1421;
    --text-dark: #e2e8f0;
    --text-muted: #a0aec0;
    --bg-light: #1e293b;
    --bg-white: #0f172a;
    --border-color: #334155;
}

/* ================================================================
   BASE STYLES
   ================================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

a { color: var(--secondary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary-light); }

img { max-width: 100%; height: auto; }

/* ================================================================
   PAGE HERO (inner page banner)
   ================================================================ */
.page-hero {
    background: linear-gradient(135deg, #1a2332 0%, #0d1421 100%) !important;
    color: #fff !important;
    padding: 3rem 0;
    text-align: center;
}
.page-hero .row { padding-top: 0 !important; padding-bottom: 0 !important; }
.page-hero h1,
.page-hero .display-4,
.page-hero .display-5 { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,0.8); }
.page-hero .breadcrumb { margin-bottom: 0.5rem; justify-content: center !important; }
.page-hero .breadcrumb-item a { color: rgba(255,255,255,0.7); }
.page-hero .breadcrumb-item a:hover { color: var(--secondary); }
.page-hero .breadcrumb-item.active { color: #fff; }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ================================================================
   TOP BAR
   ================================================================ */
.top-bar {
    background: var(--primary);
    color: #fff;
    padding: 0.6rem 0;
    font-size: 0.85rem;
}

.top-bar a { color: rgba(255,255,255,0.8); }
.top-bar a:hover { color: var(--secondary); }
.top-bar i { color: var(--secondary); margin-right: 0.3rem; }

/* ================================================================
   HEADER / NAVIGATION
   ================================================================ */
.main-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: var(--transition);
}

.main-header.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand .brand-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.navbar { padding: 0.8rem 0; }

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after { width: 60%; }

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-item:hover { background: var(--bg-light); color: var(--secondary); }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn-accent {
    background: var(--secondary);
    color: #fff;
    border: 2px solid var(--secondary);
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap !important;
}

.btn-accent:hover {
    background: transparent;
    color: var(--secondary);
}

.btn-outline-dark {
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.5rem;
    font-weight: 600;
}

/* ================================================================
   SECTION STYLES
   ================================================================ */
.section-padding { padding: 5rem 0; }

.section-header { margin-bottom: 3rem; }

.section-tag {
    display: inline-block;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero-section { position: relative; }

.hero-slide {
    min-height: 600px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-color: var(--primary);
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(26,35,50,0.85) 0%, rgba(26,35,50,0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 650px;
    padding: 2rem 0;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.animate-in {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   TRUST BAR
   ================================================================ */
.trust-bar {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.trust-item {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    margin: 0.3rem 1.5rem;
}

.text-accent { color: var(--secondary) !important; }

/* ================================================================
   SERVICE CARDS
   ================================================================ */
.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
}

.service-icon i { font-size: 1.8rem; color: #fff; }

.service-title {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.service-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary);
}

.service-link:hover { color: var(--primary); }

/* ================================================================
   WHY CHOOSE US
   ================================================================ */
.why-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.why-item i { margin-right: 0.8rem; font-size: 1.2rem; }
.why-item span { font-weight: 500; }

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.3rem;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

/* ================================================================
   INDUSTRY CARDS
   ================================================================ */
.industry-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.industry-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

.industry-icon {
    width: 55px;
    height: 55px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 1rem;
}

.industry-icon i { font-size: 1.4rem; color: var(--secondary); }

.industry-info { flex: 1; }
.industry-info h4 { font-size: 1rem; margin-bottom: 0.2rem; font-family: var(--font-body); font-weight: 600; }
.industry-info p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

.industry-link {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.industry-card:hover .industry-link {
    background: var(--secondary);
    color: #fff;
}

/* ================================================================
   TEAM CARDS
   ================================================================ */
.team-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
}

.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.team-photo img { width: 100%; height: 280px; object-fit: cover; }

.team-photo-placeholder {
    width: 100%;
    height: 280px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo-placeholder i { font-size: 4rem; color: var(--text-light); }

.team-info { padding: 1.5rem; }
.team-info h5 { font-family: var(--font-body); font-weight: 600; margin-bottom: 0.3rem; }
.team-position { color: var(--secondary); font-weight: 500; font-size: 0.9rem; }

/* ================================================================
   TESTIMONIAL CARDS
   ================================================================ */
.testimonial-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition);
    height: 100%;
}

.testimonial-card:hover { box-shadow: var(--shadow-md); }

.testimonial-stars { margin-bottom: 1rem; }
.testimonial-stars i { color: #f5a623; font-size: 0.9rem; }

.testimonial-text {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author strong { display: block; color: var(--text-dark); }
.testimonial-author span { font-size: 0.85rem; color: var(--text-muted); }

/* ================================================================
   FAQ ACCORDION
   ================================================================ */
.accordion-button {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--bg-white);
    border-radius: var(--radius-sm) !important;
}

.accordion-button:not(.collapsed) {
    background: var(--bg-light);
    color: var(--secondary);
    box-shadow: none;
}

.accordion-button:focus { box-shadow: none; border-color: var(--secondary); }
.accordion-body { padding: 1.5rem; color: var(--text-muted); line-height: 1.8; }

/* ================================================================
   BLOG CARDS
   ================================================================ */
.blog-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.blog-image img { width: 100%; height: 200px; object-fit: cover; }

.blog-content { padding: 1.5rem; }

.blog-category {
    display: inline-block;
    background: var(--bg-light);
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.8rem;
}

.blog-title {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.blog-title a { color: var(--text-dark); }
.blog-title a:hover { color: var(--secondary); }

.blog-excerpt { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }

.blog-meta { font-size: 0.8rem; color: var(--text-light); }
.blog-meta i { margin-right: 0.3rem; }

/* ================================================================
   CTA SECTION
   ================================================================ */
.cta-section {
    background: var(--primary);
    color: #fff;
    padding: 4rem 0;
}

.cta-section h2 { color: #fff; font-size: 2rem; margin-bottom: 0.5rem; }
.cta-section p { opacity: 0.8; margin-bottom: 0; }

/* ================================================================
   FOOTER
   ================================================================ */
.main-footer {
    background: #111827;
    color: #9ca3af;
}

.footer-title {
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.footer-contact p { margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-contact i { color: var(--secondary); margin-right: 0.5rem; }

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: #9ca3af; font-size: 0.9rem; }
.footer-links a:hover { color: var(--secondary); }

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}

.social-link:hover { background: var(--secondary); color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    font-size: 0.85rem;
}

.footer-bottom a { color: #9ca3af; }
.footer-bottom a:hover { color: var(--secondary); }

/* ================================================================
   BACK TO TOP
   ================================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--secondary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.active { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary); color: #fff; }

/* ================================================================
   ANIMATIONS
   ================================================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 991px) {
    .hero-title { font-size: 2.2rem; }
    .hero-slide { min-height: 450px; }
    .section-title { font-size: 2rem; }
    .section-padding { padding: 3.5rem 0; }
    .stats-grid { gap: 1rem; }
    .stat-number { font-size: 2rem; }
}

@media (max-width: 767px) {
    .top-bar { display: none; }
    .hero-title { font-size: 1.8rem; }
    .hero-slide { min-height: 400px; }
    .section-title { font-size: 1.6rem; }
    .trust-item { display: block; margin: 0.3rem 0; text-align: center; }
    .cta-section .text-lg-end { text-align: center !important; margin-top: 1.5rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}
