/*
Theme Name: EverRoot Enterprise
Theme URI: https://everrootenterprise.com
Author: EverRoot Enterprise Group LLC
Author URI: https://everrootenterprise.com
Description: Professional corporate housing and short-term rental management theme for EverRoot Enterprise Group LLC.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: everroot
*/

/* ===== CSS RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background-color: #FAF9F7;
  color: #1F2F2A;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== CSS VARIABLES ===== */
:root {
  --evergreen: #2D4F42;
  --evergreen-light: #3D6B5A;
  --sage: #A8C5B5;
  --cream: #FAF8F3;
  --stone: #D4CFC7;
  --charcoal: #1F2F2A;
  --background: #FAF9F7;
  --foreground: #1F2F2A;
  --muted: #E5E2DC;
  --muted-foreground: #6B7970;
  --border: #E0DDD6;
}

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 1024px;
  margin: 0 auto;
}

.section-padding {
  padding: 80px 24px;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 112px 48px;
  }
}

@media (min-width: 1024px) {
  .section-padding {
    padding: 112px 96px;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: 'DM Sans', sans-serif;
}

.btn-primary {
  background-color: var(--evergreen);
  color: white;
}

.btn-primary:hover {
  background-color: var(--evergreen-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(45, 79, 66, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--evergreen);
  border: 1px solid var(--evergreen);
}

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

.btn-secondary {
  background-color: var(--cream);
  color: var(--evergreen);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--stone);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .header-inner {
    padding: 20px 96px;
  }
}

.custom-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  display: block;
}

@media (min-width: 1024px) {
  .custom-logo {
    height: 65px;
  }
}

.nav {
  display: none;
  gap: 40px;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav a {
  font-size: 14px;
  color: var(--foreground);
  transition: color 0.3s;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--evergreen);
  transition: width 0.3s;
}

.nav a:hover {
  color: var(--evergreen);
}

.nav a:hover::after {
  width: 100%;
}

.header-cta {
  display: none;
}

@media (min-width: 1024px) {
  .header-cta {
    display: block;
  }
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background-color: var(--foreground);
  transition: all 0.3s;
}

/* ===== HERO SECTION ===== */
/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  /* Added border-box and a transparent default border so 
     primary and outline buttons are the exact same height */
  box-sizing: border-box;
  border: 2px solid transparent; 
  font-family: 'DM Sans', sans-serif;
  height: 54px; /* Fixed height for perfect horizontal alignment */
}

.btn-primary {
  background-color: var(--evergreen);
  color: white;
}

.btn-primary:hover {
  background-color: var(--evergreen-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(45, 79, 66, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--evergreen);
  border: 2px solid var(--evergreen); /* Matched border width */
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Darkened the gradient significantly to make white text readable */
  background: linear-gradient(135deg, rgba(28, 48, 41, 0.94) 0%, rgba(15, 26, 23, 0.9) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 64px;
  color: white;
  margin-bottom: 24px;
  line-height: 1.1;
  text-wrap: balance; /* Prevents awkward title breaks */
}

.hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95); /* Brightened for better contrast */
  margin-bottom: 40px;
  max-width: 764px; /* Widened slightly to fix the "professionals" widow word */
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  text-wrap: balance; /* Ensures text block is visually centered and balanced */
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.25rem; /* Slightly more gap for a premium feel */
  flex-wrap: wrap;
}

.hero .btn-primary {
  background-color: white;
  color: var(--evergreen);
  border-color: white;
}

.hero .btn-primary:hover {
  background-color: var(--cream);
  border-color: var(--cream);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: white;
}

.hero .btn-outline:hover {
  background-color: white;
  color: var(--evergreen);
  border-color: white;
}

/* ===== SPECIALTY SECTION ===== */
.specialty {
  background-color: var(--background);
}

.specialty-header {
  text-align: center;
  margin-bottom: 64px;
}

.specialty-header h2 {
  font-size: 36px;
  color: var(--foreground);
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .specialty-header h2 {
    font-size: 44px;
  }
}

.specialty-header p {
  font-size: 18px;
  color: var(--muted-foreground);
  max-width: 700px;
  margin: 0 auto;
}

.specialty-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .specialty-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .specialty-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.specialty-card {
  background-color: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  transition: all 0.3s;
}

.specialty-card:hover {
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.specialty-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(45, 79, 66, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--evergreen);
}

.specialty-card h3 {
  font-size: 20px;
  color: var(--foreground);
  margin-bottom: 12px;
}

