/*
Theme Name: ariant
*/

:root {
  --orange: #df5310;
  --orange-deep: #bf430a;
  --yellow: #f5edaa;
  --green: #2da53e;
  --blue: #7fb1d6;
  --cream: #fffaf5;
  --text: #545b66;
  --text-soft: #7f8794;
  --line: rgba(223, 83, 16, 0.14);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--text);
  font-family: dnp-shuei-mgothic-std, sans-serif;
  font-weight: 400;
  line-height: 1.8;
  background: var(--orange);
  overflow-x: clip;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.page {
  min-height: 100vh;
  padding: 18px 14px 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1080px);
  margin: 0 auto 14px;
}

.topbar__logo {
  width: 152px;
}

.topbar__menu {
  position: fixed;
  top: 18px;
  right: max(18px, calc((100vw - 1080px) / 2));
  z-index: 120;
}

.topbar__menu summary {
  list-style: none;
}

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

.topbar__toggle {
  display: grid;
  gap: 6px;
  align-content: center;
  width: 44px;
  height: 32px;
  padding: 6px 0;
  cursor: pointer;
  position: relative;
  z-index: 42;
  transition: background-color 0.2s ease, border-radius 0.2s ease, box-shadow 0.2s ease;
}

.topbar__toggle span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease, width 0.2s ease;
}

.topbar__menu.is-scrolled .topbar__toggle {
  width: 48px;
  height: 48px;
  padding: 0;
  justify-items: center;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 8px 18px rgba(223, 83, 16, 0.34);
}

.topbar__toggle span:nth-child(1) {
  width: 28px;
}

.topbar__toggle span:nth-child(2) {
  width: 22px;
}

.topbar__toggle span:nth-child(3) {
  width: 28px;
}

.topbar__menu[open] .topbar__toggle {
  gap: 0;
}

.topbar__menu[open] .topbar__toggle span:nth-child(1) {
  width: 30px;
  transform: translateY(2px) rotate(45deg);
}

.topbar__menu[open] .topbar__toggle span:nth-child(2) {
  opacity: 0;
}

.topbar__menu[open] .topbar__toggle span:nth-child(3) {
  width: 30px;
  transform: translateY(-2px) rotate(-45deg);
}

.topbar__drawer {
  position: absolute;
  top: calc(100% + 12px);
  right: -6px;
  display: grid;
  gap: 16px;
  justify-items: stretch;
  width: min(88vw, 360px);
  padding: 26px 22px 22px;
  background: #fff;
  border-radius: 30px;
  border: 2px solid rgba(223, 83, 16, 0.18);
  z-index: 41;
}

.topbar__drawer a,
.topbar__group p {
  color: var(--text);
}

.topbar__drawer a {
  display: block;
  padding: 0 0 14px;
  font-weight: 600;
  border-bottom: 1px solid rgba(223, 83, 16, 0.12);
}

.topbar__group {
  display: grid;
  gap: 10px;
  padding: 4px 0 2px;
  border-bottom: 1px solid rgba(223, 83, 16, 0.12);
}

.topbar__group p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--orange);
}

.topbar__group a {
  padding: 0 0 0 0.9rem;
  border-bottom: 0;
  font-weight: 400;
}

.topbar__contact {
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  justify-self: stretch;
  margin-top: 2px;
  padding: 0 18px !important;
  border-radius: 999px;
  background: #df5310;
  color: #fff !important;
  border-bottom: 0 !important;
  text-align: center;
  line-height: 1;
}

.topbar__menu[open]::after {
  position: fixed;
  inset: 0;
  content: "";
  background: rgba(67, 74, 84, 0.34);
  z-index: 39;
  pointer-events: none;
}

.shell {
  position: relative;
  --shell-pad-x: 18px;
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 28px 18px 42px;
  overflow: visible;
  background: #fff;
  border-radius: 34px;
}

.shell::before,
.shell::after {
  content: none;
}

