/*
Theme Name: Verdant Living
Theme URI: https://verdantliving.example
Author: Verdant Living Team
Description: A modern, eco-friendly WordPress theme for sustainable housing communities. Features a clean design with sticky navigation, hero section, project showcase, and registration forms.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: verdant-living
Tags: one-column, custom-menu, featured-images, sticky-post, theme-options, custom-logo, full-width-template, modern, eco-friendly

Verdant Living WordPress Theme, Copyright 2025
Verdant Living is distributed under the terms of the GNU GPL.
*/

:root {
  --green: #2E6049;
  --sage: #A9C7B6;
  --gold: #C5A45A;
  --ink: #1f2a24;
  --cream: #faf8f3;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

a {
  color: var(--green);
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid #e6e2d9;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-weight: 700;
}

.logo svg {
  width: 28px;
  height: 28px;
}

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

.nav a {
  margin-left: 20px;
  font-weight: 500;
}

.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--green);
  color: #fff;
  background: var(--green);
  transition: 0.2s;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.btn.outline {
  background: transparent;
  color: var(--green);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(46, 96, 73, 0.18);
}

/* Mobile Navigation Toggle */
.menu-toggle {
  display: none;
  background: var(--green);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

.nav nav {
  display: flex;
  align-items: center;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e6e2d9;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 38px;
  align-items: center;
  padding: 72px 0;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.04;
  margin: 0 0 12px;
  color: var(--green);
}

.hero p {
  font-size: 18px;
  color: #42534b;
  margin: 0 0 22px;
}

.hero .cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.card-img {
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #dfe9e4, #c7d9cf);
  height: 340px;
  position: relative;
  border: 1px solid #e6e2d9;
  background-image: url('https://images.unsplash.com/photo-1560448075-bb4caa6c9e8b?q=80&w=1400&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
}

.badge {
  position: absolute;
  left: 16px;
  top: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid #e6e2d9;
}

/* Page Hero (for other pages) */
.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e6e2d9;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 120px 0;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.04;
  margin: 0 0 12px;
  color: #fff;
}

.page-hero p {
  font-size: 18px;
  margin: 0;
  opacity: 0.9;
}

/* Sections */
.section {
  padding: 64px 0;
  border-bottom: 1px solid #e6e2d9;
}

.k3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pill {
  background: #fff;
  border: 1px solid #e6e2d9;
  border-radius: 14px;
  padding: 22px;
}

.pill h3 {
  margin: 10px 0 8px;
  color: var(--green);
}

.pill p {
  margin: 0;
  color: #51635b;
}

.icon {
  width: 28px;
  height: 28px;
  color: var(--green);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: #fff;
  border: 1px solid #e6e2d9;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card .img {
  height: 180px;
  background: #cddfd6;
  position: relative;
  background-size: cover;
  background-position: center;
}

.card:nth-child(1) .img {
  background-image: url('https://images.unsplash.com/photo-1613977257363-707ba9348227?q=80&w=1400&auto=format&fit=crop');
}

.card:nth-child(2) .img {
  background-image: url('https://images.unsplash.com/photo-1519710164239-da123dc03ef4?q=80&w=1400&auto=format&fit=crop');
}

.card:nth-child(3) .img {
  background-image: url('https://images.unsplash.com/photo-1518780664697-55e3ad937233?q=80&w=1400&auto=format&fit=crop');
}

.card .body {
  padding: 18px;
}

.card h4 {
  margin: 0 0 6px;
}

.small {
  color: #5d6b66;
  font-size: 14px;
}

/* Split Layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.box {
  background: #fff;
  border: 1px solid #e6e2d9;
  border-radius: 14px;
  padding: 22px;
}

.box ul {
  margin: 12px 0;
  padding-left: 20px;
}

.box li {
  margin-bottom: 8px;
  color: #51635b;
}

/* CTA Band */
.band {
  background: var(--green);
  color: #fff;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.band p {
  margin: 0;
  opacity: 0.9;
}

.band .actions {
  display: flex;
  gap: 10px;
}

.band h3 {
  color: #fff;
}

/* Form */
.register-form {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
}

.register-form input,
.register-form select {
  padding: 12px;
  border: 1px solid #d9d6cd;
  border-radius: 10px;
  font-family: inherit;
  font-size: inherit;
}

/* Content Area */
.content-area {
  padding: 64px 0;
}

.content-area .container {
  max-width: 800px;
}

.content-area h2 {
  color: var(--green);
  margin-bottom: 20px;
}

.content-area h3 {
  color: var(--green);
  margin-top: 30px;
  margin-bottom: 15px;
}

.content-area p {
  margin-bottom: 16px;
  line-height: 1.6;
}

.content-area ul {
  margin-bottom: 16px;
  padding-left: 20px;
}

.content-area li {
  margin-bottom: 8px;
}

/* Footer */
footer.site-footer {
  padding: 40px 0;
  color: #4a5a54;
}

footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 18px;
}

footer h5 {
  margin: 0 0 8px;
  color: var(--green);
}

footer a {
  display: inline-block;
  margin-bottom: 4px;
}

hr {
  border: none;
  border-top: 1px solid #e6e2d9;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  
  .card-img {
    height: 240px;
  }
  
  .k3,
  .cards,
  .split,
  footer .cols {
    grid-template-columns: 1fr;
  }
  
  .register-form {
    grid-template-columns: 1fr;
  }
  
  .band {
    flex-direction: column;
    text-align: center;
  }
  
  .band .actions {
    width: 100%;
    flex-direction: column;
  }
  
  .band .actions .btn {
    width: 100%;
    text-align: center;
  }
  
  /* Mobile Header */
  .menu-toggle {
    display: block;
  }
  
  .nav {
    flex-wrap: wrap;
  }
  
  .nav nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    background: white;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  .nav nav.active {
    display: flex;
  }
  
  .nav nav a {
    margin: 8px 0;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
  }
  
  .nav nav a:hover {
    background: var(--cream);
  }
  
  .nav nav a:first-child {
    margin-left: 0;
  }
  
  /* Mobile Footer */
  footer .cols {
    text-align: center;
  }
  
  footer .cols > div {
    margin-bottom: 20px;
  }
  
  footer .logo {
    justify-content: center;
  }
  
  /* Mobile Page Hero */
  .page-hero {
    padding: 80px 0;
  }
  
  /* Mobile Content */
  .content-area {
    padding: 40px 0;
  }
}

/* WordPress specific styles */
.alignleft {
  float: left;
  margin-right: 1.5em;
}

.alignright {
  float: right;
  margin-left: 1.5em;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
