.contact-shell {
  background:
    radial-gradient(circle at 18% 23%, rgba(255,255,255,.98) 0 15%, rgba(255,255,255,.66) 35%, transparent 58%),
    radial-gradient(circle at 86% 38%, rgba(218,239,203,.62), transparent 42%),
    linear-gradient(180deg, #faf9f1 0%, #f4f7e9 62%, #e9f1d1 100%);
}

.contact-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.back-home {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid rgba(66, 142, 70, .28);
  border-radius: 999px;
  background: rgba(255,255,255,.48);
  color: var(--green-800);
  box-shadow: inset 0 1px rgba(255,255,255,.8);
  font-size: 15px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.back-home svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-home:hover {
  background: rgba(255,255,255,.74);
  box-shadow: 0 10px 24px rgba(58,118,49,.1);
  transform: translateY(-2px);
}

.contact-main {
  position: relative;
  z-index: 4;
  min-height: 0;
  overflow: hidden;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(430px, .9fr) minmax(620px, 1.1fr);
  gap: clamp(46px, 5vw, 88px);
  align-items: center;
  height: 100%;
  padding-block: clamp(12px, 2vh, 24px) clamp(16px, 2vh, 28px);
}

.contact-intro {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding-bottom: clamp(95px, 12vh, 132px);
}

.contact-eyebrow,
.contact-directory__eyebrow {
  margin: 0 0 10px;
  color: var(--green-650);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
}

.contact-title {
  margin: 0;
  color: var(--green-800);
  font-size: clamp(48px, 4vw, 68px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.05;
}

.contact-subtitle {
  max-width: 520px;
  margin: 18px 0 0;
  color: #626a60;
  font-size: clamp(16px, 1.12vw, 20px);
  line-height: 1.8;
}

.company-card {
  position: relative;
  z-index: 2;
  margin-top: clamp(24px, 3.3vh, 38px);
  padding: clamp(20px, 2.2vw, 30px);
  border: 1px solid rgba(72,145,76,.2);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(250,253,245,.56));
  box-shadow: 0 22px 55px rgba(60,109,48,.12), inset 0 1px rgba(255,255,255,.9);
  backdrop-filter: blur(18px);
}

.company-card__heading {
  display: flex;
  align-items: center;
  gap: 15px;
}

.company-card__label {
  display: block;
  margin-bottom: 3px;
  color: #768073;
  font-size: 13px;
  font-weight: 600;
}

.company-card h2 {
  margin: 0;
  color: #334632;
  font-size: clamp(20px, 1.45vw, 25px);
  line-height: 1.3;
}

.company-card__content {
  display: grid;
  gap: 13px;
  margin-top: 20px;
  font-style: normal;
}

.company-card__content p {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0;
  color: #404840;
  font-size: clamp(14px, .98vw, 17px);
  line-height: 1.65;
}

.company-card__content p > span {
  color: #7b8278;
  font-size: 13px;
  font-weight: 600;
}

.company-card__content strong,
.company-card__content a {
  font-weight: 600;
}

.company-card__content a {
  color: var(--green-800);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(230,246,219,.95), rgba(204,233,186,.74));
  color: var(--green-800);
  box-shadow: inset 0 1px rgba(255,255,255,.9);
}

.contact-icon--large {
  width: 54px;
  height: 54px;
  flex-basis: 54px;
  border-radius: 18px;
}

.contact-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-mascots {
  position: absolute;
  left: 38px;
  bottom: -24px;
  z-index: 1;
  width: min(78%, 390px);
  height: clamp(135px, 18vh, 190px);
  margin: 0;
  pointer-events: none;
}

.contact-mascots::after {
  position: absolute;
  left: 10%;
  right: 2%;
  bottom: 0;
  height: 16px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(63,84,46,.2), transparent 67%);
  filter: blur(3px);
}

.contact-mascot {
  position: absolute;
  bottom: 0;
  display: block;
  transform-origin: center bottom;
}

.contact-mascot > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 12px 14px rgba(52,72,36,.1));
}

.contact-mascot--fox {
  left: 0;
  z-index: 2;
  width: 48%;
  height: 100%;
  animation: contactFoxFloat 5.8s ease-in-out infinite;
}

.contact-mascot--rabbit {
  right: 0;
  z-index: 3;
  width: 43%;
  height: 88%;
  animation: contactRabbitFloat 5.2s ease-in-out -1.2s infinite;
}

.contact-mascot__prop {
  position: absolute;
  z-index: 5;
  display: block;
  transform-origin: center bottom;
}

.contact-mascot__prop img {
  width: 100%;
  height: auto;
}

.contact-mascot__prop--tool {
  right: -12%;
  bottom: 10%;
  width: 48%;
  transform: rotate(-10deg);
}

.contact-mascot__prop--flower {
  left: 19%;
  bottom: 9%;
  width: 62%;
  transform: rotate(-5deg);
}

.contact-directory {
  min-width: 0;
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid rgba(72,145,76,.2);
  border-radius: 30px;
  background: rgba(255,255,255,.52);
  box-shadow: 0 28px 70px rgba(60,109,48,.11), inset 0 1px rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
}

.contact-directory__header h2 {
  margin: 0;
  color: #344534;
  font-size: clamp(23px, 1.72vw, 30px);
  line-height: 1.35;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.15vw, 17px);
  margin-top: clamp(20px, 2.4vh, 28px);
}

.contact-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  min-height: clamp(84px, 9vh, 102px);
  padding: 16px 44px 16px 16px;
  border: 1px solid rgba(73,143,77,.16);
  border-radius: 20px;
  background: rgba(255,255,255,.66);
  box-shadow: inset 0 1px rgba(255,255,255,.88);
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.contact-card:hover {
  border-color: rgba(73,143,77,.38);
  background: rgba(255,255,255,.9);
  box-shadow: 0 16px 32px rgba(55,104,48,.1), inset 0 1px rgba(255,255,255,.95);
  transform: translateY(-3px);
}