.hero,
.services,
.feature-grid,
.contact {
  position: relative;
  z-index: 1;
}

.hero {
  display: block;
  padding: 14px 2px 40px;
}

.eyebrow,
.section-label {
  margin: 0 0 8px;
  font-size: 0.74rem;
  font-family: "reross-rectangular", sans-serif;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.hero h1,
.section-heading h2,
.bubble h2,
.support-box__copy h2 {
  margin: 0;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-family: dnp-shuei-mgothic-std, sans-serif;
  color: var(--orange);
  font-size: clamp(2.75rem, 11vw, 5rem);
  line-height: 1.34;
  letter-spacing: 0.04em;
}

.hero__ants {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin: 22px 0 28px;
}

.hero__ants img {
  width: 74px;
  opacity: 1;
}

.hero__lead {
  margin: 0;
  max-width: 30rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--orange);
  line-height: 1.75;
}

.hero__text {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ea6a28 0%, var(--orange) 100%);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.overview {
  position: relative;
  display: grid;
  gap: 0;
  margin-inline: calc(var(--shell-pad-x) * -1);
  padding: 18px 0 44px;
}

.bubble {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: min(92%, 820px);
  min-height: 300px;
  padding: 38px 34px 34px;
  background-position: var(--bubble-bg-position, center);
  background-repeat: no-repeat;
  background-size: var(--bubble-bg-size, 100% 100%);
}

.bubble > * {
  position: relative;
  z-index: 0;
}

.bubble--blue {
  justify-self: start;
  --bubble-bg-position: left center;
  --bubble-bg-size: 100% 100%;
  background-image: url("images/gunya1.svg");
  z-index: 2;
  margin-left: 0;
  margin-right: auto;
  width: min(92%, 820px);
  max-width: 820px;
  min-height: 300px;
  padding-inline: 42px 52px;
  color: #fff;
}

.bubble--yellow {
  justify-self: end;
  --bubble-bg-position: right center;
  --bubble-bg-size: 100% 100%;
  background-image: url("images/gunya2.svg");
  z-index: 1;
  margin-top: -42px;
  margin-left: auto;
  margin-right: 0;
  width: min(94%, 880px);
  max-width: 880px;
  min-height: 326px;
  padding: 42px 44px 34px 44px;
  color: var(--orange);
  align-items: flex-end;
  text-align: right;
}

.bubble h2 {
  font-size: clamp(2rem, 7vw, 2.9rem);
  line-height: 1.15;
}

.bubble__en {
  margin: 6px 0 24px;
  font-family: "reross-quadratic", sans-serif;
  font-size: 1.15rem;
  line-height: 1;
}

.bubble__en--orange {
  color: var(--orange);
}

.bubble__copy {
  margin: 0 0 18px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.bubble__copy--orange {
  color: var(--orange);
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 48px;
  padding: 0 28px;
  background: #fff;
  border-radius: 999px;
  color: var(--orange);
  font-weight: 600;
}

.mini-pill--orange {
  background: rgba(223, 83, 16, 0.94);
  color: #fff;
}

.overview__ant {
  position: absolute;
  top: 22px;
  left: 60%;
  z-index: 3;
  width: 64px;
  transform: translateX(-50%) rotate(13deg);
  transform-origin: center bottom;
}

.services {
  padding: 0 0 28px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 8px;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 6vw, 3rem);
  color: var(--orange);
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--text-soft);
}

.leaf-panel {
  position: relative;
  margin: -8px -28px 18px;
  min-height: 580px;
  padding: 120px 40px 104px;
  overflow: visible;
  background-image: url("images/green_leaf.svg");
  background-position: center 58px;
  background-repeat: no-repeat;
  background-size: 144% auto;
  color: #fff;
  z-index: 2;
}

.leaf-panel::before,
.leaf-panel::after {
  position: absolute;
  content: "";
  pointer-events: none;
  background-image: url("images/green_leaf.svg");
  background-repeat: no-repeat;
  background-size: contain;
  z-index: -1;
}

