
/* =========================
   NABAT | نَبَات
   Unified Nature Identity
========================= */

:root {
    --bg: #F0F5EF;
    --white: #FFFFFF;
    --green: #285B43;
    --green-dark: #193A32;
    --green-deep: #17432F;
    --green-soft: #E4EFE4;
    --turquoise: #59BFA5;
    --mint: #8ADBC0;
    --text: #405B4B;
    --muted: #718276;
    --border: #DCE8DC;
    --shadow: 0 12px 30px rgba(40, 91, 67, 0.08);
}

/* General */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 25px;
}

body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button,
a,
select {
    -webkit-tap-highlight-color: transparent;
}

a {
    transition: 0.3s;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--turquoise);
    outline-offset: 3px;
}

/* =========================
   Navigation
========================= */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 8%;
    background: var(--white);
    gap: 20px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
}

.logo {
    color: var(--green);
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
}

nav a:hover {
    color: var(--turquoise);
}

.tag {
    background: var(--green-soft);
    color: var(--green);
    padding: 9px 15px;
    border-radius: 30px;
    font-size: 12px;
}

/* =========================
   Hero Section
========================= */

.hero {
    min-height: 510px;
    padding: 75px 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: linear-gradient(
        120deg,
        #E4EFE4,
        #F0F5EF,
        #F7F8EF
    );
}

.hero-content {
    max-width: 550px;
}

.eyebrow {
    color: #668C72;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.4;
    margin: 18px 0;
    color: var(--green);
}

.hero p,
.intro p {
    color: var(--muted);
    line-height: 2;
    max-width: 520px;
}

.main-button {
    display: inline-block;
    margin-top: 28px;
    background: var(--green);
    color: white;
    text-decoration: none;
    padding: 14px 25px;
    border-radius: 10px;
    transition: 0.3s;
}

.main-button:hover {
    background: var(--green-deep);
    transform: translateY(-3px);
}