.contact-card--wide {
  grid-column: 1 / -1;
}

.contact-card__copy {
  display: block;
  min-width: 0;
}

.contact-card__copy small {
  display: block;
  margin-bottom: 5px;
  color: #788076;
  font-size: 13px;
  font-weight: 600;
}

.contact-card__copy strong {
  display: block;
  overflow: hidden;
  color: #344435;
  font-size: clamp(14px, 1vw, 17px);
  font-weight: 700;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-card__hint {
  margin-left: auto;
  color: #7a8377;
  font-size: 13px;
}

.contact-card__arrow {
  position: absolute;
  top: 15px;
  right: 17px;
  color: rgba(58,125,62,.62);
  font-size: 18px;
  transition: transform 180ms ease;
}

.contact-card:hover .contact-card__arrow {
  transform: translate(2px, -2px);
}

.contact-footer .garden-background {
  opacity: .84;
}

.legal-links a[aria-current="page"] {
  color: var(--green-800);
  font-weight: 700;
}

@keyframes contactFoxFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-5px) rotate(1deg); }
}

@keyframes contactRabbitFloat {
  0%, 100% { transform: translateY(0) rotate(1deg); }
  50% { transform: translateY(-6px) rotate(-1deg); }
}

@media (max-height: 780px) and (min-width: 1000px) {
  .contact-layout {
    gap: 42px;
    padding-block: 4px 8px;
  }

  .contact-intro {
    padding-bottom: 80px;
  }

  .contact-title {
    font-size: clamp(44px, 3.7vw, 58px);
  }

  .contact-subtitle {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.55;
  }

  .company-card {
    margin-top: 18px;
    padding: 18px 22px;
  }

  .company-card__content {
    gap: 8px;
    margin-top: 14px;
  }

  .contact-directory {
    padding: 22px 26px;
  }

  .contact-grid {
    gap: 10px;
    margin-top: 16px;
  }

  .contact-card {
    min-height: 75px;
    padding-block: 12px;
  }

  .contact-mascots {
    bottom: -36px;
    height: 138px;
  }
}

@media (max-width: 1120px) {
  .contact-layout {
    grid-template-columns: minmax(340px, .82fr) minmax(500px, 1.18fr);
    gap: 26px;
  }

  .contact-directory {
    padding: 24px;
  }

  .contact-card {
    padding-right: 36px;
  }
}

@media (max-width: 880px) {
  .contact-layout {
    grid-template-columns: .82fr 1.18fr;
    gap: 18px;
  }

  .brand__slogan,
  .back-home span,
  .contact-subtitle,
  .contact-card__hint,
  .contact-mascots {
    display: none;
  }

  .contact-title {
    font-size: clamp(38px, 6vw, 52px);
  }

  .company-card {
    padding: 16px;
  }

  .company-card__content p {
    grid-template-columns: 1fr;
    gap: 2px;
    font-size: 13px;
  }

  .contact-directory {
    padding: 16px;
  }

  .contact-grid {
    gap: 8px;
    margin-top: 12px;
  }

  .contact-card {
    min-height: 70px;
    padding: 10px 30px 10px 10px;
    border-radius: 16px;
  }

  .contact-icon {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
    border-radius: 12px;
  }

  .contact-icon svg {
    width: 21px;
    height: 21px;
  }

  .contact-card__copy strong {
    font-size: 12px;
  }
}

@media (max-width: 620px) {
  .contact-header {
    min-height: 64px;
    padding-top: 10px;
  }

  .brand__logo {
    width: 112px;
  }

  .back-home {
    min-height: 38px;
    padding-inline: 10px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 10px;
    padding-top: 0;
  }

  .contact-intro {
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    gap: 12px;
    align-items: end;
    padding-bottom: 0;
  }

  .contact-eyebrow {
    margin-bottom: 3px;
    font-size: 10px;
  }

  .contact-title {
    font-size: 34px;
  }

  .company-card {
    margin-top: 0;
    padding: 11px 13px;
    border-radius: 17px;
  }

  .company-card__heading {
    gap: 8px;
  }

  .company-card__label,
  .company-card__heading .contact-icon,
  .company-card__content p > span {
    display: none;
  }

  .company-card h2 {
    font-size: 15px;
  }

  .company-card__content {
    gap: 3px;
    margin-top: 5px;
  }

  .company-card__content p {
    display: block;
    font-size: 10px;
    line-height: 1.35;
  }

  .contact-directory__eyebrow {
    margin-bottom: 2px;
    font-size: 9px;
  }

  .contact-directory__header h2 {
    font-size: 16px;
  }

  .contact-directory {
    padding: 10px;
    border-radius: 18px;
  }

  .contact-card {
    min-height: 58px;
    gap: 7px;
    padding: 7px 22px 7px 7px;
  }

  .contact-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 9px;
  }

  .contact-icon svg {
    width: 17px;
    height: 17px;
  }

  .contact-card__copy small {
    margin-bottom: 1px;
    font-size: 9px;
  }

  .contact-card__copy strong {
    font-size: 9px;
  }

  .contact-card__arrow {
    top: 8px;
    right: 8px;
    font-size: 12px;
  }

  .contact-footer {
    min-height: 64px;
  }

  .contact-footer .site-footer__inner {
    padding-bottom: 10px;
  }

  .contact-footer .copyright {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-mascot--fox,
  .contact-mascot--rabbit {
    animation: none;
  }
}