.specialty-card p {
  font-size: 15px;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.specialty-footer {
  text-align: center;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.specialty-footer p {
  font-size: 17px;
  color: var(--foreground);
  font-style: italic;
}

/* ===== WHY LANDLORDS SECTION ===== */
.why-landlords {
  background-color: var(--evergreen);
  color: white;
}

.why-landlords-grid {
  display: grid;
  gap: 64px;
}

@media (min-width: 1024px) {
  .why-landlords-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.why-landlords h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .why-landlords h2 {
    font-size: 44px;
  }
}

.why-landlords > div > p {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 40px;
}

.benefits-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.benefit-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-item h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}

.benefit-item p {
  font-size: 14px;
  opacity: 0.7;
}

.who-stays {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 40px;
}

.who-stays h3 {
  font-size: 24px;
  margin-bottom: 24px;
}

.who-stays ul {
  list-style: none;
  display: grid;
  gap: 16px;
}

.who-stays li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.who-stays li svg {
  color: var(--sage);
  flex-shrink: 0;
}

.no-chaos {
  margin-top: 32px;
  padding: 24px 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  text-align: center;
}

.no-chaos p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works {
  background-color: var(--cream);
}

.how-it-works-header {
  text-align: center;
  margin-bottom: 64px;
}

.how-it-works-header h2 {
  font-size: 36px;
  color: var(--foreground);
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .how-it-works-header h2 {
    font-size: 44px;
  }
}

.how-it-works-header p {
  font-size: 18px;
  color: var(--muted-foreground);
}

.steps-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  position: relative;
  background-color: white;
  border-radius: 12px;
  padding: 32px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.step-card:hover {
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

.step-number {
  position: absolute;
  top: -16px;
  left: 32px;
  width: 40px;
  height: 40px;
  background-color: var(--evergreen);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
}

.step-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(45, 79, 66, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  margin-top: 16px;
  color: var(--evergreen);
}

.step-card h3 {
  font-size: 20px;
  color: var(--foreground);
  margin-bottom: 12px;
}

.step-card p {
  font-size: 15px;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ===== OUR STANDARDS SECTION ===== */
.standards {
  background-color: var(--background);
}

.standards-grid {
  display: grid;
  gap: 64px;
  align-items: center;
}

@media (min-width: 1024px) {
  .standards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.standards h2 {
  font-size: 36px;
  color: var(--foreground);
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .standards h2 {
    font-size: 44px;
  }
}

.standards > div > p {
  font-size: 18px;
  color: var(--muted-foreground);
  margin-bottom: 40px;
}

.standards-list {
  display: grid;
  gap: 16px;
}

.standard-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background-color: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.3s;
}

.standard-item:hover {
  border-color: var(--evergreen);
  box-shadow: 0 4px 20px -4px rgba(45, 79, 66, 0.15);
}

.standard-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background-color: rgba(45, 79, 66, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--evergreen);
}

.standard-item span {
  font-size: 16px;
  color: var(--foreground);
}

.standards-quote {
  background: linear-gradient(135deg, var(--evergreen) 0%, #1F2F2A 100%);
  border-radius: 16px;
  padding: 48px;
  color: white;
}

.standards-quote blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 24px;
}

.standards-quote p {
  font-size: 14px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== PROPERTIES SECTION ===== */
.properties {
  background-color: var(--cream);
}

.properties-header {
  text-align: center;
  margin-bottom: 64px;
}

.properties-header h2 {
  font-size: 36px;
  color: var(--foreground);
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .properties-header h2 {
    font-size: 44px;
  }
}

.properties-header p {
  font-size: 18px;
  color: var(--muted-foreground);
}

.properties-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 64px;
}

@media (min-width: 768px) {
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .properties-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.property-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.property-card:hover {
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.property-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.property-card:hover .property-image img {
  transform: scale(1.05);
}

.property-content {
  padding: 24px;
}

.property-card h3 {
  font-size: 18px;
  color: var(--foreground);
  margin-bottom: 8px;
}

.property-card p {
  font-size: 14px;
  color: var(--muted-foreground);
}

.markets {
  text-align: center;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.markets h3 {
  font-size: 18px;
  color: var(--muted-foreground);
  margin-bottom: 24px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.markets-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
}

.market-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: white;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 15px;
  color: var(--foreground);
  transition: all 0.3s;
}

.market-tag:hover {
  border-color: var(--evergreen);
  color: var(--evergreen);
}

.market-tag svg {
  color: var(--evergreen);
}

/* ===== CTA SECTION ===== */
.cta {
  background: linear-gradient(135deg, var(--evergreen) 0%, #1F2F2A 100%);
  color: white;
  text-align: center;
}

.cta h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .cta h2 {
    font-size: 48px;
  }
}

.cta > div > p {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-bottom: 48px;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.cta-feature svg {
  color: var(--sage);
}

.cta .btn-primary {
  background-color: white;
  color: var(--evergreen);
  padding: 18px 48px;
  font-size: 16px;
}

.cta .btn-primary:hover {
  background-color: var(--cream);
}

/* ===== CONTACT SECTION ===== */
.contact {
  background-color: var(--background);
}

.contact-grid {
  display: grid;
  gap: 64px;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
  }
}

.contact h2 {
  font-size: 36px;
  color: var(--foreground);
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .contact h2 {
    font-size: 44px;
  }
}

.contact-info > p {
  font-size: 18px;
  color: var(--muted-foreground);
  margin-bottom: 40px;
}

.contact-details {
  display: grid;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background-color: rgba(45, 79, 66, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--evergreen);
}

.contact-item h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  font-size: 16px;
  color: var(--foreground);
}

.contact-item a:hover {
  color: var(--evergreen);
}

.contact-form {
  background-color: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}

.contact-form h3 {
  font-size: 24px;
  color: var(--foreground);
  margin-bottom: 32px;
}

.form-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--foreground);
}

.form-group input,
.form-group textarea {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s;
  background-color: var(--background);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--evergreen);
  box-shadow: 0 0 0 3px rgba(45, 79, 66, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form .btn-primary {
  width: 100%;
  margin-top: 8px;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--charcoal);
  color: white;
  padding: 64px 24px 32px;
}

@media (min-width: 1024px) {
  .footer {
    padding: 80px 96px 40px;
  }
}

.footer-grid {
  display: grid;
  gap: 48px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
  }
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-logo span {
  color: var(--sage);
}

.footer-tagline {
  font-size: 15px;
  opacity: 0.7;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.footer-social a:hover {
  background-color: var(--evergreen-light);
}

.footer h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  opacity: 0.5;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer ul a {
  font-size: 15px;
  opacity: 0.8;
  transition: all 0.3s;
}

.footer ul a:hover {
  opacity: 1;
  color: var(--sage);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: 14px;
  opacity: 0.5;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 14px;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.footer-legal a:hover {
  opacity: 1;
}

/* ===== CONTACT FORM 7 STYLES ===== */
.wpcf7 {
  background-color: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
}

@media (min-width: 768px) {
  .wpcf7 {
    padding: 40px;
  }
}

.wpcf7 p {
  margin-bottom: 20px;
}

.wpcf7 label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 8px;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  color: var(--foreground);
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.3s;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--evergreen);
  box-shadow: 0 0 0 3px rgba(45, 79, 66, 0.1);
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: var(--muted-foreground);
}

.wpcf7 textarea {
  min-height: 120px;
  resize: vertical;
}

.wpcf7 input[type="submit"] {
  width: 100%;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  color: white;
  background-color: var(--evergreen);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.wpcf7 input[type="submit"]:hover {
  background-color: var(--evergreen-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(45, 79, 66, 0.4);
}

.wpcf7 .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 16px;
  border-radius: 6px;
  font-size: 14px;
}

.wpcf7 .wpcf7-mail-sent-ok {
  background-color: rgba(45, 79, 66, 0.1);
  border: 1px solid var(--evergreen);
  color: var(--evergreen);
}

.wpcf7 .wpcf7-validation-errors,
.wpcf7 .wpcf7-mail-sent-ng {
  background-color: rgba(220, 38, 38, 0.1);
  border: 1px solid #dc2626;
  color: #dc2626;
}

.wpcf7 .wpcf7-not-valid-tip {
  color: #dc2626;
  font-size: 13px;
  margin-top: 6px;
}

.wpcf7 .wpcf7-spinner {
  margin: 0 12px;
}

/* Two-column layout for form fields */
.cf7-row {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .cf7-row {
    grid-template-columns: 1fr 1fr;
  }
}

.cf7-row p {
  margin-bottom: 0;
}

/* ===== MOBILE MENU STYLES ===== */

/* Site Header (header.php) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .custom-logo {
    height: 65px; /* Desktop height to make the tagline legible */
  }
}

