
/* =========================================================
   SEEDHUB
   GLOBAL / BASE STYLES
========================================================= */

/* ── Accessibility utilities ──────────────────────────── */

/* Screen-reader-only: visually hidden but accessible to AT */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Skip-to-main-content link — visible only on focus */
.skip-to-main {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 9999;
    padding: 10px 20px;
    background: #176b3a;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    transition: top 0.15s ease;
}
.skip-to-main:focus {
    top: 0;
    outline: 3px solid #c6a715;
    outline-offset: 2px;
}


/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {

    /* Brand Colors */
    --primary: #176b3a;
    --primary-dark: #0f4d29;
    --primary-light: #4caf50;

    --secondary: #f4b942;
    --secondary-dark: #d99a18;

    /* Backgrounds */
    --white: #ffffff;
    --background: #f7faf5;
    --light-green: #edf7ee;
    --soft-green: #e3f1e4;
    --cream: #fffaf0;

    /* Text */
    --text-dark: #17251b;
    --text: #344238;
    --text-light: #6c776f;
    --text-muted: #8b948d;

    /* Borders */
    --border: #e2e9e3;
    --border-light: #edf1ed;

    /* Status */
    --success: #2e8b57;
    --danger: #dc3545;
    --warning: #f4b942;

    /* Shadows */
    --shadow-xs: 0 2px 8px rgba(23, 107, 58, 0.06);
    --shadow-sm: 0 5px 18px rgba(23, 107, 58, 0.08);
    --shadow-md: 0 10px 30px rgba(23, 107, 58, 0.12);
    --shadow-lg: 0 18px 50px rgba(23, 107, 58, 0.16);

    /* Radius */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 999px;

    /* Container */
    --container-width: 1240px;

    /* Transition */
    --transition-fast: 0.2s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Header */
    --header-height: 82px;

}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
    font-size: 16px;
}


body {
    margin: 0;
    padding: 0;

    font-family: "DM Sans", sans-serif;

    color: var(--text);
    background: var(--white);

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    overflow-x: hidden;
}


body.menu-open {
    overflow: hidden;
}


img {
    display: block;
    width: 100%;
    max-width: 100%;
}


button,
input,
textarea,
select {
    font-family: inherit;
}


button {
    border: 0;
    background: none;
    cursor: pointer;
    border-radius: 10px !important;
}


a {
    color: inherit;
    text-decoration: none;
}


ul,
ol {
    list-style: none;
}


p {
    margin: 0;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;

    color: var(--text-dark);

    line-height: 1.2;

    font-weight: 700;
}


h1,
h2 {
    font-family: "Playfair Display", serif;
}


::selection {
    color: var(--white);
    background: var(--primary);
}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 8px;
}


::-webkit-scrollbar-track {
    background: #eef3ee;
}


::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-pill);
}


::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: min(
        calc(100% - 40px),
        var(--container-width)
    );

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   SECTIONS
========================================================= */

.section {
    padding: 100px 0;
}


.section-sm {
    padding: 70px 0;
}


.section-lg {
    padding: 120px 0;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 48px;
}


.section-heading.centered {
    display: block;

    max-width: 720px;

    margin-left: auto;
    margin-right: auto;

    text-align: center;
}


.section-label {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 12px;

    color: var(--primary);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1.8px;

    text-transform: uppercase;
}


.section-label::before {
    content: "";

    display: inline-block;

    width: 28px;
    height: 2px;

    background: var(--secondary);
}


.section-heading.centered .section-label::after {
    content: "";

    display: inline-block;

    width: 28px;
    height: 2px;

    background: var(--secondary);
}


.section-heading h2 {
    font-size: clamp(32px, 4vw, 48px);

    letter-spacing: -1px;
}


.section-heading p {
    max-width: 600px;

    margin-top: 12px;

    color: var(--text-light);

    font-size: 16px;
}


.section-heading.centered p {
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   VIEW ALL LINK
========================================================= */

.view-all-link {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    flex-shrink: 0;

    padding-bottom: 5px;

    color: var(--primary);

    font-size: 14px;

    font-weight: 700;

    border-bottom: 1px solid var(--primary);

    transition: var(--transition);
}


.view-all-link i {
    font-size: 12px;

    transition: var(--transition);
}


.view-all-link:hover {
    color: var(--primary-dark);

    border-color: var(--primary-dark);
}


.view-all-link:hover i {
    transform: translateX(4px);
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 50px;

    padding: 13px 24px;

    border-radius: var(--radius-pill);

    font-size: 14px;

    font-weight: 700;

    white-space: nowrap;

    transition:
        transform var(--transition),
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}


.btn i {
    font-size: 12px;

    transition: var(--transition);
}


.btn:hover i {
    transform: translateX(4px);
}


.btn-primary {
    color: var(--white);

    background: var(--primary);

    box-shadow: 0 8px 20px rgba(23, 107, 58, 0.2);
}


.btn-primary:hover {
    background: var(--primary-dark);

    transform: translateY(-2px);

    box-shadow: 0 12px 26px rgba(23, 107, 58, 0.25);
}


.btn-outline {
    color: var(--primary);

    background: transparent;

    border: 1px solid rgba(23, 107, 58, 0.35);
}


.btn-outline:hover {
    color: var(--white);

    background: var(--primary);

    border-color: var(--primary);

    transform: translateY(-2px);
}


.btn-light {
    color: var(--primary);

    background: var(--white);

    box-shadow: var(--shadow-md);
}


.btn-light:hover {
    background: var(--cream);

    transform: translateY(-2px);
}


/* =========================================================
   COMMON CARD
========================================================= */

.card {
    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    box-shadow: var(--shadow-xs);
}


.card-hover {
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}


.card-hover:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow-md);
}


