.contact-page { background: var(--paper); }

.contact-page .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.contact-page .footer-quick a[aria-current="page"] { color: var(--gold-light); }

.contact-hero {
  --contact-header-space: 92px;
  padding-block: calc(var(--contact-header-space) + clamp(69px, 8.2vw, 118px)) clamp(67px, 7.4vw, 103px);
  background:
    url("assets/hanna-ondas-base.svg") center bottom / 100% auto no-repeat,
    radial-gradient(ellipse at 38% 38%, #fffbf3, transparent 76%),
    var(--paper-warm);
}

.contact-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  align-items: center;
  gap: clamp(34px, 7.6vw, 108px);
}

.contact-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 19px;
  color: #845b31;
  font-size: 14px;
  font-weight: 690;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.contact-label::before { width: 35px; height: 1px; background: currentColor; content: ""; }

.contact-hero h1 {
  max-width: 760px;
  color: #2d251e;
  font-size: clamp(47px, 5.35vw, 77px);
  font-style: normal;
  letter-spacing: -.052em;
  line-height: 1.035;
  text-wrap: pretty;
}

.contact-hero h1 em { color: #845b31; }
.contact-hero-copy > p:last-child { max-width: 52ch; margin-top: 21px; color: #514134; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.58; }

.contact-whatsapp-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(27px, 3.15vw, 43px);
  border: 1px solid #59452e;
  border-radius: 25px;
  background:
    url("assets/orientacao-ondas-base.svg") left bottom / 100% auto no-repeat,
    radial-gradient(ellipse at 9% 5%, #49361f, transparent 70%),
    #2a2118;
  box-shadow: 0 20px 42px rgb(65 46 27 / 15%);
  color: #fff9ee;
}

.contact-whatsapp-label {
  display: inline-block;
  padding: 7px 11px;
  border: 1px solid rgb(226 183 126 / 56%);
  border-radius: 999px;
  color: #f0cd9b;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .025em;
}

.contact-whatsapp-card h2 {
  margin-top: 22px;
  color: #fff9ee;
  font-size: clamp(28px, 2.7vw, 37px);
  font-style: normal;
  letter-spacing: -.035em;
}

.contact-whatsapp-card > p:not(.contact-whatsapp-label) { margin-top: 11px; color: #f1e1cb; font-size: 16px; line-height: 1.55; }

.contact-whatsapp-card .contact-card-number {
  margin-top: 23px;
  color: #fff9ee;
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 670;
  letter-spacing: -.025em;
}

.contact-whatsapp-action {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 53px;
  margin-top: 21px;
  border: 0;
  background: linear-gradient(110deg, #deba86, #c89d62);
  color: #2b2117;
}

.contact-whatsapp-action:hover { background: linear-gradient(110deg, #deba86, #c89d62); color: #2b2117; }
.contact-whatsapp-action::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: #fff5e6;
  opacity: 0;
  transition: opacity .18s ease;
  content: "";
  pointer-events: none;
}
.contact-whatsapp-action:hover::before,
.contact-whatsapp-action:focus-visible::before { opacity: .2; }

.contact-methods {
  padding-block: clamp(67px, 7.5vw, 104px);
  background: radial-gradient(ellipse at 62% 38%, #fffbf2, transparent 77%);
}

.contact-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
  margin-top: clamp(25px, 3vw, 40px);
}

.contact-method {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: clamp(21px, 3vw, 35px);
  border: 1px solid #dec9aa;
  border-radius: 20px;
  background: linear-gradient(145deg, #fffdf7, #fbf3e8 90%);
  box-shadow: 0 10px 25px rgb(98 62 28 / 8%);
}

.contact-method > .icon {
  --icon-accent: #9a6935;
  width: 38px;
  height: 38px;
  color: #80572f;
}

.contact-method > div { min-width: 0; }
.contact-method h2 { color: #35271c; font-size: 21px; font-style: normal; letter-spacing: -.02em; }
.contact-method p { margin-top: 4px; color: #655342; font-size: 15px; }
.contact-method a { display: inline-block; margin-top: 10px; color: #754a22; font-size: 16px; font-weight: 690; text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact-method a:hover { color: #362719; }

.contact-office {
  padding-block: 0 clamp(68px, 8vw, 112px);
  background: radial-gradient(ellipse at 50% 40%, #fffbf2, transparent 76%);
}

.contact-office-panel {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
  align-items: center;
  gap: clamp(25px, 5vw, 69px);
  padding: clamp(26px, 4.4vw, 58px);
  border: 1px solid #d6bc98;
  border-radius: 24px;
  background:
    url("assets/atuacao-ondas-topo.svg") right top / min(30%, 390px) auto no-repeat,
    linear-gradient(127deg, #fcf5e9, #fffaf2);
}

.contact-office-heading h2 { max-width: 400px; color: #332519; font-size: clamp(30px, 3.25vw, 44px); font-style: normal; letter-spacing: -.035em; text-wrap: pretty; }
.contact-methods-heading { margin-top: 19px; color: #332519; font-size: clamp(32px, 4vw, 47px); font-style: normal; letter-spacing: -.035em; text-wrap: pretty; }
.contact-office-heading h2 em { color: #845b31; }
.contact-office-address { padding-left: clamp(20px, 3.5vw, 49px); border-left: 1px solid #d4b88e; }
.contact-office-address > p { color: #503e2d; font-size: 18px; line-height: 1.7; }

.contact-map-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 45px;
  margin-top: 16px;
  padding: 9px 16px;
  border: 1px solid #9b7850;
  border-radius: 999px;
  color: #493522;
  font-size: 15px;
  font-weight: 660;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.contact-map-link:hover { background: #eadac2; }
.contact-map-link .icon { --icon-accent: #80572f; width: 19px; height: 19px; color: #80572f; }

@media (max-width: 1040px) {
  .contact-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr); gap: 34px; }
  .contact-hero h1 { font-size: clamp(45px, 5.2vw, 59px); }
  .contact-office-panel { gap: 28px; }
}

@media (max-width: 920px) {
  .contact-hero { --contact-header-space: 76px; }
}

@media (max-width: 767px) {
  .contact-hero { padding-block: calc(var(--contact-header-space) + 48px) 64px; }
  .contact-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .contact-hero h1 { font-size: clamp(42px, 10vw, 57px); }
  .contact-hero-copy > p:last-child { margin-top: 16px; }
  .contact-whatsapp-card { padding: 24px; border-radius: 21px; }
  .contact-whatsapp-card h2 { margin-top: 17px; }
  .contact-whatsapp-card .contact-card-number { margin-top: 16px; }
  .contact-whatsapp-action { margin-top: 15px; }
  .contact-methods { padding-block: 60px 66px; }
  .contact-methods-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .contact-method { padding: 21px; border-radius: 17px; }
  .contact-office { padding-bottom: 67px; }
  .contact-office-panel { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px; }
  .contact-office-heading h2 { font-size: 34px; }
  .contact-office-address { padding: 18px 0 0; border-top: 1px solid #d4b88e; border-left: 0; }
  .contact-office-address > p { font-size: 17px; }
}
