/* Main CSS for AM Expediting Website */
/* Red, Black, and White color scheme as requested */

/* Global Styles */
:root {
    --primary-red: #c41e3a; /* Deep red */
    --secondary-red: #e63946; /* Brighter red for accents */
    --dark-black: #121212; /* Nearly black */
    --off-white: #f5f5f5; /* Slightly off-white for better contrast */
    --light-gray: #e0e0e0; /* Light gray for subtle elements */
    --dark-gray: #333333; /* Dark gray for text */
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--off-white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-black);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-red);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-red);
    transition: all 0.3s ease;
}

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

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

/* Header and Navigation */
header {
    background-color: var(--dark-black);
    color: var(--off-white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo a {
    color: var(--off-white);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--off-white);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:hover {
    color: var(--secondary-red);
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-red);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover:after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background-image: url("../images/hero/nyc-skyline-hero.webp"); /* Added background image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--off-white);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px; /* Add padding to avoid overlap with fixed header */
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 5px;
    max-width: 800px;
    width: 90%;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--off-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--off-white);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--secondary-red);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Content Sections */
.content-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

/* Services Section */
.services-section {
    background-color: var(--dark-black);
    color: var(--off-white);
    padding: 5rem 2rem;
}

.services-section h2 {
    color: var(--off-white);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-item h3 {
    color: var(--off-white);
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.5rem;
}

.service-item p {
    padding: 0 1.5rem 1.5rem;
    color: var(--light-gray);
}

/* Boroughs Section */
.borough-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.borough-item {
    text-align: center;
    transition: all 0.3s ease;
}

.borough-item:hover {
    transform: translateY(-5px);
}

.borough-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.borough-item h3 {
    font-size: 1.2rem;
}

/* Contact Section */
.contact-section {
    background-color: var(--primary-red);
    color: var(--off-white);
    text-align: center;
    padding: 5rem 2rem;
}

.contact-section h2 {
    color: var(--off-white);
}

.contact-section h2:after {
    background-color: var(--off-white);
}

.contact-section p {
    max-width: 600px;
    margin: 0 auto 1rem;
}

/* Footer */
footer {
    background-color: var(--dark-black);
    color: var(--off-white);
    text-align: center;
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.2rem;
    }
    
    .about-container {
        flex-direction: column;
    }
    
    nav {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    nav ul li {
        margin-left: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .borough-grid {
        grid-template-columns: 1fr 1fr;
    }
}
