/* Maple Rain Garden Guide - South Florida Garden Care Design System */
/* Warm, grounded, horticultural, resilient — designed for subtropical Miami gardens */

:root {
  --green-deep: #2A4F1C;
  --green-forest: #3C6B2A;
  --green-olive: #5C7E42;
  --green-sage: #8FA57A;
  --sand: #EDE6D9;
  --cream: #F8F4EB;
  --warm-gray: #D9D2C4;
  --charcoal: #1F2720;
  --earth: #5C4633;
  --accent-terra: #A36B4E;
  --text: #2C322C;
  --text-light: #5A6158;
  --white: #FFFFFF;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.72;
  color: var(--text);
  background-color: var(--cream);
  font-feature-settings: "kern" 1, "tnum" 1;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.1;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.6rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.95rem, 4.2vw, 2.65rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.65rem; color: var(--green-deep); }
h4 { font-size: 1.08rem; margin-bottom: 0.4rem; color: var(--charcoal); }

p {
  margin-bottom: 1.1rem;
  max-width: 72ch;
}

a {
  color: var(--green-forest);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--green-deep);
}

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

@media (min-width: 768px) {
  .container { padding: 0 28px; }
}

/* Header & Navigation - Mobile First */
header {
  background: var(--white);
  border-bottom: 1px solid var(--warm-gray);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  min-height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  color: var(--green-deep);
  text-decoration: none;
  font-weight: 700;
}

.logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding: 4px 0;
  position: relative;
}

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

.nav-links a.active:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--green-forest);
}

.mobile-menu {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--charcoal);
  padding: 4px;
}

.nav-toggle {
  display: none;
}

/* Mobile Navigation */
@media (max-width: 980px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-bottom: 1px solid var(--warm-gray);
    text-align: center;
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-menu {
    display: block;
  }
  .nav-links a {
    padding: 10px 0;
    font-size: 16px;
    width: 100%;
  }
}

/* Hero Sections - Immersive & Grounded */
.hero, .page-hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  color: white;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero {
  min-height: 100vh;
  max-height: 820px;
}

.hero::after, .page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom, 
    rgba(31, 39, 32, 0.42) 0%, 
    rgba(31, 39, 32, 0.58) 55%, 
    rgba(28, 35, 29, 0.65) 100%
  );
}

.hero-content, .page-hero .container {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero h1 {
  font-size: clamp(2.8rem, 7.5vw, 4.1rem);
  line-height: 1.05;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero p, .page-hero p {
  font-size: clamp(1.05rem, 2.3vw, 1.32rem);
  max-width: 560px;
  opacity: 0.96;
  margin-bottom: 32px;
  line-height: 1.55;
}

/* Buttons - Natural & Tactile */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-deep);
  color: white;
  box-shadow: 0 4px 14px rgba(42, 79, 28, 0.25);
}

.btn-primary:hover {
  background: var(--green-forest);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(42, 79, 28, 0.3);
}

.btn-secondary {
  background: white;
  color: var(--green-deep);
  border: 2px solid var(--green-deep);
}

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

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.95);
  color: white;
}

.btn-outline:hover {
  background: white;
  color: var(--green-deep);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 14px;
}

/* Sections */
.section {
  padding: 82px 0;
}

.section-alt {
  background: var(--white);
}

.section-muted {
  background: var(--sand);
}

.section-title {
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
  color: var(--text-light);
  font-size: 1.05rem;
}

/* Cards - Organic & Grounded */
.card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), 
              box-shadow 0.3s cubic-bezier(0.4,0,0.2,1);
  border: 1px solid var(--warm-gray);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 42px rgba(0,0,0,0.09);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 26px 28px;
}

.card h3 {
  font-size: 1.28rem;
  margin-bottom: 10px;
}

/* Service & Feature Cards */
.service-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.service-card {
  padding: 36px 30px;
  text-align: left;
  height: 100%;
}

.service-card .icon {
  font-size: 42px;
  display: block;
  margin-bottom: 18px;
  line-height: 1;
}

.feature-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--sand);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  color: var(--green-deep);
}

/* Rich Content Blocks */
.content-block {
  max-width: 780px;
  margin: 0 auto;
}

.rich-list {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.rich-list li {
  padding-left: 8px;
  position: relative;
}

.rich-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--green-olive);
  font-weight: 700;
}

/* South Florida Specific Elements */
.climate-note {
  background: #F4EDE3;
  border-left: 5px solid var(--green-sage);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 8px 8px 0;
  font-size: 0.97rem;
}

.climate-note strong {
  color: var(--green-deep);
}

.season-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.season-card {
  background: var(--white);
  border-radius: 16px;
  padding: 26px;
  border: 1px solid var(--warm-gray);
}

.season-card h4 {
  color: var(--green-deep);
  margin-bottom: 14px;
  font-size: 1.18rem;
}

/* Calendar */
.calendar-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}

.month-card {
  background: var(--white);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  border: 1px solid var(--warm-gray);
  transition: all .2s ease;
}

.month-card.current {
  border-color: var(--green-forest);
  box-shadow: 0 8px 26px rgba(42,79,28,0.12);
}

.month-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: var(--green-deep);
}

.month-card ul {
  font-size: 0.95rem;
  line-height: 1.75;
  padding-left: 18px;
}

/* Gallery & Inspiration */
.gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #ddd;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(31,39,32,0.75));
  color: white;
  padding: 36px 20px 18px;
  font-size: 0.92rem;
}

/* Forms */
.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

input, select, textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--warm-gray);
  border-radius: 10px;
  font-size: 15.5px;
  font-family: inherit;
  background: white;
  transition: border-color .2s, box-shadow .2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green-sage);
  box-shadow: 0 0 0 3px rgba(95, 125, 74, 0.1);
}

textarea {
  min-height: 138px;
  resize: vertical;
}

/* Footer */
footer {
  background: var(--charcoal);
  color: #C5C8C3;
  padding: 68px 0 32px;
}

footer a {
  color: #C5C8C3;
}

footer a:hover {
  color: white;
}

.footer-grid {
  display: grid;
  gap: 46px;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  margin-bottom: 52px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Utility & Micro */
.divider {
  height: 1px;
  background: var(--warm-gray);
  margin: 48px 0;
}

.text-center { text-align: center; }
.max-w-640 { max-width: 640px; margin-left: auto; margin-right: auto; }

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--charcoal);
  color: white;
  padding: 15px 22px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
  font-size: 14.5px;
  max-width: 320px;
  animation: toastIn 0.28s ease forwards;
}

@keyframes toastIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Mobile Typography & Spacing */
@media (max-width: 640px) {
  .section { padding: 58px 0; }
  .hero, .page-hero { min-height: 460px; }
  .card-content { padding: 22px 20px; }
  .service-card { padding: 28px 22px; }
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--green-sage);
  outline-offset: 3px;
}

/* Subtle organic touches */
.leaf-accent {
  display: inline-block;
  opacity: 0.15;
  font-size: 1.6em;
  line-height: 0;
  vertical-align: middle;
  margin-left: 6px;
}