/* Main stylesheet for Eaton Vasey website */

/* Base styles and variables */
:root {
    --primary-color: #004483; /* Dark blue as requested */
    --secondary-color: #0078d4; /* Vibrant light blue for buttons */
    --accent-color: #00a0dc; /* LinkedIn blue as accent */
    --accent-bright: #00c2ff; /* Brighter accent for highlights */
    --accent-vibrant: #ff6b00; /* Vibrant orange accent for contrast */
    --text-color: #333333;
    --light-text: #ffffff;
    --light-bg: #f5f7fa;
    --dark-bg: #1a1a1a;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 8px 16px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

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

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

h1 {
    font-size: 2.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-vibrant);
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    box-shadow: var(--shadow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

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

.btn-primary:hover {
    background-color: #ff8533;
}

.btn-secondary {
    background-color: var(--secondary-color);
}

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

.btn-light:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 10px 26px;
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

/* Header */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 50px;
}

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

.nav-menu li {
    margin-left: 30px;
    position: relative;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

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

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

.nav-menu a:hover,
.nav-menu li.active a {
    color: var(--primary-color);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 250px;
    box-shadow: var(--shadow);
    z-index: 1;
    border-radius: 4px;
    top: 100%;
    left: 0;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    display: block;
    font-weight: 400;
    border-left: 3px solid transparent;
}

.dropdown-content a:hover {
    background-color: var(--light-bg);
    border-left: 3px solid var(--accent-vibrant);
}

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

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

/* Hero Section */
.hero-section {
    background-image: url('images/alex-tai-zpRBCGplUzM-unsplash.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    padding: 180px 0;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay */
    z-index: 1;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.2rem;
    color: var(--light-text);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-buttons .btn {
    padding: 14px 30px;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Services Section */
.services-section {
    background-color: var(--light-bg);
    position: relative;
}

.services-section:before {
    content: "";
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: var(--light-bg);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
    border-color: var(--accent-bright);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-content p {
    margin-bottom: 20px;
    color: #555;
}

.services-cta {
    text-align: center;
    margin-top: 50px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image:after {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 3px solid var(--accent-vibrant);
    z-index: -1;
    border-radius: 8px;
}

.about-image img {
    border-radius: 8px;
    display: block;
}

.about-text h2 {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.about-text h2:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-vibrant);
}

.about-text p {
    margin-bottom: 15px;
    color: #555;
}

.about-features {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.feature-icon {
    background-color: var(--accent-vibrant);
    color: var(--light-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-weight: bold;
}

.feature-text h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.about-text .btn {
    margin-top: 20px;
}

/* Why Choose Us */
.why-choose-section {
    background-color: var(--light-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px 25px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
    border-bottom: 3px solid var(--accent-vibrant);
}

.feature-card .feature-icon {
    font-size: 2rem;
    margin: 0 auto 20px;
    width: 70px;
    height: 70px;
    background-color: var(--light-bg);
    color: var(--accent-vibrant);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: #555;
}

/* Testimonials */
.testimonials-section {
    background-color: white;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card:before {
    content: """;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: var(--accent-vibrant);
    opacity: 0.2;
    line-height: 1;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.testimonial-author p {
    color: #666;
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: var(--light-text);
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0.8;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.cta-content p {
    margin-bottom: 30px;
    font-size: 1.2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-content .btn {
    padding: 14px 30px;
    font-size: 1rem;
}

/* Newsletter Section */
.newsletter-section {
    background-color: var(--light-bg);
    padding: 60px 0;
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.newsletter-text {
    flex: 1;
}

.newsletter-text h2 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.newsletter-text p {
    color: #555;
}

.newsletter-form {
    flex: 1;
}

.newsletter-form .form-group {
    display: flex;
    box-shadow: var(--shadow);
    border-radius: 4px;
    overflow: hidden;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    background-color: white;
    font-size: 1rem;
}

.newsletter-form .btn {
    border-radius: 0 4px 4px 0;
    padding: 0 25px;
    background-color: var(--accent-vibrant);
}

.newsletter-form .btn:hover {
    background-color: #ff8533;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 80px 0 30px;
}

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

.footer-column h3 {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-column h3:after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-vibrant);
}

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

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

.footer-links a {
    color: #aaa;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--light-text);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-links a.linkedin:hover {
    background-color: #0077b5;
}

.social-links a.youtube:hover {
    background-color: #ff0000;
}

.social-links a.twitter:hover {
    background-color: #000000;
}

.social-links a.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-links a.substack:hover {
    background-color: #FF6719;
}

.footer-column form {
    margin-top: 15px;
}

.form-group {
    position: relative;
}

.footer-column .form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
}

.footer-column .form-group button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-column .form-group button:hover {
    color: var(--accent-vibrant);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
}

/* Form Message */
.form-message {
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content,
    .newsletter-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .services-grid,
    .testimonials-slider {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-section {
        padding: 120px 0;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: var(--shadow);
        padding: 20px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 10px 0;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
        padding-left: 20px;
    }
    
    .dropdown:hover .dropdown-content {
        display: none;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 100px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .services-grid,
    .features-grid,
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}