.custom-logo {
  height: 50px; /* Base height for mobile */
  width: auto;
  object-fit: contain;
  display: block;
}

.site-header .site-logo span {
  color: var(--evergreen-light);
}

/* Menu Toggle Button */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--foreground);
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Main Navigation (header.php) */
.main-navigation {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 24px;
}

.main-navigation.is-open,
.main-navigation.active {
  display: block;
}

@media (min-width: 1024px) {
  .main-navigation {
    display: flex;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 40px;
  }
  
  .main-navigation.is-open,
  .main-navigation.active {
    display: flex;
  }
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 1024px) {
  .main-navigation ul {
    flex-direction: row;
    gap: 40px;
  }
}

.main-navigation li a {
  font-size: 16px;
  color: var(--foreground);
  transition: color 0.3s;
  display: block;
  padding: 8px 0;
}

@media (min-width: 1024px) {
  .main-navigation li a {
    font-size: 14px;
    padding: 0;
  }
}

.main-navigation li a:hover {
  color: var(--evergreen);
}

.site-header .header-cta {
  display: inline-flex;
}

@media (max-width: 1023px) {
  .site-header .header-cta {
    display: none;
  }
}

.site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-header .header-calendly {
  display: inline-flex;
}

@media (max-width: 1023px) {
  .site-header .header-actions {
    display: none;
  }
  
  .site-header .header-calendly {
    display: none;
  }
}

/* Mobile Menu Button for index.php template */
.mobile-menu-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav toggle for index.php */
.nav.is-open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 24px;
  gap: 16px;
}

@media (min-width: 768px) {
  .nav.is-open {
    position: static;
    flex-direction: row;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 40px;
  }
}

/* This targets the actual class WordPress generates */
.site-logo .custom-logo {
    height: 50px !important;
    width: auto !important;
    display: block !important;
    opacity: 1 !important;
}

/* This ensures the link wrapping the logo is visible */
.site-logo .custom-logo-link {
    display: block !important;
}

@media (min-width: 1024px) {
    .site-logo .custom-logo {
        height: 70px !important;
    }
}