/* 
 * Wealth Management Website - Main Stylesheet
 * Sophisticated and elegant design for Australian financial services
 * 
 * Performance optimizations:
 * - CSS Grid and Flexbox for efficient layouts
 * - Hardware-accelerated transforms
 * - Optimized repaints and reflows
 * - Will-change hints for animations
 */

/* ===== ROOT VARIABLES ===== */
:root {
    --primary-navy: #1a2332;
    --accent-gold: #4a489e;
    --secondary-charcoal: #2e3440;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --text-dark: #212529;
    --text-light: #6c757d;
}

/* ===== GLOBAL RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-navy);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-light);
}

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

/* ===== LAYOUT UTILITIES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero .container-wide {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-alt {
    background-color: var(--light-gray);
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    line-height: 0;
}

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

nav > ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

nav > ul > li {
    position: relative;
}

nav a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    display: block;
}

nav > ul > li > a {
    padding: 0.5rem 0;
}

nav a:hover,
nav a.active {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
}

/* Dropdown Menu Styles */
.has-dropdown {
    position: relative;
}

.has-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.5rem;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.3s ease;
}

.has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    min-width: 220px;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    z-index: 100;
}

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

.dropdown li {
    padding: 0;
}

.dropdown a {
    padding: 1.25rem 1.5rem;
    color: var(--text-dark);
    border-bottom: none;
    transition: all 0.3s ease;
}

.dropdown a:hover {
    background-color: var(--light-gray);
    color: var(--accent-gold);
    border-bottom: none;
}

.dropdown a.active {
    background-color: var(--light-gray);
    color: var(--accent-gold);
    border-bottom: none;
}

.dropdown li:first-child a {
    border-radius: 4px 4px 0 0;
}

.dropdown li:last-child a {
    border-radius: 0 0 4px 4px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-navy);
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-charcoal) 100%);
    color: var(--white);
    padding: 0;
    height: 500px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Hero with Background Image */
.hero-with-image {
    position: relative;
}

.hero-with-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.23;
    z-index: 0;
}

.hero-with-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 35, 50, 0.75);
    backdrop-filter: blur(2px);
    z-index: 1;
}

/* Specific Hero Backgrounds */
.hero-home::after {
    background-image: url('../images/hero-sydney-harbour.jpg');
}

.hero-about::after {
    background-image: url('../images/hero-sydney-financial.jpg');
}

.hero-team::after {
    background-image: url('../images/hero-melbourne-skyline.jpg');
}

.hero-wealth::after {
    background-image: url('../images/hero-sydney-opera.jpg');
}

.hero-fixed-income::after {
    background-image: url('../images/hero-melbourne-financial.jpg');
}

.hero-private-equity::after {
    background-image: url('../images/hero-brisbane.jpg');
}

.hero-global-equities::after {
    background-image: url('../images/hero-global-equities.jpg');
}

.hero-contact::after {
    background-image: url('../images/hero-sydney-bridge.jpg');
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 100%;
    text-align: left !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: center;
    margin: 0;
    padding: 0;
    gap: 1rem;
}

.hero h1 {
    color: var(--white);
    font-size: 4rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: 0 !important;
    margin-right: auto;
    text-align: left !important;
    width: 100%;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-bottom: 2.5rem;
    margin-left: 0 !important;
    margin-right: auto;
    text-align: left !important;
    width: 100%;
}

.hero .btn-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-left: 0;
    margin-right: auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #b8954d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 169, 97, 0.3);
}

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

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

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

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

/* ===== CARDS ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.card {
    background: var(--white);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 3px solid transparent;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-top-color: var(--accent-gold);
    will-change: transform, box-shadow;
}


.card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== TEAM CARDS ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    will-change: transform, box-shadow;
}

.team-card-content {
    padding: 2rem;
    text-align: center;
}

.team-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-card .role {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: block;
}

.team-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.team-card .credentials {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--medium-gray);
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    max-width: 900px;
    margin: 0 auto;
}

.content-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.subtitle {
    font-size: 1.25rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ===== FEATURES LIST ===== */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-item {
    padding: 2rem;
    background: var(--white);
    border-left: 4px solid var(--accent-gold);
}

.feature-item h4 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-navy);
}

/* Statistics Section - Large Numbers */
.statistics-section .feature-item h4 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-gold);
}

/* ===== CONTACT FORM ===== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-item {
    margin-bottom: 2.5rem;
}


.contact-info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-info-item p {
    margin: 0;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-navy);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

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

.form-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #dc3545;
}

.form-group.error .form-error {
    display: block;
}

/* ===== MAP ===== */
.map-container {
    width: 100%;
    height: 450px;
    background: var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 3rem;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 4rem 0 0;
    margin-top: 6rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    padding: 2rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.footer-section:first-child {
    padding-right: 2rem;
}

.footer-section:first-child p {
    margin-bottom: 1.5rem;
}

.footer-logo-section {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1.5rem;
    display: block;
}

.footer-logo-section p {
    color: var(--text-light);
}

/* ===== VALUES SECTION ===== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.value-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: 4px;
}

.section-alt .value-item {
    background: transparent;
}

.value-item h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary-navy);
}

/* ===== CALL TO ACTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-charcoal) 100%);
    color: var(--white);
    text-align: center;
    padding: 5rem 0;
    margin: 6rem 0;
    border-radius: 8px;
}

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

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ===== UTILITY CLASSES ===== */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }

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