.hero-visual {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #DCEBDD;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.plant-circle {
    font-size: 120px;
    filter: drop-shadow(0 10px 15px #719D7480);
}

.floating-note {
    position: absolute;
    bottom: 15px;
    background: white;
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 11px;
    color: var(--green);
    box-shadow: var(--shadow);
}

/* =========================
   Introduction
========================= */

.intro,
.features {
    padding: 75px 10%;
    text-align: center;
}

.intro h2,
.section-heading h2 {
    font-size: 32px;
    margin: 12px 0;
    color: var(--green);
}

.intro p {
    margin: auto;
}

/* =========================
   Plant Scanner
========================= */

.scan-section {
    padding: 75px 10%;
    background: var(--green-soft);
    text-align: center;
}

.scan-heading h2 {
    font-size: 32px;
    color: var(--green);
    margin: 12px 0;
}

.scan-heading p {
    color: var(--muted);
    line-height: 2;
}

.upload-box {
    max-width: 600px;
    margin: 35px auto 0;
    padding: 40px 25px;
    background: var(--white);
    border: 2px dashed #A7C8AD;
    border-radius: 22px;
    transition: 0.3s;
}

.upload-box:hover {
    border-color: var(--turquoise);
    box-shadow: var(--shadow);
}

.upload-icon {
    font-size: 55px;
    margin-bottom: 12px;
}

.upload-box h3 {
    color: var(--green);
    margin-bottom: 8px;
}

.upload-box p {
    color: var(--muted);
    font-size: 14px;
}

.upload-button,
.analyze-button {
    display: inline-block;
    margin-top: 22px;
    padding: 13px 25px;
    border: none;
    border-radius: 10px;
    background: var(--green);
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.upload-button:hover,
.analyze-button:hover:not(:disabled) {
    background: var(--green-deep);
    transform: translateY(-2px);
}

.preview-container {
    display: none;
    margin: 25px auto 0;
}

.preview-container img {
    width: 100%;
    max-width: 350px;
    max-height: 350px;
    object-fit: contain;
    border-radius: 15px;
    border: 1px solid var(--border);
}

.analyze-button {
    display: block;
    margin: 20px auto 0;
    width: fit-content;
}

.analyze-button:disabled {
    background: #AEBBB0;
    cursor: not-allowed;
    transform: none;
}

.scan-message {
    margin-top: 15px;
    line-height: 1.8;
    color: var(--text);
}

/* =========================
   Features
========================= */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 35px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 30px 22px;
    border-radius: 18px;
    text-align: right;
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: #B8D9C6;
}

.feature-card span {
    font-size: 34px;
}

.feature-card h3 {
    margin: 16px 0 8px;
    color: var(--green);
}

.feature-card p {
    color: var(--muted);
    line-height: 1.9;
    font-size: 14px;
}

/* =========================
   Community Feedback
========================= */

.community-feedback {
    padding: 75px 10%;
    background: var(--green-dark);
    color: white;
}

.feedback-heading {
    max-width: 650px;
    margin: 0 auto 35px;
    text-align: center;
}

.feedback-heading h2 {
    color: var(--mint);
    font-size: 32px;
    margin: 12px 0;
}

.feedback-heading p {
    color: #D6E9DF;
    line-height: 2;
}

.feedback-form {
    max-width: 650px;
    margin: auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 13px;
    background: #23483B;
    border: 1px solid #426B58;
    border-radius: 18px;
}

.feedback-form label {
    color: var(--mint);
    font-weight: 600;
    margin-top: 8px;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #527463;
    border-radius: 9px;
    background: #193A32;
    color: white;
    font-size: 14px;
}

.feedback-form select {
    cursor: pointer;
}

.feedback-form select option {
    background: #23483B;
    color: white;
}

.feedback-form textarea {
    resize: vertical;
    min-height: 110px;
}

.feedback-form textarea::placeholder {
    color: #B0C8BA;
}

.feedback-form button {
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: var(--turquoise);
    color: var(--green-dark);
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.feedback-form button:hover:not(:disabled) {
    background: var(--mint);
    transform: translateY(-2px);
}

.feedback-form button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.feedback-form small,
#feedbackStatus {
    color: #D0E5DA;
    line-height: 1.8;
}

#feedbackStatus {
    min-height: 20px;
}

/* =========================
   Footer
========================= */

footer {
    background: var(--green);
    color: white;
    text-align: center;
    padding: 30px;
    line-height: 2;
}

footer p,
footer small {
    color: #E0EFE4;
}

/* =========================
   Tablet Responsive
========================= */

@media (max-width: 900px) {

    .hero {
        padding: 65px 7%;
    }

    .hero-visual {
        width: 250px;
        height: 250px;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* =========================
   Mobile Responsive
========================= */

@media (max-width: 750px) {

    .navbar {
        padding: 18px 6%;
        flex-wrap: wrap;
        gap: 15px;
    }

    nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }

    nav a {
        font-size: 13px;
    }

    .tag {
        display: none;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 7%;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero p,
    .intro p {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-visual {
        width: 230px;
        height: 230px;
    }

    .plant-circle {
        font-size: 95px;
    }

    .intro,
    .features,
    .scan-section {
        padding: 60px 7%;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .feature-card {
        text-align: center;
    }

    .upload-box {
        padding: 30px 18px;
    }

}

/* =========================
   Small Mobile
========================= */

@media (max-width: 450px) {

    .logo {
        font-size: 21px;
    }

    .hero h1 {
        font-size: 39px;
    }

    .intro h2,
    .section-heading h2,
    .scan-heading h2,
    .feedback-heading h2 {
        font-size: 26px;
    }

    .community-feedback {
        padding: 55px 6%;
    }

    .feedback-form {
        padding: 20px;
    }

    .upload-button,
    .analyze-button {
        max-width: 100%;
    }

    footer {
        padding: 25px 15px;
    }

}

/* =========================
   Reduced Motion
========================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

}
