
/* =========================================
   WAJHA - FACTORY PAGE
========================================= */

:root {
    --green: #2e7d32;
    --green-dark: #1b5e20;
    --green-light: #e8f5e9;
    --background: #f5f7f8;
    --text: #17251b;
    --muted: #778078;
    --white: #ffffff;
    --shadow: 0 12px 35px rgba(0,0,0,.07);
    --radius: 22px;
    --transition: .3s ease;
}

/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 30px;
}

body {
    width: 100%;
    min-height: 100vh;
    font-family: 'Cairo', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(1150px, 90%);
    margin: auto;
}

.section {
    width: 100%;
    padding: 100px 0;
}

.intro,
.units,
.request-section {
    background: var(--background);
}

/* =========================================
   HERO
========================================= */

.hero {
    min-height: 680px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(255,255,255,.15),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #536c5a 0%,
            #78947f 48%,
            #a6c8ad 100%
        );
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,.12),
        transparent
    );
}

.hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.top-nav {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    color: white;
    font-size: 21px;
    font-weight: 900;
}

.language-btn {
    border: 1px solid rgba(255,255,255,.5);
    background: rgba(255,255,255,.15);
    color: white;
    padding: 9px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    transition: var(--transition);
}

.language-btn:hover {
    background: white;
    color: var(--green);
}

.hero-container {
    position: relative;
    z-index: 2;
    padding-top: 65px;
}

.hero-content {
    max-width: 720px;
    margin-right: auto;
    text-align: right;
}

.badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.2);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(38px, 5vw, 65px);
    line-height: 1.35;
    font-weight: 900;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    font-size: 19px;
    line-height: 2.1;
    color: rgba(255,255,255,.94);
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px 25px;
    border: 0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    color: white;
    background: var(--green);
}

.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-3px);
}

.btn-white {
    background: white;
    color: var(--green);
}

.btn-white:hover {
    background: var(--green-light);
    transform: translateY(-3px);
}

.scroll-down {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 25px;
    animation: moveDown 1.5s infinite;
}

@keyframes moveDown {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, 9px);
    }
}

/* =========================================
   SECTION TITLES
========================================= */

.section-title {
    width: 100%;
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-title > span {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 999px;
    background: var(--green-light);
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 15px;
}

.section-title h2 {
    color: #171717;
    font-size: clamp(27px, 4vw, 39px);
    line-height: 1.5;
    font-weight: 900;
    margin-bottom: 14px;
}

.section-title p {
    max-width: 680px;
    margin: auto;
    color: var(--muted);
    font-size: 15px;
    line-height: 2.1;
}

/* =========================================
   INTRO STATS
========================================= */

.intro-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    max-width: 900px;
    margin: 45px auto 0;
}

.intro-stats > div {
    background: white;
    border: 1px solid #edf0ed;
    border-radius: var(--radius);
    padding: 30px 18px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.intro-stats > div:hover {
    transform: translateY(-6px);
}

.intro-stats strong {
    display: block;
    color: var(--green);
    font-size: 38px;
    font-weight: 900;
}

.intro-stats span {
    display: block;
    color: var(--muted);
    font-size: 14px;
    margin-top: 6px;
}

/* =========================================
   FEATURES
========================================= */

.features {
    background: white;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.card {
    background: white;
    border: 1px solid #edf0ed;
    border-radius: var(--radius);
    padding: 35px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    border-color: #c7e3ca;
    box-shadow: 0 18px 40px rgba(46,125,50,.12);
}

.icon,
.location-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--green-light);
    color: var(--green);
    font-size: 24px;
    transition: var(--transition);
}

.card:hover .icon {
    background: var(--green);
    color: white;
    transform: scale(1.07);
}

.card h3 {
    color: #222;
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 12px;
}

.card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 2.2;
}

/* =========================================
   FACTORY PRICE
========================================= */

