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

:root {
    --primary-color: #516622;
    --secondary-color: #728a3b; 
    --bg-gradient: linear-gradient(135deg, #fdfbf7 0%, #eef2e6 100%);
    --text-dark: #2c331f;
    --text-light: #738063;
    --shadow-soft: 0 20px 60px rgba(81, 102, 34, 0.15);
}

body {
    font-family: 'Lato', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
}

.container {
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
}

.maintenance-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 4rem 3rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    border: 1px solid rgba(81, 102, 34, 0.1);
    overflow: hidden;
    
    /* ADDED: Flexbox to strictly center content vertically and horizontally */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Typography */
h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

h2 {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--secondary-color);
    font-weight: 700;
    /* CHANGED: Removed bottom margin so the line handles the spacing */
    margin-bottom: 0;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
    opacity: 0.5;
    
    /* CHANGED: Equal margin top and bottom centers the line */
    margin: 1.5rem auto 1.5rem auto; 
}

p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    font-weight: 400;
    margin-bottom: 2.5rem;
    max-width: 80%; /* Ensures text doesn't get too wide on large screens */
}

/* WRENCH ICON */
.maintenance-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0; /* Reset margins */
    height: 100px; 
}

.wrench {
    width: 80px;
    height: 80px;
    position: relative;
    background: #abd84b;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    transform: rotate(45deg);
    animation: rotate 3s infinite ease-in-out;
}

.wrench::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
}

.wrench::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 15px;
    background: #81a338;
    border-radius: 5px;
}

@keyframes rotate {
    0% { transform: rotate(45deg); }
    50% { transform: rotate(135deg); }
    100% { transform: rotate(45deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .maintenance-box {
        padding: 3rem 1.5rem;
    }

    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 0.75rem;
        letter-spacing: 3px;
    }
    
    p {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .wrench {
        width: 60px;
        height: 60px;
    }
    
    .wrench::before {
        width: 30px;
        height: 30px;
    }
    
    .wrench::after {
        width: 45px;
        height: 14px;
    }
}