/* Base Styles and Variables */
:root {
    --primary-color: #0a345f;
    --secondary-color: #c0a06f;
    --text-color: #333;
    --light-text: #fff;
    --light-bg: #f8f9fa;
    --dark-bg: #0a1f3b;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 4px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --font-heading: ;
    --font-body: Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

nav {
    display: flex;
    flex-wrap: wrap;
}
body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

section {
    padding: 100px 0;
}

header {
    width: 100%;
    padding: 1rem;
}


.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title-accent {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-top: -0.5rem;
}

/* Button styles */
.primary-btn, .secondary-btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
}

.primary-btn {
    background: var(--primary-color);
    color: var(--light-text);
    box-shadow: var(--box-shadow);
}

.primary-btn:hover {
    background: #0c4075;
    transform: translateY(-2px);
}

.secondary-btn {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.secondary-btn:hover {
    background: rgba(10, 52, 95, 0.05);
    transform: translateY(-2px);
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 15px 0;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo a {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    margin-left: 8px;
    color: var(--secondary-color);
}

.nav-links {

    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
 
    font-weight: 600;
        color:rgb(0, 0, 0);
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover:after {
    width: 100%;
}

.contact-btn {
    background: var(--primary-color);
    color: var(--light-text) !important;
    padding: 10px 20px;
    border-radius: var(--border-radius);
}

.contact-btn:hover {
    background: #0c4075;
}

.contact-btn:after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    background: linear-gradient(135deg, rgba(10, 52, 95, 0.9) 0%, rgba(10, 31, 59, 0.85) 100%),
                url('images/tingey-injury-law-firm-DZpc4UY8ZtY-unsplash.jpg') no-repeat center center;
    background-size: cover;
    color: var(--light-text);
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* About Section */
.about {
    background: var(--light-bg);
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-frame {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.image-frame:before {
    content: "";
    display: block;
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--secondary-color);
    z-index: -1;
    border-radius: var(--border-radius);
}

.image-frame img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 400px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.about-text {
    flex: 1.5;
}

.highlight-text {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.credentials {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.credential {
    display: flex;
    align-items: center;
    gap: 10px;
}

.credential i {
    color: var(--secondary-color);
}

/* Expertise Section */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.expertise-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    border: 1px solid var(--light-gray);
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.expertise-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 52, 95, 0.1);
    border-radius: 50%;
    margin-bottom: 20px;
}

.expertise-icon i {
    font-size: 30px;
    color: var(--primary-color);
}

.expertise-card h3 {
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.expertise-card h3:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
}

/* Cases Section */
.cases {
    background: var(--dark-bg);
    color: var(--light-text);
}

.cases .section-header h2 {
    color: var(--light-text);
}

.cases-slider {
    position: relative;
    margin-bottom: 30px;
    height: 300px;
}

.case {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.case:first-child {
    opacity: 1;
}

.case-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case h3 {
    color: var(--light-text);
    margin-bottom: 20px;
}

.case-details {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    opacity: 0.7;
}



.cases-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

.prev-case, .next-case {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--light-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.prev-case:hover, .next-case:hover {
    background: rgba(255, 255, 255, 0.1);
}

.case-indicators {
    display: flex;
    gap: 8px;
}

.case-indicators span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.case-indicators span.active {
    background: var(--secondary-color);
}

/* Testimonials Section */
.testimonials {
    background: var(--light-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

.testimonial-quote {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 30px;
    color: var(--secondary-color);
    opacity: 0.2;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    padding-top: 20px;
}

.testimonial-author {
    margin-top: auto;
}

.author-name {
    font-weight: bold;
    color: var(--primary-color);
}

.author-position {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Contact Section */
.contact-flex {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-form-container {
    flex: 2;
}

.contact-detail {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.contact-detail i {
    width: 40px;
    height: 40px;
    background: rgba(10, 52, 95, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-detail h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-hours {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--light-gray);
}

.hours-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 20px;
    margin-top: 10px;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.full-width {
    grid-column: span 2;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

input, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(10, 52, 95, 0.1);
}

.privacy-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.privacy-check input {
    width: auto;
}

.privacy-check a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--light-text);
    padding: 80px 0 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.logo {
    max-width: 200px;
    height: auto;
}


.footer-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-text);
}

.footer-nav {
    display: flex;
    gap: 60px;
}

.footer-nav-column h4 {
    color: var(--light-text);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-nav-column h4:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-nav-column ul li {
    margin-bottom: 10px;
}

.footer-nav-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-nav-column ul li a:hover {
    color: var(--light-text);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .about-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
    }
    
    .contact-flex {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        padding: 50px 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .expertise-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .full-width {
        grid-column: span 1;
    }
}

.disclaimer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.disclaimer-content {
    background-color: white;
    max-width: 500px;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.disclaimer-content h3 {
    margin-top: 0;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 10px;
    margin-bottom: 1rem;
}

.disclaimer-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.disclaimer-content a {
    color: #0056b3;
    text-decoration: underline;
}

#accept-disclaimer {
    margin-top: 1rem;
    width: 100%;
}

.cases-slider {
    position: relative;
    min-height: 200px; /* Adjust as needed */
}

.case {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Header responsive improvements */
@media (max-width: 1024px) {
    .navbar {
        padding: 0 20px;
    }
    
    .logo a {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }
    
    .navbar {
        padding: 0 15px;
    }
}

/* Hero section responsive improvements */
.hero {
    min-height: 100vh; /* Changed from fixed height to min-height */
    height: auto;
    padding: 100px 0; /* Add padding for smaller screens */
}

.hero-content {
    width: 100%;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }
    
  .hero h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
        line-height: 1.2;
        max-width: 100%;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .tagline {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }
    
     .hero h1 {
        font-size: clamp(1.6rem, 7vw, 2rem);
        padding: 0 10px;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .hero-cta {
        width: 100%;
    }
    
    .primary-btn, .secondary-btn {
        width: 100%;
        padding: 12px 15px;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    .hero-content {
        padding: 0 15px;
    }
}