.factory-price-grid {
    display: grid;
    grid-template-columns: minmax(280px, 430px);
    justify-content: center;
}

.factory-price-grid .unit-card {
    background: white;
    border: 2px solid var(--green);
    border-radius: var(--radius);
    padding: 42px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.factory-price-grid .unit-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 45px rgba(46,125,50,.14);
}

.unit-label {
    display: inline-block;
    color: var(--green);
    background: var(--green-light);
    border-radius: 30px;
    padding: 7px 17px;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 18px;
}

.area {
    display: block;
    color: var(--green);
    font-size: 46px;
    font-weight: 900;
    line-height: 1.5;
}

.area small {
    font-size: 18px;
}

.price {
    color: var(--text);
    font-size: 28px;
    font-weight: 900;
    margin: 15px 0 24px;
}

.price small {
    display: block;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    margin-top: 5px;
}

.factory-price-grid .btn {
    width: 100%;
}

/* =========================================
   LOCATION
========================================= */

.location {
    background: white;
}

.factory-location-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    max-width: 950px;
    margin: auto;
}

.location-card {
    min-width: 0;
    padding: 40px 28px;
    background: white;
    border: 1px solid #edf0ed;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.location-card:hover {
    transform: translateY(-7px);
}

.location-icon {
    font-size: 27px;
}

.location-card h3 {
    color: var(--text);
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 10px;
}

.location-card p {
    color: var(--muted);
    margin-bottom: 23px;
    font-size: 14px;
}

.location-card .btn {
    width: 100%;
}

/* =========================================
   CONTACT
========================================= */

.contact {
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.contact-card {
    min-width: 0;
    background: white;
    border: 1px solid #edf0ed;
    border-radius: var(--radius);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-7px);
}

.contact-card h3 {
    color: #171717;
    direction: ltr;
    font-size: 21px;
    font-weight: 900;
    margin: 10px 0 24px;
}

.contact-card .btn {
    width: 100%;
    margin-bottom: 17px;
}

.whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--green);
    font-size: 14px;
    font-weight: 900;
    transition: var(--transition);
}

.whatsapp:hover {
    color: var(--green-dark);
}

/* =========================================
   REQUEST FORM
========================================= */

.request-section {
    padding: 100px 0;
    background: #f5f8f6;
}

.request-section .section-title {
    margin-bottom: 45px;
}

.request-form {
    width: min(750px, 100%);
    margin: auto;
    padding: 38px;
    background: white;
    border: 1px solid #edf0ed;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.request-form input,
.request-form select,
.request-form textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 13px 15px;
    border: 1px solid #dfe5df;
    border-radius: 11px;
    background: white;
    color: var(--text);
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.request-form input::placeholder,
.request-form textarea::placeholder {
    color: #929a93;
    opacity: 1;
}

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(46,125,50,.09);
}

.request-form select {
    cursor: pointer;
}

.request-form textarea {
    grid-column: 1 / -1;
    min-height: 125px;
    resize: vertical;
}

.request-form button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 11px;
    background: var(--green);
    color: white;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: var(--transition);
}

.request-form button:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}

.request-form button:disabled {
    opacity: .65;
    cursor: wait;
    transform: none;
}

.contact-required {
    grid-column: 1 / -1;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
    margin-top: 2px;
}

/* =========================================
   FEEDBACK MESSAGES
========================================= */

#requestFeedback {
    width: min(750px, 100%);
    margin: 0 auto 18px;
}

#requestFeedback:empty {
    display: none;
}

#requestFeedback .success-message,
#requestFeedback .error-message {
    display: block;
    width: 100%;
    padding: 15px 18px;
    border-radius: 11px;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.8;
}

#requestFeedback .success-message {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #d2ebd5;
}

#requestFeedback .error-message {
    background: #ffebee;
    color: #b71c1c;
    border: 1px solid #f7d5da;
}

/* =========================================
   FOOTER
========================================= */

