/* ============================================================
   Decolonise Africa — Premium Hydro Seeding & Landscaping
   Professional landscape-inspired theme
   ============================================================ */

:root {
    --green-deep: #061a0f;
    --green-dark: #0d2818;
    --green: #1b4332;
    --green-mid: #2d6a4f;
    --green-light: #40916c;
    --green-soft: #74c69d;
    --green-pale: #b7e4c7;
    --green-mist: #e8f5e9;
    --earth: #bc6c25;
    --earth-dark: #8b4e14;
    --earth-light: #dda15e;
    --gold: #c9a227;
    --gold-soft: #e8d48b;
    --sand: #fefae0;
    --cream: #f4f7f4;
    --cream-dark: #f3efe6;
    --text: #1a1f1c;
    --text-muted: #5a635c;
    --white: #ffffff;
    --danger: #b91c1c;
    --shadow-sm: 0 2px 8px rgba(15, 42, 26, 0.06);
    --shadow: 0 8px 30px rgba(15, 42, 26, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 42, 26, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --font: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--cream);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* HEADER */
.site-header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(45, 106, 79, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 1180px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--green-deep);
}

.logo-icon { font-size: 2rem; line-height: 1; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.logo-text small { font-size: 0.7rem; color: var(--green-mid); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 0.25rem; }

.main-nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    position: relative;
    transition: all var(--transition);
}

.main-nav a:hover { color: var(--green); background: var(--green-mist); }
.main-nav a.active { color: var(--green); font-weight: 600; }
.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 2.5px;
    background: var(--green);
    border-radius: 2px;
}

.cart-link {
    background: var(--green-pale) !important;
    padding: 0.45rem 1rem !important;
    border-radius: 50px !important;
    margin-left: 0.5rem;
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600 !important;
}

.cart-link:hover { background: var(--green-soft) !important; }

.cart-badge {
    background: var(--green);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--green-dark);
    border-radius: 2px;
    transition: 0.3s;
}

/* HERO */
.hero {
    position: relative;
    background: linear-gradient(145deg, var(--green-deep) 0%, var(--green-dark) 40%, var(--green) 100%);
    color: white;
    padding: 6.5rem 0 5.5rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(201, 162, 39, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 10% 80%, rgba(82, 183, 136, 0.15) 0%, transparent 50%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--cream), transparent);
    pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.18;
    margin-bottom: 1.25rem;
    max-width: 720px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 540px;
    margin-bottom: 2.25rem;
    font-weight: 300;
    line-height: 1.7;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-stat strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--gold-soft);
}

.hero-stat span { font-size: 0.85rem; opacity: 0.75; }

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--earth) 0%, var(--earth-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(188, 108, 37, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c97a2e 0%, var(--earth) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(188, 108, 37, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255,255,255,0.5);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    color: white;
    border-color: white;
}

.btn-green {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.25);
}

.btn-green:hover {
    background: linear-gradient(135deg, var(--green-mid) 0%, var(--green) 100%);
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--green);
    border: 1.5px solid var(--green);
}

.btn-outline:hover { background: var(--green); color: white; }
.btn-sm { padding: 0.5rem 1.15rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* SECTIONS */
.section { padding: 5rem 0; }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.5vw, 2.4rem);
    color: var(--green-deep);
    margin-bottom: 0.6rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
}

.section-label {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--earth);
    margin-bottom: 0.75rem;
}

/* CARDS */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid rgba(45, 106, 79, 0.06);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card-img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }

.card-img-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(145deg, var(--green-pale) 0%, var(--green-soft) 50%, var(--green-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    color: var(--green);
    position: relative;
    overflow: hidden;
}

.card-body { padding: 1.4rem 1.5rem 1.6rem; }

.card-category {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--green-mid);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.card-title {
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--green-deep);
    margin-bottom: 0.4rem;
    line-height: 1.35;
}

.card-title a { color: inherit; }
.card-title a:hover { color: var(--green); }

.card-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--earth);
    margin: 0.6rem 0;
    font-family: var(--font-display);
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.15rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.55;
}

/* FEATURES */
.features { background: var(--white); }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    transition: background var(--transition);
}

.feature-item:hover { background: var(--green-mist); }

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(145deg, var(--green-pale), var(--green-soft));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-sm);
}

.feature-item h3 {
    color: var(--green-deep);
    margin-bottom: 0.6rem;
    font-size: 1.15rem;
    font-weight: 600;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* PROCESS */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    counter-reset: step;
}

.process-step {
    text-align: center;
    padding: 1.75rem 1.25rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
}

.process-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--green);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(45, 106, 79, 0.3);
}

.process-step h4 {
    color: var(--green-deep);
    margin: 0.75rem 0 0.5rem;
    font-size: 1.05rem;
}

.process-step p { color: var(--text-muted); font-size: 0.9rem; }

