.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.72rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--speed) var(--ease), background var(--speed) var(--ease), color var(--speed) var(--ease), border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--green-800);
  color: #fff;
  box-shadow: 0 8px 22px rgba(22, 75, 53, 0.2);
}

.btn--primary:hover {
  background: var(--green-700);
  color: #fff;
  box-shadow: 0 12px 28px rgba(22, 75, 53, 0.26);
}

.btn--gold {
  background: var(--gold);
  color: var(--green-950);
  box-shadow: 0 8px 22px rgba(198, 155, 80, 0.22);
}

.btn--gold:hover {
  background: #d3aa63;
  color: var(--green-950);
}

.btn--secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--green-800);
}

.btn--secondary:hover {
  border-color: var(--green-800);
  background: var(--green-50);
  color: var(--green-900);
}

.btn--light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn--light:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn--white {
  background: #fff;
  color: var(--green-900);
}

.btn--white:hover {
  background: var(--cream);
  color: var(--green-900);
}

.btn--sm {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
}

.btn--lg {
  min-height: 54px;
  padding: 0.9rem 1.7rem;
  font-size: 0.95rem;
}

.btn--block {
  width: 100%;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}

.card--pad {
  padding: clamp(1.35rem, 2.4vw, 2rem);
}

.card--hover {
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.card--hover:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -55% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(198, 155, 80, 0.14);
  opacity: 0;
  transition: opacity var(--speed) var(--ease);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(22, 75, 53, 0.26);
  box-shadow: var(--shadow);
}

.service-card:hover::after {
  opacity: 1;
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.2rem;
  border-radius: 14px;
  background: var(--green-50);
  color: var(--green-800);
  border: 1px solid rgba(22, 75, 53, 0.1);
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.93rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.service-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.service-card__footer .link-arrow {
  font-size: 0.84rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--green-700);
  text-decoration: none;
}

.link-arrow::after {
  content: "→";
  transition: transform var(--speed) var(--ease);
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

.trust-card {
  display: flex;
  gap: 1rem;
  padding: 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.trust-card__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--brown);
}

.trust-card__icon svg {
  width: 21px;
  height: 21px;
}

.trust-card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.trust-card p {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
}

.branch-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 100%;
}

.branch-card__county {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--green-50);
  color: var(--green-700);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.branch-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.branch-card address {
  font-style: normal;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.branch-card__links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: auto;
  font-size: 0.86rem;
}

.branch-card__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 600;
}

.branch-card__links svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.project-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--green-100);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.project-card:hover .project-card__media img {
  transform: scale(1.035);
}

.project-card__category {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(13, 47, 34, 0.88);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.project-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.4rem 1.4rem;
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.project-card__meta svg {
  width: 13px;
  height: 13px;
  vertical-align: -2px;
}

.project-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
}

.project-card h3 a {
  color: inherit;
  text-decoration: none;
}

.project-card h3 a:hover {
  color: var(--green-700);
}

.project-card p {
  font-size: 0.87rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.project-card__link {
  margin-top: auto;
  font-size: 0.84rem;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--speed) var(--ease);
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--green-800);
  border-color: var(--green-800);
  color: #fff;
}

.project-grid [hidden] {
  display: none !important;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 100%;
}

.testimonial-card blockquote {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #3c443f;
  margin-bottom: 1.2rem;
}