footer {
    background: #173c20;
    color: white;
    text-align: center;
    padding: 60px 20px 30px;
}

footer h2 {
    color: white;
    font-size: 29px;
    font-weight: 900;
    margin-bottom: 15px;
}

footer p {
    color: rgba(255,255,255,.82);
    font-size: 14px;
    margin: 7px 0;
}

.footer-line {
    width: 65px;
    height: 3px;
    margin: 25px auto;
    background: #80b987;
    border-radius: 50px;
}

footer small {
    color: rgba(255,255,255,.7);
    font-size: 12px;
}

/* =========================================
   FLOATING BUTTON
========================================= */

.floating {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 23px;
    background: var(--green);
    color: white;
    border-radius: 40px;
    box-shadow: 0 8px 25px rgba(46,125,50,.25);
    font-size: 14px;
    font-weight: 800;
    transition: var(--transition);
}

.floating:hover {
    background: var(--green-dark);
    transform: translateY(-4px);
}

/* =========================================
   ENGLISH DIRECTION
========================================= */

html[dir="ltr"] body {
    direction: ltr;
    text-align: left;
}

html[dir="ltr"] .hero-content {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

html[dir="ltr"] .hero-buttons {
    justify-content: flex-start;
}

html[dir="ltr"] .top-nav {
    direction: ltr;
}

html[dir="ltr"] .request-form {
    direction: ltr;
}

html[dir="ltr"] .floating {
    right: auto;
    left: 22px;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 950px) {

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        min-height: 600px;
    }

    .hero h1 {
        font-size: 52px;
    }

    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    .container {
        width: 91%;
    }

    .section {
        padding: 70px 0;
    }

    .hero {
        min-height: 590px;
        text-align: center;
    }

    .top-nav {
        top: 18px;
    }

    .brand {
        font-size: 17px;
    }

    .language-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .hero-container {
        padding-top: 55px;
    }

    .hero-content {
        margin: auto;
        text-align: center;
    }

    .hero h1 {
        font-size: 36px;
        line-height: 1.45;
    }

    .hero p {
        font-size: 15px;
        line-height: 2;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-buttons .btn {
        min-width: 140px;
        padding: 12px 16px;
        font-size: 12px;
    }

    .section-title {
        margin-bottom: 36px;
    }

    .section-title h2 {
        font-size: 26px;
    }

    .section-title p {
        font-size: 13px;
    }

    .intro-stats {
        grid-template-columns: 1fr;
        gap: 13px;
        margin-top: 30px;
    }

    .intro-stats > div {
        padding: 20px;
    }

    .intro-stats strong {
        font-size: 31px;
    }

    .cards,
    .contact-grid,
    .factory-location-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card,
    .contact-card,
    .location-card {
        padding: 27px 21px;
    }

    .factory-price-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .factory-price-grid .unit-card {
        padding: 30px 22px;
    }

    .area {
        font-size: 39px;
    }

    .request-section {
        padding: 75px 0;
    }

    .request-form {
        grid-template-columns: 1fr;
        padding: 23px 18px;
        gap: 13px;
    }

    .request-form textarea,
    .request-form button,
    .contact-required {
        grid-column: 1;
    }

    .request-form input,
    .request-form select,
    .request-form textarea {
        font-size: 13px;
    }

    .floating {
        bottom: 15px;
        right: 15px;
        padding: 12px 18px;
        font-size: 13px;
    }

    html[dir="ltr"] .hero-content {
        margin: auto;
        text-align: center;
    }

    html[dir="ltr"] .hero-buttons {
        justify-content: center;
    }

    html[dir="ltr"] .floating {
        right: auto;
        left: 15px;
    }

    footer {
        padding: 42px 15px 25px;
    }

    footer h2 {
        font-size: 25px;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 360px) {

    .hero h1 {
        font-size: 30px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .request-form {
        padding: 19px 14px;
    }
}
