/* ===================================
   Gary Matthews Solicitors - Main Styles
   Personal Injury Law Firm Website
   =================================== */

/* CSS Variables */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #dc2626;
    --dark-color: #1f2937;
    --light-gray: #f3f4f6;
    --medium-gray: #6b7280;
    --white: #ffffff;
    --success-color: #10b981;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--medium-gray);
}

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

a:hover {
    color: var(--primary-color);
}

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

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

/* Header & Navigation */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

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

.top-bar-item {
    display: flex;
    align-items: center;
    margin: 5px 15px 5px 0;
}

.top-bar-item i {
    margin-right: 8px;
    color: var(--accent-color);
}

.top-bar a {
    color: var(--white);
}

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

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

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

.logo span {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li a {
    color: var(--dark-color);
    font-weight: 600;
    padding: 10px 0;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

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

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 250px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    list-style: none;
    padding: 10px 0;
    z-index: 100;
}

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

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--dark-color);
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-highlight {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
}

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

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

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

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

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

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

/* Features/Services Grid */
.features-grid,
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card,
.service-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: var(--transition);
    text-align: center;
}

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

.feature-icon,
.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.feature-card h3,
.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card a {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
}

.service-card a i {
    margin-left: 5px;
    transition: var(--transition);
}

.service-card a:hover i {
    transform: translateX(5px);
}

/* Info Boxes */
.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-box {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.info-box h3 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.info-box p {
    color: var(--white);
}

/* Content Section */
.content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.content-text h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.content-text ul {
    list-style: none;
    margin: 20px 0;
}

.content-text ul li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: var(--medium-gray);
}

.content-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
    font-size: 1.2rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    position: relative;
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.3;
    position: absolute;
    top: 20px;
    left: 20px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

.testimonial-stars {
    color: #fbbf24;
    margin-top: 10px;
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px;
    border-radius: 10px;
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item-content h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-item-content p {
    color: var(--white);
    margin: 0;
}

.contact-item-content a {
    color: var(--white);
}

.contact-item-content a:hover {
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

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

/* Service Detail Page */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
}

.page-header p {
    color: var(--white);
    font-size: 1.2rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-top: 15px;
    flex-wrap: wrap;
}

.breadcrumb li {
    color: var(--white);
    margin: 0 5px;
}

.breadcrumb li a {
    color: var(--white);
}

.breadcrumb li a:hover {
    color: var(--accent-color);
}

.service-detail {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.service-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.service-content h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.service-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.sidebar-services {
    list-style: none;
}

.sidebar-services li {
    margin-bottom: 10px;
}

.sidebar-services li a {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: var(--white);
    border-radius: 5px;
    color: var(--dark-color);
    transition: var(--transition);
}

.sidebar-services li a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.sidebar-services li a i {
    margin-right: 10px;
    color: var(--accent-color);
}

.sidebar-services li a:hover i {
    color: var(--white);
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
}

.sidebar-cta h3 {
    color: var(--white);
}

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

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-widget p {
    color: #9ca3af;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: #9ca3af;
    transition: var(--transition);
}

.footer-widget ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.footer-contact-item i {
    color: var(--accent-color);
    margin-right: 10px;
    margin-top: 3px;
}

.footer-contact-item a {
    color: #9ca3af;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 10px rgba(0,0,0,0.1);
        transition: var(--transition);
        gap: 10px;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: block;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        background-color: var(--light-gray);
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }

    .section {
        padding: 60px 0;
    }

    .content-section,
    .contact-container,
    .service-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-sidebar {
        position: static;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .top-bar .container {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .info-boxes {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.highlight {
    background-color: #fef3c7;
    padding: 2px 6px;
    border-radius: 3px;
}

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

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