/* Base Styles */
:root {
  --bg: #f7faf9;
  --card: #ffffff;
  --muted: #f0f4f3;
  --text: #0b1210;
  --subtle: #44524d;
  --primary: #2ecc71;
  --primary-600: #26b565;
  --accent: #0d7a47;
  --ring: rgba(46, 204, 113, 0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1000px 600px at 20% -10%, #e9f7ef 0%, transparent 60%),
              radial-gradient(800px 500px at 80% -10%, #e4f4ed 0%, transparent 60%),
              var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1100px, 92%); margin-inline: auto; }
.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1rem; border-radius: 12px; border: 1px solid #d5e3dc;
  background: linear-gradient(180deg, #ffffff, #f6fbf8);
  color: var(--text); font-weight: 600; box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(0,0,0,0.06);
  transition: transform .1s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); border-color: #b9d2c6; text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(180deg, var(--primary), var(--primary-600));
  color: #ffffff; border-color: #1f7e4b; box-shadow: 0 8px 24px rgba(46,204,113,0.25), inset 0 1px 0 #b3f3cf;
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(46,204,113,0.32), inset 0 1px 0 #c6f7db; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(6px); background: rgba(255,255,255,0.7); border-bottom: 1px solid #e1eee8; }
.header-wrap { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--text); }
.logo { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 1rem; }
.nav a { color: var(--subtle); font-weight: 500; }
.nav a:hover { color: var(--text); }
.nav-toggle { display: none; border: 0; background: transparent; color: var(--text); }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; }
@media (max-width: 800px) {
  .nav { position: absolute; right: 4%; top: 60px; background: #ffffff; padding: 1rem; border: 1px solid #e1eee8; border-radius: 12px; display: none; flex-direction: column; width: calc(92% - 2rem); }
  .nav.open { display: flex; }
  .nav-toggle { display: inline-block; }
}

/* Hero */
.hero { padding: 4rem 0 2rem; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.2; margin: 0 0 .5rem; }
.hero p { color: var(--subtle); margin: 0 0 1rem; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .5rem; }
.badges { display: flex; gap: .5rem; flex-wrap: wrap; list-style: none; padding: 0; margin: 1rem 0 0; }
.badges li { padding: .4rem .6rem; border: 1px solid #d5e3dc; border-radius: 999px; background: #ffffff; color: var(--subtle); font-size: .9rem; }

.card { border: 1px solid #e1eee8; background: linear-gradient(180deg, #ffffff, #f9fdfb); border-radius: 16px; padding: 1rem; box-shadow: 0 8px 24px rgba(0,0,0,.06), inset 0 1px 0 #ffffff; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cards .card h3 { margin-top: 0; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.gallery-item { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid #e1eee8; background: linear-gradient(180deg, #ffffff, #f9fdfb); box-shadow: 0 8px 24px rgba(0,0,0,.06), inset 0 1px 0 #ffffff; cursor: zoom-in; transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; }
.gallery-item:hover, .gallery-item:focus { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.1); border-color: #d5e3dc; outline: none; }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; }
.gallery-item figcaption { padding: .75rem; margin: 0; color: var(--subtle); font-size: .95rem; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 100; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(11, 18, 16, 0.75); backdrop-filter: blur(3px); }
.lightbox-content { position: relative; z-index: 1; max-width: min(90vw, 900px); width: 100%; background: linear-gradient(180deg, #ffffff, #f6fbf8); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,0.35); border: 1px solid #e1eee8; padding: 1.5rem; }
.lightbox-content img { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 12px; box-shadow: inset 0 1px 0 #ffffff; }
.lightbox-content figcaption { margin-top: 1rem; color: var(--subtle); font-size: 1rem; text-align: center; }
.lightbox-close { position: absolute; top: .75rem; right: .75rem; border: 0; background: rgba(11, 18, 16, 0.65); color: #ffffff; width: 36px; height: 36px; border-radius: 999px; font-size: 1.3rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox-close:hover { background: rgba(11, 18, 16, 0.8); }
.lightbox-close:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 600px) {
  .lightbox-content { padding: 1rem; border-radius: 14px; }
  .lightbox-content figcaption { font-size: .95rem; }
}

/* Cost Factors */
.cost-factors .factor { position: relative; padding-top: .5rem; transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; }
.cost-factors .factor:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.08), inset 0 1px 0 #ffffff; border-color: #d5e3dc; }
.factor-badge {
  position: absolute; top: -12px; left: -12px; width: 36px; height: 36px;
  border-radius: 999px; background: linear-gradient(180deg, var(--primary), var(--primary-600));
  color: #ffffff; display: flex; align-items: center; justify-content: center; font-weight: 700;
  box-shadow: 0 8px 20px rgba(46,204,113,0.25), inset 0 1px 0 #c6f7db; border: 1px solid #bdeed3;
}
.cost-factors h4 { margin-top: .25rem; margin-bottom: .4rem; }
.cost-factors p { margin: 0; color: var(--subtle); }

/* Tips cards */
.tips-cards .tip { display: grid; grid-template-columns: 40px 1fr; gap: .5rem; align-items: center; padding: 1rem 1rem 1rem .75rem; transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; }
.tips-cards .tip:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.08), inset 0 1px 0 #ffffff; border-color: #d5e3dc; }
.tip-icon { width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #ecf8f1; border: 1px solid #d5e3dc; box-shadow: inset 0 1px 0 #ffffff; }
.tips-cards h4 { margin: 0; }
.tips-cards .tip h4,
.tips-cards .tip p { grid-column: 2; }
.tips-cards p { margin: .25rem 0 0; color: var(--subtle); }

/* Sections */
.section { padding: 3rem 0; }
.section h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 1rem; }
.section.muted { background: linear-gradient(180deg, #f7faf9, #eff6f3); border-block: 1px solid #e1eee8; }
.list { margin: .5rem 0 0; padding-left: 1rem; color: var(--subtle); }

/* Alternating section backgrounds (excluding .muted) */
main > .section:not(.muted) { background: #ffffff; border-block: 1px solid #e0efe8; }
main > .section:not(.muted):nth-of-type(even) { background: #f0f7f3; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat { text-align: center; padding: 1rem; border: 1px solid #e1eee8; border-radius: 14px; background: #ffffff; }
.stat strong { display: block; font-size: 1.6rem; color: var(--accent); }
.stat span { color: var(--subtle); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; } }

/* Testimonials */
.testimonials { overflow: hidden; }
.testimonial-track { display: flex; gap: 1rem; animation: testimonialCarousel 16s ease-in-out infinite; }
.testimonial { flex: 0 0 calc(50% - .5rem); margin: 0; padding: 1rem; border: 1px solid #e1eee8; border-radius: 14px; background: #ffffff; box-shadow: 0 4px 16px rgba(0,0,0,0.05); }
.testimonial blockquote { margin: 0 0 .5rem; color: var(--subtle); }
@keyframes testimonialCarousel {
  0%, 25% { transform: translateX(0); }
  35%, 60% { transform: translateX(calc(-100% - 1rem)); }
  70%, 100% { transform: translateX(0); }
}
@media (max-width: 700px) {
  .testimonial-track { flex-direction: column; animation: none; }
  .testimonial { flex: 1 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .testimonial-track { animation: none; }
}

/* Contact */
.contact { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: start; }
.contact-form { display: grid; gap: .9rem; }
.field { display: grid; gap: .4rem; }
input, textarea { width: 100%; padding: .75rem .9rem; border-radius: 12px; border: 1px solid #d5e3dc; background: #ffffff; color: var(--text); outline: none; box-shadow: inset 0 1px 0 #ffffff; }
input:focus, textarea:focus { border-color: var(--primary-600); box-shadow: 0 0 0 4px var(--ring), inset 0 1px 0 #ffffff; }
.contact-alt p { margin: .2rem 0; color: var(--subtle); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid #e1eee8; background: var(--bg); }
.footer-wrap { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.to-top { color: var(--subtle); }
.to-top:hover { color: var(--text); }