.testimonial-card blockquote::before {
  content: "“";
  display: block;
  font-family: Georgia, serif;
  font-size: 3.2rem;
  line-height: 0.7;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.testimonial-card__person {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}

.testimonial-card__person strong {
  display: block;
}

.testimonial-card__person span {
  color: var(--muted);
}

.stars {
  display: inline-flex;
  gap: 0.12rem;
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
}

.star {
  color: var(--line-strong);
}

.star--on {
  color: var(--gold);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.7rem;
  color: #3c443f;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--green-100);
  box-shadow: inset 0 0 0 4px var(--surface), 0 0 0 1px var(--green-600);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.52rem;
  width: 0.4rem;
  height: 0.22rem;
  border-left: 1.5px solid var(--green-700);
  border-bottom: 1.5px solid var(--green-700);
  transform: rotate(-45deg);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.required-mark {
  color: var(--danger);
}

.field input,
.field select,
.field textarea,
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.field textarea,
.form-textarea {
  min-height: 145px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9aa19c;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(39, 116, 83, 0.14);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
  background: #fffbfa;
}

.field__error {
  font-size: 0.78rem;
  color: var(--danger);
  font-weight: 600;
}

.field__help {
  font-size: 0.76rem;
  color: var(--muted);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}

.form-note {
  font-size: 0.76rem;
  color: var(--muted);
  max-width: 460px;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  display: flex;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
}

.alert--success {
  background: var(--success-bg);
  border-color: #bfdfcc;
  color: #145137;
}

.alert--error {
  background: var(--danger-bg);
  border-color: #efc5bf;
  color: #7e2c21;
}

.alert--info {
  background: var(--info-bg);
  border-color: #c6dbe5;
  color: #234c61;
}

.alert--warning {
  background: var(--gold-100);
  border-color: #e6d2a9;
  color: #6b4d1e;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--cream-dark);
  color: var(--muted);
}

.badge--new {
  background: var(--gold-100);
  color: #75561f;
}

.badge--read {
  background: var(--info-bg);
  color: var(--info);
}

.badge--replied,
.badge--approved,
.badge--published {
  background: var(--success-bg);
  color: var(--success);
}

.badge--archived,
.badge--draft,
.badge--pending {
  background: #eeeae1;
  color: #6d665c;
}

.accordion {
  border-top: 1px solid var(--line);
}

.accordion details {
  border-bottom: 1px solid var(--line);
}

.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  padding: 1.1rem 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green-900);
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-700);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform var(--speed) var(--ease);
}

.accordion details[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.accordion__body {
  padding: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 780px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.gallery a,
.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.gallery a {
  transition: opacity var(--speed) var(--ease);
}

.gallery a:hover {
  opacity: 0.9;
}

.gallery--wide a:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.empty-state {
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
}

.empty-state h2,
.empty-state h3 {
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--muted);
  max-width: 520px;
  margin-inline: auto;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding-inline: 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
}

.pagination a:hover {
  border-color: var(--green-700);
  color: var(--green-700);
}

.pagination .is-current {
  background: var(--green-800);
  border-color: var(--green-800);
  color: #fff;
}

.pagination .is-disabled {
  opacity: 0.45;
}

.stat {
  padding: 1.3rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--green-800);
  margin-bottom: 0.35rem;
}

.stat__label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pill-list li {
  margin: 0;
  padding: 0.38rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--green-50);
  border: 1px solid rgba(22, 75, 53, 0.1);
  color: var(--green-800);
  font-size: 0.78rem;
  font-weight: 600;
}

.info-panel {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.76);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  position: relative;
  overflow: hidden;
}

.info-panel::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -120px;
  bottom: -140px;
  border-radius: 50%;
  border: 1px solid rgba(198, 155, 80, 0.22);
  box-shadow: 0 0 0 40px rgba(198, 155, 80, 0.04);
}

.info-panel h2,
.info-panel h3 {
  color: #fff;
}

.info-panel a {
  color: rgba(255, 255, 255, 0.85);
}

.info-panel a:hover {
  color: var(--gold);
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.info-list li {
  display: flex;
  gap: 0.8rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.info-list li:last-child {
  border-bottom: 0;
}

.info-list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--gold);
}

.info-list strong {
  display: block;
  color: #fff;
  font-size: 0.8rem;
  margin-bottom: 0.1rem;
}

.angular-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-xs);
  background: var(--brown-100);
  color: var(--brown);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 2rem 0;
}

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

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery--wide a:first-child {
    grid-column: span 2;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .btn-row .btn {
    flex: 1 1 auto;
  }
}

.flash-stack {
  padding-top: 1.1rem;
}

.flash-stack .alert {
  margin-bottom: 0.6rem;
}

.footer-section-title {
  margin-top: 1.4rem;
}