/* =========================================================
   BADGES
========================================================= */

.badge {
    display: inline-flex;

    align-items: center;

    padding: 5px 10px;

    border-radius: var(--radius-pill);

    font-size: 11px;

    font-weight: 700;
}


.badge-success {
    color: var(--success);

    background: rgba(46, 139, 87, 0.1);
}


.badge-warning {
    color: #9b6a00;

    background: rgba(244, 185, 66, 0.16);
}


.badge-danger {
    color: var(--danger);

    background: rgba(220, 53, 69, 0.1);
}


/* =========================================================
   FORM ELEMENTS
========================================================= */

input,
textarea,
select {
    width: 100%;

    border: 1px solid var(--border);

    outline: none;

    color: var(--text-dark);

    background: var(--white);

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}


input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);

    box-shadow: 0 0 0 4px rgba(23, 107, 58, 0.08);
}


input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}


/* =========================================================
   HIDDEN UTILITY
========================================================= */

.hidden {
    display: none !important;
}


.no-scroll {
    overflow: hidden !important;
}


/* =========================================================
   TEXT UTILITIES
========================================================= */

.text-primary {
    color: var(--primary) !important;
}


.text-secondary {
    color: var(--secondary) !important;
}


.text-muted {
    color: var(--text-light) !important;
}


.text-center {
    text-align: center !important;
}


/* =========================================================
   SPACING UTILITIES
========================================================= */

.mt-1 {
    margin-top: 8px;
}


.mt-2 {
    margin-top: 16px;
}


.mt-3 {
    margin-top: 24px;
}


.mt-4 {
    margin-top: 32px;
}


.mb-1 {
    margin-bottom: 8px;
}


.mb-2 {
    margin-bottom: 16px;
}


.mb-3 {
    margin-bottom: 24px;
}


.mb-4 {
    margin-bottom: 32px;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(76, 175, 80, 0.35);

    outline-offset: 3px;
}


/* =========================================================
   LAZY IMAGE EFFECT
========================================================= */

img {
    object-fit: cover;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {

    :root {
        --container-width: 1120px;
    }

}


@media (max-width: 992px) {

    .container {
        width: min(
            calc(100% - 32px),
            var(--container-width)
        );
    }


    .section {
        padding: 80px 0;
    }


    .section-heading {
        margin-bottom: 38px;
    }

}


@media (max-width: 768px) {

    html {
        font-size: 15px;
    }


    .container {
        width: calc(100% - 28px);
    }


    .section {
        padding: 65px 0;
    }


    .section-sm {
        padding: 50px 0;
    }


    .section-lg {
        padding: 80px 0;
    }


    .section-heading {
        display: block;

        margin-bottom: 32px;
    }


    .section-heading h2 {
        font-size: 34px;
    }


    .section-heading p {
        font-size: 14px;
    }


    .section-heading .view-all-link {
        margin-top: 20px;
    }


    .section-heading.centered .view-all-link {
        display: inline-flex;
    }


    .btn {
        min-height: 48px;

        padding: 12px 20px;
    }

}


@media (max-width: 480px) {

    .container {
        width: calc(100% - 24px);
    }


    .section {
        padding: 55px 0;
    }


    .section-heading h2 {
        font-size: 30px;
    }


    .section-label {
        font-size: 10px;

        letter-spacing: 1.4px;
    }


    .btn {
        width: 100%;
    }

}
/* =========================================================
   JAVASCRIPT UI
========================================================= */

body.menu-open,
body.search-open {
    overflow: hidden;
}


/* Scroll animation */

.animate-on-scroll {
    opacity: 0;

    transform: translateY(20px);

    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}


.animate-on-scroll.show {
    opacity: 1;

    transform: translateY(0);
}


/* Header after scrolling */

.site-header.header-scrolled {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}


/* Notification */

.seedhub-notification {
    position: fixed;

    z-index: 9999;

    top: 90px;
    right: 22px;

    min-width: 280px;
    max-width: 380px;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 13px 14px;

    background: #ffffff;

    border: 1px solid #e6ece7;

    border-radius: 12px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.13);

    opacity: 0;

    transform: translateX(30px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}


.seedhub-notification.show {
    opacity: 1;

    transform: translateX(0);
}


.notification-icon {
    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: #176b3a;

    background: #eaf6eb;

    border-radius: 50%;

    font-size: 13px;
}


.seedhub-notification.warning
.notification-icon {
    color: #b57b00;

    background: #fff6dc;
}


.seedhub-notification.error
.notification-icon {
    color: #c62828;

    background: #ffebeb;
}


.notification-message {
    flex: 1;

    color: #25352b;

    font-size: 11px;

    font-weight: 600;

    line-height: 1.5;
}


.notification-close {
    width: 26px;
    height: 26px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #849087;

    background: transparent;

    border-radius: 50%;

    font-size: 11px;

    transition: 0.2s ease;
}


.notification-close:hover {
    color: #176b3a;

    background: #eef5ef;
}


@media (max-width: 500px) {

    .seedhub-notification {
        top: 75px;
        left: 15px;
        right: 15px;

        min-width: 0;
        width: auto;
    }

}

