/* ============================================================
   FILE: /assets/css/home.css
   PURPOSE: Global styles & variables
   NOTES:
   - Mobile-first
   - WCAG-aware contrasts based on your palette
   ============================================================ */

:root {
    /* Brand colors - update to Namzam brand colors*/
    --color-main: #512d17;
    --color-main-dark: #2b1800;
    --color-main-dark-2: #1a0e00;
    --color-secondary: #9e7c6c;
    --color-sub-0: #badae7;
    --color-sub-1: #ebd6bd;
    --color-sub-2: #c4c4c4;

    /* Neutrals */
    --color-bg: #f7f5f9;
    --color-white: #ffffff;
    --color-text: #222222;
    --color-border: #9c9c9c;

    /* Feedback */
    --color-success: #2f855a;
    --color-warning: #b7791f;
    --color-error: #b54a4a;

    /* Layout */
    --container-width: 100%;
    --radius-md: 8px;
    --radius-lg: 16px;
    --btn-radius: 999px;

    /* Spacing (4/8px scale) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 40px;
    --space-8: 48px;
    --space-9: 50px;
    --space-10: 100px;
    --space-11: 200px;

    --text-shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.25);

    --text-shadow-hard: 
        0 2px 4px rgba(0,0,0,0.6),
        0 4px 10px rgba(0,0,0,0.8);
}


.contact-container{
    text-align: center;
    width: 80%;
    margin-left: 10%;
    margin-top: var(--space-10);
    padding-bottom: var(--space-10);
}

/* Full-width hero */
.hero {
    background:
        url('../img/hero-img/white-washed-wood-wall-made-from-pallets-1920.webp') center;

}

@media (min-width: 2400px) {

    .hero {
        background:
            url('../img/hero-img/white-washed-wood-wall-made-from-pallets.webp') center;

    }
}

.contact-container .h1-hero{
    color: var(--color-main);
    font-size: 3rem;
    margin-top: 50px;
    text-align: center;
    text-shadow: var(--text-shadow-soft);
}
.contact-container .p-hero{
    
    color: var(--color-main);
    font-size: 1.5rem;
    text-align: center;
    padding-left: 150px;
    padding-right: 150px;
    text-shadow: var(--text-shadow-soft)
}
.contact-container .hero-btn{
    
    text-align: center;
    width: 250px;
    margin-left: 40%;
    margin-top: var(--space-9);
}

@media (max-width: 450px) {
    .serives-container{
        width: 100%;
        margin: 0;
    }
    .hero .services-container{
        margin:0;
        width: 90%;
        margin-left: 5%;
    }
    .services-container p{
        width: 90%;
        margin-left: 5%;
    }
    .contact-container .p-hero{
        padding: 0;
    }
    .h1-hero{
        margin: 0;
        font-size: 1.7rem;
        width: 100%;
        padding: 0;
    }
    .p-hero{
        width: 100%;
        padding: 10px;

    }
    .services-container{
        text-align: center;
        width: 90%;
        margin-left: 5%;
    }


}

.form-intro .logo{
    margin-top: var(--space-10);
    margin-bottom: var(--space-10);
    width: 100%;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.45));
}

/* form section */

/* Honeypot field (hidden from humans) */
.hp-field {
    display: none;
}
.form-section {
    margin-top: 50px;
    width: 80%;
    margin-left: 10%;
    margin-bottom: var(--space-11);
}
.form-intro {
    text-align: center;
    max-width: 50%;
    margin-left: 25%;
    margin-bottom: var(--space-10);
}
.form-layout {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    width: 50%;
    margin-left: 25%;
}

/* Grid helpers for two-column layouts on larger screens */
.form-grid {
    display: grid;
    gap: var(--space-3);
}
.form-grid-2 {
    grid-template-columns: 1fr;
}
/* Individual fields */
.form-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}
.form-field label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-secondary);
}

.form-field input,
.form-field select,
.form-field textarea {
    font: inherit;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    color: var(--color-text);
    width: 100%;
    box-sizing: border-box;
}

/* Focus states for accessibility */
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: 2px solid var(--color-main);
    outline-offset: 1px;
    border-color: var(--color-main);
}

/* Success / info messages */
.form-message {
    padding: var(--space-3);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    font-size: 0.95rem;
}

.form-message-success {
    border: 1px solid var(--color-success);
    background-color: #ecf7f1;
    color: #22543d;
}

/* Actions area (submit button) */
.form-actions {
    margin-top: var(--space-3);
}

.contact-details{
    text-align: center;
    margin-bottom: 50px;
}
.contact-item{
    font-size: 1.2rem;
    color: var(--color-main);
    font-weight: 500;
}
@media (max-width: 450px) {
    .form-intro .logo{
        margin-bottom: var(--space-9);
    }


    .form-section{
        width: 90%;
        margin-left: 5%;
    }

    .form-intro {
        text-align: center;
        max-width: 100%;
        margin-left: 0;
        margin-bottom: var(--space-10);
    }

    .form-layout {
        display: flex;
        flex-direction: column;
        gap: var(--space-4);
        width: 90%;
        margin-left: 5%;
    }

}