/* ============================================================
   Lawn and Leaf — Global Stylesheet
============================================================ */

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

:root {
    --brand-green: #1e4d2b;
    --brand-green-dark: #12361d;
    --brand-gold: #c49b3f;
    --brand-gold-dark: #b0882e;
    --bg-main: #fcf9f5;
    --bg-alt: #f4efe6;
    --bg-white: #ffffff;
    --text-dark: #1a2a1f;
    --text-muted: #555555;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-main);
    -webkit-font-smoothing: antialiased;
    padding-top: 130px;
}

@media (max-width: 768px) { body { padding-top: 80px; } }

h1, h2, h3, h4, .section-title { font-family: var(--font-heading); letter-spacing: -0.03em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---------- Typography ---------- */
.section-title { font-size: 3rem; text-align: center; margin-bottom: 1rem; color: var(--brand-green); font-weight: 600; line-height: 1.1; }
.section-title span { color: var(--brand-gold); }
.section-subtitle { text-align: center; color: var(--text-muted); max-width: 650px; margin: 0 auto 3rem auto; font-size: 1.1rem; }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,.08); background: var(--bg-white); }
.top-info-bar { background-color: var(--brand-green); color: white; font-size: .85rem; padding: 10px 0; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; height: 40px; align-items: center; }
.top-info-bar a, .top-info-bar span { color: white; display: flex; align-items: center; gap: 8px; }
.top-info-bar a:hover { color: var(--brand-gold); }
.top-info-bar i { color: var(--brand-gold); }
.navbar-wrapper { background-color: var(--bg-white); padding: 15px 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.logo { display: flex; align-items: center; }
.header-logo { height: 50px; width: auto; object-fit: contain; }
nav ul { display: flex; gap: 30px; align-items: center; }
nav ul li a { font-weight: 500; color: var(--text-dark); font-size: .95rem; transition: color .2s; }
nav ul li a:hover, nav ul li a.active { color: var(--brand-gold); }
nav ul li a.nav-cta { background-color: var(--brand-green); color: white; padding: 12px 28px; border-radius: 50px; font-weight: 600; }
nav ul li a.nav-cta:hover, nav ul li a.nav-cta.active { background-color: var(--brand-gold); color: var(--brand-green); }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--brand-green); background: none; border: none; }

/* ---------- Page Headers ---------- */
.page-header { background-color: var(--brand-green); color: white; padding: 80px 0; text-align: center; }
.page-header h1 { font-size: 3rem; margin-bottom: 10px; }
.page-header p { font-size: 1.15rem; color: #cde0c8; max-width: 600px; margin: 0 auto; }

/* ---------- Hero ---------- */
#hero { min-height: 80vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url('images/sod-delivery-2.jpg') center/cover no-repeat; z-index: 0; animation: slowZoom 25s infinite alternate ease-in-out; }
@keyframes slowZoom { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,77,43,.95) 0%, rgba(30,77,43,.85) 50%, rgba(30,77,43,.2) 100%); z-index: 1; }
#hero .container { position: relative; z-index: 2; width: 100%; }
.hero-content { max-width: 800px; text-align: left; animation: slideUpFade 1.2s ease-out forwards; opacity: 0; transform: translateY(40px); }
@keyframes slideUpFade { to { opacity: 1; transform: translateY(0); } }
.hero-content h2 { font-size: 4.5rem; margin-bottom: 25px; line-height: 1.05; font-weight: 700; color: white; }
.hero-content h2 span { color: var(--brand-gold); }
.hero-content p { font-size: 1.25rem; color: #e0e0e0; margin-bottom: 40px; max-width: 600px; }
.hero-content strong { color: var(--brand-gold); font-weight: 600; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
#hero .btn-secondary { color: white; border-color: white; }
#hero .btn-secondary:hover { background: white; color: var(--brand-green); }

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary, .btn-whatsapp-inline { display: inline-flex; align-items: center; justify-content: center; padding: 16px 36px; border-radius: 50px; font-weight: 600; transition: all .3s ease; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: var(--font-heading); }
.btn-primary { background-color: var(--brand-gold); color: var(--brand-green); }
.btn-primary:hover { background-color: var(--brand-gold-dark); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(196,155,63,.2); }
.btn-secondary { background: transparent; color: var(--brand-green); border: 2px solid var(--brand-green); }
.btn-secondary:hover { background: var(--brand-green); color: white; transform: translateY(-3px); }
.btn-whatsapp-inline { background: var(--brand-green); color: white; width: 100%; margin-top: 15px; }
.btn-whatsapp-inline:hover { background: var(--brand-green-dark); }

/* ---------- Sections & Service Cards ---------- */
.section-padding { padding: 80px 0; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: var(--bg-white); padding: 40px; border-radius: 24px; box-shadow: 0 10px 30px rgba(30,77,43,.05); transition: transform .3s ease, box-shadow .3s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(30,77,43,.1); }
.service-card i { font-size: 2.2rem; color: var(--brand-gold); margin-bottom: 20px; display: block; }
.service-card h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--brand-green); font-weight: 600; }
.service-card p { color: var(--text-muted); font-size: 1rem; }

