/* Home Section */
.home {
    /* min-height (not height) so short/landscape viewports grow the section
       to fit its content instead of clipping the CTA buttons off-screen */
    min-height: calc(100vh - 154px);
    display: flex;
    align-items: center;
    position: relative;
    background: url('../images/volvo.jpeg') center/cover no-repeat;
    color: white;
    overflow: hidden;
    margin-top: 154px; /* Account for exact navbar height */
    padding: 3rem 0;
}

/* Legibility scrim: darkens the left side (where the text sits) against
   the busy photo behind it; fades out toward the right so the truck stays
   visible. (.home-overlay in the markup is scoped to just the decorative
   right-hand pattern and can't cover this, so this uses its own layer.) */
.home::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0.05) 75%);
    z-index: 1;
}

.home-content {
    /* Flex items don't grow to fill available space by default (width:auto
       shrinks to content), so without an explicit width this never reached
       its max-width and sat in a cramped, off-center-looking column on
       anything wider than ~1000px. */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
    position: relative;
}

.home-eyebrow {
    display: inline-block;
    color: var(--brand-red);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.home h1 {
    font-family: 'Libertinus_Serif_Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.home p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 700px;
}

.home-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    border: 2px solid transparent;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-red), var(--brand-red));
    color: white;
    border-color: rgba(185, 28, 28, 0.3);
    box-shadow: 0 6px 20px rgba(245, 41, 42, 0.3), 0 2px 8px rgba(245, 41, 42, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-red-darker), var(--brand-red-darkest));
    border-color: rgba(153, 27, 27, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(245, 41, 42, 0.4), 0 5px 15px rgba(245, 41, 42, 0.3);
}

.btn-primary i {
    font-size: 1.2rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--brand-red);
    border-color: rgba(245, 41, 42, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2), 0 5px 15px rgba(245, 41, 42, 0.2);
}

.btn-secondary i {
    font-size: 1.2rem;
}

.home-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.home-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

