/* Terraeazey - 55+ Gardening & Home */
:root {
    --color-primary: #1d6b4f;
    --color-primary-light: #2d8a6a;
    --color-accent: #d4a03c;
    --color-bg: #f9f8f5;
    --color-card: #fff;
    --color-text: #1f2d26;
    --color-text-muted: #5a6b62;
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, sans-serif;
    --radius: 10px;
    --shadow: 0 2px 16px rgba(0,0,0,.06);
    --shadow-hover: 0 8px 28px rgba(0,0,0,.1);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* Nav */
.main-nav {
    background: var(--color-card);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}
.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: .75rem;
    padding-bottom: .75rem;
}
.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 400;
}
.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}
.nav-links a:hover { color: var(--color-primary); }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    margin: 5px 0;
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-card);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
        display: none;
    }
    .nav-links.is-open { display: flex; }
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0 0 1rem;
    font-weight: 400;
}
.hero-sub {
    font-size: 1.2rem;
    opacity: .95;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}
.hero .btn { background: var(--color-accent); color: #1a1a1a; }

/* Buttons */
.btn {
    display: inline-block;
    padding: .75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    text-decoration: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: var(--color-primary);
    color: #fff;
}
.btn-primary:hover { background: var(--color-primary-light); box-shadow: var(--shadow-hover); }
.btn-enquire {
    background: var(--color-accent);
    color: #1a1a1a;
    font-size: .9rem;
    padding: .5rem 1rem;
}
.btn-enquire:hover { background: #e0b04a; }

/* Category showcase (home) */
.category-showcase { padding: 4rem 0; }
.category-showcase h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}
.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.category-card {
    background: var(--color-card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform .2s, box-shadow .2s;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.category-card__icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.category-card h3 { margin: 0 0 .5rem; font-size: 1.25rem; }
.category-card p {
    margin: 0 0 1rem;
    font-size: .95rem;
    color: var(--color-text-muted);
}
.category-card__cta { color: var(--color-primary); font-weight: 600; font-size: .95rem; }

/* Trust bar */
.trust-bar {
    background: var(--color-card);
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
}
.trust-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    font-size: .9rem;
    color: var(--color-text-muted);
}
.breadcrumb a { color: var(--color-primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 .5rem; }

/* Page header */
.page-header { margin-bottom: 2rem; }
.page-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin: 0 0 .5rem;
}
.page-intro { color: var(--color-text-muted); margin: 0; font-size: 1rem; }

/* Subcategory grid (hub pages) */
.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.subcategory-card {
    background: var(--color-card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform .2s, box-shadow .2s;
}
.subcategory-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.subcategory-card h3 { margin: 0 0 .5rem; font-size: 1.2rem; }
.subcategory-card p {
    margin: 0 0 1rem;
    font-size: .9rem;
    color: var(--color-text-muted);
}
.subcategory-cta { color: var(--color-primary); font-weight: 600; font-size: .9rem; }

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}
.product-card {
    background: var(--color-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s;
}
.product-card:hover { box-shadow: var(--shadow-hover); }
.product-card__image {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e8ebe6 0%, #d4ddd0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-placeholder {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--color-primary);
    opacity: .5;
}
.product-card__body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card__title {
    font-size: 1.1rem;
    margin: 0 0 .5rem;
    font-weight: 600;
}
.product-card__desc {
    font-size: .9rem;
    color: var(--color-text-muted);
    margin: 0 0 .5rem;
    flex: 1;
}
.product-card__details {
    font-size: .8rem;
    color: var(--color-text-muted);
    margin: 0 0 1rem;
    opacity: .9;
}
.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.product-card__price {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
}
.modal.is-open {
    opacity: 1;
    visibility: visible;
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
    cursor: pointer;
}
.modal-content {
    position: relative;
    background: var(--color-card);
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(0,0,0,.2);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
}
.modal-content--compact { text-align: center; padding: 2.5rem; }
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-muted);
    line-height: 1;
    padding: .25rem;
}
.modal-close:hover { color: var(--color-text); }
.modal-title { margin: 0 0 .5rem; font-size: 1.5rem; }
.modal-product-name {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Enquiry form */
.enquiry-form .form-group {
    margin-bottom: 1rem;
}
.enquiry-form label {
    display: block;
    font-weight: 600;
    margin-bottom: .35rem;
    font-size: .95rem;
}
.enquiry-form input,
.enquiry-form textarea {
    width: 100%;
    padding: .6rem .75rem;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 1px solid #ccc;
    border-radius: var(--radius);
}
.enquiry-form input:focus,
.enquiry-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(29,107,79,.2);
}
.enquiry-form textarea { resize: vertical; min-height: 80px; }
.enquiry-form .btn { width: 100%; margin-top: .5rem; padding: .85rem; }

/* Success modal */
.success-icon {
    width: 64px;
    height: 64px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}
.modal-success .modal-content h2 { margin: 0 0 .5rem; }
.modal-success .modal-content p { margin: 0 0 1.5rem; color: var(--color-text-muted); }

/* Footer */
.site-footer {
    background: var(--color-primary);
    color: #fff;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
}
.footer-brand p,
.footer-contact p { margin: .25rem 0; font-size: .95rem; opacity: .9; }
.footer-links h4,
.footer-contact h4 { margin: 0 0 .75rem; font-size: 1rem; }
.footer-links a {
    display: block;
    color: #fff;
    text-decoration: none;
    opacity: .9;
    margin-bottom: .35rem;
}
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.footer-contact a { color: #fff; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.2);
    text-align: center;
    font-size: .9rem;
    opacity: .85;
}

/* Legal & content pages */
.legal-page, .page-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 0 4rem;
}
.legal-page h1, .page-content h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin: 0 0 .5rem;
}
.legal-updated { color: var(--color-text-muted); font-size: .95rem; margin-bottom: 2rem; }
.legal-page section, .page-content section { margin-bottom: 2rem; }
.legal-page h2, .page-content h2 { font-size: 1.25rem; margin: 0 0 .75rem; }
.legal-page p, .page-content p { margin: 0 0 1rem; }
.legal-page ul, .page-content ul { margin: 0 0 1rem; padding-left: 1.5rem; }
.legal-page li, .page-content li { margin-bottom: .35rem; }
.legal-page a, .page-content a { color: var(--color-primary); text-decoration: none; }
.legal-page a:hover, .page-content a:hover { text-decoration: underline; }
.page-content .lead { font-size: 1.2rem; color: var(--color-text-muted); margin-bottom: 2rem; }

.contact-form { max-width: 480px; margin: 2rem 0; }
.contact-form .form-group { margin-bottom: 1rem; }
.contact-form label { display: block; font-weight: 600; margin-bottom: .35rem; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: .6rem .75rem;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 1px solid #ccc;
    border-radius: var(--radius);
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(29,107,79,.2);
}
.contact-info { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #eee; }
.contact-info a { color: var(--color-primary); }
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
