/* ===========================
   Groundskeeper.co.nz Styles
   =========================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --green-dark:   #1a4d2e;
    --green-mid:    #2d7a4f;
    --green-light:  #4caf71;
    --green-pale:   #e8f5ee;
    --accent:       #f0b429;
    --text-dark:    #1a1a1a;
    --text-mid:     #444;
    --text-light:   #777;
    --white:        #ffffff;
    --border:       #d8eade;
    --shadow:       0 2px 12px rgba(0,0,0,0.08);
    --radius:       10px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background: #f7faf8;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   HEADER
   =========================== */

.site-header {
    background: var(--green-dark);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.3px;
}

.logo-tld {
    color: var(--green-light);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.site-nav a:hover {
    color: var(--white);
}

.nav-cta {
    background: var(--green-light);
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s !important;
}

.nav-cta:hover {
    background: var(--green-mid) !important;
}

/* ===========================
   HERO
   =========================== */

.hero {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
    padding: 72px 0 64px;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-sub {
    font-size: 1.15rem;
    opacity: 0.88;
    margin-bottom: 36px;
}

.search-bar {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.search-bar select {
    flex: 1;
    padding: 14px 18px;
    border: none;
    font-size: 1rem;
    outline: none;
    background: var(--white);
    color: var(--text-dark);
    cursor: pointer;
}

.search-bar button {
    padding: 14px 28px;
    background: var(--accent);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.search-bar button:hover {
    background: #e0a020;
}

/* ===========================
   SECTION TITLES
   =========================== */

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 28px;
}

/* ===========================
   FEATURED LISTING
   =========================== */

.featured-section {
    padding: 56px 0 40px;
    background: var(--white);
}

.featured-card {
    background: linear-gradient(135deg, #f0faf4 0%, #e0f5e9 100%);
    border: 2px solid var(--green-light);
    border-radius: var(--radius);
    padding: 32px;
    position: relative;
    box-shadow: var(--shadow);
}

.featured-badge {
    position: absolute;
    top: -14px;
    left: 28px;
    background: var(--accent);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.biz-header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.biz-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--green-dark);
}

.biz-region {
    color: var(--text-mid);
    font-size: 0.95rem;
}

.biz-desc {
    color: var(--text-mid);
    margin-bottom: 16px;
    max-width: 700px;
}

.biz-services {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.biz-services li {
    background: var(--green-pale);
    color: var(--green-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #c0dfc9;
}

.biz-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.biz-tag {
    background: var(--white);
    color: var(--text-mid);
    border: 1px solid #d0e8d8;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--green-mid);
    color: var(--white);
    border-color: var(--green-mid);
}

.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
}

.btn-secondary {
    background: var(--green-pale);
    color: var(--green-dark);
    border-color: var(--green-light);
}

.btn-secondary:hover {
    background: var(--green-light);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--text-mid);
    border-color: #ccc;
    font-size: 0.85rem;
}

.btn-large {
    padding: 14px 36px;
    font-size: 1.05rem;
}

/* ===========================
   DIRECTORY LISTINGS
   =========================== */

.listings-section {
    padding: 56px 0;
    background: #f7faf8;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.listing-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid #e4ede7;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.listing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.listing-card .biz-name {
    font-size: 1.1rem;
    margin-bottom: 10px;
    margin-top: 4px;
}

.listing-card .biz-desc {
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.card-region-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.card-region-badge.auckland    { background: #dbeafe; color: #1e40af; }
.card-region-badge.wellington  { background: #fce7f3; color: #9d174d; }
.card-region-badge.christchurch{ background: #fef3c7; color: #92400e; }
.card-region-badge.tauranga    { background: #d1fae5; color: #065f46; }
.card-region-badge.hamilton    { background: #ede9fe; color: #5b21b6; }
.card-region-badge.dunedin     { background: #fee2e2; color: #991b1b; }
.card-region-badge.napier      { background: #fef9c3; color: #854d0e; }
.card-region-badge.palmy       { background: #e0f2fe; color: #075985; }

/* ===========================
   REGIONS
   =========================== */

.regions-section {
    padding: 48px 0;
    background: var(--white);
}

.regions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.region-pill {
    padding: 10px 22px;
    background: var(--green-pale);
    color: var(--green-dark);
    border: 1px solid #c0dfc9;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.region-pill:hover {
    background: var(--green-mid);
    color: var(--white);
    border-color: var(--green-mid);
}

/* ===========================
   ADD LISTING CTA
   =========================== */

.add-listing-section {
    background: var(--green-dark);
    color: var(--white);
    text-align: center;
    padding: 64px 20px;
}

.add-listing-section h2 {
    font-size: 1.9rem;
    margin-bottom: 14px;
}

.add-listing-section p {
    font-size: 1.05rem;
    opacity: 0.85;
    max-width: 540px;
    margin: 0 auto 32px;
}

.add-listing-section .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-dark);
}

.add-listing-section .btn-primary:hover {
    background: #e0a020;
    border-color: #e0a020;
}

/* ===========================
   FOOTER
   =========================== */

.site-footer {
    background: #111c15;
    color: rgba(255,255,255,0.7);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding: 48px 20px 40px;
}

.footer-brand .logo-icon {
    font-size: 1.4rem;
}

.footer-brand strong {
    color: var(--white);
    font-size: 1.1rem;
    display: block;
    margin: 6px 0 8px;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.5;
}

.footer-links h4 {
    color: var(--white);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 14px;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    padding: 16px 20px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .search-bar {
        flex-direction: column;
        border-radius: 8px;
    }

    .search-bar select,
    .search-bar button {
        border-radius: 0;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        gap: 14px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }
}
