/* Combined Main Stylesheet for Wilsons Solicitors */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, system-ui, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: #edf2f7;
    font-size: 16px;
    font-weight: 400;
}

/* Header Styles */
.header {
    background: #edf2f7;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e5e5e5;
    text-align: center;
    padding: 8px 20px 6px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, system-ui, sans-serif;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.logo-section {
    margin-bottom: 5px;
}

.logo-image {
    margin-bottom: 0;
}

.logo-img {
    width: 65px;
    height: auto;
    margin-bottom: 3px;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c5aa0;
    margin: 0;
    line-height: 1.2;
}

.tagline {
    font-size: 0.7rem;
    color: #666;
    font-weight: normal;
    letter-spacing: 0.8px;
    margin-top: 1px;
}

.nav-section {
    margin-top: 5px;
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.nav-menu li a:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #2c5aa0;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Dropdown Menu Styles */
.nav-menu li {
    position: relative;
}

.nav-menu .has-dropdown > a::after {
    content: ' ▼';
    font-size: 0.7rem;
    margin-left: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 1000;
    margin-top: 5px;
}

.dropdown-menu li {
    display: block;
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
    background: #f7fafc;
    color: #2c5aa0;
    transform: none;
    box-shadow: none;
}

.has-dropdown:hover .dropdown-menu {
    display: block;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #4a5568;
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #edf2f7;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
}

.mobile-nav-menu {
    list-style: none;
    padding: 1rem;
    margin: 0;
}

.mobile-nav-menu li {
    margin: 0.5rem 0;
}

.mobile-nav-menu li a {
    display: block;
    padding: 10px;
    color: #4a5568;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.mobile-nav-menu li a:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-section {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Container Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    background: white;
    color: #2d3748;
    padding: 3.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Hero with Local Penrith Image */
.hero-local {
    background: url('../images/victoria-bridge-penrith.jpg') center/cover no-repeat;
    color: white;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.hero-local .hero-content {
    background: rgba(44, 90, 160, 0.85);
    padding: 2.5rem 3rem;
    border-radius: 12px;
    backdrop-filter: blur(3px);
    max-width: 900px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-local h1 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-local .hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #2c5aa0;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #4a5568;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.25rem;
    color: #2c5aa0;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

.intro-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 2.5rem;
    text-align: center;
}

/* Service Areas - Card Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #2c5aa0;
    transition: width 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-card:hover::before {
    width: 6px;
}

.service-card h3 {
    font-size: 1.4rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: #4a5568;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.service-link {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: #1e4080;
}

/* Service Group Styling for Services Page */
.service-group {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    border-left: 4px solid #2c5aa0;
}

.service-group:last-child {
    margin-bottom: 0;
}

.service-group h3 {
    font-size: 1.6rem;
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    font-weight: 700;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.service-group p {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}

.service-group p:last-child {
    margin-bottom: 0;
}

.service-group strong {
    color: #2d3748;
    font-weight: 600;
}

/* Service Detail Pages */
.service-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.service-detail h3 {
    color: #2c5aa0;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-detail h4 {
    color: #2d3748;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.service-detail p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.service-features {
    margin-top: 2rem;
}

.service-list {
    margin: 1rem 0 1.5rem 2rem;
    color: #4a5568;
    line-height: 1.8;
}

.service-list li {
    margin-bottom: 0.8rem;
}

.service-list li strong {
    color: #2d3748;
    font-weight: 600;
}

/* Service CTA Section Fix */
.service-detail .cta-section {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e4080 100%);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem -2rem -2rem -2rem;
}

.service-detail .cta-section h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 1rem;
}

.service-detail .cta-section p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
}

.service-detail .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Why Choose Section */
.why-choose {
    background: #f7fafc;
    padding: 4rem 0;
}

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

.advantage-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.advantage-card h3 {
    color: #2c5aa0;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.advantage-card p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Testimonials Section */
.testimonials {
    background: white;
    padding: 4rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-card .stars {
    color: #f59e0b;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-card p {
    color: #4a5568;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    color: #2c5aa0;
    font-weight: 600;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e4080 100%);
    padding: 4rem 0;
}

.cta-card {
    text-align: center;
    color: white;
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.cta-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-card p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button.cta-primary {
    background: white;
    color: #2c5aa0;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cta-button.cta-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border: 2px solid white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button.cta-secondary:hover {
    background: white;
    color: #2c5aa0;
}

/* About Page Styles */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Credentials Section */
.credentials-section {
    margin: 3rem 0;
    padding: 2rem 0;
}

.credentials-content {
    max-width: 800px;
    margin: 0 auto;
}

.credentials-content .intro-text {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.credentials-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.credential-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}

/* Contact Page Styles */
.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.contact-item {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.contact-item h3 {
    color: #2c5aa0;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-item p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-item a {
    color: #2c5aa0;
    text-decoration: none;
}

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

/* Map Section */
.map-section {
    background: #f7fafc;
    padding: 4rem 0;
}

.map-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.map-info h2 {
    color: #2c5aa0;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.map-details {
    margin-bottom: 2rem;
}

.map-details h3 {
    color: #2c5aa0;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* FAQ Styles */
.faq-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.faq-tab {
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.faq-tab.active,
.faq-tab:hover {
    background: #2c5aa0;
    color: white;
    transform: translateY(-1px);
}

.faq-content {
    display: none;
}

.faq-content.active {
    display: block;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background: #f7fafc;
    padding: 1.25rem;
    cursor: pointer;
    font-weight: 600;
    color: #2c5aa0;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: #edf2f7;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.faq-answer.open {
    padding: 1.25rem;
    max-height: 500px;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: #4a5568;
}

/* Privacy Page Styles */
.privacy-content {
    background: white;
    padding: 3rem 0;
}

.privacy-content h2 {
    color: #2c5aa0;
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    font-weight: 700;
}

.privacy-content h3 {
    color: #2c5aa0;
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 600;
}

.privacy-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Footer Styles */
.footer {
    background: #2c5aa0;
    color: white;
    padding: 2rem 0 1.5rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 3rem;
}

.footer-left h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.footer-left p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
}

.footer-left a {
    color: white;
    text-decoration: underline;
}

.footer-left a:hover {
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    display: inline-block;
    width: 2.5rem;
    height: 2.5rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-icon img {
    width: 1.5rem;
    height: 1.5rem;
}

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

.social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-right {
    text-align: right;
}

.footer-right p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0 0 0.5rem 0;
    opacity: 0.95;
}

/* Footer Bottom Section */
.footer-bottom {
    background: rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-bottom-content p {
    font-size: 0.8rem;
    margin: 0.25rem 0;
    opacity: 0.8;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: #2c5aa0;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.cta-button:hover {
    background: #2b6cb0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}


/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .services-grid,
    .advantages-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-card h2 {
        font-size: 2rem;
    }

    .cta-card p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-button.cta-primary,
    .cta-button.cta-secondary {
        text-align: center;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .contact-item {
        padding: 1.5rem 1rem;
    }
    
    .map-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-right {
        text-align: center;
    }
    
    .faq-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .faq-tab {
        width: 100%;
        max-width: 300px;
    }
    
    .credentials-logos {
        gap: 2rem;
    }
    
    .credential-logo {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 2.5rem 0;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
}