.leaf-panel::before {
  left: -34px;
  bottom: -6px;
  width: 42%;
  height: 30%;
  opacity: 0.88;
  transform: scaleX(-1) rotate(-6deg);
  transform-origin: center;
}

.leaf-panel::after {
  content: none;
}

.leaf-panel__ant {
  position: absolute;
  left: 50%;
  bottom: 38px;
  width: 72px;
  transform: translateX(-50%) rotate(10deg);
}

.leaf-panel__title {
  margin: 0 0 14px;
  font-weight: 600;
  font-size: 1.35rem;
  max-width: 17rem;
  line-height: 1.55;
}

.leaf-panel__list {
  margin: 0;
  padding-left: 1.2em;
  max-width: 17.8rem;
  font-size: 1rem;
  line-height: 1.58;
}

.leaf-panel__list li + li {
  margin-top: 6px;
}

.cta-button--wide {
  max-width: 320px;
  margin-top: -6px;
}

.feature-grid {
  display: grid;
  gap: 20px;
  padding: 6px 0 34px;
}

.section-heading--left {
  margin-bottom: 4px;
}

.feature-card,
.support-box,
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.feature-card {
  overflow: hidden;
}

.feature-card__media {
  min-height: 168px;
}

.placeholder-media {
  background:
    linear-gradient(135deg, rgba(245, 237, 170, 0.9), rgba(255, 255, 255, 0.65)),
    linear-gradient(180deg, rgba(127, 177, 214, 0.4), rgba(127, 177, 214, 0.18));
  position: relative;
}

.placeholder-media::before,
.placeholder-media::after {
  position: absolute;
  content: "";
  border-radius: 999px;
}

.placeholder-media::before {
  width: 120px;
  height: 120px;
  right: 18px;
  top: 18px;
  background: rgba(223, 83, 16, 0.14);
}

.placeholder-media::after {
  width: 84px;
  height: 84px;
  left: 22px;
  bottom: 22px;
  background: rgba(45, 165, 62, 0.18);
}

.placeholder-media--small::before {
  background: rgba(127, 177, 214, 0.25);
}

.coming-soon-banner {
  display: grid;
  place-items: center;
  min-height: 168px;
  background: #f7f7f7;
}

.coming-soon-banner span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 172px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid rgba(223, 83, 16, 0.2);
  border-radius: 999px;
  color: var(--orange);
  font-family: "reross-rectangular", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  background: #fff;
}

.feature-card__body {
  padding: 22px 20px 24px;
}

.feature-card__body h3 {
  margin: 0 0 4px;
  font-family: "reross-quadratic", sans-serif;
  font-weight: 400;
  color: var(--text);
  font-size: 1.4rem;
}

.feature-card--reverse {
  margin-top: 16px;
}

.feature-card__sub {
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--orange);
}

.support-box {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 34px -42px 0;
  padding: 48px 52px 40px;
  overflow: hidden;
  background: #df5310;
  color: #fff;
  border: 0;
  border-radius: 42% 42% 42% 42% / 34% 34% 34% 34%;
}

.support-box > * {
  position: relative;
  z-index: 1;
}

.support-box::before {
  position: absolute;
  content: "";
  top: -22px;
  right: -90px;
  width: 220px;
  height: 120%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(18deg);
  transform-origin: top right;
  z-index: 0;
  pointer-events: none;
}

.support-box__copy h2 {
  color: #fff;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
}

.support-box__copy p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.94);
}

.support-box__art {
  width: 88px;
  justify-self: anchor-center;
  opacity: 1;
}

.support-box .section-label {
  color: rgba(255, 255, 255, 0.76);
}

.support-box::before,
.support-box::after {
  content: none;
}

.contact {
  padding-top: 4px;
}