/* BADGES */
.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-ongoing { background: #fef3c7; color: #92400e; }
.badge-completed { background: #d1fae5; color: #065f46; }
.badge-planned { background: #dbeafe; color: #1e40af; }

/* FORMS */
.form-group { margin-bottom: 1.35rem; }
.form-group label {
    display: block;
    font-weight: 550;
    margin-bottom: 0.4rem;
    color: var(--green-deep);
    font-size: 0.92rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1.1rem;
    border: 1.5px solid #e2e8e4;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.12);
}

textarea.form-control { min-height: 130px; resize: vertical; }

/* ALERTS */
.alert {
    padding: 1.1rem 1.35rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* SHOP FILTERS */
.shop-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.55rem 1.3rem;
    border-radius: 50px;
    border: 1.5px solid var(--green-soft);
    background: transparent;
    color: var(--green);
    font-weight: 550;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--green);
    color: white;
    border-color: var(--green);
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.2);
}

/* CART */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cart-table th, .cart-table td {
    padding: 1.1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.cart-table th {
    background: var(--green-deep);
    color: white;
    font-weight: 550;
    font-size: 0.9rem;
}

.cart-table img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
}

.qty-input {
    width: 72px;
    padding: 0.45rem;
    text-align: center;
    border: 1.5px solid #e2e8e4;
    border-radius: 8px;
}

/* PROJECT */
.project-hero {
    background: linear-gradient(145deg, var(--green-deep), var(--green-dark));
    color: white;
    padding: 3.5rem 0;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    margin-top: 1.15rem;
    font-size: 0.95rem;
    opacity: 0.88;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.15rem;
    margin-top: 2rem;
}

.media-item {
    border-radius: var(--radius);
    overflow: hidden;
    background: #e8eee9;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
}

.media-item img, .media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ADMIN */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 250px;
    background: var(--green-deep);
    color: white;
    padding: 1.75rem 0;
    flex-shrink: 0;
}

.admin-sidebar h2 {
    padding: 0 1.4rem 1.5rem;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    margin-bottom: 1rem;
}

.admin-sidebar a {
    display: block;
    padding: 0.75rem 1.4rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    transition: all 0.2s;
}

.admin-sidebar a:hover, .admin-sidebar a.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.admin-content {
    flex: 1;
    padding: 2.25rem;
    background: #f4f7f5;
    overflow-x: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table th, .table td {
    padding: 0.95rem 1.15rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.table th {
    background: var(--green);
    color: white;
    font-weight: 550;
    font-size: 0.88rem;
}

.table tr:hover { background: #f8faf8; }
.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* FOOTER */
.site-footer {
    background: var(--green-deep);
    color: rgba(255,255,255,0.82);
    padding: 4.5rem 0 1.75rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-col h3, .footer-col h4 {
    color: white;
    margin-bottom: 1.15rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: white; }
.admin-link { font-size: 0.85rem; opacity: 0.55; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 1.75rem;
    text-align: center;
    font-size: 0.88rem;
    opacity: 0.65;
}

/* PAGE HEADER */
.page-header {
    background: linear-gradient(145deg, var(--green-deep) 0%, var(--green-dark) 60%, var(--green) 100%);
    color: white;
    padding: 3.75rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(201, 162, 39, 0.1) 0%, transparent 50%);
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin-bottom: 0.5rem;
    position: relative;
}

.page-header p { opacity: 0.85; font-size: 1.05rem; position: relative; }

/* PRODUCT DETAIL */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.product-gallery {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.product-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.product-info h1 {
    font-family: var(--font-display);
    color: var(--green-deep);
    margin-bottom: 0.5rem;
    font-size: 1.9rem;
}

.product-price {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--earth);
    margin: 1.15rem 0;
    font-family: var(--font-display);
}

/* CTA BAND */
.cta-band {
    background: linear-gradient(145deg, var(--green-deep), var(--green));
    color: white;
    text-align: center;
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(201, 162, 39, 0.15) 0%, transparent 60%);
}

.cta-band h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    margin-bottom: 1rem;
    position: relative;
}

.cta-band p {
    max-width: 480px;
    margin: 0 auto 1.75rem;
    opacity: 0.88;
    position: relative;
}

/* TESTIMONIAL */
.testimonial-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--green);
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.testimonial-author { font-weight: 600; color: var(--green-deep); }
.testimonial-role { font-size: 0.85rem; color: var(--text-muted); }

/* UTILITIES */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state .icon { font-size: 3.5rem; margin-bottom: 1rem; opacity: 0.6; }

body { font-family: var(--font) !important; }
h1, h2, .section-title { font-family: var(--font-display); }

@media (max-width: 900px) {
    .product-detail { grid-template-columns: 1fr; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; }
    .hero-stats { gap: 1.5rem; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
        gap: 0.25rem;
        border-top: 1px solid #eee;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 0.75rem 1rem; }
    .cart-link { margin-left: 0 !important; }
    .hero { padding: 4.5rem 0 4rem; }
    .hero-stats { flex-wrap: wrap; gap: 1.25rem; }
    .section { padding: 3.5rem 0; }
    .cart-table { font-size: 0.9rem; }
    .cart-table th, .cart-table td { padding: 0.75rem; }
}

/* Hero with landscape photo */
.hero-with-image {
    background-size: cover !important;
    background-position: center !important;
}
.hero-with-image::before {
    background: linear-gradient(145deg, rgba(15,42,26,0.85) 0%, rgba(26,60,42,0.75) 50%, rgba(45,106,79,0.7) 100%) !important;
}
