/*
Theme Name: Adam's Apple Elementor
Theme URI: https://www.glide5.com/
Author: glide5
Author URI: https://www.glide5.com/
Description: Elementor-seeded WordPress theme package for Adam's Apple Tree Service.
Version: 1.0.4
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: adams-apple-elementor
*/

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
}

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

.aa-content {
  width: min(100% - 32px, 900px);
  margin: 0 auto;
  padding: 64px 0;
  color: #1e2a22;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.aa-content a {
  color: #2f6f3e;
  text-underline-offset: 0.18em;
}

.aa-archive-header,
.aa-single-header {
  margin-bottom: 32px;
}

.aa-archive-header h1,
.aa-single-title {
  margin: 0;
  color: #152118;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.05;
}

.aa-archive-description,
.aa-post-meta,
.aa-single-footer {
  color: #637066;
}

.aa-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  font-size: 0.95rem;
}

.aa-post-list {
  display: grid;
  gap: 28px;
}

.aa-post-card,
.aa-single-post {
  border: 1px solid #dde6dc;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(21, 33, 24, 0.08);
}

.aa-post-card {
  padding: 28px;
}

.aa-post-card-title {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.15;
}

.aa-post-card-title a {
  color: #152118;
  text-decoration: none;
}

.aa-post-card-image,
.aa-single-featured-image {
  display: block;
  margin: 24px 0;
  overflow: hidden;
  border-radius: 8px;
}

.aa-post-card-image img,
.aa-single-featured-image img {
  display: block;
  width: 100%;
}

.aa-post-excerpt,
.aa-single-content {
  color: #2f3b33;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.aa-post-excerpt p:first-child,
.aa-single-content > *:first-child {
  margin-top: 0;
}

.aa-post-excerpt p:last-child,
.aa-single-content > *:last-child {
  margin-bottom: 0;
}

.aa-read-more {
  display: inline-flex;
  margin-top: 8px;
  font-weight: 700;
}

.aa-single-post {
  padding: clamp(28px, 5vw, 56px);
}

.aa-single-content h2,
.aa-single-content h3,
.aa-single-content h4 {
  margin-top: 1.8em;
  color: #152118;
  line-height: 1.2;
}

.aa-single-content blockquote {
  margin: 28px 0;
  padding-left: 20px;
  border-left: 4px solid #6fa36d;
  color: #435047;
}

.aa-single-content table {
  width: 100%;
  border-collapse: collapse;
}

.aa-single-content th,
.aa-single-content td {
  padding: 10px 12px;
  border: 1px solid #dde6dc;
  text-align: left;
}

.aa-page-links,
.aa-single-footer,
.aa-post-navigation {
  margin-top: 32px;
}

.aa-single-footer {
  display: grid;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid #dde6dc;
  font-size: 0.95rem;
}

.aa-single-footer span {
  color: #152118;
  font-weight: 700;
}

.aa-post-navigation .nav-links,
.aa-post-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.aa-comments {
  margin-top: 40px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid #dde6dc;
  border-radius: 8px;
  background: #fff;
}

.aa-comments-title,
.comment-reply-title {
  margin: 0 0 24px;
  color: #152118;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

.aa-comment-list,
.aa-comment-list .children {
  list-style: none;
}

.aa-comment-list {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.aa-comment-list .children {
  margin: 20px 0 0 clamp(18px, 4vw, 40px);
  padding: 0;
}

.aa-comment-list .comment-body {
  padding: 20px;
  border: 1px solid #dde6dc;
  border-radius: 8px;
  background: #f8fbf7;
}

.aa-comment-list .avatar {
  margin-right: 10px;
  border-radius: 50%;
  vertical-align: middle;
}

.aa-comment-list .comment-meta,
.aa-comment-list .comment-metadata,
.aa-no-comments {
  color: #637066;
  font-size: 0.95rem;
}

.aa-comment-list .comment-content {
  margin-top: 14px;
  color: #2f3b33;
  line-height: 1.7;
}

.aa-comment-list .reply {
  margin-top: 12px;
  font-weight: 700;
}

.comment-respond {
  margin-top: 32px;
}

.comment-form {
  display: grid;
  gap: 16px;
}

.comment-form p {
  margin: 0;
}

.comment-form label {
  display: block;
  margin-bottom: 6px;
  color: #152118;
  font-weight: 700;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #c9d5ca;
  border-radius: 6px;
  color: #1e2a22;
  font: inherit;
}

.comment-form textarea {
  min-height: 160px;
}

.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.comment-form-cookies-consent label {
  margin: 0;
  font-weight: 400;
}

.form-submit .submit {
  cursor: pointer;
  border: 0;
  border-radius: 6px;
  background: #2f6f3e;
  color: #fff;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
}

.aa-empty-state {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 72px 0;
  color: #1e2a22;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (max-width: 767px) {
  #home {
    padding: 44px 16px 44px 16px !important;
    background-position: center top !important;
  }

  #home > .elementor-container {
    min-height: 80vh !important;
  }

  #home > .elementor-container > .elementor-column:first-child > .elementor-widget-wrap {
    transform: translate(-16px, 135px);
    width: calc(100% + 32px);
  }

  #home .elementor-element-b753b5e0 {
    transform: translateX(-14px);
  }

  #home .elementor-widget-button .elementor-button {
    justify-content: center;
    max-width: calc(100vw - 32px);
    width: calc(100vw - 32px);
  }

  #home .elementor-element-3a2502e4 > .elementor-container {
    flex-wrap: wrap;
  }

  #home .elementor-element-3a2502e4 > .elementor-container > .elementor-column {
    flex: 0 0 50%;
    width: 50% !important;
  }

  #home .elementor-element-3a2502e4 .elementor-widget-wrap {
    align-content: flex-start;
  }

  #home .elementor-element-3a2502e4 .elementor-icon-box-wrapper {
    align-items: flex-start !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 10px;
    text-align: left !important;
  }

  #home .elementor-element-3a2502e4 .elementor-icon-box-icon {
    flex: 0 0 auto;
    margin: 0 !important;
  }

  #home .elementor-element-3a2502e4 .elementor-icon-box-content {
    flex: 1 1 auto;
    min-width: 0;
  }

  .elementor-fixed.elementor-widget-button {
    max-width: calc(100vw - 32px);
    right: 16px !important;
  }

  .elementor-fixed.elementor-widget-button .elementor-button {
    border-radius: 18px !important;
    max-width: 100%;
  }
}