/* ---------- Full Services Accordion ---------- */
.full-services-box { max-width: 800px; margin: 50px auto 80px auto; border: 1px solid rgba(30,77,43,.2); border-radius: 12px; background: var(--bg-white); overflow: hidden; box-shadow: 0 10px 30px rgba(30,77,43,.05); }
.toggle-services-btn { width: 100%; background: var(--bg-white); border: none; padding: 20px 30px; text-align: left; font-size: 1.15rem; font-weight: 600; font-family: var(--font-heading); color: var(--brand-green); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background .2s; }
.toggle-services-btn:hover { background: var(--bg-main); }
.full-services-content { display: none; padding: 0 30px 20px 30px; border-top: 1px solid #eee; }
.full-services-content.open { display: block; }
.full-services-content ul { columns: 1; column-gap: 40px; }
.full-services-content li { padding: 12px 0; border-bottom: 1px solid #eee; color: #333; break-inside: avoid; }
.full-services-content li:last-child { border-bottom: none; }
@media (min-width: 768px) { .full-services-content ul { columns: 2; } }
.rotate-icon { transform: rotate(180deg); transition: transform .3s ease; }

/* ---------- Calculator ---------- */
.calculator-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: var(--bg-white); border-radius: 30px; padding: 50px; box-shadow: 0 20px 60px rgba(30,77,43,.08); max-width: 1000px; margin: 0 auto; }
@media (max-width: 768px) { .calculator-wrapper { grid-template-columns: 1fr; padding: 30px; gap: 30px; } }
.calc-form .form-group { margin-bottom: 25px; }
.calc-form label { display: block; font-weight: 600; margin-bottom: 10px; color: var(--brand-green); font-size: .95rem; }
.calc-form select { width: 100%; padding: 16px; border: 1px solid #dcdcdc; border-radius: 12px; font-size: 1rem; background: var(--bg-main); color: var(--text-dark); cursor: pointer; outline: none; transition: border .3s; appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 15px center; background-size: 15px; }
.calc-form select:focus { border-color: var(--brand-gold); }
.calc-result { background: var(--bg-main); padding: 40px; border-radius: 20px; text-align: center; display: flex; flex-direction: column; justify-content: center; border: 2px dashed rgba(196,155,63,.6); }
.calc-label { font-size: .9rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.calc-price { font-size: 3.5rem; font-weight: 700; color: var(--brand-green); line-height: 1; margin-bottom: 15px; font-family: var(--font-heading); }
.calc-note { font-size: .9rem; color: var(--text-muted); margin-bottom: 25px; }

/* ---------- Contact ---------- */
.contact-wrapper { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; background: var(--bg-white); padding: 50px; border-radius: 30px; box-shadow: 0 20px 60px rgba(30,77,43,.08); max-width: 1000px; margin: 0 auto 40px auto; }
@media (max-width: 900px) { .contact-wrapper { grid-template-columns: 1fr; padding: 30px; gap: 40px; } }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 10px; color: var(--brand-green); font-size: .95rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 16px; border: 1px solid #dcdcdc; border-radius: 12px; font-size: 1rem; background: var(--bg-main); font-family: inherit; outline: none; transition: border .3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--brand-gold); }
#char-count { display: block; text-align: right; font-size: .85rem; color: var(--text-muted); margin-top: 8px; }
.contact-info h3 { margin-bottom: 30px; color: var(--brand-green); font-size: 1.4rem; }
.contact-info p { margin-bottom: 22px; display: flex; align-items: flex-start; gap: 15px; color: var(--text-muted); font-size: 1rem; }
.contact-info a { color: var(--brand-green); font-weight: 600; text-decoration: none; }
.contact-info a:hover { color: var(--brand-gold); }
.contact-info i { width: 20px; color: var(--brand-gold); margin-top: 6px; }
.social-links { display: flex; gap: 15px; margin-top: 40px; }
.social-links a { background: var(--bg-main); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all .2s; color: var(--brand-green); }
.social-links a:hover { background: var(--brand-green); color: white; transform: translateY(-3px); }
.map-wrapper { border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,.05); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; margin-bottom: 15px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,.05); overflow: hidden; }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 22px 28px; font-size: 1.05rem; font-family: var(--font-heading); font-weight: 600; color: var(--brand-green); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question i { color: var(--brand-gold); transition: transform .3s ease; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease-out, padding .4s ease-out; padding: 0 28px; }
.faq-answer p { margin: 0; padding-bottom: 22px; color: var(--text-muted); line-height: 1.6; }
.faq-item.active .faq-answer { max-height: 500px; padding-top: 5px; }
.faq-item.active .faq-question i { transform: rotate(45deg); }

/* ---------- Gallery & Lightbox ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
.portfolio-item { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,.05); cursor: pointer; transition: transform .3s ease; }
.portfolio-item:hover { transform: translateY(-5px); }
.portfolio-item img { width: 100%; height: 250px; object-fit: cover; transition: transform .4s ease; }
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-caption { padding: 20px; text-align: center; }
.portfolio-caption h3 { margin: 0 0 5px 0; color: var(--brand-green); font-size: 1.15rem; }
.portfolio-caption p { margin: 0; color: var(--text-muted); font-size: .9rem; }
.lightbox { display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,.9); justify-content: center; align-items: center; opacity: 0; transition: opacity .3s ease; }
.lightbox.active { display: flex; opacity: 1; }
.lightbox-content { max-width: 90%; max-height: 85vh; border-radius: 8px; transform: scale(.9); transition: transform .3s ease; object-fit: contain; }
.lightbox.active .lightbox-content { transform: scale(1); }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; cursor: pointer; line-height: 1; background: none; border: none; }
.lightbox-close:hover { color: var(--brand-gold); }

/* ---------- Impact ---------- */
#impact { background: var(--brand-green); color: white; padding-bottom: 80px; }
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 35px; margin-bottom: 60px; }
.impact-card h3 { font-size: 1.3rem; color: white; margin-bottom: 10px; }
.impact-card p { font-size: 1rem; color: #cde0c8; }
.impact-impact-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; background: rgba(0,0,0,.2); padding: 50px 40px; border-radius: 30px; border: 1px solid rgba(196,155,63,.3); }
.impact-stat { text-align: center; }
.impact-number { display: block; font-size: 3.5rem; font-weight: 700; color: var(--brand-gold); line-height: 1; margin-bottom: 10px; }
.impact-label { font-size: .9rem; color: #cde0c8; }

/* ---------- Footer & Floating ---------- */
footer { background-color: var(--bg-main); color: var(--text-muted); text-align: center; padding: 50px 0; border-top: 1px solid rgba(30,77,43,.1); }
footer strong { color: var(--brand-green); }
.footer-small { font-size: .9rem; margin-top: 10px; }
#back-to-top { position: fixed; bottom: 30px; right: 30px; background: var(--brand-gold); color: var(--brand-green); width: 50px; height: 50px; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; opacity: 0; visibility: hidden; transition: all .3s; z-index: 998; }
#back-to-top.show { opacity: 1; visibility: visible; }
#back-to-top:hover { background: var(--brand-gold-dark); }
.whatsapp-float { position: fixed; bottom: 30px; right: 90px; background: var(--brand-green); color: white; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; z-index: 997; transition: all .3s; }
.whatsapp-float:hover { background: var(--brand-gold); color: var(--brand-green); }

/* ---------- Animations & Toast ---------- */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.fade-in.active { opacity: 1; transform: translateY(0); }
#toast { position: fixed; top: -100px; left: 50%; transform: translateX(-50%); background: #28a745; color: white; padding: 15px 30px; border-radius: 50px; font-weight: 600; z-index: 9999; transition: top .4s ease; box-shadow: 0 10px 30px rgba(0,0,0,.2); max-width: 90%; text-align: center; }
#toast.show { top: 20px; }
#toast.error { background: #dc3545; }

/* ---------- Responsive Header ---------- */
@media (max-width: 900px) {
    .menu-toggle { display: block; }
    nav ul { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: #fff; padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,.1); gap: 15px; }
    nav ul.active { display: flex; }
    .top-info-bar span, .top-info-bar a[href^="mailto"] { display: none; }
    .top-info-bar { height: 35px; padding: 5px 0; }
    .header-logo { height: 40px; }
    .hero-content h2 { font-size: 3rem; }
}