.contact-form {
  padding: 20px 16px 16px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field + .form-field {
  margin-top: 16px;
}

.form-field span {
  font-weight: 600;
  color: var(--orange);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(223, 83, 16, 0.16);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(223, 83, 16, 0.5);
}

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

.cta-button--submit {
  margin-top: 18px;
  cursor: pointer;
}

.contact-form--wp .wpcf7-form {
  display: grid;
  gap: 16px;
}

.contact-form--wp .wpcf7-form p {
  margin: 0;
}

.contact-form--wp label {
  display: grid;
  gap: 8px;
  color: var(--orange);
  font-weight: 600;
}

.contact-form--wp input:not([type="submit"]),
.contact-form--wp textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(223, 83, 16, 0.16);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.contact-form--wp input:not([type="submit"]):focus,
.contact-form--wp textarea:focus {
  border-color: rgba(223, 83, 16, 0.5);
}

.contact-form--wp textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form--wp input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin-top: 2px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ea6a28 0%, var(--orange) 100%);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.contact-form--wp .wpcf7-spinner {
  display: block;
  margin: 10px auto 0;
}

.contact-form--wp .wpcf7-not-valid-tip {
  margin-top: 4px;
  color: var(--orange);
  font-size: 0.86rem;
}

.contact-form--wp .wpcf7-response-output {
  margin: 12px 0 0 !important;
  padding: 12px 14px !important;
  border-color: rgba(223, 83, 16, 0.28) !important;
  border-radius: 14px;
  color: var(--text);
}

