/* Taupo Irrigation & Landscaping Ltd - site styles
   Green palette taken from the original Joomla template. */

:root {
    --green-dark:  #29581d;
    --green:       #5f6b3f;
    --green-mid:   #6b7a52;
    --olive:       #606443;
    --bg:          #ffffff;
    --text:        #333333;
    --border:      #d8ddc8;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--text);
    background: #eef0e6;
    line-height: 1.6;
}

a { color: var(--green-dark); }

/* ---------- Header / banner ---------- */
.site-header {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #2c2c2c;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
}

.hero-slide.is-active { opacity: 1; }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 34px;
    background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0));
    z-index: 2;
}

.hero-logo {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 32px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    text-shadow: 0 1px 5px rgba(0,0,0,.6);
    letter-spacing: .3px;
}

.logo-taupo {
    color: #b6cc86;
    font-weight: normal;
}

/* ---------- Navigation ---------- */
.main-nav {
    background: var(--green-mid);
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links li { margin: 0; }

.nav-links a {
    display: block;
    padding: 8px 22px;
    color: #ffffff;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    letter-spacing: .3px;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--green-dark);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    padding: 12px 18px;
    cursor: pointer;
}

/* ---------- Content ---------- */
.content {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg);
    padding: 30px 40px 45px;
    min-height: 300px;
}

.content h1 {
    font-size: 30px;
    color: var(--green-dark);
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    text-align: center;
}

.content h2 {
    color: var(--olive);
    font-size: 22px;
}

.pullquote {
    font-family: Georgia, serif;
    font-size: 20px;
    line-height: 1.4;
    color: var(--green-dark);
    text-align: center;
    margin: 24px 0;
    padding: 6px 20px;
}

blockquote.testimonial {
    border-left: 4px solid var(--green-mid);
    margin: 20px 0;
    padding: 6px 20px;
    font-style: italic;
    color: #444;
}

blockquote.testimonial cite {
    display: block;
    margin-top: 8px;
    font-style: normal;
    font-weight: bold;
    color: var(--green-dark);
}

/* ---------- Products grid ---------- */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 25px;
}

.product-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 150px;
    padding: 10px;
    border: 1px solid var(--border);
    background: #fff;
}

.product-grid img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
}

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.gallery-item {
    text-align: center;
    background: #fff;
    border: 1px solid var(--border);
    padding: 8px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: opacity .2s ease;
}

.gallery-item:hover img { opacity: .85; }

.gallery-item span {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--olive);
}

/* ---------- Lightbox ---------- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.open { display: flex; }

.lb-stage {
    margin: 0;
    max-width: 92%;
    max-height: 88%;
    text-align: center;
}

.lb-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 4px 30px rgba(0,0,0,.5);
}

.lb-cap {
    margin-top: 14px;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

.lb-btn {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    opacity: .8;
    line-height: 1;
    user-select: none;
}
.lb-btn:hover { opacity: 1; }

.lb-close { top: 18px; right: 26px; font-size: 44px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 50px; padding: 20px; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }

@media (max-width: 700px) {
    .lb-prev, .lb-next { font-size: 34px; padding: 10px; }
    .lb-close { font-size: 36px; top: 10px; right: 16px; }
}

/* ---------- Contact ---------- */
.contact-block {
    font-size: 18px;
    line-height: 1.7;
}

.contact-block strong { color: var(--green-dark); }

.contact-name {
    margin-bottom: 22px;
}

.contact-name strong {
    font-size: 22px;
}

.contact-details {
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 16px;
    row-gap: 12px;
    margin: 0;
}

.contact-details dt {
    font-weight: bold;
    color: var(--green-dark);
}

.contact-details dd { margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
    max-width: 1000px;
    margin: 0 auto 30px;
    background: var(--green-dark);
    color: #e8ecd8;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 25px 40px;
}

.footer-col { flex: 1 1 240px; }

.site-footer a { color: #ffffff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.2);
    padding: 12px 40px;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 20px;
}

.footer-credit { opacity: .75; }
.footer-credit a { color: #ffffff; text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 18px; border-top: 1px solid rgba(255,255,255,.15); }
    .content { padding: 20px; }
    .footer-inner { padding: 20px; }
    .hero { height: 140px; }
    .hero-overlay { padding: 14px 18px; }
    .hero-logo { font-size: 21px; }
}