@media (min-width: 768px) {
  .page {
    padding: 24px 24px 64px;
  }

  .topbar__logo {
    width: 196px;
  }

  .topbar__menu {
    top: 24px;
    right: max(24px, calc((100vw - 1080px) / 2));
  }

  .topbar__drawer {
    width: min(92vw, 420px);
    padding: 30px 26px 24px;
  }

  .shell {
    --shell-pad-x: 42px;
    padding: 44px 42px 60px;
    border-radius: 42px;
  }

  .hero {
    padding-bottom: 42px;
  }

  .overview {
    min-height: 780px;
    padding: 18px 0 44px;
  }

  .bubble {
    min-height: 460px;
    padding: 72px 90px 62px;
  }

  .bubble--blue {
    width: min(82%, 820px);
    margin-top: 0;
    margin-left: -84px;
    --bubble-bg-position: left center;
    --bubble-bg-size: 100% 100%;
    padding-inline: 128px 118px;
  }

  .bubble--yellow {
    width: min(88%, 880px);
    margin-top: -390px;
    margin-right: -84px;
    --bubble-bg-position: right center;
    --bubble-bg-size: 100% 100%;
    min-height: 540px;
    padding: 104px 126px 74px 170px;
  }

  .bubble__copy {
    font-size: 1.1rem;
    margin-bottom: 24px;
  }

  .overview__ant {
    top: 55px;
    width: 86px;
    left: 50%;
    transform: translateX(-50%) rotate(25deg);
  }

  .section-heading--left {
    max-width: 620px;
  }

  .feature-card {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: stretch;
  }

  .feature-card--reverse {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .feature-card--reverse .feature-card__media {
    order: 2;
  }

  .feature-card--reverse .feature-card__body {
    order: 1;
  }

  .feature-card__media {
    min-height: 100%;
  }

  .feature-card__body {
    padding: 28px 28px 30px;
  }

  .leaf-panel {
    margin: 18px -24px 24px;
    min-height: 560px;
    padding: 118px 84px 88px;
    overflow: visible;
    background-position: center 30px;
    background-size: 102% auto;
  }

  .leaf-panel::before,
  .leaf-panel::after {
    position: absolute;
    content: "";
    pointer-events: none;
    background-image: url("images/green_leaf.svg");
    background-repeat: no-repeat;
    background-size: contain;
    z-index: -1;
  }

  .leaf-panel::before {
    right: -65px;
    top: 34px;
    width: 62%;
    height: 64%;
    left: auto;
    bottom: auto;
    opacity: 0.46;
    transform: scaleX(-1);
  }

  .leaf-panel::after {
    left: -34px;
    bottom: 42px;
    width: 22%;
    height: 34%;
    content: "";
    opacity: 0.62;
    transform: rotate(-8deg);
    transform-origin: center;
  }

  .leaf-panel__title {
    font-size: 1.8rem;
    max-width: 24rem;
  }

  .leaf-panel__list {
    max-width: 30rem;
    font-size: 1.08rem;
  }

  .leaf-panel__ant {
    left: 76%;
    bottom: 74px;
    width: 84px;
  }

  .support-box {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    margin: 56px -52px 0;
    padding: 100px 70px 100px;
    border-radius: 32% 45% 30% 47% / 52% 38% 44% 34%;
  }

  .support-box::before {
    top: -28px;
    right: -110px;
    width: 280px;
    transform: rotate(16deg);
  }

  .support-box__art {
    width: 124px;
    justify-self: end;
  }

  .contact-form {
    padding: 28px;
  }
}

@media (min-width: 1080px) {
  .shell {
    --shell-pad-x: 64px;
    padding-inline: 64px;
  }

  .bubble--blue {
    margin-left: -88px;
    padding-left: 200px;
  }

  .bubble--yellow {
    margin-right: -100px;
    padding-right: 230px;
  }

  .leaf-panel {
    margin-inline: -32px;
    margin-left: -64px;
    margin-right: 0;
    min-height: 600px;
    padding: 128px 0px 92px 230px;
    background-size: 100% auto;
  }

  .leaf-panel::after {
    content: none;
  }

  .hero__lead {
    font-size: 1.12rem;
  }

  .feature-grid {
    gap: 24px;
    margin-top: 88px;
  }
}

.subpage-shell {
  padding-top: 44px;
}

.subpage-hero {
  padding: 8px 0 28px;
}

.subpage-hero h1 {
  margin: 0;
  color: var(--orange);
  font-size: clamp(2.2rem, 8vw, 4rem);
  line-height: 1.18;
}

.subpage-hero__copy {
  max-width: 720px;
  margin-top: 18px;
}

.subpage-card {
  padding: 28px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
}

.subpage-card__header {
  margin-bottom: 18px;
}

.subpage-card__header h2,
.works-card__body h2,
.service-card h2 {
  margin: 0;
  color: var(--orange);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
}

.company-card {
  margin-top: 8px;
}

.company-meta {
  display: grid;
  gap: 14px;
}

.company-meta__row {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(223, 83, 16, 0.12);
}

.company-meta__row dt {
  color: var(--orange);
  font-weight: 600;
}

.company-meta__row dd {
  margin: 0;
}

.works-grid,
.service-page-grid {
  display: grid;
  gap: 18px;
}

.works-card__media {
  margin-bottom: 18px;
}

.works-card__media img,
.works-card__placeholder {
  width: 100%;
  border-radius: 22px;
}

.works-card__placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  background: #f7f7f7;
  color: var(--orange);
  font-family: "reross-rectangular", sans-serif;
  letter-spacing: 0.14em;
}

.works-card__body p,
.service-card p {
  margin-bottom: 0;
}

.service-card__list {
  margin: 14px 0 0;
  padding-left: 1.2em;
}

.service-card__list li + li {
  margin-top: 8px;
}

.grecaptcha-badge {
  visibility: hidden;
}

.recaptcha-note {
  margin: 14px 0 0;
  color: #7a7f87;
  font-size: 0.78rem;
  line-height: 1.7;
}

.recaptcha-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (min-width: 768px) {
  .subpage-shell {
    padding-top: 56px;
  }

  .subpage-card {
    padding: 36px 34px;
  }

  .company-meta__row {
    grid-template-columns: 180px 1fr;
    align-items: start;
    gap: 16px;
  }

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

  .service-page-grid .service-card:last-child {
    grid-column: 1 / -1;
  }
}
